Commit | Line | Data |
---|---|---|
10fc3187 GM |
1 | 2000-05-30 Gerd Moellmann <gerd@gnu.org> |
2 | ||
3 | * search.c (Fre_search_forward, Fre_search_backward) | |
4 | (Fposix_search_backward, Fposix_search_forward): Doc fix. | |
5 | ||
d0555360 KH |
6 | 2000-05-30 Kenichi Handa <handa@etl.go.jp> |
7 | ||
8 | * coding.c (detect_coding_iso2022): Fix code for checking | |
9 | CODING_CATEGORY_MASK_ISO_8_2. | |
10 | ||
f1ad044f SM |
11 | 2000-05-29 Stefan Monnier <monnier@cs.yale.edu> |
12 | ||
13 | * regex.c (PREFETCH_NOLIMIT): New function. | |
14 | (re_match_2_internal): Use it and adjust the end_match_2 logic. | |
15 | ||
84ec3b4b GM |
16 | 2000-05-29 Gerd Moellmann <gerd@gnu.org> |
17 | ||
66254a13 GM |
18 | * syntax.c (find_defun_start): Move test for |
19 | open_paren_in_column_0_is_defun_start outside of the loop. | |
20 | ||
49e70dec GM |
21 | * xdisp.c (redisplay_window): Really switch buffers when |
22 | displaying mode lines, and temporarily set selected_frame to the | |
23 | frame of the window that's redisplayed. | |
24 | ||
84ec3b4b GM |
25 | * xfaces.c (free_realized_faces): Block/unblock input. |
26 | (free_realized_multibyte_face): Ditto. | |
27 | ||
869a3a14 DL |
28 | 2000-05-29 Dave Love <fx@gnu.org> |
29 | ||
30 | * textprop.c (Qkeymap): New variable. | |
31 | (syms_of_textprop): Intern it. | |
32 | ||
33 | * keymap.c: Include intervals.h. | |
34 | (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property. | |
35 | ||
36 | * Makefile.in (keymap.o): Depend on intervals.h. | |
37 | ||
38 | * keyboard.c (menu_bar_items, tool_bar_items) | |
39 | (Fexecute_extended_command): Deal with `keymap' property. | |
40 | (read_key_sequence): Track map from `keymap' property as well as | |
41 | `local_map'. | |
42 | ||
43 | * intervals.c (get_local_map): Extra arg to allow looking for | |
44 | `keymap' too. | |
45 | ||
46 | * intervals.h (map_property): New enum. | |
47 | (get_local_map): Extra arg using it. | |
48 | (Qkeymap): Declare. | |
49 | ||
84ec3b4b | 50 | * lisp.h (get_local_map): Don't declare here. |
869a3a14 | 51 | |
89d0c844 KH |
52 | 2000-05-29 Kenichi Handa <handa@etl.go.jp> |
53 | ||
54 | * Makefile.in (callproc.o): Depend on composite.h. | |
55 | ||
56 | * callproc.c: Include composite.h. | |
57 | (Fcall_process): Handle composition correctly. | |
58 | ||
59 | * coding.h (coding_allocate_composition_data): Extern it. | |
60 | (coding_restore_composition): Likewise. | |
61 | ||
62 | * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not | |
63 | yet allocated, finish decoding with result | |
64 | CODING_FINISH_INSUFFICIENT_CMP. | |
65 | (coding_allocate_composition_data): Make it non-static. | |
66 | (coding_restore_composition): Likewise. | |
67 | ||
797a084a EZ |
68 | 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il> |
69 | ||
70 | * charset.c (syms_of_charset): Revert last change. | |
71 | ||
cf872af5 EZ |
72 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
73 | ||
74 | * term.c (produce_glyphs): Treat characters from the eight-bit-* | |
75 | charsets as unibyte, with 1-column screen width. Sent by Kenichi | |
76 | Handa. | |
77 | ||
5b1ae051 EZ |
78 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
79 | ||
80 | * charset.c (syms_of_charset): Set width of character sets | |
81 | eight-bit-control and eight-bit-graphic to 1 column. | |
82 | ||
34ec9ebe GM |
83 | 2000-05-26 Gerd Moellmann <gerd@gnu.org> |
84 | ||
85 | * config.in (HAVE_SPEED_T): New define. | |
86 | ||
87 | * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as | |
88 | `extern speed_t'. | |
89 | ||
dd854dc2 DL |
90 | 2000-05-26 Dave Love <fx@gnu.org> |
91 | ||
92 | * coding.c (shrink_decoding_region): Initialize eol_conversion. | |
93 | ||
94 | * data.c (Qsubrp, Qmany, Qunevalled): New variables. | |
95 | (Fsubr_arity): New function. | |
96 | (syms_of_data): Install them. | |
97 | ||
ba9f8f95 KH |
98 | 2000-05-26 Kenichi Handa <handa@etl.go.jp> |
99 | ||
0f3e0672 KH |
100 | * charset.c (init_charset_once): Set the table bytes_by_char_head |
101 | correctly. | |
102 | ||
cebefb44 KH |
103 | * fontset.c (syms_of_fontset): Adjust the font name for ascii of |
104 | the default fontset to what Emacs uses by default. | |
0f3e0672 KH |
105 | (check_registry_encoding): This function deleted. |
106 | (Fset_fontset_font): Remove the adhoc condition for the default | |
107 | fontset. Allow cons in FONTNAME. | |
cebefb44 | 108 | |
0f3e0672 KH |
109 | * fns.c (map_char_table): Ignore char-table entries for |
110 | charsets eight-bit-control and eight-bit-graphic. | |
ba9f8f95 | 111 | |
7a18af49 KR |
112 | 2000-05-25 Ken Raeburn <raeburn@gnu.org> |
113 | ||
114 | * emacs.c (main): Initialize keyboard syms before initializing | |
115 | window code, so face names are available. | |
116 | ||
d2af47df SM |
117 | 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> |
118 | ||
119 | * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case | |
120 | of an anchor at the beginning of a shy-group. | |
121 | ||
fc6a6a4e GM |
122 | 2000-05-25 Gerd Moellmann <gerd@gnu.org> |
123 | ||
124 | * xdisp.c (handle_invisible_prop): Don't try to skip over | |
125 | invisible text if end of text is already reached. | |
126 | ||
005f0d35 DL |
127 | 2000-05-25 Dave Love <fx@gnu.org> |
128 | ||
02513cdd DL |
129 | * xdisp.c (Fdump_glyph_matrix): Declare the arg. |
130 | ||
005f0d35 DL |
131 | * coding.c (encode_eol): Add null statement after label. |
132 | ||
89f6ca4e EZ |
133 | 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il> |
134 | ||
135 | * w16select.c (Fw16_set_clipboard_data): Fix the change from | |
136 | 2000-05-20. | |
137 | ||
a4e1759e KH |
138 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
139 | ||
140 | * ccl.c (ccl_driver): Fix previous change. | |
141 | ||
eacfd7fe KH |
142 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
143 | ||
46ab33a9 KH |
144 | * coding.c (run_pre_post_conversion_on_str): Set point to the |
145 | beginning of buffer before calling coding->post_read_conversion. | |
146 | (decode_coding_string): Give correct args to | |
147 | run_pre_post_conversion_on_str. | |
148 | (encode_coding_string): Likewise. | |
149 | ||
eacfd7fe KH |
150 | * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2> |
151 | <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and | |
152 | eight-bit-graphic correctly. | |
153 | ||
f8569325 DL |
154 | 2000-05-24 Kenichi HANDA <handa@etl.go.jp> |
155 | ||
156 | * fileio.c (Finsert_file_contents): Even if a file is not found, | |
157 | execute codes for setting up coding system. Call | |
158 | after-insert-file-functions unconditionally. | |
159 | ||
04545643 GM |
160 | 2000-05-24 Gerd Moellmann <gerd@gnu.org> |
161 | ||
162 | * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and | |
163 | BSD_PGRPS are not defined. | |
164 | ||
747d90ea KH |
165 | 2000-05-24 Kenichi Handa <handa@etl.go.jp> |
166 | ||
167 | * charset.c (update_charset_table): Accept nil in LONG_NAME and | |
168 | DESCRIPTION. | |
169 | (syms_of_charset): Avoid building same strings. | |
170 | ||
716e3b88 GM |
171 | 2000-05-23 Gerd Moellmann <gerd@gnu.org> |
172 | ||
173 | * lread.c (Fload): Add a comment about the meaning of | |
174 | Vuser_init_file being t. | |
175 | ||
176 | * puresize.h (BASE_PURESIZE): Increase to 675000. | |
177 | ||
178 | * s/gnu-linux.h (setpgrp): Don't define it here because this | |
179 | prevents compilation on GNU/Linux systems with glib 2.2. | |
180 | ||
181 | * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define | |
182 | as setpgid. | |
183 | ||
9aeb39fa EZ |
184 | 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il> |
185 | ||
186 | * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc, | |
187 | dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS | |
188 | version. | |
189 | (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc. | |
190 | ||
29ced61b KH |
191 | 2000-05-23 Kenichi Handa <handa@etl.go.jp> |
192 | ||
0574a2ed KH |
193 | * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE |
194 | unconditionally. | |
195 | ||
3d80f24d KH |
196 | * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1. |
197 | ||
198 | * term.c (encode_terminal_code): Set coding->src_multibyte | |
199 | properly. | |
200 | ||
29ced61b KH |
201 | * coding.c (encode_eol): Fix a bug of DOS style EOL encoding. |
202 | ||
d7e00792 KH |
203 | 2000-05-22 Kenichi Handa <handa@etl.go.jp> |
204 | ||
c9d80d38 KH |
205 | * keyboard.c (read_char): Allow character codes 128..255 to be |
206 | handled by input-method-function. | |
207 | ||
d7e00792 KH |
208 | * insdel.c (adjust_markers_for_replace): Fix previous change. |
209 | (adjust_after_replace): If PREV_TEXT is nil, call | |
210 | adjust_markers_for_insert, not adjust_markers_for_replace. | |
211 | ||
087121cc GM |
212 | 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp> |
213 | ||
214 | * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define. | |
215 | (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF) | |
216 | [HAVE_GRANDPT]: Define. | |
217 | (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE. | |
218 | ||
219 | * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined | |
220 | like SYSV_PTYS. | |
221 | ||
222 | * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines. | |
223 | ||
224 | * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h. | |
225 | ||
c9671f81 KH |
226 | 2000-05-20 Kenichi Handa <handa@etl.go.jp> |
227 | ||
228 | The following changes are to handle 8-bit characters in a | |
229 | multibyte buffer/string without facing with byte combining | |
230 | problem. Two new charsets eight-bit-control (for 0x80..0x9F) and | |
231 | eight-bit-graphic (for 0xA0..0xFF) are introduced. | |
232 | ||
233 | * Makefile.in (fns.o): Depend on charset.h. | |
234 | ||
235 | * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte, | |
236 | convert it to unibyte. | |
237 | (make_string): Use parse_str_as_multibyte, not chars_in_text. | |
238 | ||
239 | * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a | |
240 | apparent char boundary. | |
241 | (Fset_buffer_multibyte): Convert 8-bit characters in the range | |
242 | 0x80..0x9F to/from multibyte form. | |
243 | ||
244 | * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it | |
245 | to unibyte. | |
246 | ||
247 | * callproc.c (Fcall_process): Always encode an argument string if | |
248 | it is multibyte. Setup src_multibyte and dst_multibyte members of | |
249 | process_coding properly. | |
ce75fd23 | 250 | |
c9671f81 KH |
251 | * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not |
252 | SPLIT_NON_ASCII_CHAR. | |
253 | ||
254 | * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters | |
255 | as is. | |
256 | (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR. | |
257 | ||
258 | * charset.c (Qeight_bit_control, Qeight_bit_graphic): New | |
259 | variables. | |
260 | (SPLIT_CHARACTER_SEQ): This macro deleted. | |
261 | (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is | |
262 | valid. | |
263 | (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control | |
264 | and eight-bit-graphic. | |
265 | (char_to_string): Likewise. Signal an error for too large | |
266 | character code. | |
267 | (char_printable_p): Return 0 for 8-bit characters. | |
268 | (update_charset_table): Update iso_charset_table only when a final | |
269 | character is non-negative. | |
270 | (find_charset_in_text): Renamed from find_charset_in_str. | |
271 | Arguments and return value changed. Callers changed. | |
272 | (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can | |
273 | be -1 if CHARSET is used only internally. | |
274 | (Fmake_char_internal): Handle new charsets; eight-bit-control and | |
275 | eight-bit-graphic. | |
276 | (Fcharset_after): Simplified. | |
277 | (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR. | |
278 | (char_bytes): Return 2 for chars of the range 0xA0..0xFF. | |
279 | (multibyte_chars_in_text): Simplified by assuming there's no | |
280 | invalid multibyte sequence. | |
281 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, | |
282 | str_as_unibyte): New functions. | |
283 | (Fstring): Simpified by assuming that byte combining never | |
284 | happens. | |
285 | (init_charset_once): Initialization for | |
286 | LEADING_CODE_8_BIT_CONTROL. | |
287 | (syms_of_charset): Intern and staticpro Qeight_bit_control and | |
288 | Qeight_bit_graphic. Include them in Vcharset_list. Make charsets | |
289 | eight-bit-control and eight-bit-graphic. | |
290 | ||
291 | * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL, | |
292 | CHARSET_8_BIT_GRAPHIC): New macros. | |
293 | (SINGLE_BYTE_CHAR_P): Make it faster by using casting. | |
294 | (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. | |
295 | (CHARSET_REVERSE_CHARSET): Likewise. | |
296 | (CHARSET_VALID_P): Handle new charsets; eight-bit-control and | |
297 | eight-bit-graphic. | |
298 | (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. | |
299 | (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. | |
300 | (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we | |
301 | encounter an invalid multibyte sequence. | |
302 | (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte | |
303 | sequence is always valid. | |
304 | (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. | |
305 | (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New | |
306 | macros. | |
307 | (CHAR_STRING): For 8-bit characters, call char_to_string. | |
308 | (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume | |
309 | multibyte sequence is always valid. | |
310 | (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. | |
311 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, | |
312 | str_as_unibyte): Extern them. | |
313 | (BCOPY_SHORT): Fix a bug. | |
314 | (CHAR_LEN): This macro deleted. Callers changed to use | |
315 | CHAR_BYTES. | |
316 | (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. | |
317 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. | |
318 | (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer. | |
319 | ||
bd4bde7f | 320 | * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to |
c9671f81 KH |
321 | CODING_FINISH_INSUFFICIENT_SRC if there's not enough source. |
322 | (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE, | |
323 | EMIT_BYTES): New macros. | |
324 | (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII, | |
325 | DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These | |
326 | macros deleted. | |
327 | (CHECK_CODE_RANGE_A0_FF): This macro deleted. | |
328 | (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to | |
329 | check the validity of multibyte sequence. | |
330 | (decode_coding_emacs_mule): New function. | |
331 | (encode_coding_emacs_mule): New macro. | |
332 | (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from | |
333 | the source. | |
334 | (DECODE_ISO_CHARACTER): Just return a character code. | |
335 | (DECODE_COMPOSITION_START): Set coding->result instead of result. | |
336 | (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use | |
337 | EMIT_CHAR to produced decoded characters. Exit the loop only by | |
338 | macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last | |
339 | block here. | |
340 | (ENCODE_ISO_CHARACTER): Don't translate character here. Produce | |
341 | only position codes for an invalid character. | |
342 | (encode_designation_at_bol): Return new destination pointer. 5th | |
343 | arg DSTP is changed to DST. | |
344 | (encode_coding_iso2022, decode_coding_sjis_big5): Get a character | |
345 | from the source by ONE_MORE_CHAR. Don't handle the case of last | |
346 | block here. | |
347 | (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These | |
348 | macros deleted. | |
349 | (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8, | |
350 | detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and | |
351 | TWO_MORE_BYTES to fetch a byte from the source. | |
352 | (encode_eol): Pay attention to coding->src_multibyte. | |
353 | (detect_coding, detect_eol): Preserve members src_multibyte and | |
354 | dst_multibyte. | |
355 | (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text. | |
356 | (encoding_buffer_size): Set magnification to 3 for all coding | |
357 | systems that require encoding. | |
358 | (ccl_coding_driver): For decoding, be sure that the result is | |
359 | valid multibyte sequence. | |
360 | (decode_coding): Initialize coding->errors and coding->result. | |
361 | For emacs-mule, call decode_coding_emacs_mule. For no-conversion | |
362 | and raw-text, always call decode_eol. Handle the case of last | |
363 | block here. If not coding->dst_multibyte, convert the resulting | |
364 | sequence to unibyte. | |
365 | (encode_coding): Initialize coding->errors and coding->result. | |
366 | For emacs-mule, call encode_coding_emacs_mule. For no-conversion | |
367 | and raw-text, always call encode_eol. Handle the case of last | |
368 | block here. | |
369 | (shrink_decoding_region, shrink_encoding_region): Detect cases | |
370 | that we can't skip data more rigidly. | |
371 | (code_convert_region): Setup src_multibyte and dst_multibyte | |
372 | members of coding. For decoding, if the buffer is multibyte, | |
373 | convert the source sequence to unibyte in advance. For encoding, | |
374 | if the buffer is multibyte, convert the resulting sequence to | |
375 | multibyte afterward. | |
376 | (run_pre_post_conversion_on_str): New function. | |
377 | (code_convert_string): Deleted and divided into the following two. | |
378 | (decode_coding_string, encode_coding_string): New functions. | |
379 | (code_convert_string1, code_convert_string_norecord): Call one of | |
380 | above. | |
381 | (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of | |
382 | MAKE_NON_ASCII_CHAR. | |
383 | (Fset_terminal_coding_system_internal, | |
384 | Fset_safe_terminal_coding_system_internal): Setup src_multibyte | |
385 | and dst_multibyte members. | |
386 | (init_coding_once): Initialize iso_code_class with new enum | |
387 | ISO_control_0 and ISO_control_1. | |
388 | ||
389 | * coding.h (enum iso_code_class_type): Member ISO_control_code is | |
390 | devided into ISO_control_0 and ISO_control_1. | |
391 | (struct coding_system): New members src_multibyte, dst_multibyte, | |
392 | errors, and result. Delete member fake_multibyte. | |
393 | (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is | |
394 | nonzero. | |
395 | (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is | |
396 | nonzero. | |
397 | ||
398 | * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR. | |
399 | (Faset): Likewise. | |
400 | ||
401 | * editfns.c (Fformat): Be sure to convert 8-bit characters to | |
402 | multibyte form. | |
403 | (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte | |
404 | combining occurs. | |
405 | (Ftranspose_region): Delete codes for handling byte combining. | |
406 | ||
407 | * fileio.c (Finsert_file_contents): Setup src_multibyte and | |
408 | dst_multibyte members of coding. On handling REPLACE on unibyte | |
409 | buffer, convert the result of decode_coding to unibyte. On | |
410 | inserting into a mutibyte buffer, always call code_convert_region. | |
bd4bde7f | 411 | (e_write): Setup coding->src_multibyte according to the |
c9671f81 KH |
412 | multibyteness of the source (buffer or string). |
413 | ||
414 | * fns.c (concat): Handle 8-bit characters correctly. | |
415 | (Fstring_as_unibyte): Be sure to make all 8-bit characters in | |
416 | unibyte in the result. | |
417 | (Fstring_as_multibyte): Be sure to make all 8-bit characters in | |
418 | valid multibyte form in the result. | |
419 | (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
420 | (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1 | |
421 | return -1, signal an error. | |
422 | (base64_encode_1): New arg MULTIBYTE. Get each character by | |
423 | CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte | |
424 | character is found, return -1. | |
425 | (Fbase64_decode_region): Delete codes for handling byte-combining. | |
426 | Treat each decoded byte as a unibyte character. | |
427 | (Fbase64_decode_string): Return unibyte string. | |
428 | (Fcompare_strings, concat, string_byte_to_char): Use | |
429 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off | |
430 | FETCH_STRING_CHAR_ADVANCE. | |
431 | (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
432 | (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE. | |
433 | ||
434 | * fontset.c (fontset_ref): Use SPLIT_CHAR instead of | |
435 | SPLIT_NON_ASCII_CHAR. | |
436 | (fontset_ref_via_base, fontset_set): Likewise | |
437 | ||
438 | * insdel.c (adjust_markers_for_record_delete): Deleted. | |
439 | (adjust_markers_for_insert): Argument changed. Caller changed. | |
440 | (adjust_markers_for_replace): Likewise. | |
441 | (ADJUST_CHAR_POS, combine_bytes, byte_combining_error, | |
442 | CHECK_BYTE_COMBINING_FOR_INSERT): Deleted. | |
443 | (copy_text): Delete unused local varialbe c_save. For converting | |
444 | to multibyte, be sure to make all 8-bit characters in valid | |
445 | multibyte form. | |
446 | (count_size_as_multibyte): Handle 8-bit characters correctly. | |
447 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, | |
448 | adjust_after_replace, replace_range, del_range_2) | |
449 | [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. | |
450 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, | |
451 | adjust_after_replace, replace_range, del_range_2) Delete codes for | |
452 | handling byte combining. | |
453 | (adjust_before_replace): Deleted. | |
454 | ||
455 | * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of | |
456 | SPLIT_NON_ASCII_CHAR. | |
457 | (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
458 | (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE | |
459 | unconditionally. | |
460 | (Fkey_description): Likewise. | |
461 | ||
462 | * lread.c (read1): On reading multibyte string, be sure to make | |
463 | all 8-bit chararacters in valid multibyte form. | |
464 | (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
465 | ||
466 | * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE | |
467 | unconditionally. | |
468 | ||
469 | * process.c (Fstart_process): GCPRO current_dir before calling | |
470 | Ffind_operation_coding_system. Encode arguments here. | |
471 | (create_process): Don't encode arguments here. Setup | |
472 | src_multibyte and dst_multibyte members of struct coding. | |
473 | (read_process_output): Setup src_multibyte and dst_multibyte | |
474 | members of struct coding. If the output is to multibyte buffer, | |
475 | always decode the output of the process. Adjust the | |
476 | representation of 8-bit characters to the multibyteness of the | |
477 | output. | |
478 | (send_process): Setup coding->src_multibyte according to the | |
479 | multibyteness of the source. | |
480 | ||
481 | * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE | |
482 | unconditionally. | |
483 | (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and | |
484 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately. | |
485 | ||
486 | * term.c (produce_special_glyphs): Use CHAR_BYTES instead of | |
487 | CHAR_LEN. | |
488 | ||
489 | * w16select.c (Fw16_set_clipboard_data): Setup members | |
490 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
491 | change for find_charset_in_str. | |
492 | (Fw16_get_clipboard_data): Likewise. | |
493 | ||
494 | * w32fns.c (w32_to_x_font): Setup members src_multibyte and | |
495 | dst_multibyte of coding. | |
496 | (x_to_w32_font): Likewise. | |
497 | ||
498 | * w32select.c (Fw32_set_clipboard_data): Setup members | |
499 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
500 | change for find_charset_in_str. | |
501 | (Fw32_get_clipboard_data): Likewise. | |
502 | ||
503 | * xdisp.c (get_next_display_element): Handle 8-bit characters | |
504 | correctly. | |
505 | (next_element_from_display_vector): Use CHAR_BYTES instead of | |
506 | CHAR_LEN. | |
507 | (disp_char_vector): Use SPLIT_CHAR instead of | |
508 | SPLIT_NON_ASCII_CHAR. | |
509 | ||
510 | * xselect.c (selection_data_to_lisp_data): Setup members | |
511 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
512 | change for find_charset_in_str. | |
513 | (lisp_data_to_selection_data): Likewise. | |
514 | ||
5f64c9e0 GM |
515 | 2000-05-19 Gerd Moellmann <gerd@gnu.org> |
516 | ||
2b63d473 GM |
517 | * buffer.c (Fbury_buffer): Avoid trouble from burying a killed |
518 | buffer. | |
519 | ||
5f64c9e0 GM |
520 | * dispextern.h (Vimage_types): Add extern declaration. |
521 | ||
522 | * xdisp.c (Vimage_types): Moved here from xfns.c. | |
523 | (syms_of_xdisp): Move `image-types' variable here from xfns.c. | |
524 | ||
525 | * xfns.c (Vimages_types): Moved to xdisp.c. | |
526 | (syms_of_xfns): Move `image-types' to xdisp.c. | |
527 | ||
528 | * w32fns.c (Vimage_types): Removed. | |
529 | (syms_of_w32fns): Remove `image-types'. | |
530 | ||
813086ea KH |
531 | 2000-05-18 Kenichi Handa <handa@etl.go.jp> |
532 | ||
533 | * fns.c (map_char_table): Pay attention to character number of | |
534 | charset. Check the validity of charset at the first level. For | |
535 | leaf nodes that has nil value, call C_FUNCTION or FUNCTION with | |
536 | the default value. | |
537 | ||
538 | * fontset.c: Include "buffer.h". | |
539 | (fs_load_font): If the face has fontset, record the face ID in | |
540 | that fontset. | |
541 | (Finternal_char_font): New function. | |
542 | (accumulate_font_info): New function. | |
543 | (Ffontset_info): Rewritten for the new fontset implementation. | |
544 | (syms_of_fontset): Register Vdefault_fontset in the first element | |
545 | of Vfontset_table. Include Vdefault_fontset in | |
546 | Vfontset_alias_alist. Declare `internal-char-font' as a Lisp | |
547 | function. | |
548 | ||
bdaebbf0 DL |
549 | 2000-05-16 Dave Love <fx@gnu.org> |
550 | ||
551 | * m/iris5d.h: Deleted -- unused. | |
552 | ||
cb613bb8 GM |
553 | 2000-05-16 Gerd Moellmann <gerd@gnu.org> |
554 | ||
b15f3b77 GM |
555 | * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term |
556 | `invalid' instead of `illegal'. | |
557 | ||
558 | * indent.c (Fmove_to_column): When ending within a tab, insert | |
559 | spaces first so that markers at the end of the tab get adjusted. | |
560 | ||
835c1b36 GM |
561 | * frame.c (frames_bury_buffer): Don't add a buffer to the frame's |
562 | buffer list that wasn't selected in that frame. | |
563 | ||
cb613bb8 GM |
564 | * filelock.c (get_boot_time): To obtain an 8 char file name, which |
565 | is needed on mescaline, use a 2 char prefix, and call | |
566 | make_temp_name with second arg non-zero. | |
567 | ||
568 | * fileio.c (make_temp_name): New function, extracted from | |
569 | Fmake_temp_name. | |
570 | (Fmake_temp_name): Use it. | |
571 | ||
f685bea9 EZ |
572 | 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il> |
573 | ||
574 | * window.c (coordinates_in_window): Subtract 1 when computing | |
575 | right_x. | |
576 | ||
a1b8d58b GM |
577 | 2000-05-15 Gerd Moellmann <gerd@gnu.org> |
578 | ||
579 | * Makefile.in (lisp): Add env.elc. | |
580 | ||
581 | * callproc.c (Fgetenv_internal): Renamed from Fgetenv. | |
582 | ||
a265079f GM |
583 | 2000-05-12 Gerd Moellmann <gerd@gnu.org> |
584 | ||
585 | * search.c (Freplace_match): Handle case of `\N' in the | |
586 | replacement when there's no group N. | |
587 | ||
da4496b6 GM |
588 | 2000-05-11 Gerd Moellmann <gerd@gnu.org> |
589 | ||
0ace421a GM |
590 | * xdisp.c (add_to_log): Don't pass the terminating NUL byte |
591 | of the message to message_dolog. | |
592 | ||
1172eb8d GM |
593 | * keyboard.c (read_char): Don't clear current message for help |
594 | events; let the code handling help events handle this. Change | |
595 | code detecting help events that should be ignored. | |
596 | ||
da4496b6 GM |
597 | * xdisp.c (handle_single_display_prop): Don't try to set PT if |
598 | we're interating over a string. | |
599 | ||
0623e40f DL |
600 | 2000-05-09 Dave Love <fx@gnu.org> |
601 | ||
602 | * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to | |
603 | that offset before writing. Move gcpro region past call of | |
604 | Ffile_regular_p. | |
605 | ||
bae2503b DL |
606 | 2000-05-04 Dave Love <fx@gnu.org> |
607 | ||
608 | * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix. | |
609 | ||
ec82fb2f GM |
610 | 2000-05-04 Gerd Moellmann <gerd@gnu.org> |
611 | ||
612 | * insdel.c (insert_from_buffer_1): Adjust FROM position by number | |
613 | of inserted characters when BUF equals the current buffer, and PT | |
614 | is in front of or equal to FROM. | |
615 | ||
cbf18892 GM |
616 | 2000-05-03 Gerd Moellmann <gerd@gnu.org> |
617 | ||
4ff40dd0 GM |
618 | * xdisp.c (handle_single_display_prop): If display property value |
619 | is invalid, or something not supported on the frame, restore | |
620 | iterator's position to what it was initially. Make sure to return | |
621 | 0 for invalid and unsupported property values. | |
622 | ||
cbf18892 GM |
623 | * xterm.c (x_produce_glyphs) <composite chars>: Handle case |
624 | that x_per_char_metric returns null. | |
625 | ||
1b0672c3 GM |
626 | 2000-05-02 Gerd Moellmann <gerd@gnu.org> |
627 | ||
576da55d GM |
628 | * xterm.h (struct face): Add forward declaration. |
629 | (struct image): Ditto. | |
630 | (image_ascent): Add prototype. | |
631 | ||
632 | * xterm.c (x_produce_image_glyph, x_draw_image_foreground) | |
633 | (x_draw_image_relief, x_draw_image_foreground_1): Call function | |
634 | image_ascent instead of using IMAGE_ASCENT. | |
635 | ||
636 | * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro. | |
637 | (IMAGE_ASCENT): Removed. | |
638 | ||
639 | * xfns.c (Qcenter): New variable. | |
640 | (enum image_value_type): Add IMAGE_ASCENT_VALUE. | |
641 | (parse_image_spec): Handle IMAGE_ASCENT_VALUE. | |
642 | (image_ascent): New function. | |
643 | (lookup_image): Recognize `:ascent center'. | |
644 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) | |
645 | (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE. | |
646 | (xbm_load): Don't set image's ascent here. | |
647 | (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p) | |
648 | (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't | |
649 | check ascent values here. | |
650 | (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed. | |
651 | (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions. | |
652 | (syms_of_xfns): Initialize Qcenter. | |
653 | ||
1b0672c3 GM |
654 | * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near |
655 | to the limits, increase the limits. | |
656 | ||
0d7811ed KH |
657 | 2000-05-01 Kenichi Handa <handa@etl.go.jp> |
658 | ||
659 | * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII. | |
660 | Check Vfont_encoding_alist against the full name of the opened | |
661 | font. | |
662 | ||
a943a5ca GM |
663 | 2000-04-28 Gerd Moellmann <gerd@gnu.org> |
664 | ||
665 | * xdisp.c (make_cursor_line_fully_visible): Handle case of rows | |
666 | taller than the window. | |
667 | ||
5dba1e29 KH |
668 | 2000-04-28 Kenichi Handa <handa@etl.go.jp> |
669 | ||
670 | * xfaces.c (realize_x_face): Fix the argument of the second | |
671 | xassert. BASE_FACE may not be a face for ASCII. | |
672 | ||
353964e3 GM |
673 | 2000-04-27 Gerd Moellmann <gerd@gnu.org> |
674 | ||
c76e04a8 GM |
675 | * print.c (print_object): Treat print-length < 0 as nil. |
676 | ||
677 | * Makefile.in (termcapobj): Don't use TERMCAP_OBJ. | |
678 | ||
679 | * s/freebsd.h (TERMCAP_OBJ): Removed. | |
680 | (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000. | |
681 | ||
682 | * lread.c (read1): Don't treat period followed by certain | |
683 | characters as symbol start. | |
684 | ||
685 | * xfns.c (slurp_file): New function. | |
686 | (xbm_image_p): Handle case of in-memory XBM files. | |
687 | (xbm_scan): Rewritten to work on memory buffers instead of files. | |
688 | (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data. | |
689 | Work on memory buffers instead of files. If DATA is null test | |
690 | if buffer looks like an in-memory XBM file. | |
691 | (xbm_load_image): Renamed from xbm_load_image_file. Work on | |
692 | memory buffers instead of files. | |
693 | (xbm_file_p): New function. | |
694 | (xbm_load): Accept :data DATA where DATA is an in-memory XBM file. | |
695 | ||
353964e3 GM |
696 | * lread.c (end_of_file_error): New function. |
697 | (read1): Call it instead of signaling `end-of-file' directly. | |
698 | ||
699 | * print.c (print_error_message): Print data of `end-of-file' | |
700 | with Fprinc instead of Fprin1. | |
701 | ||
24d744ac KR |
702 | 2000-04-26 Ken Raeburn <raeburn@gnu.org> |
703 | ||
704 | * window.c (freeze_window_start): Check that minibuffer scroll | |
705 | window isn't nil before extracting the window structure pointer | |
706 | from it. | |
707 | ||
708 | * undo.c (record_delete): If we hit the end of the undo list, stop | |
709 | picking elements apart. | |
710 | ||
7464346d GM |
711 | 2000-04-26 Gerd Moellmann <gerd@gnu.org> |
712 | ||
713 | * xdisp.c (display_line): If lines are continued, restore | |
714 | iterator's ascent/descent information to the values before the | |
715 | first glyph not fitting on the line. | |
716 | ||
612839b6 GM |
717 | 2000-04-25 Gerd Moellmann <gerd@gnu.org> |
718 | ||
719 | * xdisp.c (try_window_id) <all changes above window start>: Adjust | |
720 | positions in glyph matrix. Don't compute new window end | |
721 | positions. | |
722 | ||
723 | * dispnew.c (increment_matrix_positions): Renamed from | |
724 | increment_glyph_matrix_buffer_positions. | |
725 | (increment_row_positions): Renamed from | |
726 | increment_glyph_row_buffer_positions. | |
727 | ||
728 | * dispextern.h: Change names of renamed functions from dispnew.c | |
729 | in prototypes. | |
730 | ||
cc181e95 GM |
731 | 2000-04-24 Gerd Moellmann <gerd@gnu.org> |
732 | ||
abfcc168 GM |
733 | * fileio.c (Fdo_auto_save): Create directories for auto-save |
734 | list file if necessary. | |
735 | ||
cc181e95 GM |
736 | * xdisp.c (init_iterator): Set iterator's extra_line_spacing |
737 | from buffer or frame. | |
738 | (automatic_hscrolling_p): New variable. | |
739 | (hscroll_windows): Scroll windows horizontally only if automatic | |
740 | hscrolling is allowed. | |
741 | (syms_of_xdisp): New variable `automatic-hscrolling'. | |
742 | ||
743 | * frame.h (struct frame): Add member extra_line_spacing. | |
744 | ||
745 | * xfns.c (x_set_line_spacing): New function. | |
746 | (Fx_create_frame): Set line spacing from resources. | |
747 | (Qline_spacing): New variable. | |
748 | (syms_of_xfns): Initialize Qline_spacing. | |
749 | ||
750 | * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'. | |
751 | ||
752 | * buffer.c (init_buffer_once): Handle extra_line_spacing. | |
753 | (syms_of_buffer): Add `default-line-spacing' and `line-spacing'. | |
abfcc168 | 754 | (reset_buffer): Don't initialize extra2 and extra3. Initialize |
cc181e95 GM |
755 | extra_line_spacing from default value. |
756 | (init_buffer_once): Initialize default value of extra_line_spacing. | |
757 | ||
758 | * buffer.h (struct buffer): Add extra_line_spacing, remove extra2 | |
759 | and extra3. | |
760 | ||
761 | * xterm.c (x_produce_glyphs): Remove reference to struct it's | |
762 | prompt_width. Add extra line spacing. | |
763 | ||
764 | * term.c (produce_glyphs): Remove reference to struct it's | |
765 | prompt_width. | |
766 | ||
767 | * dispextern.h (struct it): Remove member prompt_width, add | |
768 | extra_line_spacing. | |
769 | ||
58827478 GM |
770 | 2000-04-22 Gerd Moellmann <gerd@gnu.org> |
771 | ||
772 | * dispnew.c (update_frame_line): When writing a whole line, make | |
773 | sure cursor is in the right row afterwards, otherwise a use of | |
774 | capability `ch' in cmgoto might leave the cursor in the row below. | |
775 | ||
25a87f42 GM |
776 | 2000-04-21 Gerd Moellmann <gerd@gnu.org> |
777 | ||
778 | * lisp.h (struct Lisp_Buffer_Cons): Remove. | |
779 | ||
780 | * keyboard.c (timer_check): Fix typo in comment. | |
781 | ||
54edf5c2 KH |
782 | 2000-04-21 Kenichi Handa <handa@etl.go.jp> |
783 | ||
784 | * fontset.c (Fset_fontset_font): Fix docstring. Local variable | |
785 | name change: ch -> character. | |
786 | ||
3a64eef5 GM |
787 | 2000-04-20 Gerd Moellmann <gerd@gnu.org> |
788 | ||
789 | * keyboard.c (echo_message_buffer): New variable. | |
790 | (echo_now): Set echo_message_buffer to the echo area buffer used | |
791 | to display the echo. | |
792 | (cancel_echoing): Reset echo_message_buffer to nil. | |
793 | (read_char): Code rewritten that handles canceling an echo or | |
794 | echoing a dash, respectively. | |
795 | ||
796 | * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent | |
797 | directory doesn't exist. | |
798 | ||
6142fdcb DL |
799 | 2000-04-19 Dave Love <fx@gnu.org> |
800 | ||
801 | * fns.c (syms_of_fns): Defsubr mapc. | |
a9cacab7 DL |
802 | (concat): Don't allow numeric args. |
803 | (Fconcat): Doc change. | |
6142fdcb | 804 | |
ac6b5352 SM |
805 | 2000-04-19 Stefan Monnier <monnier@cs.yale.edu> |
806 | ||
807 | * regex.c (re_match_2_internal): Don't shorten the strings anymore, | |
808 | instead define end_match(1|2) more carefully. | |
809 | Use GET_CHAR_BEFORE_2 for `begline'. | |
810 | ||
cb9215e4 GM |
811 | 2000-04-19 Gerd Moellmann <gerd@gnu.org> |
812 | ||
5e3dac3f GM |
813 | * frame.h (SELECTED_FRAME): Change definition to compile cleanly |
814 | on 64-bit systems where NULL is defined as `0'. | |
815 | ||
816 | * xdisp.c (with_echo_area_buffer): Add more `int' parameters for | |
817 | the `variable argument list' to make it work on Alpha. | |
818 | ||
cb9215e4 GM |
819 | * m/alpha.h (_LP64) [!_LP64]: Define. |
820 | (ORDINARY_LINK): Define for NetBSD. | |
821 | ||
822 | * m/macppc.h (ORDINARY_LINK): Define for NetBSD. | |
823 | ||
f532dca0 DL |
824 | 2000-04-19 Dave Love <fx@gnu.org> |
825 | ||
c750667e DL |
826 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14 |
827 | change. | |
828 | ||
829 | * Makefile.in (LIBS): Don't use. | |
830 | (GETLOADAVG_OBJ): Define again. | |
831 | (otherobj): Add GETLOADAVG_OBJ. | |
832 | ||
f532dca0 DL |
833 | * buffer.c (Fmake_indirect_buffer): Escape newline in doc. |
834 | ||
1c7e22fd GM |
835 | 2000-04-18 Gerd Moellmann <gerd@gnu.org> |
836 | ||
f6d3257b GM |
837 | * lread.c (read_filtered_event): Cancel and start busy cursor. |
838 | ||
1c7e22fd GM |
839 | * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account |
840 | that the per-character metrics may be null. | |
841 | ||
e10f64e7 GM |
842 | 2000-04-17 Gerd Moellmann <gerd@gnu.org> |
843 | ||
0daee095 GM |
844 | * buffer.c (clone_per_buffer_values): New function. |
845 | (Fmake_indirect_buffer): Add optional argument CLONE. Call | |
846 | clone_per_buffer_values if CLONE is not nil. | |
847 | ||
e10f64e7 GM |
848 | * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. |
849 | ||
38687d43 DL |
850 | 2000-04-16 Dave Love <fx@gnu.org> |
851 | ||
852 | * Makefile.in: Remove obsolete localcpp stuff. | |
853 | (GETLOADAVG_OBJ): Don't define. | |
854 | (obj): Move LIBOBJS... | |
855 | (otherobj): ... to here. | |
856 | (MSDOS_OBJ): Convert to make variable -- preprocessing zapped | |
857 | whitespace-only lines after the continuation (Irix). | |
858 | ||
c21c7262 GM |
859 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
860 | ||
861 | * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors. | |
862 | ||
863 | * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'. | |
864 | ||
314767c0 DL |
865 | 2000-04-14 Dave Love <fx@gnu.org> |
866 | ||
867 | * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h: | |
868 | * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h: | |
869 | * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h: | |
870 | * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated | |
871 | NLIST_STRUCT. | |
872 | ||
873 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define | |
874 | autoconfiscated HAVE_GETLOADAVG. | |
875 | ||
876 | * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated | |
877 | BROKEN_MKTIME. | |
878 | ||
a2522dca GM |
879 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
880 | ||
881 | * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes. | |
882 | (fill_in_lock_file_name): Avoid existing files that aren't | |
883 | links. | |
884 | ||
33744b5d DL |
885 | 2000-04-14 Dave Love <fx@gnu.org> |
886 | ||
c21c7262 | 887 | * Makefile.in (LIBS, LIBOBJS): New variable. |
33744b5d DL |
888 | (INTERVAL_SRC): Convert to make variable. |
889 | (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT) | |
890 | (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove. | |
891 | (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and | |
892 | add LIBOBJS. | |
893 | (SOME_MACHINE_OBJECTS): Remove interval stuff. | |
894 | (lisp): Substitute FACE_SUPPORT, FLOAT_SUP. | |
895 | (shortlisp): Add facemenu, float-sup, frame. | |
896 | (SOME_MACHINE_LISP): Remove them from here. | |
897 | (LIBES): Change unused LDLIBS to autoconf LIBS. | |
898 | ||
899 | * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION. | |
900 | ||
9d3d5916 KH |
901 | 2000-04-14 Kenichi Handa <handa@etl.go.jp> |
902 | ||
903 | * composite.c (update_compositions): If FROM and TO are not in a | |
904 | valid range, do nothing. | |
905 | ||
198e3c7a GM |
906 | 2000-04-13 Gerd Moellmann <gerd@gnu.org> |
907 | ||
908 | * tparam.c (tparam1): Abort when encountering an unknown | |
909 | `%'-specifier. | |
910 | ||
911 | * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as | |
912 | terminfo.o. | |
913 | ||
914 | * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define | |
915 | as TERMCAP_OBJ. | |
916 | ||
055a28c9 EZ |
917 | 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il> |
918 | ||
919 | * fileio.c (a_write): Remove redundant semi-colons. | |
920 | (e_write): Return -1 if failed to write all the data. | |
921 | This fixes the changes made at 1999-12-15. | |
922 | ||
f5c75033 DL |
923 | 2000-04-12 Dave Love <fx@gnu.org> |
924 | ||
925 | * fns.c (mapcar1): Test for null vals to support mapc. | |
926 | (Fmapc): New function. | |
927 | ||
0c3cfc51 EZ |
928 | 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il> |
929 | ||
930 | * msdos.c (NUM_MOUSE_BUTTONS): Define. | |
931 | (IT_frame_up_to_date): Support the buffer local value of | |
932 | cursor-type, if defined. | |
933 | ||
33465a31 DL |
934 | 2000-04-10 Dave Love <fx@gnu.org> |
935 | ||
936 | * editfns.c (preceding-char, following-char): Doc fix. | |
937 | ||
6ed56568 KR |
938 | 2000-04-10 Ken Raeburn <raeburn@gnu.org> |
939 | ||
940 | * Makefile.in (temacs): Revert 2000-03-12 change. | |
941 | ||
7cf80d4e JR |
942 | 2000-04-10 Jason Rumney <jasonr@gnu.org> |
943 | ||
944 | * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P. | |
945 | ||
34f3f342 GM |
946 | 2000-04-10 Gerd Moellmann <gerd@gnu.org> |
947 | ||
1a1b1895 GM |
948 | * xdisp.c (setup_echo_area_for_printing): Choose an echo |
949 | area buffer, if it's not set up yet. | |
950 | ||
34f3f342 GM |
951 | * indent.c (compute_motion): Set immediate_quit. |
952 | ||
be0dbdab GM |
953 | 2000-04-09 Gerd Moellmann <gerd@gnu.org> |
954 | ||
c45be9ac GM |
955 | * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New |
956 | variable. | |
957 | (realize_tty_face): Suppress boldness if colors are the inverse of | |
958 | the default colors, and tty_suppress_bold_inverse_default_colors_p | |
959 | is set. | |
960 | (Ftty_suppress_bold_inverse_default_colors): New function. | |
961 | (syms_of_xfaces): Defsubr it. | |
962 | ||
be0dbdab GM |
963 | * buffer.c (Frestore_buffer_modified_p): New function. |
964 | (syms_of_buffer): Defsubr it. | |
965 | ||
e8413c3b KR |
966 | 2000-04-08 Ken Raeburn <raeburn@gnu.org> |
967 | ||
87f67317 KR |
968 | * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a |
969 | charset id (int) argument, not a charset (Lisp_Object). | |
970 | ||
e8413c3b KR |
971 | * coding.h (code_convert_string): Declare. |
972 | * coding.c (code_convert_string_norecord): Pass an int, not a lisp | |
973 | object, as the fourth argument to code_convert_string. | |
974 | ||
975 | * fontset.c (make_fontset_for_ascii_face): Use XINT on return | |
976 | value. | |
977 | (Fset_fontset_font): Use EQ to compare lisp objects. | |
978 | ||
7c752c80 KR |
979 | 2000-04-05 Ken Raeburn <raeburn@gnu.org> |
980 | ||
c0333abc KR |
981 | * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for |
982 | a pointer that looks like a lisp object. | |
983 | (SET_INTERVAL_OBJECT): Don't explicitly compare the object with | |
984 | zero, instead see whether it's an integer object, since they can't | |
985 | have intervals. | |
986 | (GET_INTERVAL_OBJECT): Simply assign to the destination. | |
987 | ||
7c752c80 KR |
988 | * dispnew.c (allocate_matrices_for_frame_redisplay, |
989 | direct_output_forward_char): Use X(U)INT and make_number as needed | |
990 | to convert between (unsigned) int values and lisp integers. | |
991 | * keyboard.c (read_key_sequence): Likewise. | |
992 | * lread.c (substitute_object_recurse): Likewise. | |
993 | * fns.c (concat, hash_lookup, hash_remove): Likewise. | |
994 | * minibuf.c (do_completion, Fminibuffer_complete_word, | |
995 | Fminibuffer_completion_help): Likewise. | |
996 | * term.c (produce_special_glyphs): Likewise. | |
997 | ||
998 | * fileio.c (Fwrite_region): Use EQ when comparing lisp objects. | |
999 | * print.c (print_preprocess, print_object): Likewise. | |
1000 | ||
1001 | * search.c (compile_pattern): Use NILP when checking for nil. | |
1002 | ||
74e49b38 KR |
1003 | * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 && |
1004 | __OPTIMIZE__]: Provide a GNU C macro version that handles | |
1005 | lisp-object unions. | |
1006 | (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type | |
1007 | field, to better cope with ENABLE_CHECKING and calls that modify a | |
1008 | Lisp_Object using its old value. | |
1009 | ||
685e5ed2 GM |
1010 | 2000-04-04 Gerd Moellmann <gerd@gnu.org> |
1011 | ||
c407c570 GM |
1012 | * window.c (compare_window_configurations): Signal an error |
1013 | if parameters C1 or C2 aren't window configurations. | |
1014 | ||
685e5ed2 GM |
1015 | * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/ |
1016 | AFTER_POTENTIAL_GC calls around calls to functions that can | |
1017 | signal an error and thus invoke the debugger. | |
1018 | ||
587a49ab GM |
1019 | 2000-04-03 Gerd Moellmann <gerd@gnu.org> |
1020 | ||
62f20204 GM |
1021 | * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal |
1022 | an error if decoding fails. | |
1023 | ||
587a49ab GM |
1024 | * keyboard.c (lispy_mouse_names): Variable removed. |
1025 | (Vlispy_mouse_stem): New variable. | |
1026 | (syms_of_keyboard): Initialize Vlispy_mouse_stem. | |
1027 | (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort | |
1028 | for any mouse button number. Increase size of mouse_syms and | |
1029 | button_down_location as needed. Call modify_event_symbol with | |
1030 | different arguments. | |
1031 | (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]: | |
1032 | Call modify_event_symbol with different arguments. | |
1033 | (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort | |
1034 | for any button number. Call modify_event_symbol with different | |
1035 | arguments. | |
1036 | (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM. | |
1037 | Accept a string for NAME_ALIST_OR_STEM. | |
1038 | ||
1039 | * lisp.h (larger_vector): Add prototype. | |
1040 | ||
1041 | * fns.c (larger_vector): Make externally visible. | |
1042 | ||
1043 | * termhooks.h (NUM_MOUSE_BUTTONS): Removed. | |
1044 | ||
2d1675e4 SM |
1045 | 2000-04-02 Stefan Monnier <monnier@cs.yale.edu> |
1046 | ||
1047 | * regex.c (PTR_TO_OFFSET) [!emacs]: Remove. | |
1048 | (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. | |
1049 | (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when | |
1050 | we are between str1 and str2. | |
1051 | (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. | |
1052 | (PATFETCH): Use `TRANSLATE'. | |
1053 | (PATFETCH_RAW): Fetch multibyte char if applicable. | |
1054 | (PATUNFETCH): Remove. | |
1055 | (regex_compile): Rely on PATFETCH to do most of the multibyte magic. | |
1056 | When writing a char, write it directly into the pattern buffer rather | |
1057 | than going needlessly through a temp char-array. | |
1058 | (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the | |
1059 | multibyte magic and remove the useless `#ifdef emacs'. | |
1060 | (bcmp_translate): Don't compare as multibyte chars when in a unibyte | |
1061 | buffer. | |
1062 | ||
1063 | * regex.h (struct re_pattern_buffer): Make field `multibyte' | |
1064 | conditional on `emacs'. | |
1065 | ||
1066 | * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c. | |
1067 | ||
cc2d8c6b KR |
1068 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
1069 | ||
1070 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand | |
1071 | non-union-type versions of XMARK and friends here, because XMARK | |
1072 | and friends won't work on an integer field if NO_UNION_TYPE is not | |
1073 | defined. | |
1074 | (make_number): Define as a function if it's not defined as a | |
1075 | macro. | |
1076 | ||
09654086 KR |
1077 | * composite.c (run_composite_function): Use NILP when checking for |
1078 | nil. | |
1079 | (syms_of_composite): Delete local var NARGS, pass an int as first | |
1080 | argument to Fmake_hash_table. | |
1081 | ||
2387b382 KR |
1082 | * editfns.c (text_property_stickiness): Use NILP to test |
1083 | Lisp_Object boolean value. | |
1084 | (Fmessage_or_box): Don't use NILP to test int variable. | |
c01fbf95 KR |
1085 | (Fformat): Use a temporary variable to avoid ENABLE_CHECKING |
1086 | problems reading from and changing the same lisp value in an | |
1087 | XSETSTRING call. | |
1088 | ||
27660e89 GM |
1089 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
1090 | ||
1091 | * term.c (TN_no_color_video): New variable. | |
1092 | (term_init): Intitialize TN_no_color_video. | |
1093 | (enum no_color_bit): New enumeration. | |
1094 | (MAY_USE_WITH_COLORS_P): New macro. | |
1095 | (turn_on_face): Use it to determine if attributes may be used | |
1096 | combined with colors. | |
1097 | ||
3578db3c KR |
1098 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
1099 | ||
1100 | * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues | |
1101 | with int lvalues via casts; instead, just yield lisp object | |
1102 | lvalues. | |
1103 | (enlarge_window): Variable sizep now points to Lisp_Object. Use | |
1104 | proper accessor macros. | |
1105 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. | |
1106 | (grow_mini_window): Fix typo getting int value of root->height. | |
1107 | ||
6fc556fd KR |
1108 | * xdisp.c (compute_string_pos): Fix order of arguments to |
1109 | string_pos_nchars_ahead. | |
1110 | (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as | |
1111 | count arg to variable-arg routines like Frun_hook_with_args and | |
1112 | Fformat. | |
587a49ab GM |
1113 | (back_to_previous_visible_line_start) |
1114 | (build_desired_tool_bar_string): Pass Lisp_Object, not int, to | |
6fc556fd KR |
1115 | fixed-arg routines like Fget_char_property and Fmake_string. |
1116 | (reconsider_clip_changes): Use XINT when comparing integer lisp | |
1117 | objects, or passing them as int arguments. | |
587a49ab GM |
1118 | (mark_window_display_accurate, insert_left_trunc_glyphs) |
1119 | (append_space, extend_face_to_end_of_line): Use make_number when | |
6fc556fd KR |
1120 | storing or passing integer values as lisp objects. |
1121 | (set_cursor_from_row, highlight_trailing_whitespace): Use | |
1122 | INTEGERP, not implicit test against zero, for glyph object. | |
1123 | (try_window_id): Don't use make_number when we want an int value. | |
1124 | ||
1125 | * xfaces.c (xlfd_symbolic_value): Make last argument a | |
1126 | Lisp_Object, to be consistent with callers. | |
1127 | (Fbitmap_spec_p): Use XINT to get numeric value of height. | |
1128 | (lface_hash): Apply XFASTINT to lisp values before folding in. | |
1129 | ||
1130 | * xfns.c (Fx_show_tip): Use make_number to get lisp objects to | |
1131 | fill in window width and height. Pass an int, not a lisp object, | |
1132 | as first arg to Finsert. | |
1133 | ||
6e7b2457 GM |
1134 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
1135 | ||
610d841e GM |
1136 | * xfaces.c (realize_basic_faces): Block input while realizing |
1137 | the faces. | |
1138 | ||
6e7b2457 GM |
1139 | * keyboard.c (lispy_mouse_names): Add additional mouse names. |
1140 | ||
1141 | * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15. | |
1142 | ||
aa110c0c GM |
1143 | 2000-03-31 Gerd Moellmann <gerd@gnu.org> |
1144 | ||
1145 | * xterm.c (x_produce_glyphs): When displaying unibyte text | |
610d841e | 1146 | or ASCII, handle case that per-char metric is null. |
aa110c0c | 1147 | |
8801a864 KR |
1148 | 2000-03-30 Ken Raeburn <raeburn@gnu.org> |
1149 | ||
c6129d7e KR |
1150 | * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef. |
1151 | ||
8801a864 KR |
1152 | * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, |
1153 | XSUBR, XBUFFER): Verify correct object type before returning | |
1154 | pointer, using eassert. | |
1155 | * frame.h (XFRAME): Likewise. | |
1156 | ||
1157 | * buffer.c (Frename_buffer, Fset_buffer_multibyte, | |
1158 | swap_out_buffer_local_variables, Fmove_overlay): Don't apply | |
1159 | XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong | |
1160 | type. | |
1161 | * data.c (set_internal): Likewise. | |
1162 | * dispextern.h (WINDOW_WANTS_MODELINE_P, | |
1163 | WINDOW_WANTS_HEADER_LINE_P): Likewise. | |
1164 | * fileio.c (auto_save_1): Likewise. | |
1165 | * insdel.c (check_markers): Likewise. | |
1166 | * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. | |
1167 | * undo.c (record_insert): Likewise. | |
1168 | * vmsproc.c (child_sig): Likewise. | |
1169 | * window.c (unshow_buffer, window_loop): Likewise. | |
1170 | * xterm.c (x_erase_phys_cursor): Likewise. | |
1171 | ||
8e7af858 GM |
1172 | 2000-03-30 Gerd Moellmann <gerd@gnu.org> |
1173 | ||
1174 | * xfns.c (free_image_cache): Free the cache structure itself | |
1175 | last, after all its members have been freed. | |
1176 | ||
1177 | * lisp.h (xstrdup): Add prototype. | |
1178 | ||
1179 | * alloc.c (xstrdup): Moved here from xfaces.c. | |
1180 | (allocating_for_lisp): Variable removed. | |
1181 | (lisp_malloc): Block input around the calls to malloc and | |
1182 | mem_insert. | |
1183 | ||
1184 | * xfaces.c (realize_tty_face): Use find_symbol_value instead | |
1185 | of Fsymbol_value. | |
1186 | (xstrdup): Moved to alloc.c. | |
1187 | ||
e0b8c689 KR |
1188 | 2000-03-29 Ken Raeburn <raeburn@gnu.org> |
1189 | ||
b96f9fb7 KR |
1190 | * scroll.c (CHECK_BOUNDS): Renamed from CHECK. |
1191 | ||
1192 | * emacs.c (main): Fix sense of no-loadup test. | |
1193 | ||
e0b8c689 KR |
1194 | * config.in (ENABLE_CHECKING): Undef. |
1195 | ||
1196 | * lisp.h (struct interval): Replace "parent" field with a union of | |
1197 | interval pointer and Lisp_Object; add new bitfield to use as | |
1198 | discriminant. Change other flag fields to bitfields. | |
1199 | (CHECK): New macro for consistency checking. If ENABLE_CHECKING | |
1200 | is defined and the supplied test fails, print a message and | |
1201 | abort. | |
1202 | (eassert): New macro. Use CHECK to provide an assert-like | |
1203 | facility. | |
1204 | ||
1205 | * intervals.h (NULL_INTERVAL_P): Now applies only to real interval | |
1206 | pointers; abort if the value looks like a lisp object. | |
1207 | (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, | |
1208 | SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): | |
1209 | Modify for new interval parent definition. | |
1210 | ||
1211 | * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, | |
1212 | UNMARK_BALANCE_INTERVALS): Update references that need an | |
1213 | addressable lisp object in the interval structure. | |
1214 | (die): New function. | |
1215 | (suppress_checking): New variable. | |
1216 | ||
1217 | * intervals.c (interval_start_pos): Just return 0 if there's no | |
1218 | parent object. | |
1219 | ||
f83c5440 GM |
1220 | 2000-03-29 Gerd Moellmann <gerd@gnu.org> |
1221 | ||
1222 | * lread.c (read1): Accept `.' (period) as symbol start like in CL | |
1223 | and earlier Emacs versions. | |
1224 | ||
1225 | * keyboard.c (Ftop_level): Cancel busy-cursor. | |
1226 | ||
1227 | * eval.c (call_debugger): Cancel busy-cursor. | |
1228 | ||
fdce64ff KH |
1229 | 2000-03-29 Kenichi Handa <handa@etl.go.jp> |
1230 | ||
1231 | * search.c (Freplace_match): Adjust multibyteness of the current | |
1232 | buffer and NEWTEXT. Free allocated memory before signaling an | |
1233 | error. | |
1234 | ||
f6a3f532 SM |
1235 | 2000-03-28 Stefan Monnier <monnier@cs.yale.edu> |
1236 | ||
1237 | * regex.c (analyse_first): New function obtained by ripping out most | |
1238 | of re_compile_fastmap and generalizing it a little bit so that it | |
1239 | can also just return whether a given (sub)pattern can match the empty | |
1240 | string or not. | |
1241 | (regex_compile): Use `analyse_first' to decide whether the loop-check | |
1242 | needs to be done or not for *, +, *? and +? (the loop check is costly | |
1243 | for non-greedy repetition). | |
1244 | (re_compile_fastmap): Delegate the actual work to `analyse_first'. | |
1245 | ||
e9b309ac DL |
1246 | 2000-03-28 Dave Love <fx@gnu.org> |
1247 | ||
bb15bd9a DL |
1248 | * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, |
1249 | alpha. | |
1250 | ||
e9b309ac DL |
1251 | * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. |
1252 | ||
ed0767d8 SM |
1253 | 2000-03-27 Stefan Monnier <monnier@cs.yale.edu> |
1254 | ||
1255 | * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as | |
1256 | an expression. | |
1257 | (enum re_opcode_t): Update description of succeed_n. | |
1258 | (PATFETCH): Always define. | |
1259 | (regex_compile): Use lookahead rather than PATUNFETCH (for repetition | |
1260 | operators, char classes, shy-groups and intervals). | |
1261 | Optimize special cases of intervals so as to only use succeed_n and | |
1262 | jump_n when really needed. | |
1263 | (re_compile_fastmap): Simplify handling of jump_n and succeed_n now | |
1264 | that we don't have to handle the special cases any more. | |
1265 | Simplify on_failure_jump handling as well. | |
1266 | ||
e11e7e46 JR |
1267 | 2000-03-28 Jason Rumney <jasonr@gnu.org> |
1268 | ||
1269 | * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT. | |
1270 | ||
88faab89 GM |
1271 | 2000-03-27 Gerd Moellmann <gerd@gnu.org> |
1272 | ||
182ff242 GM |
1273 | * s/freebsd.h (GC_SETJMP_WORKS): Define. |
1274 | ||
1275 | * s/msdos.h (GC_SETJMP_WORKS): Define. | |
1276 | ||
1277 | * alloc.c (mark_maybe_object): New function. | |
1278 | (mark_memory): Use it. | |
1279 | (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. | |
1280 | (setjmp_tested_p, longjmp_done): New variables. | |
1281 | (test_setjmp): New function. | |
1282 | (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. | |
1283 | (init_alloc): Initialize setjmp_tested_p and longjmp_done. | |
1284 | ||
c1005d06 GM |
1285 | * xdisp.c (face_before_or_after_it_pos): Pass multibyteness |
1286 | to DEC_TEXT_POS and INC_TEXT_POS. | |
1287 | ||
1288 | * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS | |
1289 | with parameter MULTIBYTE_P. | |
1290 | ||
1291 | * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter | |
1292 | MULTIBYTE_P. | |
1293 | ||
7439e5b9 | 1294 | * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte |
182ff242 GM |
1295 | buffers because it looks for multibyte character byte sequences |
1296 | which don't exist in unibyte text. | |
7439e5b9 | 1297 | |
d9c545da GM |
1298 | * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes. |
1299 | ||
11fd416e | 1300 | * xfaces.c (register_color, unregister_color, unregister_colors) |
d9c545da GM |
1301 | [DEBUG_X_COLORS]: New functions. |
1302 | (x_free_colors) [DEBUG_X_COLORS]: Unregister colors. | |
1303 | ||
1304 | * xfns.c (x_set_cursor_color): Get color reference counts right. | |
1305 | ||
1306 | * xterm.c (x_copy_color): New function. | |
1307 | (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color. | |
1308 | ||
1309 | * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. | |
1310 | (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. | |
1311 | (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. | |
1312 | (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. | |
1313 | (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. | |
1314 | (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. | |
1315 | (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. | |
1316 | (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. | |
1317 | (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. | |
1318 | (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE. | |
1319 | ||
11fd416e GM |
1320 | * category.c, data.c, syntax.c, print.c, lread.c: Use new macro |
1321 | names for handling per-buffer variables. | |
d9c545da GM |
1322 | |
1323 | * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS | |
1324 | instead of MAX_BUFFER_LOCAL_VARS. | |
1325 | (last_per_buffer_idx): Renamed from max_buffer_local_idx. | |
1326 | ||
1327 | * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P. | |
1328 | ||
88faab89 GM |
1329 | * xfns.c (x_specified_cursor_type): New function. |
1330 | (x_set_cursor_type): Use it. | |
1331 | ||
1332 | * buffer.h (struct buffer): Add cursor_type. | |
1333 | ||
d80f42b7 SM |
1334 | 2000-03-26 Stefan Monnier <monnier@cs.yale.edu> |
1335 | ||
1336 | * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop. | |
88faab89 GM |
1337 | (print_partial_compiled_pattern, re_compile_fastmap): Handle new |
1338 | opcode. | |
d80f42b7 SM |
1339 | (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. |
1340 | (re_match_2_internal): Add code for on_failure_jump_nastyloop when | |
1341 | executing it as well as when popping it off the stack to find infinite | |
1342 | loops in non-greedy repetition operators. | |
1343 | ||
89e80928 GM |
1344 | 2000-03-26 Gerd Moellmann <gerd@gnu.org> |
1345 | ||
3d4ff2dd GM |
1346 | * doc.c (Qfunction_documentation): New variable. |
1347 | (syms_of_doc): Initialize Qfunction_documentation. | |
1348 | (Fdocumentation): If FUNCTION is a symbol with non-nil | |
1349 | `function-documentation' property, return a documentation derived | |
1350 | from that. | |
1351 | ||
bd96bd79 GM |
1352 | * buffer.c (syms_of_buffer): Add default-cursor-type. |
1353 | (init_buffer_once): Don't let cursor_type have a local value | |
1354 | in every buffer. | |
1355 | ||
19d1bc27 GM |
1356 | * xterm.c (x_display_and_set_cursor): Choose cursor depending |
1357 | on buffer-local value of cursor_type. | |
1358 | (x_draw_bar_cursor): Add parameter WIDTH. | |
1359 | ||
1360 | * buffer.c (reset_buffer): Initialize buffer's cursor_type. | |
1361 | (init_buffer_once): Set default cursor_type value to t. | |
1362 | Mark cursor_type as local everywhere. | |
1363 | (syms_of_buffer): New per-buffer variable cursor-type. | |
1364 | ||
89e80928 GM |
1365 | * buffer.h (struct buffer): Remove member local_var_flags, |
1366 | add local_flags. | |
1367 | (MAX_BUFFER_LOCAL_VARS): New macro. | |
1368 | (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX) | |
1369 | (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P) | |
1370 | (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE) | |
1371 | (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros. | |
1372 | ||
1373 | * print.c (print_object): Use new macros for per-buffer | |
1374 | variables. | |
1375 | ||
1376 | * category.c (Fset_category_table): Use new macros for per-buffer | |
1377 | variables. | |
1378 | ||
1379 | * buffer.c (buffer_permanent_local_flags): Make a char array. | |
1380 | (max_buffer_local_idx): New variable. | |
1381 | (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten | |
1382 | for new handling of per-buffer variables. | |
1383 | (buffer_slot_type_mismatch): Use new macros for per-buffer vars. | |
1384 | (init_buffer_once): Initialize per-buffer vars differently. | |
1385 | Set max_buffer_local_idx. | |
1386 | ||
1387 | * syntax.c (Fset_syntax_table): Use new macros for per-buffer | |
1388 | variables. | |
1389 | ||
1390 | * lread.c (defvar_per_buffer): Use new macros for per-buffer | |
1391 | variables. | |
1392 | ||
1393 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
1394 | (find_symbol_value, set_internal, default_value, Fset_default) | |
1395 | (Fkill_local_variable, Flocal_variable_p): Use new macros for | |
1396 | per-buffer variables. | |
1397 | ||
1398 | * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'. | |
1399 | ||
9a0dd3dc GM |
1400 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
1401 | ||
b68c375f GM |
1402 | * xterm.c (x_term_init): Unblock input around call1 of |
1403 | Qvendor_specific_keysyms. | |
1404 | ||
9a0dd3dc GM |
1405 | * syntax.c (open_paren_in_column_0_is_defun_start): New variable. |
1406 | (find_defun_start): Consider an open parenthesis in column 0 | |
1407 | a defun start only if open_paren_in_column_0_is_defun_start is set. | |
1408 | (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start. | |
1409 | ||
7973e637 SM |
1410 | 2000-03-24 Stefan Monnier <monnier@cs.yale.edu> |
1411 | ||
1412 | * eval.c (Fautoload): Add entry in load-history (if after dump). | |
1413 | * lread.c (load-history): Update docstring. | |
1414 | ||
39210e90 GM |
1415 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
1416 | ||
1417 | * indent.c (Fvertical_motion): Always use the current buffer. | |
1418 | Temporarily change the window's buffer, if necessary. | |
1419 | ||
72db3ab5 GM |
1420 | 2000-03-23 Gerd Moellmann <gerd@gnu.org> |
1421 | ||
1422 | * xterm.c (fast_find_position): Make sure not to consider rows | |
1423 | not visible in the window. | |
1424 | ||
990b2375 SM |
1425 | 2000-03-22 Stefan Monnier <monnier@cs.yale.edu> |
1426 | ||
1427 | * regex.c (enum syntaxcode): Provide default for non-Emacs. | |
1428 | (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix. | |
1429 | ||
ff4df011 JR |
1430 | 2000-03-22 Jason Rumney <jasonr@gnu.org> |
1431 | ||
1432 | * w32menu.c (single_submenu): Set help string to NULL if none. | |
1433 | (w32_menu_show): Set help string correctly. | |
1434 | (add-menu-item): Set help string in MIIM_DATA for menu item. | |
1435 | Load SetMenuItemInfoA explicitly. | |
1436 | (w32_menu_display_help): New function. | |
1437 | ||
1438 | * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message. | |
1439 | (QCdata): Moved to xdisp.c. | |
1440 | ||
1441 | * w32term.c (w32_read_socket): Handle WM_MENUSELECT message. | |
1442 | (Vw32_charset_to_codepage_alist): Removed. | |
1443 | (Vw32_charset_info_alist): New variable. | |
1444 | (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312, | |
1445 | chinesebig5, oem, easteurope, turkish, baltic, russian, arabic, | |
1446 | greek, hebrew, thai, johab, mac, unicode]): New symbols. | |
1447 | (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace | |
1448 | with TODO comment. | |
1449 | (w32_codepage_for_font): Use Vw32_charset_info_alist. | |
1450 | (syms_of_w32term): Remove Vw32_charset_to_codepage_alist. | |
1451 | Define Vw32_charset_info_alist and w32_charset symbols. | |
1452 | ||
1453 | 2000-03-22 Jason Rumney <jasonr@gnu.org> | |
1454 | ||
1455 | * makefile.nt (w32bdf.obj): Update dependencies. | |
1456 | ||
1457 | * w32bdf.c: Include frame.h and dispextern.h before fontset.h. | |
1458 | ||
1459 | * w32fns.c: Include fontset.h after dispextern.h. | |
1460 | (Fx_create_frame): Do not create fontset. | |
1461 | (w32_load_system_font): Doc fix. | |
1462 | (Fx_close_connection): Free full_name if it is not shared. | |
1463 | ||
1464 | * w32term.c: Include fontset.h after dispextern.h. | |
1465 | (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers | |
1466 | updated. | |
1467 | (w32_per_char_metric): If PCM is invalid, delete and return NULL. | |
1468 | (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id. | |
1469 | (w32_font_is_double_byte): New function, needs body. | |
1470 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
1471 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
1472 | it->charset. If it->multibyte_p is zero and it->c is a multibyte | |
1473 | character, convert it to a unibyte character. | |
1474 | (struct glyph_string): Delete member `charset'. | |
1475 | (W32_TEXTOUT): Temporarily remove charset_dim until another way of | |
1476 | calculating it is found. | |
1477 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
1478 | the case that per char metric is not available correctly. | |
1479 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
1480 | not available correctly. | |
1481 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
1482 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
1483 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
1484 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
1485 | fontset. Don't call FS_LOAD_FONT. | |
1486 | ||
439d5cb4 KR |
1487 | 2000-03-22 Ken Raeburn <raeburn@gnu.org> |
1488 | ||
1489 | * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. | |
1490 | (INT_LISPLIKE): New macro. | |
1491 | (NULL_INTERVAL_P): Use it. | |
1492 | (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, | |
1493 | SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, | |
1494 | GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. | |
1495 | ||
1496 | * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all | |
1497 | explicit references to "parent" field of struct interval and | |
1498 | associated unclean type conversions. | |
1499 | * intervals.c (create_root_interval, root_interval, rotate_right, | |
1500 | rotate_left, balance_possible_root_interval, split_interval_right, | |
1501 | split_interval_left, interval_start_pos, find_interval, | |
1502 | next_interval, previous_interval, update_interval, | |
1503 | adjust_intervals_for_insertion, delete_node, delete_interval, | |
1504 | adjust_intervals_for_deletion, merge_interval_right, | |
1505 | merge_interval_left, reproduce_tree, graft_intervals_into_buffer, | |
1506 | copy_intervals_to_string): Likewise. | |
1507 | * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): | |
1508 | Likewise. | |
1509 | * syntax.c (update_syntax_table): Likewise. | |
1510 | ||
1511 | * intervals.c (reproduce_tree_obj): New function, like | |
1512 | reproduce_tree but takes a Lisp_Object for the parent. Declare | |
1513 | with prototype. | |
1514 | (graft_intervals_into_buffer): Use it when appropriate. | |
1515 | (reproduce_tree): Declare with prototype. | |
1516 | (balance_possible_root_interval): Check that the parent is a lisp | |
1517 | object before trying to examine its type. | |
1518 | ||
ee1c5b21 GM |
1519 | 2000-03-22 Gerd Moellmann <gerd@gnu.org> |
1520 | ||
1521 | * xfaces.c (lface_same_font_attributes_p): Compare font attributes | |
1522 | as strings only if both are known to be strings. | |
1523 | ||
1524 | * s/openbsd.h (LIBS_TERMCAP): Undef. | |
1525 | ||
1fb352e0 SM |
1526 | 2000-03-21 Stefan Monnier <monnier@cs.yale.edu> |
1527 | ||
1528 | * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default | |
1529 | definitions for non-Emacs compilation. | |
1530 | (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec | |
1531 | outside of `#ifdef emacs'. | |
1532 | (print_partial_compiled_pattern): Update. | |
1533 | (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar. | |
1534 | (re_compile_fastmap): Merge handling of charset and charset_not (for | |
1535 | emacs and non-emacs compilation as well). | |
1536 | Similarly for (not)categoryspec and (not)syntaxspec. | |
1537 | Don't use the fastmap when reaching `anychar' since the added | |
1538 | complexity is not justified. | |
1539 | (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs) | |
1540 | and (not)syntaxspec. Merge (not)categoryspec. | |
1541 | ||
fdaa1f77 KH |
1542 | 2000-03-22 Kenichi Handa <handa@etl.go.jp> |
1543 | ||
ff1a0d8e KH |
1544 | * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, |
1545 | FACE_FOR_CHAR): Define them differently for the configuration of | |
1546 | --without-x. | |
fdaa1f77 | 1547 | |
d152fb46 DL |
1548 | 2000-03-21 Dave Love <fx@gnu.org> |
1549 | ||
1550 | * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in | |
1551 | doc string. | |
1552 | ||
d2cafc8c GM |
1553 | 2000-03-21 Gerd Moellmann <gerd@gnu.org> |
1554 | ||
1555 | * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. | |
1556 | (lface_fully_specified_p): Don't check contents of | |
1557 | LFACE_FONT_INDEX because that attribute is optional. | |
1558 | (realize_x_face): Remove now unwarranted xassert. | |
1559 | ||
9111d4b5 KH |
1560 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
1561 | ||
1562 | The following changes are to make font selection based on | |
1563 | characters, not charset. In addition, they recover fontset | |
1564 | facilities while utilizing the new font selection mechanism. | |
1565 | ||
6c4bfdc0 KH |
1566 | * Makefile.in (fontset.o): Depend on dispextern.h. |
1567 | ||
1568 | * alloc.c (mark_face_cache): Don't mark face->registry. | |
1569 | ||
9111d4b5 KH |
1570 | * dispextern.h (struct glyph): New member glyph_not_available_p. |
1571 | Use 22 bits for face_id. | |
1572 | (enum lface_attribute_index): Add LFACE_FONT_INDEX. | |
1573 | (struct face): Delete member registry, new member ascii_face. | |
1574 | (FACE_SUITABLE_FOR_CHAR_P): Renamed from | |
1575 | FACE_SUITABLE_FOR_CHARSET_P. Caller changed. | |
1576 | (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. | |
1577 | (struct it): Delete member charset, new member | |
1578 | glyph_not_available_p. | |
1579 | ||
1580 | * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. | |
1581 | (struct fontset_info, struct fontset_data): Structs removed. | |
1582 | (allloc_fontset_data, free_fontset_data, fs_regiser_fontset, | |
1583 | Vglobale_fontset_alist, font_idx_temp): Externs removed. | |
1584 | (fs_load_font, fs_query_fontset): Adjusted for new argument. | |
1585 | (fs_free_face_fontset, fontset_font_pattern, | |
1586 | face_suitable_for_char_p, face_for_char, | |
1587 | make_fontset_for_ascii_face): Extern them. | |
1588 | (FS_LOAD_FONT): Adjusted for the change of fontset implementation. | |
1589 | (FS_LOAD_FACE_FONT): New macro. | |
1590 | ||
1591 | * fontset.c: All codes rewritten or adjusted for the change of | |
1592 | fontset implementation. Now fontset is represented by char table. | |
1593 | (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables | |
1594 | removed. | |
1595 | (my_strcasecmp): Function removed. | |
1596 | (Vfontset_table, next_fontset_id, Vdefault_fontset): New | |
1597 | variables. | |
1598 | (AREF, ASIZE): New macros. | |
1599 | (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME, | |
1600 | FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF, | |
1601 | FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. | |
1602 | (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset, | |
1603 | fontset_id_valid_p, font_family_registry, fontset_name, | |
1604 | fontset_ascii, free_face_fontset, face_suitable_for_char_p, | |
1605 | face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): | |
1606 | New functions. | |
1607 | (fs_load_font): New arg FACE. Caller changed. | |
1608 | (fs_query_fontset): Argument changed. Caller changed. | |
1609 | (Fquery_fontset): call fs_query_fontset. | |
1610 | (fs_register_fontset, alloc_fontset_data, free_fontset_data): | |
1611 | Functions removed. | |
1612 | (clear_fontset_elements, check_registry_encoding, | |
1613 | check_fontset_name): New functions. | |
1614 | (syms_of_fontset): Set char-table-extra-slots property of fontset | |
1615 | to 3. Staticpro and initialize Vfontset_table and | |
1616 | Vdefault_fontset. Defsubr fontset_font and fontset_list. | |
1617 | ||
1618 | * frame.h (struct frame): Member `fontset_data' removed. | |
1619 | (FRAME_FONTSET_DATA): Macro removed. | |
1620 | ||
1621 | * frame.c (make_frame): Don't allocate f->fontset_data. | |
1622 | (Fdelete_frame): Don't free f->fontset_data. | |
1623 | ||
6c4bfdc0 KH |
1624 | * msdos.c (XMenuActivate): Args to lookup_derived_face changed. |
1625 | ||
9111d4b5 KH |
1626 | * xdisp.c (charset_at_position): Function removed. |
1627 | (init_iterator): Don't set member charset of struct `it'. | |
1628 | (handle_face_prop, reseat_to_string, set_iterator_to_next, | |
1629 | next_element_from_display_vector, insert_left_trunc_glyphs): | |
1630 | Likewise. | |
1631 | (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not | |
1632 | FACE_FOR_CHARSET. | |
1633 | (get_next_display_element, append_space, | |
1634 | extend_face_to_end_of_line): Likewise. | |
1635 | ||
1636 | * xfaces.c (Qx_charset_registry, Vface_default_registry): | |
1637 | Variables removed. | |
1638 | (clear_font_table, frame_update_line_height, load_face_font): | |
1639 | Adjusted for the change of fontset implementation. | |
1640 | (load_face_fontset_font): Function removed. | |
1641 | (pixel_point_size): New function. | |
1642 | (font_list): Argument type changed. Caller changed. | |
1643 | (LFACE_FONT): New macro. | |
1644 | (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. | |
1645 | (set_lface_from_font_name): Type of arg FONTNAME is changed to | |
1646 | Lisp_Object. Determine the font name by actually loading a font | |
1647 | by the specified pattern. Set LFACE_FONT (lface) to the specified | |
1648 | pattern. Even if a font is not found, don't try alternatives. | |
1649 | (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. | |
1650 | (set_font_frame_param): If `font' is specified in lface, use it. | |
1651 | (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. | |
1652 | (lface_same_font_attributes_p): Likewise. | |
1653 | (make_realized_face): Arguent changed. Caller changed. Set | |
1654 | face->ascii_face to face itself. | |
1655 | (free_realized_face): Free face->fontset if face is for ASCII. | |
1656 | (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p, | |
1657 | deduce_unibyte_registry, x_charset_registry): Functions removed. | |
1658 | (free_realized_multibyte_face): New function. | |
1659 | (lookup_face, lookup_named_face, lookup_derived_face): Argument | |
1660 | changed. Caller changed. | |
1661 | (try_font_list): Argument type changed. | |
1662 | (face_fontset): Check `font' slot of ATTRS, not `family' slot. | |
1663 | (choose_face_font): Argument changed. Handle fontset properly. | |
1664 | (choose_face_fontset_font): Function removed. | |
1665 | (realize_default_face, realize_named_face): Don't remove the | |
1666 | former face here. | |
1667 | (realize_face): Argument changed. Caller changed. Remove face | |
1668 | with the arg former_face_id in advance. Load font for the new | |
1669 | face. | |
1670 | (realize_x_face): Argument changed. Caller changed. For a | |
1671 | multibyte character, share fontset with base_face. For a single | |
1672 | byte character, make a new realized fontset. Don't load a font | |
1673 | here. | |
1674 | (realize_tty_face): Argument changed. Caller changed. | |
1675 | (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. | |
1676 | (face_at_buffer_position): Don't check multibyte_p for returning | |
1677 | DEFAULT_FACE_ID. | |
1678 | (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not | |
1679 | FACE_SUITABLE_FOR_CHARSET_P. | |
1680 | (syms_of_xfaces): Remove code for Qx_charset_registry and | |
1681 | Vface_default_registry. | |
1682 | ||
6c4bfdc0 KH |
1683 | * xterm.c: Include fontset.h after dispextern.h. Undo the changes |
1684 | related to PER_CHAR_METRIC done by Gerd on 2000-03-03. | |
9111d4b5 KH |
1685 | (x_per_char_metric): Don't try FONT->default_char. Even if |
1686 | pcm->width is zero, glyph bits may exist. | |
1687 | (x_encode_char): Always initialize char2b->byte1. | |
1688 | (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. | |
1689 | (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller | |
1690 | changed. | |
1691 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
1692 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
1693 | it->charset. Handle the case that per char metric is not | |
1694 | available. If it->multibyte_p is zero and it->c is a multibyte | |
1695 | character, convert it to a unibyte character. | |
1696 | (struct glyph_string): Delete member `charset'. | |
1697 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
1698 | the case that per char metric is not available correctly. | |
1699 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
1700 | not available correctly. | |
1701 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
1702 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
1703 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
1704 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
1705 | fontset. Don't call FS_LOAD_FONT. | |
1706 | ||
1707 | * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. | |
1708 | (x_create_tip_frame): Likewise. | |
1709 | (Fx_close_connection): Free full_name of font_info. | |
1710 | ||
1711 | * fns.c (optimize_sub_char_table): New function. | |
1712 | (Foptimize_char_table): New function. | |
1713 | (syms_of_fns): Defsubr Soptimize_char_table. | |
1714 | ||
b33dd3b0 GM |
1715 | 2000-03-20 Gerd Moellmann <gerd@gnu.org> |
1716 | ||
1717 | * buffer.c (Fset_buffer_modified_p): Set update_mode_lines | |
1718 | only if buffer is displayed in some window. | |
1719 | ||
1720 | * xdisp.c (handle_single_display_prop): Initialize local `value'. | |
1721 | (try_window_reusing_current_matrix): Don't call scroll run | |
1722 | function if run's current and desired position are the same; | |
1723 | this prevents cursor flickering. | |
1724 | ||
4e8a9132 SM |
1725 | 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> |
1726 | ||
1727 | * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. | |
1728 | ||
1729 | * regex.c (RE_STRING_CHAR): New macro. | |
1730 | (GET_CHAR_AFER_2): Remove. | |
1731 | (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. | |
1732 | (enum re_opcode_t): Remove on_failure_jump_exclusive. | |
1733 | (print_partial_compiled_pattern, re_compile_fastmap) | |
1734 | (re_match_2_internal): Remove on_failure_jump_exclusive. | |
1735 | (regex_compile): Turn optimizable P+ loops into PP*, so that the | |
1736 | optimization only need to work for * (ie. can use of_keep_string_jump). | |
1737 | Remove the special case for .*\n since it is now covered by the general | |
1738 | optimization. | |
1739 | (re_search_2): Don't bother with `room'. | |
1740 | (skip_one_char): New function. | |
1741 | (skip_noops): Simplify since `memory' is not needed any more. | |
1742 | (mutually_exclusive_p): Restructure slightly to use `switch' and | |
1743 | add handling for "all" remaining cases. | |
1744 | (re_match_2_internal): Change on_failure_jump_smart to use | |
1745 | on_failure_keep_string_jump (and redirect the end-of-loop jump) | |
1746 | rather than on_failure_jump_exclusive. | |
1747 | ||
2136fdd4 GM |
1748 | 2000-03-19 Gerd Moellmann <gerd@gnu.org> |
1749 | ||
1750 | * xfns.c (select_visual): Don't set dpyinfo->n_planes to the | |
1751 | number of bits per RGB because it's everywhere used as the depth | |
1752 | of the visual. | |
1753 | ||
1754 | * term.c (calculate_costs): Remove code dealing with X frames. | |
1755 | ||
e53ae11c RS |
1756 | 2000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
1757 | ||
1758 | * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. | |
1759 | ||
d7b511c4 GM |
1760 | 2000-03-18 Gerd Moellmann <gerd@gnu.org> |
1761 | ||
1762 | * lread.c (read_integer): Unread the last char not consumed. | |
1763 | ||
16b5d424 GM |
1764 | 2000-03-17 Gerd Moellmann <gerd@gnu.org> |
1765 | ||
1766 | * xterm.c (x_update_window_cursor): Don't update in frames | |
d7b511c4 | 1767 | which are in the process of being deleted. |
16b5d424 | 1768 | |
1fa28578 GM |
1769 | 2000-03-16 Gerd Moellmann <gerd@gnu.org> |
1770 | ||
83488cce GM |
1771 | * Makefile.in (mostlyclean): Add `*.core'. |
1772 | (clean): Add `bootstrap-emacs'. | |
1773 | ||
1fa28578 GM |
1774 | * lread.c (read_integer): New function. |
1775 | (read1): Support read syntax #o, #x, #b, #r. | |
1776 | ||
99633e97 SM |
1777 | 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> |
1778 | ||
1fa28578 GM |
1779 | * regex.c (re_match_2): Fix string shortening (to fit `stop') to |
1780 | make sure POINTER_TO_OFFSET gives the same value before and after | |
1781 | PREFETCH. Use `dfail' to guarantee "atomic" matching. | |
99633e97 SM |
1782 | (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. |
1783 | (debug): Now only active if > 0 rather than if != 0. | |
1784 | (DEBUG_*): Update for the new meaning of `debug'. | |
1fa28578 GM |
1785 | (print_partial_compiled_pattern): Add missing `succeed' case. Use |
1786 | CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs | |
1787 | in `succeed_n', `jump_n' and `set_number_at'. | |
99633e97 SM |
1788 | (store_op1, store_op2, insert_op1, insert_op2) |
1789 | (at_begline_loc_p, at_endline_loc_p): Add prototype. | |
1fa28578 GM |
1790 | (group_in_compile_stack): Move to after its arg's types are |
1791 | declared and add a prototype. | |
99633e97 | 1792 | (PATFETCH): Define in terms of PATFETCH_RAW. |
1fa28578 GM |
1793 | (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' |
1794 | wrapper. | |
99633e97 | 1795 | (QUIT): Redefine as a nop except for NTemacs. |
1fa28578 GM |
1796 | (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix |
1797 | indentation of the greedy-op and shy-group code. | |
99633e97 SM |
1798 | (at_(beg|end)line_loc_p): Fix argument's types. |
1799 | (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. | |
1800 | (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. | |
1801 | (MATCHING_IN_FIRST_STRING): Remove. | |
1fa28578 GM |
1802 | (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr |
1803 | to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use | |
1804 | QUIT unconditionally. | |
99633e97 | 1805 | |
699238d9 GM |
1806 | 2000-03-15 Gerd Moellmann <gerd@gnu.org> |
1807 | ||
1808 | * minibuf.c (Fminibuffer_complete): Set point to ZV if finding | |
1809 | a sole completion. | |
1810 | ||
1811 | * process.c (send_process): Add a hint that the function | |
1812 | can call Lisp code to its comment. | |
1813 | ||
1814 | * lread.c (load_dangerous_libraries): New variable. | |
1815 | (Vbytecomp_version_regexp): New variable. | |
1816 | (safe_to_load_p): New function. | |
1817 | (Fload): Handle files not compiled with Emacs specially. | |
1818 | (syms_of_lread): New Lisp variable load-dangerous-libraries. | |
1819 | ||
34e23e5a GM |
1820 | 2000-03-14 Gerd Moellmann <gerd@gnu.org> |
1821 | ||
9c763cca GM |
1822 | * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. |
1823 | ||
1824 | * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM | |
1825 | support functions only if HAVE_X11R6_XIM is defined. | |
1826 | (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. | |
1827 | ||
1828 | * s/sol2.h (INHIBIT_X11R6_XIM): Define. | |
1829 | ||
1830 | * xfns.c (X_I18N_INHIBITED): Don't define. | |
1831 | (create_frame_xic): Remove conditional compilation on | |
1832 | X_I18N_INHIBITED. | |
1833 | (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. | |
1834 | ||
1835 | * config.in (HAVE_X_I18N): Moved here from xterm.h. | |
1836 | (HAVE_X11R6_XIM): Define. | |
1837 | ||
1838 | * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. | |
1839 | ||
34e23e5a GM |
1840 | * xterm.c (x_term_init): Add support for X resource `synchronous'. |
1841 | If set, call XSynchronize. | |
1842 | ||
66f0296e SM |
1843 | 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> |
1844 | ||
34e23e5a GM |
1845 | * regex.c: Declare a new type `re_char' used throughout the code |
1846 | for the string char type. It's `const unsigned char' to match the | |
1847 | rest of Emacs. Consistently make sure all pointers to strings use | |
1848 | it and make sure all pointers into the pattern use `unsigned | |
1849 | char'. | |
66f0296e | 1850 | (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of |
34e23e5a GM |
1851 | GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce |
1852 | code duplication. | |
66f0296e SM |
1853 | |
1854 | * charset.h (GET_CHAR_AFTER_2): Remove. | |
1855 | (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. | |
1856 | ||
854a025c KR |
1857 | 2000-03-12 Ken Raeburn <raeburn@gnu.org> |
1858 | ||
1859 | * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary | |
1860 | variable before the invocation of YMF_PASS_LDFLAGS, in case both | |
1861 | of them try to use backquotes. | |
1862 | ||
b9d2c7e2 DL |
1863 | 2000-03-12 Dave Love <fx@gnu.org> |
1864 | ||
1865 | * unexelf.c: Restore changes of 1999-10-19. | |
1866 | (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise | |
1867 | fix its type and alignment; copy it from current process. | |
1868 | ||
5e5dff44 GM |
1869 | 2000-03-12 Gerd Moellmann <gerd@gnu.org> |
1870 | ||
9b2f3c38 GM |
1871 | * atimer.c (cancel_atimer): Break out of the loop as soon as timer |
1872 | has been found. Fix bug not computing timer's predecessor. | |
1873 | ||
9172b88d GM |
1874 | * fileio.c (Fread_file_name): Handle case that DIR contains a |
1875 | file name. | |
1876 | ||
e1cff360 GM |
1877 | * window.c (Fsave_window_excursion): Doc fix. |
1878 | ||
5e5dff44 GM |
1879 | * xfns.c (x_defined_color): Rewritten to use |
1880 | x_allocate_nearest_color. | |
1881 | ||
e411ce4b EZ |
1882 | 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
1883 | ||
1884 | * msdos.c (vga_installed): New function, code moved from | |
1885 | dos_set_window_size. | |
1886 | (Qbar, Qcursor_type, outside_cursor): New variables. | |
1887 | (syms_of_msdos): Intern and staticpro them. | |
1888 | (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor | |
1889 | shape used outside Emacs when called for the first time. | |
1890 | (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the | |
1891 | cursor shape used outside Emacs. | |
1892 | (msdos_set_cursor_shape, IT_set_cursor_type): New functions. | |
1893 | (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor | |
1894 | type has changed. | |
1895 | (IT_set_frame_parameters): Call IT_set_cursor_type if the frame | |
1896 | parameters specify the cursor. Make qreverse a global | |
1897 | variable (renamed to Qreverse). | |
1898 | ||
80460654 GM |
1899 | 2000-03-09 Gerd Moellmann <gerd@gnu.org> |
1900 | ||
1901 | * fns.c (Fy_or_n_p): Cancel busy-cursor. | |
1902 | ||
95cd4c40 SM |
1903 | 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> |
1904 | ||
1905 | This is a big redesign of failure-stack and register handling, prompted | |
1906 | by bugs revealed when trying to add shy-groups. Overall, what happened | |
1907 | is that loops are now structured a little differently, groups can be | |
1908 | shy and the code is a little simpler. | |
1909 | ||
1910 | * regex.h: Update the copyright. | |
1911 | (RE_SHY_GROUPS): New value. | |
1912 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. | |
1913 | (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. | |
1914 | ||
80460654 GM |
1915 | * regex.c (enum re_opcode_t): Remove jump_past_alt, |
1916 | maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add | |
1917 | on_failure_jump_(exclusive, loop and smart). Also fix the comment | |
1918 | for (start|stop)_memory since they now only take one argument (the | |
1919 | second has becomes unnecessary). | |
1920 | (print_partial_compiled_pattern): Adjust for changes in | |
1921 | re_opcode_t. | |
1922 | (print_compiled_pattern): Use %ld to printf long ints and flush to | |
1923 | make debugging a little easier. | |
95cd4c40 SM |
1924 | (union fail_stack_elt): Make the integer unsigned. |
1925 | (struct fail_stack_type): Add a `frame' element. | |
1926 | (INIT_FAIL_STACK): Init `frame' as well. | |
1927 | (POP_PATTERN_OP): New macro for re_compile_fastmap. | |
1928 | (DEBUG_PUSH, DEBUG_POP): Remove. | |
1929 | (NUM_REG_ITEMS): Remove. | |
1930 | (NUM_NONREG_ITEMS): Adjust. | |
80460654 GM |
1931 | (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) |
1932 | (TOP_FAILURE_HANDLE): New macros for the cycle detection. | |
95cd4c40 | 1933 | (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). |
80460654 GM |
1934 | (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New |
1935 | macros. | |
1936 | (PUSH_FAILURE_POINT): Don't push registers any more. The pattern | |
1937 | address pushed is not the destination of the jump but the source | |
1938 | of it instead. | |
95cd4c40 SM |
1939 | (NUM_FAILURE_ITEMS): Remove. |
1940 | (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop | |
80460654 GM |
1941 | registers before the actual failure point). Don't hardcode any |
1942 | meaning for str==NULL anymore. | |
95cd4c40 | 1943 | (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) |
80460654 GM |
1944 | (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): |
1945 | Remove. | |
95cd4c40 SM |
1946 | (REG_UNSET_VALUE): Use NULL (why not?). |
1947 | (compile_range): Remove declaration since it doesn't exist. | |
1948 | (struct compile_stack_elt_t): Remove inner_group_offset. | |
1949 | (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. | |
1950 | (regex_grow_registers): Remove dead code. | |
1951 | (FIXUP_ALT_JUMP): New macro. | |
80460654 GM |
1952 | (regex_compile): Add shy-groups Change loops to use |
1953 | on_failure_jump_smart&jump instead of | |
1954 | on_failure_jump&maybe_pop_jump. Change + loops to eliminate the | |
1955 | initial (dummy_failure_)jump. Remove c1_base (looks like unused | |
1956 | variable to me). Use `jump' instead of `jump_past_alt' and don't | |
1957 | bother with push_dummy_failure in alternatives since it is now | |
1958 | unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef | |
1959 | emacs' for (re)allocating the stack. | |
1960 | (re_compile_fastmap): Remove dead variables i and num_regs. Exit | |
1961 | from loop when bufp->can_be_null rather than jumping to `done'. | |
1962 | Avoid jumping backwards so as to ensure termination. Use | |
1963 | PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of | |
1964 | backreferences. Remove dead code in handling of `anychar'. | |
95cd4c40 | 1965 | (skip_noops, mutually_exclusive_p): New functions taken from the |
80460654 GM |
1966 | handling of `maybe_pop_jump' in re_match_2_internal. Slightly |
1967 | improve mutually_exclusive_p to handle ".+\n". | |
1968 | (lowest_active_reg, highest_active_reg, | |
1969 | NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. | |
1970 | (re_match_2_internal): Use %p instead of 0x%x when printf'ing | |
1971 | ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead | |
1972 | variables. Push register (in `start_memory') on the stack rather | |
1973 | than storing it in old_reg(start|end). Remove the cycle detection | |
1974 | from `stop_memory', replaced by the use of on_failure_jump_loop | |
1975 | for greedy loops. Add code for the new on_failure_jump_<foo>. | |
1976 | Remove ad-hoc code in `on_failure_jump' to push more registers in | |
1977 | the case of a loop. Take out code from `maybe_pop_jump' into | |
1978 | separate functions and adapt it to the semantics of | |
1979 | `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump | |
1980 | and push_dummy_failure. Remove dummy_failure handling and | |
1981 | handling of `failures to jump to on_failure_jump' (this last one | |
1982 | was already dead code, it seems). | |
1983 | (group_match_null_string_p, alt_match_null_string_p) | |
1984 | (common_op_match_null_string_p): Remove. | |
95cd4c40 | 1985 | |
7397acc4 DL |
1986 | 2000-03-08 Dave Love <fx@gnu.org> |
1987 | ||
1988 | * config.in: Don't depend on __STDC__ for volatile. | |
1989 | Add POINTER_TYPE, PTR, PROTOTYPES. | |
1990 | ||
1991 | * hftctl.c, strftime.c: Use PROTOTYPES. | |
1992 | * eval.c (find_handler_clause): Likewise. | |
1993 | ||
1994 | * mem-limits.h: Use POINTER_TYPE. | |
1995 | ||
1996 | * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. | |
1997 | (memory_warnings): Declare using POINTER_TYPE. | |
1998 | ||
5e91ff9e GM |
1999 | 2000-03-08 Gerd Moellmann <gerd@gnu.org> |
2000 | ||
feab4fba GM |
2001 | * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. |
2002 | ||
25edb08f GM |
2003 | * xdisp.c (display_echo_area): Temporarily inhibit garbage |
2004 | collection. | |
2005 | ||
5e91ff9e GM |
2006 | * xfns.c: Remove obsolete code in #if 0. |
2007 | (Fx_focus_frame): New function. | |
2008 | ||
a735b7e1 KH |
2009 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
2010 | ||
2011 | * coding.c (coding_category_name): Add coding-category-utf-8, | |
2012 | coding-category-utf-16-be, coding-category-utf-16-le. | |
2013 | (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, | |
2014 | UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, | |
2015 | UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. | |
2016 | (detect_coding_utf_8): New function. | |
2017 | (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P | |
2018 | UTF_16_LOW_SURROGATE_P): New macros. | |
2019 | (detect_coding_utf_16): New function | |
2020 | (detect_coding_mask): When priorities are specified, skip any | |
2021 | categories that have `nil' coding-system. Fix bug of returning | |
2022 | wrong mask when PRIORITIES is specified and detect_coding_XXX() | |
2023 | returns a mask not set in PRIORITIES. | |
2024 | (detect_eol_type_in_2_octet_form): New function. | |
2025 | (detect_eol): selects detect_eol_type_XXX to call according to | |
2026 | cooding->category_idx. | |
2027 | (detect_coding_system): Remove `nil' coding-system in the result. | |
2028 | (Fupdate_coding_systems_internal): Update all coding-categories. | |
2029 | ||
2030 | * coding.h (CODING_CATEGORY_IDX_UTF_8, | |
2031 | CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New | |
2032 | macros. | |
2033 | (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY, | |
2034 | CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. | |
2035 | CODING_CATEGORY_IDX_UTF_16_LE. | |
2036 | (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE, | |
2037 | CODING_CATEGORY_MASK_UTF_16_LE): New macros. | |
2038 | (CODING_CATEGORY_MASK_ANY): Include the above macros. | |
2039 | (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. | |
2040 | ||
9994cc69 GM |
2041 | 2000-03-07 Gerd Moellmann <gerd@gnu.org> |
2042 | ||
e9b4e5ff GM |
2043 | * doc.c (Fdocumentation_property): If value is not a string, |
2044 | and doesn't refer to etc/DOC, evaluate it to obtain a string. | |
2045 | ||
f7daf1e1 GM |
2046 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to |
2047 | close the display with XtCloseDisplay. This caused a bus error | |
2048 | on OpenWindows. | |
2049 | ||
9994cc69 GM |
2050 | * minibuf.c (Fminibuffer_complete): Move point to ZV when input is |
2051 | complete but not unique. | |
2052 | ||
4336c705 GM |
2053 | 2000-03-06 Gerd Moellmann <gerd@gnu.org> |
2054 | ||
18bb0684 GM |
2055 | * process.c (send_process): Remove local variable `procname' that |
2056 | might become invalid when a GC happens. Instead, access the | |
2057 | process name slot directly. | |
2058 | ||
4336c705 GM |
2059 | * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and |
2060 | orig_height if set. | |
2061 | ||
2062 | * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and | |
2063 | orig_height if set. | |
2064 | ||
515d0d0e EZ |
2065 | 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
2066 | ||
2067 | * msdos.c (IT_note_mouse_highlight): Return immediately if frame's | |
2068 | glyph matrices have been freed. | |
2069 | ||
100b3cbb GM |
2070 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
2071 | ||
50df5e5a | 2072 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
6178bc23 | 2073 | (bootstrap-temacs): Set LC_ALL to C like for temacs. |
50df5e5a GM |
2074 | |
2075 | * xfns.c (QCdata): Moved to xdisp.c. | |
2076 | ||
2077 | * xdisp.c (QCdata): Moved here from xfns.c. | |
2078 | (syms_of_xdisp): Initialize QCdata. | |
2079 | ||
2080 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
2081 | ||
2082 | * window.c (coordinates_in_window): Use | |
2083 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
2084 | FRAME_INTERNAL_BORDER_WIDTH. | |
2085 | ||
100b3cbb | 2086 | * xdisp.c (try_window_id): Recompute unchanged information if |
4336c705 | 2087 | it is obviously invalid. |
100b3cbb GM |
2088 | |
2089 | * xterm.c (x_term_init): Create a colormap if not using the | |
2090 | default visual. | |
2091 | ||
2092 | * xterm.h (select_visual): Change prototype. | |
2093 | ||
2094 | * xfns.c (select_visual): Rewritten. Recognize user-specified | |
2095 | visual classes. | |
2096 | (visual_classes): New variable. | |
2097 | ||
64d739c4 GM |
2098 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
2099 | ||
2100 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
2101 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
2102 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
2103 | (x_decode_color): Don't handle allocation of white and black | |
2104 | specially. | |
2105 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
2106 | XtNcolormap resources. | |
2107 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
2108 | (Fx_create_frame): Initialize color members of x_output structure. | |
2109 | (xpm_load): Pass colormap to XPM lib. | |
2110 | ||
2111 | * xfaces.c (x_free_colors): Access colormap of frame using | |
2112 | FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
2113 | when default colormap is used. | |
2114 | ||
2115 | * xterm.c (x_term_init): Set Colormap member of x_display_info | |
2116 | structure. Copy colormap if resource `privateColormap' is | |
2117 | specified (PseudoColor only). | |
2118 | (x_setup_relief_color): Access colormap of frame using | |
2119 | FRAME_X_COLORMAP. | |
2120 | ||
2121 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
2122 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
2123 | ||
c3cee013 JR |
2124 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
2125 | ||
2126 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
2127 | other non-platform-specific equivalents. | |
64d739c4 | 2128 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
c3cee013 JR |
2129 | specific functions and macros as their w32 equivalents where |
2130 | non-platform-specifics are not available. | |
2131 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
2132 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
2133 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
2134 | (frame_update_line_height): Use macros to access f->output_data. | |
2135 | (defined_color): Remove FIXME comments; fixed. | |
2136 | (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
2137 | into #ifdef blocks. Add WINDOWSNT blocks. | |
2138 | (Fx_list_fonts): Use macros for accessing font data. | |
2139 | (set_lface_from_font_name): Different default fonts for X and | |
2140 | WINDOWSNT. | |
2141 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
2142 | scalable for backward compatibility. | |
64d739c4 | 2143 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
c3cee013 JR |
2144 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
2145 | ||
64d739c4 | 2146 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
c3cee013 JR |
2147 | syms_of_w32faces. |
2148 | ||
2149 | * makefile.nt (w32faces.obj): Remove. | |
2150 | (xfaces.obj): Add. | |
2151 | ||
807cc41c JR |
2152 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
2153 | ||
2154 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
2155 | correct parameters. | |
2156 | ||
0007072a KR |
2157 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
2158 | ||
2159 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
2160 | standard ELF definitions here if the system header does not. | |
2161 | ||
71a6ba55 GM |
2162 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
2163 | ||
2164 | * xterm.c (PER_CHAR_METRIC): Removed. | |
2165 | (x_per_char_metric_1, x_default_char): New functions. | |
2166 | (x_per_char_metric): If font's default char is invalid, return | |
2167 | metrics of a suitably chosen usable default char. | |
2168 | (x_draw_glyph_string_foreground): If font has an invalid default | |
64d739c4 GM |
2169 | char, replace occurrences of unprintable chars with a suitably |
2170 | chosen usable default char. | |
71a6ba55 | 2171 | |
900fa1f1 GM |
2172 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
2173 | ||
42f55fe0 GM |
2174 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
2175 | glyph matrices have been freed. | |
2176 | ||
2177 | * dispnew.c (free_glyphs): Block input while freeing matrices. | |
2178 | ||
900fa1f1 GM |
2179 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
2180 | ||
2181 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | |
2182 | x_free_colors. | |
2183 | ||
2184 | * dispextern.h (x_free_colors): Add prototype. | |
2185 | ||
2186 | * xfaces.c (x_free_colors): New function. | |
2187 | (unload_color, free_face_colors): Use it. | |
2188 | ||
2f950292 EZ |
2189 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
2190 | ||
2191 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
2192 | ||
2193 | * window.c [MSDOS]: Include msdos.h. | |
2194 | ||
54d04320 DL |
2195 | 2000-03-02 Dave Love <fx@gnu.org> |
2196 | ||
2197 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
2198 | ||
2199 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
2200 | set C_OPTIMIZE_SWITCH for gcc. | |
2201 | ||
0ba93ac4 KH |
2202 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
2203 | ||
2204 | * coding.c (coding_save_composition): Be sure to allocate | |
2205 | composition data area in coding even if there's no composition in | |
2206 | the current run. | |
2207 | ||
a2bc11d4 JR |
2208 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
2209 | ||
2210 | * w32term.c: Equivalent changes to those made to xterm.c on | |
2211 | 2000-02-25 and 2000-02-24. | |
2212 | ||
2213 | * w32fns.c: Equivalent changes to those made to xfns.c on | |
2214 | 2000-02-25 and 2000-02-21. | |
2215 | ||
2216 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
2217 | correct line-end convention is followed. | |
2218 | ||
2219 | * w32menu.c [HAVE_BOXES]: Remove #undef. | |
2220 | (single_keymap_panes): Remove code for simulating checkmarks. | |
2221 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
2222 | Remove code for drawing simulated checkmarks. | |
2223 | (w32_menu_show): make unibyte help string correctly. | |
2224 | (add_menu_item): draw standard Windows checkmarks. Draw radio | |
2225 | buttons as radio buttons if possible. | |
2226 | ||
72d19d75 GM |
2227 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
2228 | ||
2df636f4 GM |
2229 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
2230 | with ELF. | |
2231 | ||
2232 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: | |
2233 | Don't define. | |
2234 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
2235 | (LINKER): Don't undef if __NetBSD__ is defined. | |
2236 | ||
2237 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
2238 | ||
2239 | * fileio.c [__NetBSD__]: Define `unix'. | |
2240 | ||
72d19d75 GM |
2241 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
2242 | ||
ed4d0512 GM |
2243 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
2244 | ||
50b1039f GM |
2245 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
2246 | (append_atimer_lists): New function. | |
2247 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
2248 | arbitrary lists of stopped and running atimers. | |
2249 | ||
ed4d0512 GM |
2250 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
2251 | some timers are stopped. | |
2252 | ||
2253 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
2254 | after canceling it. | |
2255 | ||
2256 | * fns.c (maybe_resize_hash_table): Handle case of new size | |
2257 | coming out as being the same as old size. | |
2258 | ||
387023ee JR |
2259 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
2260 | ||
2261 | * makefile.nt: Add atimer.h to dependencies. | |
2262 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
2263 | * w32console.c: Only disable window system features for dispextern.h | |
2264 | (initialize_w32_display): Build a display info for the console. | |
2265 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
2266 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
2267 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
2268 | as 2 button mice. | |
2269 | * w32gui.h (struct W32FontStruct): Revert last change after change | |
2270 | to xdisp.c. | |
2271 | * w32menu.c (single_submenu): Set up help string. | |
2272 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
2273 | (w32_dialog_show): Set up help string. | |
2274 | * w32term.c (w32_display_info_for_display): Remove unused function. | |
2275 | (w32_draw_bitmap): Use pre-built bitmaps. | |
2276 | (w32_initialize_display_info): New function to initialize parts of | |
2277 | display info that are common to both GUI and console frames. | |
2278 | (w32_term_init): Use w32_initialize_display_info. Do not set | |
2279 | Vw32_num_mouse_buttons here, as it is not called for console | |
2280 | frames. Build bitmaps for indicating truncated lines etc. | |
2281 | (x_delete_display): Destroy pre-built bitmaps. | |
2282 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
2283 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
2284 | ||
4516715a DL |
2285 | 2000-02-27 Dave Love <fx@gnu.org> |
2286 | ||
2287 | * lisp.h: Add a bunch of prototypes. | |
2288 | ||
171ca836 KH |
2289 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
2290 | ||
2291 | * keyboard.c (read_char): Set `usec' correctly. | |
2292 | ||
4013921d KH |
2293 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
2294 | ||
2295 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
2296 | `lambda', set reg[RRR] to the map index. | |
2297 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
2298 | reg[RRR] to 0. Otherwise, set it to -1. | |
2299 | ||
9244a058 GM |
2300 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
2301 | ||
2df636f4 | 2302 | * emacs.c (main): Remove code snippet commented out with `//'. |
9244a058 | 2303 | |
f43d79c1 GM |
2304 | 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
2305 | ||
2306 | * fileio.c (Ffile_symlink_p): If result starts with a `/' | |
2307 | and contains a `:', prepend `/:'. | |
2308 | ||
2309 | * window.c (select_window_1): If selected_window is nil, | |
2310 | don't "swap out" the buffer's point. | |
2311 | (Fset_window_configuration): Set selected_window to nil | |
2312 | before calling Fselect_window. | |
2313 | (unshow_buffer): Don't set point in buffer from window's point | |
2314 | if another more recently selected window also shows the buffer. | |
2315 | ||
bed0c171 GM |
2316 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
2317 | ||
449c3c52 GM |
2318 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
2319 | ||
f5b58615 GM |
2320 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
2321 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
2322 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New | |
2323 | variables. | |
2324 | (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
2325 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
2326 | (hide_busy_cursor): New functions. | |
2327 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
2328 | ||
2329 | * minibuf.c (read_minibuf): Cancel busy-cursor. | |
2330 | ||
2331 | * keyboard.c (command_loop_1): Call start_busy_cursor before | |
2332 | Fcommand_execute and cancel_busy_cursor after it. | |
2333 | (timer_check): Remove busy-cursor code. | |
2334 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
2335 | cursor timer. | |
2336 | ||
2337 | * process.c (wait_reading_process_input): Remove busy-cursor code. | |
2338 | ||
2339 | * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
2340 | Fx_hide_busy_cursor. | |
2341 | ||
2342 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
2343 | Remove prototyoes. | |
2344 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
2345 | ||
2346 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
2347 | ||
2348 | * xterm.c (XTread_socket): Remove busy-cursor code. | |
2349 | ||
4eb8436f GM |
2350 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
2351 | (build_frame_matrix_from_leaf_window): Put code handling | |
2352 | glyph row's not being a slice of a frame row in #if 0. | |
2353 | (sync_window_with_frame_matrix_rows): New function. | |
2354 | (frame_row_to_window): New function. | |
2355 | (mirror_line_dance): Handle copies between windows. | |
2356 | ||
3cb65b0e GM |
2357 | * lread.c (Fload): Use `xfree' instead of `free'. |
2358 | (init_obarray): Use `xmalloc' instead of `malloc'. | |
2359 | ||
bed0c171 GM |
2360 | * window.c (Fset_window_buffer): Set WINDOW to the window |
2361 | after decoding. | |
2add4349 GM |
2362 | (coordinates_in_window): Take frame's internal border width |
2363 | into account. | |
bed0c171 | 2364 | |
42088c12 GM |
2365 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
2366 | ||
2367 | * xterm.c (x_display_and_set_cursor): Display cursor of | |
2368 | non-selected windows depending on the setting of | |
2369 | cursor_in_non_selected_windows. | |
2370 | ||
2371 | * xdisp.c (cursor_in_non_selected_windows): New variable. | |
2372 | (syms_of_xdisp): DEFVAR_BOOL it. | |
2373 | ||
d1e103b2 GM |
2374 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
2375 | ||
723e779c GM |
2376 | * data.c (Fstring_to_number): If number is greater than what |
2377 | fits into an integer, return a float. | |
2378 | ||
d1e103b2 GM |
2379 | * eval.c (specbind): Remove references to |
2380 | keyword_symbols_constant_flag. | |
2381 | ||
2382 | * data.c (keyword_symbols_constant_flag): Removed. | |
2383 | (Fmakunbound, set_internal, syms_of_data): Remove references to | |
2384 | keyword_symbols_constant_flag. | |
2385 | ||
2386 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
2387 | ||
214f877f KH |
2388 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
2389 | ||
2390 | * syntax.c (multibyte_syntax_as_symbol): New variable. | |
2391 | (syms_of_syntax): Declare it as a Lisp variable. | |
2392 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
2393 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
2394 | nonzero, treat all multibyte characters as symbol. | |
42088c12 | 2395 | (init_syntax_once): Give syntax `word' to all multibyte |
214f877f KH |
2396 | characters. |
2397 | ||
130adcb7 EZ |
2398 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
2399 | ||
3cb65b0e | 2400 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
130adcb7 EZ |
2401 | a deleted frame. |
2402 | ||
17cbbf95 GM |
2403 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
2404 | ||
2405 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
2406 | ||
2407 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
2408 | (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
2409 | ||
beb0bc36 DL |
2410 | 2000-02-21 Dave Love <fx@gnu.org> |
2411 | ||
2412 | * frame.c (Vmouse_position_function): New variable. | |
2413 | (Fmouse_position): Use it. | |
2414 | (syms_of_frame): Install it. | |
2415 | ||
2416 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
2417 | ||
1d92afcd GM |
2418 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
2419 | ||
2420 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
2421 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
2422 | |
2423 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
2424 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
2425 | (specbind, unbind_to): Handle most common case of non-constant | |
2426 | symbol with trivial value specially. | |
2427 | ||
2428 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
2429 | ||
2d06696f RS |
2430 | 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
2431 | ||
2432 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
2433 | Init found_for_buffer to 0. | |
2434 | (Fmake_variable_frame_local): If the variable has already | |
2435 | been buffer-local, set the check_frame field. | |
2436 | ||
1d4311c3 EZ |
2437 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
2438 | ||
2439 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
2440 | produced for CODING_MODE_LAST_BLOCK requires. | |
2441 | ||
2dc95ddd DL |
2442 | 2000-02-18 Dave Love <fx@gnu.org> |
2443 | ||
2444 | * keyboard.c (echo_keystrokes): Remove declaration. | |
2445 | (Vecho_keystrokes) New variable. | |
2446 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
2447 | use of float value. | |
2448 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
2449 | ||
2450 | * lread.c: Undef feature selection macros before defining. | |
2451 | ||
f0930f35 GM |
2452 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
2453 | ||
2454 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
2455 | for symbols other than the symbol in question. | |
2456 | ||
e3d4de90 DL |
2457 | 2000-02-17 Dave Love <fx@gnu.org> |
2458 | ||
2459 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
2460 | ||
0b378936 GM |
2461 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
2462 | ||
d621caf7 GM |
2463 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
2464 | ||
0b378936 GM |
2465 | * alloc.c (enum mem_type): Compile unconditionally. |
2466 | ||
3b451f74 EZ |
2467 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
2468 | ||
2469 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
2470 | for unspecified-fg and unspecified-bg pseudo-colors. | |
2471 | ||
10689a01 GM |
2472 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
2473 | ||
1216f5e4 GM |
2474 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
2475 | (gc_sweep): Don't unmark symbol names in pure space. | |
2476 | ||
2477 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
2478 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
2479 | [GC_MARK_STACK]: New defines. | |
2480 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
2481 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
2482 | ||
2483 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
2484 | ||
2485 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
2486 | allocate_buffer instead of xmalloc. | |
2487 | ||
2488 | * alloc.c (toplevel): Include setjmp.h. | |
2489 | (PURE_POINTER_P): New define. | |
2490 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
2491 | (Vdead) [GC_MARK_STACK]: New variable. | |
2492 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
2493 | GC_MARK_STACK is defined. | |
2494 | (allocate_buffer): New function. | |
2495 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
2496 | (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
2497 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
2498 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
2499 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
2500 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
2501 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
2502 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
2503 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
2504 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
2505 | (mark_stack) [GC_MARK_STACK]: New functions. | |
2506 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
2507 | (clear_marks): Removed. | |
2508 | (gc_sweep): Set free conses' car, free floats' type, free | |
2509 | symbols' function to Vdead. Use lisp_free to free buffers. | |
2510 | (init_alloc_once): Initialize Vdead. | |
2511 | (survives_gc_p): Return non-zero for pure objects. | |
2512 | ||
2513 | * alloc.c: Add comments throughout the file. | |
2514 | ||
2503c8b1 GM |
2515 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
2516 | that unblocks alarms. | |
2517 | ||
8389e1e2 GM |
2518 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
2519 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
2520 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
2521 | ||
10689a01 GM |
2522 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
2523 | ||
bfc17d18 KH |
2524 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
2525 | ||
4a09dee0 KH |
2526 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
2527 | avoid infinite error signaling. Allocate sufficient memory for | |
2528 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 2529 | |
2b927d02 SM |
2530 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
2531 | ||
2532 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
2533 | depends on the previous behavior. | |
2534 | ||
b49cb764 GM |
2535 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
2536 | ||
2537 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
2538 | ||
99e95407 GM |
2539 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
2540 | ||
2541 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
2542 | ||
2543 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 2544 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
2545 | write(2). |
2546 | ||
6ffd3cf7 RS |
2547 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
2548 | ||
2549 | * data.c (set_internal): Don't make variable buffer-local | |
2550 | if within a let-binding for the same buffer. | |
2551 | (let_shadows_buffer_binding_p): New function. | |
2552 | ||
2553 | * eval.c (specbind): For buffer-local value, | |
2554 | record the current buffer also. | |
2555 | (unbind_to): Cope with that change. | |
2556 | ||
cad53475 GM |
2557 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
2558 | ||
2559 | * window.c (Fsave_window_excursion): Doc fix. | |
2560 | ||
1aa963c8 SM |
2561 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
2562 | ||
2563 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
2564 | of the relevant style and return -1 in case of a failure to find the | |
2565 | beginning of the comment. | |
2566 | (Fforward_comment): If back_comment fails, go back to the position just | |
2567 | after the comment-end. | |
2568 | (scan_lists): Add comment describing a very minor bug. | |
2569 | ||
b9b84fd3 SM |
2570 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
2571 | ||
2572 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
2573 | `completion-regexp-list' in the docstring. | |
2574 | ||
3a28db80 DL |
2575 | 2000-02-14 Dave Love <fx@gnu.org> |
2576 | ||
2577 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
2578 | ||
fb4a568d SM |
2579 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
2580 | ||
2581 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
2582 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
2583 | since Emacs syntax is not the value 0 any more. | |
2584 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
2585 | since it's now part of RE_SYNTAX_EMACS. | |
2586 | ||
1063ebb5 DL |
2587 | 2000-02-12 Dave Love <fx@gnu.org> |
2588 | ||
2589 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
2590 | Alpha. | |
2591 | ||
fb07a302 GM |
2592 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
2593 | ||
2594 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
2595 | ||
aaf2320c DL |
2596 | 2000-02-12 Dave Love <fx@gnu.org> |
2597 | ||
2598 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
2599 | ||
2600 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
2601 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
2602 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
2603 | |
2604 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
2605 | ||
2606 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
2607 | ||
2608 | * config.in: Add vfork bits. | |
2609 | ||
eedf8bde GM |
2610 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
2611 | ||
2612 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
2613 | unwind function to undo the effect of stopping atimers. | |
2614 | ||
2615 | * keyboard.c (bind_polling_period): Stop all timers except | |
2616 | poll_timer. | |
2617 | ||
2618 | * atimer.c (stopped_atimers): New variable. | |
2619 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
2620 | New functions. | |
2621 | ||
2622 | * atimer.h (stop_other_atimers, run_all_atimers) | |
2623 | (unwind_stop_other_atimers): Add function prototypes. | |
2624 | ||
2625 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
2626 | ||
8476c2f8 KR |
2627 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
2628 | ||
2629 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
2630 | library may depend on jpeg. | |
2631 | (atimer.o): Depends on atimer.c. | |
2632 | ||
0e85e4a3 KH |
2633 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
2634 | ||
2635 | * insdel.c (del_range_1): Call update_compositions. | |
2636 | (del_range_both): Call update_compositions just once.. | |
2637 | ||
97fa0cc8 DL |
2638 | 2000-02-10 Dave Love <fx@gnu.org> |
2639 | ||
2640 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
2641 | aggregates for pcc. | |
2642 | ||
25566a3c KH |
2643 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
2644 | ||
2645 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
2646 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
2647 | registers by CCL_MAKE_CHAR before calling translate_char. | |
2648 | <CCL_TranslateCharacterConstTbl> Likewise. | |
2649 | ||
69da54ba DL |
2650 | 2000-02-08 Dave Love <fx@gnu.org> |
2651 | ||
2652 | * lread.c (__EXTENSIONS__): Define. | |
2653 | ||
f7136ee8 GM |
2654 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
2655 | ||
2656 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
2657 | ||
7768790b EZ |
2658 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
2659 | ||
2660 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
2661 | the help message. | |
2662 | ||
38fd211b EZ |
2663 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
2664 | ||
2665 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
2666 | md, mh, mb, mr, and me to the fake termcap entry. | |
2667 | ||
66e4690f KR |
2668 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
2669 | ||
2670 | * sound.c (sound_cleanup): Don't call device close routine if the | |
2671 | function pointer is null. | |
2672 | ||
a75dfea0 AI |
2673 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
2674 | ||
2675 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
2676 | around image definitions and prototypes. | |
2677 | (gamma_correct) [WINDOWSNT]: New prototype. | |
2678 | ||
2679 | * w32term.c (x_make_frame_visible): Replace call to | |
2680 | input_poll_signal with poll_for_input. | |
2681 | ||
2682 | * window.c [WINDOWSNT]: Include w32term.h. | |
2683 | ||
2684 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
2685 | ||
2686 | * makefile.nt: Add dependencies on w32gui.h. | |
2687 | (OBJ1): Include atimer.obj. | |
2688 | ($(BLD)\atimer.obj): New dependency rule. | |
2689 | ||
2690 | * w32.c (sigmask): New function (does nothing). | |
2691 | (sigunblock): Ditto. | |
2692 | ||
2693 | * frame.c [WINDOWSNT]: Include w32term.h. | |
2694 | ||
2695 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
2696 | ||
2697 | * lread.c (syms_of_lread): Fix literal newlines. | |
2698 | ||
2699 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
2700 | the string constant limit (2048 bytes) in MSVC. | |
2701 | (main): Ditto. | |
2702 | ||
59ddecde GM |
2703 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
2704 | ||
2705 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
2706 | area. | |
2707 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
2708 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
2709 | dispatch the event. | |
2710 | ||
07590973 DL |
2711 | 2000-02-04 Dave Love <fx@gnu.org> |
2712 | ||
2713 | * fileio.c: Remove some unused vars. | |
2714 | (_GNU_SOURCE): Define (for euidaccess). | |
2715 | ||
2716 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
2717 | ||
2718 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
2719 | gcpro1, gcpro2. | |
2720 | (read_minibuf): Deal with allow_props correctly. | |
2721 | ||
649351f9 EZ |
2722 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
2723 | ||
2724 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
2725 | ||
66e4690f | 2726 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
2727 | |
2728 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
2729 | fill in that entry instead of clobbering a previously cached | |
2730 | string regexp. | |
2731 | ||
66e4690f | 2732 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
2733 | |
2734 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
2735 | ||
d240a249 GM |
2736 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
2737 | ||
2738 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
2739 | can GC. | |
2740 | ||
ca91fb26 KH |
2741 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
2742 | ||
25660570 KH |
2743 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
2744 | instead of incrementing ic directly. | |
2745 | <CCL_WriteExprConst> Likewise. | |
2746 | <ccl_set_expr>: Set ic to jump_address. | |
2747 | ||
ca91fb26 KH |
2748 | * fileio.c (e_write): Fix the handling of |
2749 | CODING_FINISH_INSUFFICIENT_SRC. | |
2750 | ||
2ede9689 DL |
2751 | 2000-02-01 Dave Love <fx@gnu.org> |
2752 | ||
2753 | * editfns.c (Fpropertize): Doc fix. | |
2754 | ||
2755 | * process.c (Fstart_process): Doc fix. | |
2756 | ||
2757 | * eval.c: Fix various doc strings not to duplicate information | |
2758 | from help-manyarg-func-alist. | |
2759 | ||
2760 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
2761 | fix. | |
2762 | ||
2763 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
2764 | (Fdocumentation): Use it. | |
2765 | (syms_of_doc): Define it. | |
2766 | ||
b6680a0e GM |
2767 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
2768 | ||
2cb750ba GM |
2769 | * xterm.c (xim_open_dpy): Remove unused local variable. |
2770 | ||
74e9213b GM |
2771 | * emacs.c (USAGE): Use term `display options' instead of `X |
2772 | options'. | |
2773 | ||
2774 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
2775 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
2776 | ||
b6680a0e GM |
2777 | * fns.c (sweep_weak_table): New function. |
2778 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
2779 | is no more change. | |
2780 | ||
994c5afe GM |
2781 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
2782 | ||
2783 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
2784 | that XTread_socket does not crash by trying to call XNoOp on a | |
2785 | closed display. | |
2786 | ||
f00276e3 JR |
2787 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
2788 | ||
2789 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
2790 | Change selected_frame to SELECTED_FRAME (). | |
2791 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
2792 | `insist' parameter. | |
2793 | ||
2794 | * makefile.nt: Remove dosfns.obj. | |
2795 | ||
2796 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
2797 | ||
2798 | * w32fns.c (w32_defined_color): Check for valid frame before | |
2799 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
2800 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
2801 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
2802 | (x_to_w32_font): Doc fix. | |
2803 | (xlfd_strip_height): New function to strip and return font height. | |
2804 | (w32_font_match): Compare height separately from rest of xlfd | |
2805 | spec, using xlfd_strip_height. | |
2806 | ||
2807 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
2808 | width_in. Use w32_defined_color in place of defined_color. | |
2809 | ||
2810 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
2811 | merge with xfaces.c. | |
2812 | (defined_color): Remove FIXME comment. | |
2813 | (tty_color_name): Provide w32-specific function. | |
2814 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
2815 | ||
2816 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
2817 | (w32_face_attributes): New function. | |
2818 | (Global_variables): Reduce scope where possible. | |
2819 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
2820 | fill attribute. | |
2821 | (hl_mode): Don't modify text attributes. | |
2822 | (write_glyphs): Don't do anything if len <= 0. Use | |
2823 | w32_face_attributes to get attributes for drawing. Write | |
2824 | terminating codes using char_attr_normal. | |
2825 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
2826 | (update_begin, update_end): Likewise. | |
2827 | (vga_stdcolor_name): New function. | |
2828 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
2829 | (Fset_screen_color): Remove char_attr_reverse. | |
2830 | ||
b08e8bb2 GM |
2831 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
2832 | ||
2833 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
2834 | window-relative pixel-positions. | |
2835 | ||
2836 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
2837 | is its frame's selected window. | |
2838 | (xim_instantiate_callback): Likewise. | |
2839 | ||
2840 | * xfns.c (x_create_im): Removed. | |
2841 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
2842 | (supported_xim_styles): Renamed from supported_styles. | |
2843 | (best_xim_style): Renamed from best_style. | |
2844 | (create_frame_xic): Renamed from xic_create_frame. | |
2845 | (free_frame_xic): Renamed from xic_destroy_frame. | |
2846 | ||
2847 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
2848 | ||
2849 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
2850 | our frames, call XFilterEvent with 2nd parameter `None'. | |
2851 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
2852 | returning XBufferOverflow. | |
2853 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
2854 | area. | |
2855 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
2856 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
2857 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
2858 | (xim_initialize, xim_close) | |
2859 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
2860 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
2861 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
2862 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
2863 | ||
2864 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
2865 | and `xim_styles'. | |
2866 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
2867 | `xic_style' and `xic_xfs'. | |
2868 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
2869 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
2870 | (FRAME_XIM): Removed. | |
2871 | ||
2872 | * xfns.c (supported_styles): New variable. | |
2873 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
2874 | (xic_create_xfontset, best_style, xic_create_frame) | |
2875 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
2876 | (xic_set_xfontset): New functions. | |
2877 | ||
142e109c DL |
2878 | 2000-01-28 Dave Love <fx@gnu.org> |
2879 | ||
2880 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
2881 | ||
2882 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
2883 | ||
b02786f9 GM |
2884 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
2885 | ||
d060bc9f GM |
2886 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
2887 | for *scratch* if it already existed. | |
2888 | ||
b02786f9 GM |
2889 | * emacs.c (USAGE): New macro. |
2890 | (main): Use it to display usage information. | |
2891 | ||
2c52d7e4 EZ |
2892 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
2893 | ||
2894 | Support for the menu-help feature: | |
2895 | ||
2896 | * msdos.h: Change prototypes of XMenuAddSelection and | |
2897 | XMenuActivate. | |
2898 | ||
2899 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
2900 | part of the line to the termscript file. | |
2901 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
2902 | (menu_help_message, prev_menu_help_message): New variables. | |
2903 | (IT_menu_make_room): Make room for the help_text member. | |
2904 | (IT_menu_display): New argument disp_help; all callers changed. | |
2905 | If disp_help is non-zero, store the help text of the active menu | |
2906 | item in menu_help_message. | |
2907 | (XMenuAddPane): Initialize the help_text member to NULL. | |
2908 | (XMenuAddSelection): New argument help_text. Store it in the | |
2909 | XMenu structure. | |
2910 | (XMenuActivate): New argument help_callback. If the value of | |
2911 | menu_help_message has changed since the last time, display the | |
2912 | menu help message text while waiting for the mouse to move. Clear | |
2913 | the echo area before exiting. | |
2914 | (XMenuDestroy): Free the help_text member. | |
2915 | ||
ffe0bcd1 GM |
2916 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
2917 | ||
2918 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
2919 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
2920 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
2921 | ||
50dbd23f EZ |
2922 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
2923 | ||
2924 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
2925 | and EMACS_SET_USECS. | |
2926 | ||
f5941bf8 GM |
2927 | 2000-01-26 Dave Love <fx@gnu.org> |
2928 | ||
6c67ddee DL |
2929 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
2930 | ||
f5941bf8 GM |
2931 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
2932 | an error may be signalled. | |
2933 | ||
9e49c990 GM |
2934 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
2935 | ||
fc3cb460 GM |
2936 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
2937 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
2938 | ||
9e49c990 GM |
2939 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
2940 | ||
d0c037d8 GM |
2941 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
2942 | ||
2943 | * charset.c (Fstring): If there is a multibyte char among | |
2944 | the args, always return a multibyte string. | |
2945 | ||
e12489f9 GM |
2946 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
2947 | ||
2948 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
2949 | recording and restoring old alarm handler | |
2950 | ||
2951 | * process.c (toplevel): Include atimer.h. | |
2952 | (create_process_1): Rewritten. | |
2953 | (create_process): Use atimers instead of alarm. | |
2954 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
2955 | of turning off SIGALRM. | |
2956 | (wait_reading_process_input): Turn off atimers instead off | |
2957 | calling stop_polling. | |
2958 | ||
2959 | * emacs.c (main): Call init_atimer. | |
2960 | ||
2961 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
2962 | (polling_for_input): Removed because unused. | |
2963 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
2964 | (poll_timer): New variable. | |
2965 | (poll_for_input, poll_for_input_1): New functions. | |
2966 | (start_polling, stop_polling): Rewritten. | |
2967 | ||
2968 | * keyboard.h (polling_for_input): Removed. | |
2969 | ||
2970 | * atimer.h, atimer.c: New files. | |
2971 | ||
2972 | * Makefile.in (obj): Add atimer.o. | |
2973 | (atimer.o): New target. | |
2974 | ||
2975 | * blockinput.h (pending_atimers): Add extern declaration. | |
2976 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
2977 | ||
2978 | * lisp.h (popup_activated_flag): Add extern declaration. | |
2979 | ||
2980 | * xmenu.c (popup_activated_flag): Make externally visible. | |
2981 | (popup_activate_callback) [USE_MOTIF]: Increment | |
2982 | popup_activated_flag. | |
2983 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
2984 | ||
2985 | * xterm.c (toplevel): Include atimer.h. | |
2986 | (toolkit_scroll_bar_interaction): New variable. | |
2987 | (Fxt_process_timeouts): Removed. | |
2988 | (x_process_timeouts): New function. | |
2989 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
2990 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
2991 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
2992 | input_poll_signal. Don't call alarm. | |
2993 | (x_initialize): Install timer calling x_process_timeouts. | |
2994 | ||
1e5279b9 DL |
2995 | 2000-01-24 Dave Love <fx@gnu.org> |
2996 | ||
6c67ddee | 2997 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
2998 | Don't use -cckr -- apparently not now necessary. |
2999 | ||
edf6aeb8 EZ |
3000 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
3001 | ||
3002 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
3003 | screen boundary. | |
3004 | ||
9badad41 JR |
3005 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
3006 | ||
3007 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
3008 | trying to map to the palette. | |
3009 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
3010 | to w32_clear_rect. | |
3011 | ||
3012 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
3013 | here. Callers changed to always pass real device context. | |
3014 | (w32_draw_bitmap): Likewise. | |
3015 | (w32_get_glyph_overhangs): Likewise. | |
3016 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
3017 | one. | |
3018 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
3019 | pfnSetScrollInfo and SetScrollRange. | |
3020 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
3021 | back into MULE characters after decoding them. | |
3022 | (x_get_glyph_face_and_encoding): Likewise. | |
3023 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
3024 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
3025 | (x_produce_glyphs): Calculate per char metrics for a character | |
3026 | that we know exists in default font when font_not_found_p is true. | |
3027 | ||
63bd786b JR |
3028 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
3029 | ||
3030 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
3031 | (composite.h): Added as dependency where appropriate. | |
3032 | ||
3033 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
3034 | ||
3035 | * w32term.h (XCharStruct): New struct for emulating X. | |
3036 | ||
3037 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
3038 | (change_line_highlight): New prototype for new redisplay. | |
3039 | (write_glyphs): Support multibyte text. Support faces. | |
3040 | ||
3041 | * w32faces.c: Complete rewrite for new redisplay based on new | |
3042 | xfaces.c. | |
3043 | ||
3044 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
3045 | throughout. struct frame * in place of FRAME_PTR. | |
3046 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
3047 | (Fx_create_frame): Use system default for default scroll bar | |
3048 | width. | |
3049 | (w32_get_arg): Renamed from x_get_arg. | |
3050 | (Fx_file_dialog): New function. | |
3051 | (w32_list_fonts): Check cache before asking system. | |
3052 | (Vw32_enable_synthesized_fonts): New variable. | |
3053 | (Vw32_enable_italics): Obsolete, removed. | |
3054 | ||
3055 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
3056 | Use SELECTED_FRAME macro. | |
3057 | ||
3058 | * w32menu.c: Add skeleton support for help strings on menus. | |
3059 | (add_menu_item): Native checkbox and radio support added, but not | |
3060 | yet enabled due to bugs. | |
3061 | (push_menu_item): Add parameters type, selection and help. | |
3062 | Callers updated. | |
3063 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
3064 | ||
3065 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
3066 | find_charset_in_str. | |
3067 | ||
3068 | * w32term.c: Complete rewrite for new redisplay based on new | |
3069 | xterm.c with necessary sections merged back in from old w32term.c. | |
3070 | ||
6ffd3cf7 | 3071 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
3072 | |
3073 | * data.c (set_internal): Further fix in same criterion. | |
3074 | ||
6ffd3cf7 | 3075 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
3076 | |
3077 | * data.c (set_internal): Fix the criteria for whether | |
3078 | to swap out the old cached binding. | |
3079 | ||
60af03f1 DL |
3080 | 2000-01-19 Dave Love <fx@gnu.org> |
3081 | ||
3082 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
3083 | ||
f9be074f KH |
3084 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
3085 | ||
3086 | * regex.c (re_compile_fastmap): While checking a range table for | |
3087 | `charset', skip flag bits for a character class correctly. | |
3088 | ||
52b8dbf9 GM |
3089 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
3090 | ||
d36100c9 GM |
3091 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
3092 | ||
52b8dbf9 GM |
3093 | * xfns.c (x_window): Call lw_create_widget with new parameter |
3094 | list. | |
3095 | ||
3096 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
3097 | because of problems with main window geometry management under | |
3098 | Lesstif. | |
3099 | ||
3100 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
3101 | MENU_ITEMS_ITEM_.*. | |
3102 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
3103 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
3104 | (single_menu_item, single_submenu, list_of_items): Call | |
3105 | push_menu_item with new parameter. | |
3106 | (single_submenu): Set help string in widget value. | |
3107 | (menu_highlight_callback): New function. | |
3108 | (set_frame_menubar): Call lw_create_widget with new | |
3109 | parameter list. | |
3110 | (xmenu_show, xdialog_show): Ditto. | |
3111 | ||
3139018f GM |
3112 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
3113 | ||
3114 | * sound.c (Fplay_sound): Improve doc string. | |
3115 | ||
83c8f461 RS |
3116 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
3117 | ||
3118 | * lisp.h (set_internal): Enter the new arg. | |
3119 | ||
3120 | * eval.c (specbind): Record buffer-local variables specially, | |
3121 | indicating which buffer's binding was saved. | |
3122 | (unbind_to): Restore buffer-local variables specially | |
3123 | in the proper buffer. | |
3124 | ||
3125 | * data.c (set_internal): New arg BUF. | |
3126 | ||
3127 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
3128 | * data.c (Fset): Pass new arg to set_internal. | |
3129 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
3130 | ||
1fab1775 GM |
3131 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
3132 | ||
3133 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
3134 | xprintsym. | |
3135 | ||
83c8f461 | 3136 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
3137 | |
3138 | * minibuf.c (Ftry_completion): Doc fix. | |
3139 | ||
7a85e4df GM |
3140 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
3141 | ||
3142 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
3143 | vector, too. | |
3144 | ||
a970dae4 AS |
3145 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
3146 | ||
3147 | * coding.c (code_convert_region): Initialize total_skip. | |
3148 | ||
c65d14ee DL |
3149 | 2000-01-08 Dave Love <fx@gnu.org> |
3150 | ||
3151 | * eval.c (Fuser_variable_p): Check customizability too. | |
3152 | ||
834938d2 GM |
3153 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
3154 | ||
3155 | * minibuf.c (Fcompleting_read): Doc fix. | |
3156 | ||
e0303cd6 GM |
3157 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
3158 | ||
8a26744b GM |
3159 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
3160 | -L /usr/local/lib. | |
3161 | ||
e0303cd6 GM |
3162 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
3163 | Check that input style is supported before trying to create an | |
3164 | IC for it. | |
3165 | (x_window): Call x_create_im. | |
3166 | ||
2e471eb5 GM |
3167 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
3168 | ||
560a7bd2 GM |
3169 | * xfns.c (current_gif_memory_src): New variable. |
3170 | (gif_load): Record the address of the current memory source | |
3171 | in current_gif_memory_src. | |
3172 | (gif_read_from_memory): Use current_gif_memory_src. | |
3173 | ||
f9ee84a3 GM |
3174 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
3175 | macros statement form. | |
3176 | ||
d1299cde GM |
3177 | * sound.c (struct sound): Renamed from struct sound_file. |
3178 | (struct sound): Add members `data' and `header_size'. | |
3179 | (enum sound_attr): Add SOUND_DATA. | |
3180 | (current_sound, current_sound_device): Variables renamed from | |
3181 | sound_file and sound_device. | |
3182 | (parse_sound): Parse :data. | |
3183 | (parse_sound): Handle sound data in strings. | |
3184 | (find_sound_type): Function renamed from find_sound_file_type. | |
3185 | (wav_init, au_init): Fail if sound's header_size is smaller than | |
3186 | needed header size. | |
3187 | (wav_play, au_play): Play sounds from string data. | |
3188 | ||
2e471eb5 GM |
3189 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
3190 | ||
3191 | * lisp.h: Add prototype for allocate_string_data. | |
3192 | ||
3193 | * alloc.c (Fgarbage_collect): Return number of live and free | |
3194 | strings. | |
3195 | ||
3196 | * alloc.c (mark_buffer): Remove code in #if 0. | |
3197 | (gc_sweep): Ditto. | |
3198 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
3199 | (strings_consed): New variable. | |
3200 | (allocate_string): Set it. | |
3201 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
3202 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
3203 | ||
3204 | * alloc.c: General cleanup in comments etc. Remove conditional | |
3205 | compilation for `standalone'. | |
3206 | ||
3207 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
3208 | ||
3209 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
3210 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
3211 | (DONT_COPY_FLAG): Removed. | |
3212 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
3213 | (struct sdata, struct sblock): New | |
3214 | (struct string_block): Rewritten. | |
3215 | (STRINGS_IN_STRING_BLOCK): New macro. | |
3216 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
3217 | (large_sblocks, string_blocks, string_free_list): New variables. | |
3218 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
3219 | (init_strings): Rewritten. | |
3220 | (allocate_string, allocate_string_data, compact_small_strings) | |
3221 | (free_large_strings, sweep_strings): New functions. | |
3222 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
3223 | (struct string_block_head, current_string_block) | |
3224 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
3225 | (STRING_PAD): Removed. | |
3226 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
3227 | (Fgarbage_collect): Don't set mark bit in large strings. | |
3228 | (mark_object): Mark strings differently. Mark symbol names | |
3229 | differently. | |
3230 | (survives_gc_p): Test marked strings differently. | |
3231 | (gc_sweep): Sweep strings differently, unmark strings in | |
3232 | symbol names. | |
3233 | (compact_strings): Removed. | |
3234 | ||
42608ba8 EZ |
3235 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
3236 | ||
3237 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
3238 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
3239 | ||
e0a09e1a KH |
3240 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
3241 | ||
dd9f0750 KH |
3242 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
3243 | in a non-empty buffer. | |
3244 | ||
3c0f3b15 | 3245 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 3246 | |
44cd3ae5 GM |
3247 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
3248 | ||
3249 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
3250 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
3251 | ||
3252 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
3253 | ||
c182a70f EZ |
3254 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
3255 | ||
3256 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
3257 | need to test for MSDOS frames. | |
3258 | ||
24480d5b EZ |
3259 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
3260 | ||
3261 | * dosfns.c (unspecified_colors): Remove. | |
3262 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
3263 | unspecified_bg. | |
3264 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
3265 | back-ground colors. | |
3266 | ||
3267 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 3268 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
3269 | (tty_color_name): Return Lisp strings for unspecified fore- and |
3270 | back-ground colors. | |
3271 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
3272 | for Qunspecified_{f,b}g. | |
3273 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
3274 | string. | |
3275 | ||
047f434a GM |
3276 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
3277 | ||
3278 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
3279 | newline only if ending up on a newline. | |
3280 | (next_element_from_ellipsis): Return success. Handle case of | |
3281 | displaying no ellipsis. Fix case of ellipsis defined in display | |
3282 | table. | |
3283 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
3284 | returns 0. | |
3285 | ||
d684c676 EZ |
3286 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
3287 | ||
3288 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
3289 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
3290 | ||
5fe1d139 EZ |
3291 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
3292 | ||
3293 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
3294 | list of colors renamed to tty-defined-color-alist. | |
3295 | (tty_color_name): Pass the frame to tty-color-by-index. | |
3296 | (realize_tty_face): tty-color-alist is now a function which | |
3297 | accepts the frame as argument. | |
3298 | ||
3299 | * term.c (Ftty_display_color_p): Accept an optional argument | |
3300 | FRAME. | |
3301 | ||
816be8b8 EZ |
3302 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
3303 | ||
3304 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
3305 | encode_terminal_code. | |
3306 | ||
b635321e EZ |
3307 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
3308 | ||
3309 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
3310 | ||
9b784e96 GM |
3311 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
3312 | ||
27189709 GM |
3313 | * syntax.c (Fforward_word): Undo previous change. |
3314 | ||
3315 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
3316 | inhibit-field-text-motion is non-nil. | |
3317 | (Fline_beginning_position): Undo previous change. | |
3318 | (Fline_end_position): Ditto. | |
3319 | ||
3320 | * syntax.c (Fforward_word): Notice field boundaries only if | |
3321 | inhibit-field-text-motion is nil. | |
3322 | ||
3323 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
3324 | ||
3325 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
3326 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
3327 | (Fline_beginning_position, Fline_end_position): Notice field | |
3328 | boundaries only if inhibit-field-text-motion is nil. | |
3329 | ||
45158a91 GM |
3330 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
3331 | All calls adjusted. | |
3332 | (x_build_heuristic_mask): Likewise. | |
3333 | (xbm_load_image_from_file): Change error output. | |
3334 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
3335 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
3336 | ||
9b784e96 GM |
3337 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
3338 | color indices when accessing raster pixels. | |
63cec32f GM |
3339 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
3340 | one of :file or :data. | |
3341 | (enum pbm_keyword_index): Add PBM_DATA. | |
3342 | (pbm_format): Add :data. | |
3343 | (pbm_image_p): Allow either :file or :data. | |
3344 | (pbm_read_file): New function. | |
3345 | (pbm_scan_number): Rewritten to read from string. | |
3346 | (pbm_load): Support :data. | |
9b784e96 | 3347 | |
5ad6a5fb GM |
3348 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
3349 | ||
3350 | * xfns.c: New image functions adapted to Emacs conventions. | |
3351 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
3352 | variable `file'. | |
3353 | ||
63448a4d WP |
3354 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
3355 | ||
3356 | * xfns.c (jpeg_format): Added the :data keyword | |
3357 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
3358 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
3359 | memory buffer. | |
3360 | (jpeg_load): Pay attention to the :data keyword if specified. | |
3361 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
3362 | found. | |
3363 | (png_format): Added the :data keyword | |
3364 | (png_image_p): PNG is valid with :file _or_ :data | |
3365 | (png_read_from_memory): New PNG read function to read from a | |
3366 | memory buffer. | |
3367 | (png_load): Pay attention to the :data keyword if specified. Uses | |
3368 | png_set_read_fn() instead of png_init_io() if specified. | |
3369 | (tiff_format): Added the :data keyword for TIFF images. | |
3370 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
3371 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
3372 | from a memory buffer. | |
3373 | (tiff_load): Pay attention to the :data keyword if specified. | |
3374 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
3375 | (gif_format): Added the :data keyword | |
3376 | (gif_image_p): GIF is valid with :file _or_ :data | |
3377 | (gif_read_from_memory): New GIF input function to read from a | |
3378 | memory buffer. | |
c65d14ee | 3379 | (gif_load): Pay attention to the :data keyword. Uses DGifOpen() |
63448a4d WP |
3380 | instead of DGifOpenFileName() if specified. |
3381 | ||
c880678e GM |
3382 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
3383 | ||
3384 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
3385 | because it doesn't hold when there's an overlay string at the end | |
3386 | from which we deliver an image. | |
3387 | ||
8ccb9a54 EZ |
3388 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
3389 | ||
3390 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
3391 | window for deleted windows. | |
3392 | ||
12ce2351 GM |
3393 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
3394 | ||
a915c648 GM |
3395 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
3396 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
3397 | the return value of the hook specify whether an expansion took | |
3398 | place. If it returns nil, no expansion has been performed. | |
3399 | ||
12ce2351 GM |
3400 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
3401 | differently. | |
3402 | ||
04ee4f45 EZ |
3403 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
3404 | ||
3405 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
3406 | ||
7f4bc0c3 EZ |
3407 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
3408 | ||
3409 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
3410 | ||
dac204bc GM |
3411 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
3412 | ||
3413 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
3414 | ||
7b712ad8 KH |
3415 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
3416 | ||
3417 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
3418 | to signal_after_change. | |
3419 | ||
adb9900f EZ |
3420 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
3421 | ||
41ad069b EZ |
3422 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
3423 | dimensions changed, invalidate the mouse highlight info. | |
3424 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
3425 | variables. | |
3426 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
3427 | (fast_find_position, IT_note_mode_line_highlight) | |
3428 | (IT_note_mouse_highlight): New functions. | |
3429 | (IT_update_begin): If the redisplay affects the window where the | |
3430 | mouse highlight is, clear the highlight. If the frame where the | |
3431 | highlight was displayed was killed, invalidate the highlight | |
3432 | info. | |
3433 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
3434 | highlight-defer flag. | |
3435 | (IT_frame_up_to_date): New function, if mouse highlight was | |
3436 | deferred due to GC, do it now. | |
3437 | (internal_terminal_init): Initialize mouse-highlight related | |
3438 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
3439 | frame_up_to_date_hook. | |
3440 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
3441 | help_echo changed value, generate a HELP_EVENT event. | |
3442 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
3443 | ||
adb9900f EZ |
3444 | * msdos.h (struct display_info): New. |
3445 | (struct x_output): Add the display_info member. | |
3446 | (FRAME_X_DISPLAY_INFO): New macro. | |
3447 | ||
481b5054 GM |
3448 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
3449 | ||
3450 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
3451 | if MODIFF > 1. | |
6448a6b3 | 3452 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
3453 | |
3454 | * buffer.c (modify_overlay): Always compute unchanged info. | |
3455 | ||
a2882b0d KH |
3456 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
3457 | ||
3458 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
3459 | ||
89ba5b5f KH |
3460 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
3461 | ||
3462 | The following changes are to use more bits for face IDs. | |
3463 | ||
3464 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
3465 | lowest 8 bits are single byte character code, the bits above are | |
3466 | face ID. | |
481b5054 | 3467 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 3468 | above. |
481b5054 GM |
3469 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
3470 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
3471 | |
3472 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
3473 | of GLYPH_MASK_CHAR. | |
3474 | ||
3475 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
3476 | of GLYPH_MASK_CHAR. | |
3477 | ||
3478 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
3479 | level members. Change members in union `u'. | |
3480 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
3481 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
3482 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
3483 | (CHAR_GLYPH_PADDING_P): Likewise. | |
3484 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
3485 | characters. | |
3486 | ||
481b5054 | 3487 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
3488 | for the change of struct glyph. |
3489 | (line_draw_cost): Adjusted for the change of | |
3490 | GLYPH_FROM_CHAR_GLYPH. | |
3491 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
3492 | ||
3493 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
3494 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 3495 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
3496 | change of struct glyph. |
3497 | ||
3498 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
3499 | ||
3500 | * xterm.c: All codes adjusted for the change of struct glyph. | |
3501 | ||
5bcd116c KH |
3502 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
3503 | ||
3504 | * composite.h (struct composition): Change the order of declaring | |
3505 | members to reduce the byte size of the structure. | |
3506 | ||
f21b06b7 GM |
3507 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
3508 | ||
3509 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
3510 | global data. | |
3511 | ||
e36557c9 KH |
3512 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
3513 | ||
3514 | * process.c (read_process_output): Fix the arg FROM to | |
3515 | update_compositions. | |
3516 | ||
83c8f461 | 3517 | 1999-12-22 Richard M. Stallman <rms@gnu.org> |
f7c9e039 RS |
3518 | |
3519 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
3520 | construct all the new text first, then insert all at once. | |
3521 | ||
0b863bd9 DL |
3522 | 1999-12-22 Dave Love <fx@gnu.org> |
3523 | ||
3524 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
3525 | ||
6d8e8ef3 GM |
3526 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
3527 | ||
28d7281d GM |
3528 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
3529 | lead to size changes to after the X window has been created. | |
3530 | ||
e22ef6eb | 3531 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
3532 | variable in xassert. |
3533 | ||
8affcced KH |
3534 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
3535 | ||
3536 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 3537 | only when the frame is not for a window system. |
8affcced | 3538 | |
f2be1146 GM |
3539 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
3540 | ||
deca1348 GM |
3541 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
3542 | redisplay after changing the multibyteness of a buffer. | |
3543 | ||
f2be1146 GM |
3544 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
3545 | frame's X window to XFilterEvent instead of None because that's | |
3546 | the X window for which the IC was created. This makes dead | |
3547 | accents work when the pointer is not in Emacs' frame. | |
3548 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
3549 | ||
a744a2ec DL |
3550 | 1999-12-20 Dave Love <fx@gnu.org> |
3551 | ||
3552 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
3553 | ||
9e6985ed GM |
3554 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
3555 | ||
3556 | * eval.c (debugger_may_continue): New variable. | |
3557 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
3558 | (call_debugger): Bind it. | |
3559 | ||
3b620731 EZ |
3560 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
3561 | ||
3562 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
3563 | fp->tty_reverse_p is set, unless the computed colors are identical | |
3564 | to frame colors. Print both original and computed colors to | |
3565 | termscript file. | |
3566 | (IT_write_glyphs): Track the changes in handling of composite | |
3567 | characters. | |
3568 | (IT_set_frame_parameters): Don't set frame colors from | |
3569 | unspecified-fg and unspecified-bg pseudo-colors. | |
3570 | ||
0f9a51c4 DL |
3571 | 1999-12-17 Dave Love <fx@gnu.org> |
3572 | ||
3573 | * data.c (Fkeywordp): New function. | |
3574 | (syms_of_data): Install it. | |
3575 | ||
363e4e42 EZ |
3576 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
3577 | ||
3578 | * xfaces.c (tty_defined_color): Fix last change. | |
3579 | ||
cfad01b4 GM |
3580 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
3581 | ||
3582 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
3583 | that window start is in [BEGV..ZV]. | |
3584 | ||
f9d2fdc4 EZ |
3585 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
3586 | ||
3587 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
3588 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
3589 | ||
3590 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
3591 | (syms_of_xfaces): Initialize and staticpro them. | |
3592 | (tty_defined_color): If the color name is unspecified-fg or | |
3593 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
3594 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
3595 | (tty_color_name): If the color pixel value is either | |
3596 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
3597 | Qunspecified_fg or Qunspecified_bg, respectively. | |
3598 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
3599 | and Qunspecified_bg for foreground and background colors. | |
3600 | (realize_default_face): If the foreground and background colors | |
3601 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
3602 | (realize_tty_face): By default, set the face colors to | |
3603 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
3604 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
3605 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
3606 | Reverse the colors if the default colors were reversed. | |
3607 | ||
3608 | * dispnew.c (init_display): Initialize the frame pixels of the | |
3609 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
3610 | FACE_TTY_DEFAULT_BG_COLOR. | |
3611 | ||
3612 | * term.c (turn_on_face): If the default fore- and background | |
3613 | colors are reversed, enter inverse video mode. Don't send color | |
3614 | escape sequences for unspecified foreground and background colors. | |
3615 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
3616 | ||
3617 | * dosfns.c (unspecified_colors): New variable. | |
3618 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
3619 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
3620 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
3621 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
3622 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
3623 | Qunspecified_bg, respectively. | |
3624 | ||
3625 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
3626 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
3627 | ||
e19539f1 KH |
3628 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
3629 | ||
3630 | * coding.c (code_convert_region): Fix the secoding arg to | |
3631 | update_compositions. | |
3632 | ||
5ec14d3c KH |
3633 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
3634 | ||
3635 | The following changes are for the new composition mechanism. We | |
3636 | have deleted `composition' charset and composite characters, | |
3637 | instead introduced a special text property `composition'. | |
3638 | ||
3639 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
3640 | (INTERVAL_OBJ): Include composite.o. | |
3641 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
3642 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
3643 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
3644 | Depend on composite.h. | |
3645 | (doc.o): Depend on charset.h. | |
3646 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
3647 | (composite.o): New target. | |
3648 | ||
3649 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
3650 | ||
3651 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
3652 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
3653 | output should be decoded. | |
3654 | ||
3655 | * casefiddle.c: Include composite.h. | |
3656 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
3657 | multibyte character. Adjusted for the change of CHAR_STRING. | |
3658 | (casify_region): Likewise. Call update_compositions. | |
3659 | ||
3660 | * category.h (CATEGORY_SET): Delete codes for a composite | |
3661 | character. | |
3662 | ||
3663 | * category.c (word_boundary_p): Delete codes for a composite | |
3664 | character. | |
3665 | (Fmake_category_table): New function. | |
3666 | (syms_of_category): Defsubr it. | |
3667 | ||
3668 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
3669 | (ccl_driver): Delete codes for a composite character. | |
3670 | ||
3671 | * charset.h: In this entry, just `Modified' means that codes for a | |
3672 | composite character is deleted. | |
3673 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
3674 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
3675 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
3676 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
3677 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
3678 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
3679 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
3680 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
3681 | Modified. | |
3682 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
3683 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
3684 | non_ascii_char_to_string. | |
3685 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
3686 | (STRING_CHAR_AND_LENGTH): Likewise. | |
3687 | (FETCH_CHAR_ADVANCE): New macro. | |
3688 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
3689 | (MAX_MULTIBYTE_LENGTH): New macro. | |
3690 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
3691 | (find_charset_in_str): Argument adjusted. | |
3692 | (CHAR_LEN): Modified. | |
3693 | ||
3694 | * charset.c: In this entry, just `Modified' means that codes for a | |
3695 | composite character is deleted. | |
3696 | (Qcomposition) (leading_code_composition) | |
3697 | (charset_composition) (min_composite_char) (cmpchar_table) | |
3698 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
3699 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
3700 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
3701 | (char_to_string): Renamed from non_ascii_char_to_string. | |
3702 | Modified. | |
3703 | (string_to_char): Renamed from string_to_non_ascii_char. | |
3704 | (split_string): Renamed from split_non_ascii_string. | |
3705 | (char_printable_p) (Fsplit_char) | |
3706 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
3707 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
3708 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
3709 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
3710 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
3711 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
3712 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
3713 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
3714 | (Fcmpchar_cmp_count): Deleted. | |
3715 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
3716 | (init_charset_once): Modified. | |
3717 | (syms_of_charset): Modified. | |
3718 | ||
3719 | * cmds.c (internal_self_insert): Adjusted for the change of | |
3720 | CHAR_STRING. | |
3721 | ||
3722 | * coding.h (emacs_code_class_type): Delete the member | |
3723 | EMACS_leading_code_composition. | |
3724 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
3725 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
3726 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
3727 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
3728 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
3729 | macros. | |
3730 | (struct composition_data): New structure. | |
3731 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
3732 | (struct coding_system): New members composition_rule_follows, | |
3733 | cmp_data, cmp_data_start, cmp_data_index. | |
3734 | (coding_save_composition) (coding_free_composition_data) | |
3735 | (coding_adjust_composition_offset): Extern them. | |
3736 | ||
3737 | * coding.c: Include composite.h. | |
3738 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
3739 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
3740 | of multibyte code here. | |
3741 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
3742 | (detect_coding_emacs_mule): Change the case label from | |
3743 | EMACS_leading_code_composition to 0x80. | |
3744 | (detect_coding_iso2022): Handle new composition sequence. | |
3745 | (DECODE_ISO_CHARACTER): Likewise. | |
3746 | (check_composing_code): Deleted. | |
3747 | (coding_allocate_composition_data): New function. | |
3748 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
3749 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
3750 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
3751 | (decode_coding_iso2022): Handle new composition sequence. | |
3752 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
3753 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
3754 | (ENCODE_COMPOSITION_NO_RULE_START) | |
3755 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
3756 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
3757 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
3758 | (encode_coding_iso2022): Handle new composition sequence. | |
3759 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
3760 | (encode_coding_sjis_big5): Ignore composition. | |
3761 | (setup_coding_system): Initialize new members of struct | |
3762 | coding_system. Enable composition only when the coding system has | |
3763 | `composition' property t. | |
3764 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
3765 | (coding_save_composition) (coding_restore_composition): New | |
3766 | functions. | |
3767 | (code_convert_region): Call coding_save_composition for encoding | |
3768 | and coding_allocate_composition_data for decoding. Don't skip | |
3769 | ASCII characters if we handle composition on encoding. Call | |
3770 | signal_after_change with Check_BORDER. | |
3771 | (code_convert_string): Call coding_save_composition for encoding | |
3772 | and coding_allocate_composition_data for decoding. Don't skip | |
3773 | ASCII characters if we handle composition on encoding. | |
3774 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
3775 | code_convert_string. | |
3776 | (code_convert_string_norecord): Disable composition. | |
3777 | (Fset_terminal_coding_system_internal): Likewise. | |
3778 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
3779 | (Fset_keyboard_coding_system_internal): Likewise. | |
3780 | (init_coding_once): Set emacs_code_class[0x80] to | |
3781 | EMACS_invalid_code. | |
3782 | ||
3783 | * composite.h: New file. | |
3784 | ||
3785 | * composite.c: New file. | |
3786 | ||
3787 | * data.c (Faref): Delete codes for a composite character.. | |
3788 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
3789 | ||
3790 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
3791 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
3792 | (enum display_element_type): New member IT_COMPOSITION. | |
3793 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
3794 | (struct it): New members cmp_id, cmp_len. | |
3795 | ||
3796 | * dispnew.c (direct_output_forward_char): Check point moving into | |
3797 | or out of a composition. If so, give up direct method. | |
3798 | ||
3799 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
3800 | ||
3801 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
3802 | CHAR_STRING. | |
3803 | (general_insert_function): Likewise. | |
3804 | (Finsert_char): Likewise. | |
3805 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
3806 | (Ftranslate_region): Call update_compositions. | |
3807 | (Ftranspose_regions): Call update_compositions. | |
3808 | ||
3809 | * emacs.c (main): Call syms_of_composite. | |
3810 | ||
3811 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
3812 | CHAR_STRING. | |
3813 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
3814 | calling signal_after_change. Call update_compositions if some | |
3815 | texts are inserted.. | |
3816 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
3817 | (a_write): Argument changed. Work based on character position, | |
3818 | not byte position. | |
3819 | (e_write): Argument changed. Handle new way of composition. | |
3820 | ||
3821 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
3822 | (concat): Adjusted for the change of CHAR_STRING. | |
3823 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
3824 | (Fset_char_table_default): Delete codes for a composite character. | |
3825 | (hash_put): Return hash index. | |
3826 | ||
3827 | * fontset.h (struct font_info): New member vertical_centering. | |
3828 | (Vvertical_centering_font_regexp): Extern it. | |
3829 | ||
3830 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
3831 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
3832 | Set Vignore_relative_composition to nil. | |
3833 | (fs_load_font): Initialize `vertical_centering' of struct | |
3834 | font_info. | |
3835 | ||
3836 | * indent.c (check_composition): New function. | |
3837 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
3838 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
3839 | (current_column_1): Handle new way of composition. | |
3840 | (Fmove_to_column): Likewise. | |
3841 | (compute_motion): Likewise. | |
3842 | ||
3843 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
3844 | (insert_char): Likewise. | |
3845 | (insert): Call update_compositions. | |
3846 | (insert_and_inherit): Likewise. | |
3847 | (insert_before_markers): Likewise. | |
3848 | (insert_before_markers_and_inherit): Likewise. | |
3849 | (insert_from_string): Likewise. | |
3850 | (insert_from_string_before_markers): Likewise. | |
3851 | (insert_from_buffer): Likewise. | |
3852 | (replace_range): Likewise. | |
3853 | (count_combining_composition): Deleted. | |
3854 | (count_combining_before): Delete codes for a composite character. | |
3855 | (count_combining_after): Likewise. | |
3856 | (del_range_1): Call update_compositions. | |
3857 | (del_range_byte): Likewise. | |
3858 | (del_range_both): Likewise. | |
3859 | (Fcombine_after_change_execute): Likewise. | |
3860 | ||
3861 | * intervals.h: Include composite.h. | |
3862 | (get_property_and_range): Extern it. | |
3863 | (Vtext_property_default_nonsticky): Extern it. | |
3864 | ||
3865 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
3866 | of properties, pay attention to text-property-default-nonsticky. | |
3867 | (merge_properties_sticky): Likewise. | |
3868 | (get_property_and_range): New function. | |
3869 | ||
3870 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
3871 | (Vglobal_disable_point_adjustment): New variable. | |
3872 | (syms_of_keyboard): Declare them as Lisp variables. | |
3873 | (command_loop_1): Check them and call adjust_point_for_property if | |
3874 | necessary. | |
3875 | (adjust_point_for_property): New function. | |
3876 | ||
3877 | * keymap.c (push_key_description): Adjusted for the change of | |
3878 | CHAR_STRING. | |
3879 | (Ftext_char_description): Likewise. | |
3880 | ||
3881 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
3882 | (hash_put): Adjusted for the change of the definition. | |
3883 | (signal_after_change): Likewise. | |
3884 | (check_point_in_composition): Extern it. | |
3885 | ||
3886 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
3887 | Delete a code that handles an invalid too-long multibyte sequence | |
3888 | because we are now sure that we never encounter with such a | |
3889 | sequence. | |
3890 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
3891 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
3892 | (init_obarray): Likewise. | |
3893 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
3894 | ||
3895 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
3896 | ||
3897 | * process.c: Include composite.h. | |
3898 | (read_process_output): Call update_compositions. | |
3899 | ||
3900 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
3901 | ||
3902 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
3903 | ||
3904 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
3905 | character. | |
3906 | ||
3907 | * term.c (encode_terminal_code): Delete codes for a composite | |
3908 | character. Adjusted for the change of CHAR_STRING. | |
3909 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
3910 | Delete codes for a composite character. | |
3911 | ||
3912 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
3913 | (syms_of_textprop): Declare it as a Lisp variable. | |
3914 | ||
3915 | * window.c (Frecenter): Clear all caches of compositions. | |
3916 | ||
3917 | * xdisp.c (it_props): Add an entry for composition. | |
3918 | (face_before_or_after_it_pos): For composition, check face of a | |
3919 | character after the composition. | |
3920 | (handle_composition_prop): New function. | |
3921 | (get_next_display_element): Adjusted for the change of | |
3922 | CHAR_STRING. | |
3923 | (set_iterator_to_next): Handle the case that it->method == | |
3924 | next_element_from_composition. | |
3925 | (next_element_from_composition): New function. | |
3926 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
3927 | (set_message_1): Likewise. | |
3928 | (check_point_in_composition): New function. | |
3929 | (reconsider_clip_changes): If point moved into or out of | |
3930 | composition, set b->clip_changed to 1 to force updating of the | |
3931 | screen. | |
3932 | (disp_char_vector): Delete codes for a composite character. | |
3933 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
3934 | ||
3935 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
3936 | composite character. | |
3937 | (realize_x_face): Likewise. Change a place to set local variable | |
3938 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
3939 | ||
3940 | * xfns.c: Include intervals.h. | |
3941 | (syms_of_xfns): Make `display' property nonsticky by default. | |
3942 | ||
3943 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
3944 | for find_charset_in_str. | |
3945 | ||
3946 | * xterm.h (struct x_output): Change member font_baseline to | |
3947 | baseline_offset. | |
3948 | ||
3949 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
3950 | for composition. | |
3951 | (x_append_composite_glyph): New function. | |
3952 | (VCENTER_BASELINE_OFFSET): New macro. | |
3953 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
3954 | of struct it for the composition. Cache pixel offsets in the | |
3955 | struct composition. Delete codes for a composite character. | |
3956 | Handle Vignore_relative_composition in composition code. | |
3957 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
3958 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
3959 | (x_compute_glyph_string_overhangs): Likewise. | |
3960 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
3961 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
3962 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
3963 | checking s->gidx for a composition. | |
3964 | (x_draw_glyph_string_foreground): Delete code for a composite | |
3965 | character. | |
3966 | (x_draw_composite_glyph_string_foreground): New function. | |
3967 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
3968 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
3969 | (struct work): Deleted. | |
3970 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
3971 | rewritten for that. | |
3972 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
3973 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
3974 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
3975 | (BUILD_GLYPH_STRINGS): For composition, call | |
3976 | BUILD_COMPOSITE_GLYPH_STRING. | |
3977 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
3978 | f->output_data.x->font_baseline. | |
3979 | ||
c3c60f13 GM |
3980 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
3981 | ||
3982 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
3983 | TEXT_AREA. | |
3984 | ||
83c8f461 | 3985 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
3986 | |
3987 | * minibuf.c (Fall_completions): Doc fix. | |
3988 | ||
83c8f461 | 3989 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
3990 | |
3991 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
3992 | has been changed by the Lisp code. | |
3993 | ||
d8eccf12 GM |
3994 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
3995 | ||
3996 | * xfns.c: Indentation fixes. | |
3997 | ||
ae56feae SM |
3998 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
3999 | ||
4000 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
4001 | ||
dfa1c6ae GM |
4002 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
4003 | ||
4004 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
4005 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
4006 | ||
4007 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
4008 | to frame.h. | |
4009 | ||
ec18280f SM |
4010 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
4011 | ||
4012 | * keyboard.c (Qratio): New symbol. | |
4013 | (scroll_bar_parts): Add `Qratio' to it. | |
4014 | (syms_of_keyboard): Init `Qratio'. | |
4015 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
4016 | * xterm.c (#includes): Allow compilation with only Xaw. | |
4017 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
4018 | (xt_action_hook): Replace XAW3D by XAW. | |
4019 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
4020 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
4021 | Determine epsilon dynamically and don't try to be too clever. | |
4022 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
4023 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
4024 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
4025 | scrollbar (using `ratio'). | |
4026 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
4027 | scrollbar we have so as to set it up more optimally and to fix | |
4028 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
4029 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
4030 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
4031 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
4032 | is not ignored, using a major gross hack. | |
4033 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
4034 | xaw3d_pick_top. | |
4035 | ||
83b6d970 DL |
4036 | 1999-12-09 Dave Love <fx@gnu.org> |
4037 | ||
4038 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
4039 | ||
3648c842 GM |
4040 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
4041 | ||
4042 | * eval.c: Remove conditional compilation on `standalone'. | |
4043 | (call_debugger): When entering the debugger while redisplaying, | |
4044 | reset redisplaying_p, and go back to the top-level if the debugger | |
4045 | returns. | |
4046 | ||
05e71564 GM |
4047 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
4048 | ||
4049 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
4050 | basic faces are realized before trying to use face `menu'. | |
4051 | ||
4052 | * window.c (delete_window): Block input for the time window | |
4053 | matrices are being changed. | |
4054 | ||
b46cd536 DL |
4055 | 1999-12-07 Dave Love <fx@gnu.org> |
4056 | ||
4057 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
4058 | ||
96acb1f7 GM |
4059 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
4060 | ||
4061 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
4062 | duplicate definition of ElfW. | |
4063 | (find_section): Copied from unexsgi.c. | |
4064 | (unexec): Use find_section. Adjust whitespace. Initialize | |
4065 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
4066 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
4067 | Adjust test for presence of .mdebug section to the new return | |
4068 | value of find_section. | |
4069 | ||
4070 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
4071 | ||
4072 | * unexelf.c: Merge changes from 20.5. | |
4073 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
4074 | ||
4075 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
4076 | unexsgi.o again. | |
4077 | ||
4078 | * m/iris5d.h (UNEXEC): Likewise. | |
4079 | ||
7dae4502 SM |
4080 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
4081 | ||
4082 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
4083 | (syms_of_editfns): Register it. |
4084 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
4085 | (del_range_1, del_range_2): Add a ret_string argument to |
4086 | request that the deleted text be returned. | |
4087 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 4088 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
4089 | * casefiddle.c (casify_region): Update del_range_1 call. |
4090 | * coding.c (code_convert_region): Update del_range_2 call. | |
4091 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
4092 | ||
397e4fae GM |
4093 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
4094 | ||
4095 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
4096 | ||
3d973f71 GM |
4097 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
4098 | ||
4099 | * lread.c (Fintern_soft): Accept a symbol argument. | |
4100 | ||
740e985f EZ |
4101 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
4102 | ||
4103 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
4104 | |
4105 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
4106 | ||
2d764c78 EZ |
4107 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
4108 | ||
4109 | Changes for automatic remapping of X colors on terminal frames: | |
4110 | ||
4111 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
4112 | frames. | |
4113 | (Vface_tty_color_alist): Remove. | |
4114 | (tty_defined_color): New function. | |
4115 | (defined_color): Rewrite to support any type of frame. | |
4116 | (tty_color_name): New function. | |
4117 | (face_color_supported_p, Fface_color_gray_p, | |
4118 | Fface_color_supported_p): Support non-X frames. | |
4119 | (load_color): Enclose the color name in quotes, in the log | |
4120 | messages. Remove DOS-specific version of load_color. | |
4121 | (realize_tty_face): Take the supported colors from | |
4122 | tty-color-alist. Support translation of X colors to the closest | |
4123 | tty color, for both MSDOS and tty frames. | |
4124 | [MSDOS]: Don't invert face colors if they were taken from the | |
4125 | frame colors. | |
4126 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
4127 | ||
4128 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
4129 | Define a mostly empty surrogate. | |
4130 | (tty_display): Declare. | |
4131 | ||
4132 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
4133 | tty_display. | |
4134 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
4135 | frames when the frame's param_alist includes 'reverse. | |
4136 | (tty_display): Define. | |
4137 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
4138 | output_data.x member. | |
4139 | (Fframe_parameters): Return foreground and background color names | |
4140 | on tty frames as well, in addition to MSDOS frames. | |
4141 | ||
4142 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
4143 | selected_frame. | |
4144 | (struct x_output): Remove unused members; document who uses each | |
4145 | member. | |
4146 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
4147 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
4148 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
4149 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
4150 | unused macro definintions. | |
4151 | ||
4152 | * msdos.c (IT_set_frame_parameters): Don't call | |
4153 | recompute_basic_faces, the next redisplay will, anyway. | |
4154 | (x_current_display): Remove unused variable. | |
4155 | Many functions: changes for Lisp_object selected_frame. | |
4156 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
4157 | reverse the foreground and background colors. | |
4158 | (Fmsdos_remember_default_colors): New function. | |
4159 | (syms_of_msdos): Defsubr it. | |
4160 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
4161 | creating a new frame. If the frame parameters include 'reverse, | |
4162 | swap the foreground and background colors. | |
4163 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
4164 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
4165 | cus-start.el. | |
4166 | ||
4167 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
4168 | ||
4169 | * xfns.c (x_defined_color): Rename from defined_color. All | |
4170 | callers changed. | |
4171 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
4172 | all callers changed. | |
4173 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
4174 | changed. | |
4175 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
4176 | callers changed. | |
4177 | (x_window_to_frame, x_any_window_to_frame, | |
4178 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
4179 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
4180 | f->output_data.nothing. | |
4181 | * xterm.h (x_defined_color): Rename from defined_color. | |
4182 | ||
4183 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
4184 | f->output_data.nothing. | |
4185 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
4186 | all callers changed. | |
4187 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
4188 | changed. | |
4189 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
4190 | callers changed. | |
4191 | ||
4192 | * dispextern.h (tty_color_name): Add prototype. | |
4193 | ||
4194 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
4195 | f->output_data.nothing. | |
4196 | * w32menu.c (menubar_id_to_frame): Likewise. | |
4197 | * w32term.h (w32_output): Declare. | |
4198 | ||
4199 | * dosfns.c (Qmsdos_color_translate): Remove. | |
4200 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
4201 | * dosfns.h (Qmsdos_color_translate): Remove. | |
4202 | ||
4203 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
4204 | ||
b3e5232e KH |
4205 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
4206 | ||
4207 | * fileio.c (decide_coding_unwind): Renamed from | |
4208 | set_auto_coding_unwind. | |
4209 | (Finsert_file_contents): Make single unwind protect to call both | |
4210 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
4211 | ||
4212 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
4213 | ||
db0e466c SM |
4214 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
4215 | ||
4216 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
4217 | operators and handle them properly. | |
4218 | * regex.h (RE_ALL_GREEDY): New option. | |
4219 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
4220 | sorting would put it. | |
4221 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
4222 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
4223 | ||
22afa6e8 DL |
4224 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
4225 | ||
4226 | * m/arm.h: New file. | |
4227 | ||
40afb967 DL |
4228 | 1999-12-03 Dave Love <fx@gnu.org> |
4229 | ||
4230 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
4231 | ||
ddf8eff5 GM |
4232 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
4233 | ||
4234 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
4235 | for building with Motif. | |
4236 | ||
4237 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
4238 | unexelf.o. | |
4239 | ||
4240 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
4241 | ||
fa09a82d DL |
4242 | 1999-12-01 Dave Love <fx@gnu.org> |
4243 | ||
4244 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
4245 | ||
ddf8eff5 GM |
4246 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
4247 | ||
4248 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
4249 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
4250 | macros. | |
4251 | ||
4252 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
4253 | ||
fa09a82d DL |
4254 | 1999-11-28 eliz <eliz@dlpx1> |
4255 | ||
4256 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
4257 | pointer type mismatch. | |
4258 | ||
f9632fc8 GM |
4259 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
4260 | ||
717d0121 GM |
4261 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
4262 | out of range position. | |
4263 | ||
f9632fc8 GM |
4264 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
4265 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
4266 | ||
59c65f1e EZ |
4267 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
4268 | ||
613a8346 EZ |
4269 | * charset.c (Fmake_char_internal): Print the charset ID when |
4270 | signalling an error. | |
4271 | ||
59c65f1e EZ |
4272 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
4273 | pointer type mismatch. | |
4274 | ||
83c8f461 | 4275 | 1999-11-26 Richard M. Stallman <rms@gnu.org> |
d01f3570 RS |
4276 | |
4277 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
4278 | ||
18df9369 GM |
4279 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
4280 | ||
65a3ccf7 GM |
4281 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
4282 | ||
b3b98592 GM |
4283 | * textprop.c (set_text_properties): New function. Like |
4284 | Fset_text_properties, but with additional parameter | |
4285 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
4286 | changes. | |
4287 | (Fset_text_properties): Use it. | |
4288 | ||
4289 | * insdel.c (insert_1_both): Call set_text_properties with last | |
4290 | parameter nil so that no after changes will be signaled. | |
4291 | ||
4292 | * lisp.h: Add prototype for set_text_properties. | |
4293 | ||
18df9369 GM |
4294 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
4295 | (recompute_basic_faces): Change assert to abort. | |
4296 | ||
71a8e74b DL |
4297 | 1999-11-25 Dave Love <fx@gnu.org> |
4298 | ||
4299 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
4300 | (Fmember, Fdelq, Fdelete): Inline car. | |
4301 | (Fy_or_n_p): Doc fix. | |
4302 | ||
bc6a5782 GM |
4303 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
4304 | ||
3221576b | 4305 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 4306 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
4307 | is not set, try to use a reasonable default. |
4308 | ||
bc6a5782 GM |
4309 | * dispnew.c (direct_output_for_insert): Set glyph row's |
4310 | displays_text_p flag. Correct window's window_end_vpos if | |
4311 | necessary. | |
4312 | ||
0c8559bb PE |
4313 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
4314 | ||
4315 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
4316 | (synchronize_locale): If the desired locale is nil, | |
4317 | treat it as if it were the empty string, | |
4318 | so that we set the locale from the environment. | |
4319 | ||
35737351 KH |
4320 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
4321 | ||
4322 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
4323 | of the current buffer via Fset. | |
4324 | ||
5562b47f DL |
4325 | 1999-11-24 Dave Love <fx@gnu.org> |
4326 | ||
4327 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
4328 | ||
4329 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
4330 | ||
4331 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
4332 | ||
00da0e4a GM |
4333 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
4334 | ||
4335 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
4336 | ||
4337 | * emacs.c (PVEC_FLAG): New variable. | |
4338 | ||
b1775dc1 GM |
4339 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
4340 | ||
4341 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
4342 | that fails on IBM PowerPC, AIX 4.2. | |
4343 | ||
08de6200 EZ |
4344 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
4345 | ||
4346 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
4347 | string of mode-line-format. Remove the obsolete %t. | |
4348 | ||
02fda8ff GM |
4349 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
4350 | ||
f2fa858f GM |
4351 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
4352 | for glyphs from buffer text only. | |
4353 | ||
02fda8ff GM |
4354 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
4355 | (gdb_data_seg_bits): New variables. | |
4356 | ||
4357 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
4358 | work on systems not allowing enumerators > INT_MAX, and it | |
4359 | won't work if EMACS_INT is long long. | |
4360 | ||
1b0d24e7 PE |
4361 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
4362 | ||
4363 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
4364 | Rename messages-locale to system-messages-locale, | |
4365 | and likewise for time-locale. | |
4366 | ||
4367 | * callproc.c (strerror): Remove decl. | |
4368 | * fileio.c (strerror): Likewise. | |
4369 | * process.c (strerror): Likewise. | |
4370 | * emacs.c (strerror): Likewise. | |
4371 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
4372 | All uses changed. | |
4373 | (Vprevious_system_messages_locale): Likewise, from | |
4374 | Vprevious_messages_locale. | |
4375 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
4376 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
4377 | (ABORT_RETURN_TYPE): New macro. | |
4378 | (abort): Return type is now ABORT_RETURN_TYPE. | |
4379 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
4380 | defined. | |
4381 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
4382 | previous-messages-locale -> previous-system-messages-locale, | |
4383 | time-locale -> system-time-locale, | |
4384 | previous-time-locale -> previous-system-time-locale. | |
4385 | ||
4386 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
4387 | (const): Do not define; that's config.h's job. | |
4388 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
4389 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
4390 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
4391 | (FREE_RETURN_TYPE): New macro. | |
4392 | (free): Return type is now FREE_RETURN_TYPE. | |
4393 | ||
4394 | * lisp.h (synchronize_system_time_locale): Renamed from | |
4395 | synchronize_time_locale. All uses changed. | |
4396 | (synchronize_system_messages_locale): Likewise, from | |
4397 | synchronize_messages_locale. | |
4398 | ||
4399 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
4400 | stdlib.h now does this. | |
4401 | ||
4402 | * process.c (sys_siglist): Remove. | |
4403 | ||
4404 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
4405 | New macros. | |
4406 | ||
4407 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
4408 | ||
4409 | * sysdep.c (my_sys_siglist): New var. | |
4410 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
4411 | (init_signals): Initialize sys_siglist. | |
4412 | ||
4413 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
4414 | ||
0dcd5b54 DL |
4415 | 1999-11-18 Dave Love <fx@gnu.org> |
4416 | ||
946173ad DL |
4417 | * filelock.c: Add forward declaration for get_boot_time_1. |
4418 | ||
0dcd5b54 DL |
4419 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
4420 | ||
71447e8f GM |
4421 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
4422 | ||
4423 | * buffer.h (struct buffer_text): Add comment about moving | |
4424 | buffer text if REL_ALLOC is defined. | |
4425 | ||
eeedff63 KH |
4426 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
4427 | ||
4428 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
4429 | ||
4430 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
4431 | memory for push_key_description. | |
4432 | ||
4433 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
4434 | allocate memory for push_key_description. | |
4435 | (describe_buffer_bindings): Likewise. | |
4436 | ||
5d7e4a2c GM |
4437 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
4438 | ||
4439 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
4440 | (Fx_hide_busy_cursor): Ditto. | |
4441 | ||
4442 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
4443 | ||
4444 | * unexsni.c (unexec): Handle .rel.dyn section. | |
4445 | ||
b5b41e02 DL |
4446 | 1999-11-16 Dave Love <fx@gnu.org> |
4447 | ||
4448 | * doc.c (Fdocumentation): Remove gcpro here too. | |
4449 | ||
e35b6123 GM |
4450 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
4451 | ||
4452 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
4453 | ||
83c8f461 | 4454 | 1999-11-16 Richard M. Stallman <rms@gnu.org> |
0a14b9bb GM |
4455 | |
4456 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
4457 | in noninteractive. | |
4458 | ||
b05d3bee GM |
4459 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
4460 | ||
5bcfeb49 GM |
4461 | * xdisp.c (ensure_echo_area_buffers): New. |
4462 | (with_echo_area_buffer): Use it. | |
4463 | (setup_echo_area_for_printing): Ditto. | |
4464 | ||
b05d3bee GM |
4465 | * buffer.c (indicate-empty-lines): Doc-fix. |
4466 | ||
9b2e6e4c GM |
4467 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
4468 | ||
e7f90eab GM |
4469 | * term.c (term_init): If "op" isn't available, don't support color |
4470 | because we can't switch back to the default foreground and | |
4471 | background. | |
4472 | ||
9b2e6e4c GM |
4473 | * doc.c (Fdocumentation_property): Remove GCPRO because |
4474 | Fsubstitute_command_keys gcpro's the string. | |
4475 | ||
1bf21027 KH |
4476 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
4477 | ||
4478 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
4479 | ||
3bc6df53 GM |
4480 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
4481 | ||
4482 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
4483 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
4484 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
4485 | ||
35a5514b GM |
4486 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
4487 | ||
4488 | * xfns.c (QCuser_data): Removed. | |
4489 | (syms_of_xfns): Initialization of QCuser_data removed. | |
4490 | (parse_image_spec): Don't handle :user-data specially. Allow | |
4491 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
4492 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
4493 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
4494 | parse_image_spec accordingly. | |
4495 | ||
83c8f461 | 4496 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
4497 | |
4498 | * cmds.c (Fbeginning_of_line): Doc fix. | |
4499 | (Fend_of_line): Doc fix. | |
4500 | ||
4501 | * editfns.c (Fline_beginning_position): If N is not 1, | |
4502 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
4503 | ||
4504 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
4505 | an edge of the buffer. Return nil if affected by fields. | |
4506 | ||
83c8f461 | 4507 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
4508 | |
4509 | * editfns.c (preceding_pos): Function deleted. | |
4510 | (text_property_stickiness): Decrement POS directly. | |
4511 | Fix a confusion that used PT instead of POS. | |
4512 | ||
4513 | * editfns.c (find_field): Properly handle the case | |
4514 | of a field boundary where `field' inherits from neither side. | |
4515 | ||
4516 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
4517 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
4518 | ||
fa9aabf6 GM |
4519 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
4520 | ||
4521 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
4522 | BEFORE_POTENTIAL_GC before DISCARD. | |
4523 | ||
4015b3c0 GM |
4524 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
4525 | ||
033a5fa3 GM |
4526 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
4527 | ||
4528 | * lisp.h: Add prototype for unmark_byte_stack. | |
4529 | ||
4530 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
4531 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
4532 | XUNMARK. | |
4533 | ||
55b064bd GM |
4534 | * xdisp.c (resize_mini_window): Fix computation of needed |
4535 | mini-window height. | |
4536 | ||
4537 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
4538 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 4539 | |
4015b3c0 | 4540 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
60af03f1 | 4541 | locally there. Rearrange case statements so that those most |
4015b3c0 GM |
4542 | frequently executed come first. Avoid goto's in frequently |
4543 | executed cases. | |
4544 | ||
fe512f27 GM |
4545 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
4546 | ||
dd59e217 GM |
4547 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
4548 | AFTER_POTENTIAL_GC around internal_catch. | |
4549 | ||
bcf28080 GM |
4550 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
4551 | relocate_byte_pcs. | |
4552 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
4553 | ||
4554 | * eval.c (struct catchtag): Add member byte_stack. | |
4555 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 4556 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
4557 | catchtag. |
4558 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
4559 | ||
4560 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
4561 | Add extern declaration for byte_stack_list. | |
4562 | ||
4563 | * bytecode.c (struct byte_stack): New. | |
4564 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
4565 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
4566 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
4567 | (HANDLE_RELOCATION): Removed. | |
4568 | (Fbyte_code): Use byte_stack structures. | |
4569 | ||
4d59c34c GM |
4570 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
4571 | ||
fe512f27 GM |
4572 | * buffer.c (syms_of_buffer): Extend documentation of |
4573 | mode-line-format. | |
4574 | ||
60b64cd6 GM |
4575 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
4576 | ||
4577 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
4578 | ||
4579 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
4580 | Ferase_field instead of Fdelete_field. | |
4581 | ||
b51b619b GM |
4582 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
4583 | ||
4584 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
4585 | cursor on/off, not toggle its state. | |
4586 | (Finternal_show_cursor_p): New. | |
4587 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
4588 | ||
5865af0d DL |
4589 | 1999-11-03 Dave Love <fx@gnu.org> |
4590 | ||
4591 | * charset.c (split_non_ascii_string): Define return value. | |
4592 | ||
82a700f3 GM |
4593 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
4594 | ||
edfef199 GM |
4595 | * minibuf.c (string_to_object): New. |
4596 | (read_minibuf_noninteractive): New. | |
4597 | (read_minibuf): Call read_minibuf_noninteractive if | |
4598 | noninteractive. Use string_to_object. | |
4599 | ||
82a700f3 GM |
4600 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
4601 | ||
b5540f0d DL |
4602 | 1999-11-02 Dave Love <fx@gnu.org> |
4603 | ||
e69dcd60 DL |
4604 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
4605 | ||
827a1788 DL |
4606 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
4607 | declared with glibc2. | |
b5540f0d | 4608 | |
a69a6e61 GM |
4609 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
4610 | ||
4611 | * lisp.h (QUIT): Give it statement form. | |
4612 | ||
87e21fbd DL |
4613 | 1999-11-02 Dave Love <fx@gnu.org> |
4614 | ||
4615 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
4616 | ||
1b335865 GM |
4617 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
4618 | ||
9fb5e03d GM |
4619 | * xfns.c (QCuser_data): New. |
4620 | (syms_of_xfns): Initialize QCuser_data. | |
4621 | (parse_image_spec): Ignore :user-data DATA properties. | |
4622 | ||
1b335865 GM |
4623 | * xdisp.c (display_line): Set charpos of first glyph in blank |
4624 | lines not corresponding to any text to -1, even if no glyphs are | |
4625 | filled in in that line. | |
4626 | ||
e76f1c44 GM |
4627 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
4628 | ||
36fcd3d9 GM |
4629 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
4630 | png_get_sRGB in #ifdef. | |
4631 | ||
111259b4 GM |
4632 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
4633 | (syms_of_display): Use the new name. | |
4634 | ||
dd5c96e8 GM |
4635 | * textprop.c (verify_interval_modification): Signal text-read-only |
4636 | instead of calling error. | |
4637 | ||
db8878fb GM |
4638 | * data.c (Qtext_read_only): New built-in error. |
4639 | (syms_of_data): Initialize it. | |
4640 | ||
4641 | * lisp.h: Add extern declaration for Qtext_read_only. | |
4642 | ||
e76f1c44 GM |
4643 | * syntax.c: Remove whitespace after open or in front of closing |
4644 | parentheses. | |
4645 | ||
83c8f461 | 4646 | 1999-11-01 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
4647 | |
4648 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
4649 | ||
7843e09c GM |
4650 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
4651 | ||
575ed805 GM |
4652 | * xdisp.c (resize_mini_window): Compute needed height differently. |
4653 | ||
7843e09c GM |
4654 | * fns.c (Flength): Unroll loop over lists. |
4655 | ||
4656 | * xdisp.c (append_space): Return non-zero if space was appended. | |
4657 | (display_line): Set charpos of first glyph to -1 only if that | |
4658 | glyph is the space added by append_glyph. | |
4659 | ||
83c8f461 | 4660 | 1999-10-30 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
4661 | |
4662 | * print.c (strout): Consider `noninteractive' and use stdout | |
4663 | only when PRINTCHARFUN is t. | |
4664 | ||
4665 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
4666 | (gcpro_level): Declare it extern. | |
4667 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
4668 | Alternate definitions that set `level' and increment `gcpro_level'. | |
4669 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
4670 | ||
4671 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
4672 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
4673 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
4674 | from remaining gcprolist. | |
4675 | ||
3636f7a3 KH |
4676 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
4677 | ||
4678 | * coding.c (code_convert_region): Update `dst' correctly. | |
4679 | ||
a2ad7096 GM |
4680 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
4681 | ||
4682 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
4683 | (Frassoc): Rewritten. | |
4684 | ||
1e3196e8 GM |
4685 | 1999-10-27 Noah Friedman <friedman@splode.com> |
4686 | ||
4687 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
4688 | Define PTY_NAME_SPRINTF. | |
4689 | Redefine PTY_TTY_NAME_SPRINTF. | |
4690 | * config.in: Add undef for HAVE_DEV_PTMX. | |
4691 | ||
83c8f461 | 4692 | 1999-10-26 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
4693 | |
4694 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
4695 | as arg to DEBUG_POP and DEBUG_PRINT. | |
4696 | ||
83c8f461 | 4697 | 1999-10-27 Richard M. Stallman <rms@gnu.org> |
17dbfaad GM |
4698 | |
4699 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
4700 | (Ffset): Call Qad_activate_internal. | |
4701 | (syms_of_data): Initialize Qad_activate_internal. | |
4702 | ||
26922151 GM |
4703 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
4704 | ||
4705 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
4706 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
4707 | ||
67a5596f GM |
4708 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
4709 | ||
2bea706b GM |
4710 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
4711 | ||
67a5596f GM |
4712 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
4713 | `execute' as synonym for `eval'. | |
4714 | (main): Add new options to usage message. | |
4715 | ||
81dc5de5 GM |
4716 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
4717 | ||
4718 | * data.c (Qhash_table): New. | |
4719 | (Ftype_of): Return it for hash tables. | |
4720 | (syms_of_data): Initialize Qhash_table. | |
4721 | ||
83c8f461 | 4722 | 1999-10-25 Richard M. Stallman <rms@gnu.org> |
bd3c545d GM |
4723 | |
4724 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
4725 | ||
66e4690f | 4726 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
3a7093d8 | 4727 | |
7539e11f KR |
4728 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
4729 | lisp.h. | |
4730 | ||
4731 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
4732 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
4733 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
4734 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
4735 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
4736 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
4737 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
4738 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
4739 | references. | |
4740 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
4741 | swap_in_symval_forwarding, set_internal, default_value, | |
4742 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
4743 | Fmake_variable_frame_local, Flocal_variable_p, | |
4744 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
4745 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
4746 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
4747 | * emacs.c (main): Likewise. | |
4748 | * fontset.c (fs_load_font, fs_register_fontset, | |
4749 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
4750 | Fnew_fontset, Fset_fontset_font): Likewise. | |
4751 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
4752 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
4753 | Likewise. | |
4754 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
4755 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
4756 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
4757 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
4758 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
4759 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
4760 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
4761 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
4762 | Fall_completions): Likewise. | |
4763 | * window.c (Fset_window_margins): Likewise. | |
4764 | ||
4765 | * callint.c (quotify_args): Don't explicitly use struct | |
4766 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
4767 | ||
3a7093d8 KR |
4768 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
4769 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
4770 | if __ELF__ is defined. | |
4771 | ||
2a3d7146 GM |
4772 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
4773 | ||
4774 | * window.c (Fnext_window): Add a QUIT in the loop. | |
4775 | ||
8ac52782 GM |
4776 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
4777 | ||
4778 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
4779 | New targets. | |
4780 | ||
05f0d15a DL |
4781 | 1999-10-22 Dave Love <fx@gnu.org> |
4782 | ||
4783 | * emacs.c (main): Enable profiling conditional on __linux also. | |
4784 | ||
882fb0e6 GM |
4785 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
4786 | ||
4787 | * xrdb.c (x_load_resources): Set default resources for resource | |
4788 | classes instead of for the specific Emacs. | |
4789 | ||
b5f5bc31 GM |
4790 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
4791 | ||
66f4dd69 GM |
4792 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
4793 | defines it that way. | |
4794 | ||
b5f5bc31 GM |
4795 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
4796 | if selected_frame is equal to Vterminal_frame. | |
4797 | ||
68c45bf0 PE |
4798 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
4799 | ||
4800 | Add support for large files, 64-bit Solaris, system locale codings. | |
4801 | ||
4802 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
4803 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
4804 | (dired.o): Depend on systime.h. | |
4805 | (editfns.o): Depend on coding.h. | |
4806 | ||
4807 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
4808 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
4809 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
4810 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
4811 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
4812 | Include <config.h> before any system include files. | |
4813 | ||
4814 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
4815 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
4816 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
4817 | xmenu.c, xterm.c: | |
4818 | Do not include <stdlib.h>, as <config.h> does this now. | |
4819 | ||
4820 | * callproc.c (Fcall_process): | |
4821 | Synchronize messages locale before invoking strerror. | |
4822 | Decode resulting string with locale-coding-system. | |
4823 | ||
4824 | * coding.c (Vlocale_coding_system): New var. | |
4825 | (syms_of_coding): Adjust to above change. | |
4826 | (emacs_strerror): New function. | |
4827 | ||
4828 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
4829 | ||
4830 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
4831 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
4832 | HAVE_STRSIGNAL): New macros. | |
4833 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
4834 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
4835 | ||
4836 | * dired.c: Include "systime.h". | |
4837 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
4838 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
4839 | Treat large device numbers like large inode numbers. | |
4840 | ||
4841 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
4842 | ||
4843 | * editfns.c: Include coding.h. | |
4844 | (emacs_strftime): Remove decl. | |
4845 | (emacs_strftimeu): New decl. | |
4846 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
4847 | Use emacs_strftimeu instead of emacs_strftime. | |
4848 | (Fformat_time_string): Convert format string using | |
4849 | Vlocale_coding_system, and convert result back. Synchronize time | |
4850 | locale before invoking lower level function. Invoke | |
4851 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
4852 | ||
4853 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
4854 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
4855 | Vprevious_time_locale): New variables. | |
4856 | (main): Invoke setlocale early, so that initial error messages are | |
4857 | localized properly. But skip locale-setting if LC_ALL is "C". | |
4858 | Fix up locale when it's safe to do so. | |
4859 | (fixup_locale): Moved here from xterm.c. | |
4860 | (synchronize_locale, synchronize_time_locale, | |
4861 | synchronize_messages_locale): New functions. | |
4862 | (syms_of_emacs): Accommodate above changes. | |
4863 | ||
4864 | * fileio.c (report_file_error): Convert strerror output according | |
4865 | to Vlocale_coding_system. | |
4866 | (Finsert_file_contents): Check for arithmetic overflow in | |
4867 | computations that depend on file size. Report IO errors | |
4868 | with emacs_strerror, not strerror. | |
4869 | ||
4870 | * fns.c (Fgethash): Declare dflt parameter. | |
4871 | ||
4872 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
4873 | is defined; that's config.h's job. | |
4874 | ||
4875 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
4876 | default these values to long, BITS_PER_LONG, and unsigned long. | |
4877 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
4878 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
4879 | (code_convert_string_norecord, fixup_locale, | |
4880 | synchronize_messages_locale, synchronize_time_locale, | |
4881 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
4882 | All Emacs callers of open, close, read, write changed to use | |
4883 | emacs_open, emacs_close, emacs_read, emacs_write. | |
4884 | ||
4885 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
4886 | changed to file_tell. | |
4887 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
4888 | of type file_offset. | |
4889 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
4890 | ||
4891 | * m/amdahl.h, s/usg5-4.h: | |
4892 | (NSIG): Remove. | |
4893 | (NSIG_MINIMUM): New macro. | |
4894 | ||
4895 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
4896 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
4897 | s/umips.h, s/usg5-4.h: | |
4898 | (SIGIO): Do not undef. | |
4899 | (BROKEN_SIGIO): New macro. | |
4900 | ||
4901 | * m/ustation.h: | |
4902 | (SIGTSTP): Do not undef. | |
4903 | (BROKEN_SIGTSTP): New macro. | |
4904 | ||
4905 | * s/gnu-linux.h: | |
4906 | (SIGPOLL, SIGURG): Do not undef. | |
4907 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
4908 | ||
4909 | * s/ptx4.h: | |
4910 | (SIGINFO): Do not undef. | |
4911 | (BROKEN_SIGINFO): New macros. | |
4912 | ||
4913 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
4914 | ||
4915 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
4916 | some Emacs-related changes merged. | |
4917 | ||
4918 | * print.c (float_to_string): Prepend "-" to representation of a | |
4919 | NaN if the NaN is negative. | |
4920 | ||
4921 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
4922 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
4923 | ||
4924 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
4925 | then use strsignal istead of sys_siglist. | |
4926 | * w32proc.c (sys_wait): Likewise. | |
4927 | ||
4928 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
4929 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
4930 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
4931 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
4932 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
4933 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
4934 | ||
4935 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
4936 | ||
4937 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
4938 | sys_open, open): Remove. | |
4939 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
4940 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
4941 | macros are no longer used. | |
4942 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
4943 | (emacs_close): Renamed from sys_close. | |
4944 | (emacs_read): Renamed from sys_read. | |
4945 | (emacs_write): Renamed from sys_write. | |
4946 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
4947 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
4948 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
4949 | ||
4950 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
4951 | is defined. | |
4952 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
4953 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
4954 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
4955 | ||
4956 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
4957 | (ElfW): Define in terms of ElfExpandBitsW. | |
4958 | ||
4959 | * w32proc.c (sys_siglist): Remove decl. | |
4960 | ||
4961 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
4962 | with ANSI C. | |
4963 | (display_string): Declare face_string_pos arg. | |
4964 | ||
4965 | * xfns.c (Fx_show_tip): Declare timeout param. | |
4966 | ||
4967 | * xterm.c: No need to include locale.h. | |
4968 | (x_alloc_lighter_color, x_setup_relief_color): | |
4969 | Pass arg as double, not float, for compatibility with ANSI C. | |
4970 | (fixup_locale): Move to emacs.c. | |
4971 | (x_term_init): Do not setlocale or fixup locale; the main program | |
4972 | does this now. | |
4973 | ||
2f0b74ea DL |
4974 | 1999-10-18 Dave Love <fx@gnu.org> |
4975 | ||
4976 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
4977 | ||
471aa4a0 KH |
4978 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
4979 | ||
4980 | * lread.c (Fload): Calculate bytes of filename correctly. | |
4981 | (openp): Likewise. | |
4982 | ||
aca2020b KH |
4983 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
4984 | ||
4985 | * print.c (print_preprocess): In case print-circle is nil, | |
4986 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
4987 | ||
1f5fe392 | 4988 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
4989 | |
4990 | * coding.c (code_convert_string): Add record_unwind_protect to | |
4991 | assure setting inhibit_pre_post_conversion back to zero. Take | |
4992 | care of the multibyteness of the working buffer. | |
4993 | ||
4994 | * coding.c (inhibit_pre_post_conversion): New variable. | |
4995 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
4996 | ignore post-read-conversion and pre-write-conversion property of | |
4997 | the coding system. | |
4998 | (code_convert_region_unwind): New function. | |
4999 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
5000 | running pre-write-conversion and post-read-conversion. | |
5001 | (code_convert_string): Likewise. | |
5002 | ||
cd876a91 GM |
5003 | 1999-10-17 Miles Bader <miles@gnu.org> |
5004 | ||
5005 | * editfns.c: Doc fix. | |
5006 | ||
5007 | 1999-10-17 Miles Bader <miles@gnu.org> | |
5008 | ||
5009 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
5010 | argument preconditions of find_before_next_newline in the case | |
5011 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
5012 | was indeed at the edge. | |
5013 | ||
5014 | 1999-10-17 Miles Bader <miles@gnu.org> | |
5015 | ||
5016 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
5017 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
5018 | ||
5019 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
5020 | use initializers for auto variables of type Lisp_Object. | |
5021 | (find_field): Likewise. Use braces around nested ifs. | |
5022 | (Fline_end_position): Store the raw eol in a variable, so that the | |
5023 | final expression doesn't look so ugly. | |
5024 | (Fconstrain_to_field): Doc fix. | |
5025 | (preceding_pos): Renamed from `preceeding_pos'. | |
5026 | (text_property_stickiness, find_field): Call preceding_pos, | |
5027 | not preceeding_pos. | |
5028 | ||
5029 | 1999-10-17 Miles Bader <miles@gnu.org> | |
5030 | ||
5031 | * editfns.c (Ffield_string_no_properties): New function. | |
5032 | (text_property_stickiness, preceeding_pos): New functions. | |
5033 | (Ffield_string): Remove PROPS parameter. | |
5034 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
5035 | Rewrite to use stickiness of `field' property to resolve | |
5036 | ambiguous cases. | |
5037 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
5038 | (Fconstrain_to_field): Likewise. | |
5039 | (syms_of_editfns): Init Sfield_string_no_properties. | |
5040 | (Ffield_string, Ferase_field, Ffield_end): | |
5041 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
5042 | (Fline_beginning_position, Fline_end_position): Supply new | |
5043 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
5044 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
5045 | Fconstrain_to_field (only matters if N != 1). | |
5046 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
5047 | to Fconstrain_to_field. | |
5048 | ||
5049 | * minibuf.c (Fminibuffer_complete_word): Use | |
5050 | Ffield_beginning to find the prompt end. | |
5051 | ||
5052 | 1999-10-17 Miles Bader <miles@gnu.org> | |
5053 | ||
5054 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
5055 | behavior when NEW_POS is nil. | |
5056 | (find_field): Use XSETFASTINT instead of make_number. | |
5057 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
5058 | input string by seeing where the field begins, instead of | |
5059 | looking at text-properties. | |
5060 | ||
5061 | 1999-10-17 Miles Bader <miles@gnu.org> | |
5062 | ||
5063 | * editfns.c (Qfield): New variable. | |
5064 | (find_field, Ferase_field, Ffield_string, | |
5065 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
5066 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
5067 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
5068 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
5069 | field functions above. | |
5070 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
5071 | minibuf_save_list. | |
5072 | Don't initialize minibuffer prompt length. | |
5073 | Wrap prompt text-properties around the entire prompt. | |
5074 | Add 'prompt text-property to prompt. | |
5075 | Get final value with Ffield_string instead of make_buffer_string. | |
5076 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
5077 | minibuf_save_list. | |
5078 | (do_completion): Get minibuffer input with Ffield_string | |
5079 | instead of Fbuffer_string. | |
5080 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
5081 | (Fminibuffer_complete_and_exit): Likewise. | |
5082 | Test whether buffer is empty by looking for the 'prompt text | |
5083 | property at the end. | |
5084 | Set prompt length by looking for the end of the prompt text property, | |
5085 | and save prompt length for later use (since there is no longer a | |
5086 | buffer variable to get it from). | |
5087 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
5088 | (syms_of_minibuf): Remove initializations of | |
5089 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
5090 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
5091 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
5092 | Don't initialize prompt_end_charpos field. | |
5093 | * syntax.c (Fforward_word): Likewise. | |
5094 | Constrain to any field. | |
5095 | ||
3f6f7508 GM |
5096 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
5097 | ||
5098 | * window.c (enum save_restore_action): New. | |
5099 | (save_restore_orig_size): Change parameter list. Add | |
5100 | functionality to check for valid orig_top and orig_height members | |
5101 | in a window tree. | |
5102 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
5103 | list. | |
5104 | (shrink_mini_window): Restore old window sizes only if old | |
5105 | size information is valid in all windows in a window tree. | |
5106 | ||
06482119 GM |
5107 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
5108 | ||
2710454d GM |
5109 | * xmenu.c (set_frame_menubar): Don't call |
5110 | x_set_menu_resources_from_menu_face here. | |
5111 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
5112 | ||
06482119 GM |
5113 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
5114 | ||
17fa2837 DL |
5115 | 1999-10-14 Dave Love <fx@gnu.org> |
5116 | ||
5117 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
5118 | ||
45f93416 GM |
5119 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
5120 | ||
5121 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
5122 | fails and h_errno is TRY_AGAIN. | |
5123 | ||
c765b723 DL |
5124 | 1999-10-13 Dave Love <fx@gnu.org> |
5125 | ||
5126 | * filelock.c (lock_file): Move gcpro of `fn'. | |
5127 | ||
dace7f4e GM |
5128 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
5129 | ||
5130 | * keyboard.c (auto-save-interval): Fix documentation. | |
5131 | ||
83c8f461 | 5132 | 1999-10-09 Richard M. Stallman <rms@gnu.org> |
73fb36f1 RS |
5133 | |
5134 | * print.c (print): When removing objects from Vprint_number_table, | |
5135 | only scan the newly added objects. | |
5136 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
5137 | unconditionally force it to stay in the table. | |
5138 | ||
85177c86 GM |
5139 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
5140 | ||
5141 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
5142 | loading it failed before. | |
5143 | (lookup_image, prepare_image_for_display): Remember if loading the | |
5144 | image failed. | |
5145 | (xpm_load): Add missing UNBLOCK_INPUT. | |
5146 | ||
5147 | * dispextern.h (struct image): New member load_failed_p. | |
5148 | ||
11e4de5d SM |
5149 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
5150 | ||
f28eba7b | 5151 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
5152 | in the docstring. |
5153 | ||
f1da8f06 GM |
5154 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
5155 | ||
5156 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
5157 | Don't call XSetInputFocus because that can generate additional | |
5158 | FocusIn events. | |
5159 | ||
c37bbd4f GM |
5160 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
5161 | ||
5162 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
5163 | ||
83c8f461 | 5164 | 1999-10-07 Richard M. Stallman <rms@gnu.org> |
78cc5c64 GM |
5165 | |
5166 | * process.c (wait_reading_process_input): When trying to suck | |
5167 | input from one process, for accept-process-output, | |
5168 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
5169 | ||
577d9e2f GM |
5170 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
5171 | ||
5172 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
5173 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
5174 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
5175 | Fpixmap_spec_p and Qpixmap_spec_p. | |
5176 | (load_face_colors, check_lface_attrs, | |
5177 | merge_face_vector_with_property, | |
5178 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
5179 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
5180 | Fbitmap_spec_p. | |
5181 | ||
f5737ad2 GM |
5182 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
5183 | ||
5184 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
5185 | MODE_LINE_FACE_ID. | |
5186 | ||
5187 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
5188 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
5189 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
5190 | [USE_MOTIF]: New. | |
5191 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
5192 | [USE_LUCID]: New. | |
5193 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
5194 | (Qmenu): New. | |
5195 | (syms_of_xfaces): Initialize Qmenu. | |
5196 | (realize_basic_faces): Realize face `menu'. | |
5197 | (resolve_face_name): New. | |
5198 | (lface_from_face_name): Use it. | |
5199 | (Finternal_set_lisp_face_attribute): Ditto. | |
5200 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
5201 | ||
5202 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
5203 | x_set_menu_resources_from_menu_face. | |
5204 | ||
5205 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
5206 | (toplevel): Include X11/Intrinsic.h. | |
5207 | ||
6a1aa823 DL |
5208 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
5209 | ||
5210 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
5211 | correctly. | |
5212 | ||
26901792 DL |
5213 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
5214 | ||
5215 | * category.c (modify_lower_category_set): Set default value of | |
5216 | TABLE correctly. | |
5217 | ||
5218 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
5219 | size correctly. | |
5220 | ||
5221 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
5222 | ||
5223 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
5224 | ||
5225 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
5226 | ||
5227 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
5228 | frame that hasn't been initialized yet. | |
5229 | ||
83c8f461 | 5230 | 1999-09-28 Richard M. Stallman <rms@gnu.org> |
a04f1a93 PR |
5231 | |
5232 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
5233 | (describe_buffer_bindings): Make buf big enough. | |
5234 | ||
83c8f461 | 5235 | 1999-09-27 Richard M. Stallman <rms@gnu.org> |
d177c583 PR |
5236 | |
5237 | * intervals.c (get_local_map): Use indirect_function, | |
5238 | not Findirect_function. | |
5239 | ||
26901792 DL |
5240 | 1999-09-27 Dave Love <fx@gnu.org> |
5241 | ||
5242 | * cm.h: Remove unneeded declaration of ospeed. | |
5243 | ||
5244 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
5245 | ||
5246 | * lisp.h (toplevel): Add prototype for | |
5247 | next_single_char_property_change. | |
5248 | ||
5249 | * textprop.c (next_single_char_property_change): New. | |
5250 | ||
5251 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
5252 | next_single_char_property_change. | |
5253 | ||
5254 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
5255 | ||
5256 | * editfns.c (Fproperties): New. | |
5257 | (syms_of_editfns): Defsubr it. | |
5258 | ||
5259 | * xfns.c (lookup_image): Set image's timestamp because it's | |
5260 | used when we look it up. | |
5261 | ||
5262 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
5263 | ||
5264 | * window.c (enlarge_window): Add window parameter instead of using | |
5265 | selected_window. | |
5266 | (Fdisplay_buffer): Call it with window parameter instead of | |
5267 | setting selected_window. | |
5268 | (Fenlarge_window, Fshrink_window): Ditto. | |
5269 | (shrink_mini_window): If there is no recorded height and position | |
5270 | info, resize mini-window to height 1. | |
5271 | ||
5272 | * xfns.c (image_error): Use add_to_log. | |
5273 | ||
5274 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
5275 | (load_face_font_or_fontset, load_color, | |
5276 | merge_face_vector_with_property): Ditto. | |
5277 | ||
5278 | * dispextern.h: Add prototype for add_to_log. | |
5279 | ||
5280 | * xfaces.c (add_to_log): Move to xdisp.c. | |
5281 | ||
5282 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
5283 | parameter. | |
5284 | ||
5285 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
5286 | ||
5287 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
5288 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
5289 | ||
5290 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
5291 | shrink_mini_window. | |
5292 | ||
5293 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
5294 | (change_window_height): Call window_min_size with new parameter. | |
5295 | (shrink_window_lowest_first, save_restore_orig_size, | |
5296 | grow_mini_window, shrink_mini_window): New. | |
5297 | (make_window, replace_window): Initialize orig_top and | |
5298 | orig_height. | |
5299 | (enlarge_window): Renamed from change_window_height. Make it | |
5300 | static. | |
5301 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
5302 | enlarge_window instead of change_window_height. | |
5303 | ||
5304 | * window.h (struct window): New members orig_top, orig_height. | |
5305 | (toplevel): Add prototypes for grow_mini_window and | |
5306 | shrink_mini_window. Remove prototype for change_window_height. | |
5307 | ||
5308 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
5309 | ||
5310 | * frame.c (frame_name_fnn_p): Fix previous change. | |
5311 | ||
5312 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
5313 | ||
5314 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
5315 | ||
5316 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
5317 | safe_bcopy to char *. | |
5318 | ||
5319 | * lread.c (readchar): Remove unused variables. | |
5320 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
5321 | (toplevel): Include intervals.h. | |
5322 | ||
5323 | * eval.c (Fsignal): Remove unused variables. | |
5324 | (Fcommandp, do_autoload): Ditto. | |
5325 | ||
5326 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
5327 | ||
5328 | * editfns.c (init_editfns): Remove unused variables. | |
5329 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
5330 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
5331 | ||
5332 | * data.c (find_symbol_value): Remove unused variables. | |
5333 | (Faref, Fstring_to_number): Ditto. | |
5334 | (toplevel): Include stdio.h. | |
5335 | (Fnumber_to_string): Cast XINT to long for %ld. | |
5336 | ||
5337 | * casefiddle.c (casify_object): Remove unused variables. | |
5338 | (casify_region): Ditto. | |
5339 | ||
5340 | * filelock.c (get_boot_time): Put local variable used in | |
5341 | conditinally compiled section in #ifdef. | |
5342 | (toplevel): Include stdio.h. | |
5343 | ||
5344 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
5345 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
5346 | ||
5347 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
5348 | ||
5349 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
5350 | whose corresponding window rows have been disabled in | |
5351 | try_window_id. | |
5352 | ||
5353 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
5354 | ||
5355 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
5356 | that window start is out of range. | |
5357 | (handle_display_prop, handle_single_display_prop): Replace | |
5358 | marginal area specifications like `left-margin' with `(margin | |
5359 | left-margin)'. | |
5360 | (Qmargin): New. | |
5361 | (syms_of_xdisp): Initialize Qmargin. | |
5362 | ||
5363 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
5364 | ||
5365 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
5366 | describe_syntax, skip_chars): Remove unused variables. | |
5367 | (back_comment, forw_comment): Add braces to if-statement with | |
5368 | if-else as dependent statement. | |
5369 | ||
5370 | * process.c (list_processes_1): Remove unused variables. | |
5371 | (Fopen_network_stream, create_process): Add parentheses to | |
5372 | conditional expressions. | |
5373 | (create_process): Put declaration of sigchld in #if 0. | |
5374 | (Fopen_network_stream): Removed unused variables. | |
5375 | (Fopen_network_stream, wait_reading_process_input, | |
5376 | wait_reading_process_input, send_process, send_process): Ditto. | |
5377 | (toplevel): Add prototypes for set_waiting_for_input and | |
5378 | keyboard_bit_set. | |
5379 | ||
5380 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
5381 | ||
5382 | * textprop.c (Fset_text_properties): Remove unused variables. | |
5383 | (text_property_list, verify_interval_modification, | |
5384 | interval_has_all_properties): Ditto. | |
5385 | ||
5386 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
5387 | (Fcall_process): Remove unused variable. | |
5388 | ||
5389 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
5390 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
5391 | timer_check, make_lispy_event, menu_bar_items, | |
5392 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
5393 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
5394 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
5395 | read_key_sequence): Ditto. Fread_key_sequence, | |
5396 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
5397 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
5398 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
5399 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
5400 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
5401 | (toplevel): Include sys/types.h. | |
5402 | ||
5403 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
5404 | (toplevel): Add prototypes for stuff_char, and | |
5405 | code_convert_string_norecord. | |
5406 | ||
5407 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
5408 | ||
5409 | * buffer.h: Add prototype for r_re_alloc. | |
5410 | ||
5411 | * insdel.c (copy_text): Removed unused variables. | |
5412 | (count_combining_after, count_combining_after, insert_1_both, | |
5413 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
5414 | (adjust_after_replace, replace_range): Add parentheses to logical | |
5415 | expressions. Remove unused variables. | |
5416 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
5417 | expression. | |
5418 | ||
5419 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
5420 | (compact_strings): Add parentheses around assignments in | |
5421 | conditional context. | |
5422 | (toplevel): Put declaration of unused function clear_marks | |
5423 | in #if 0 like its definition. | |
5424 | ||
5425 | * lisp.h: Add prototype for shrink_regexp_cache, | |
5426 | sweep_weak_hash_tables. | |
5427 | ||
5428 | 1999-09-19 Dave Love <fx@gnu.org> | |
5429 | ||
5430 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
5431 | ||
5432 | * doc.c (read_bytecode_char): Declare arg. | |
5433 | ||
5434 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
5435 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
5436 | ||
5437 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
5438 | ||
5439 | * xdisp.c (echo_area_display): Turn off code that returned | |
5440 | without doing anything when using a terminal frame. | |
5441 | ||
83c8f461 | 5442 | 1999-09-17 Richard M. Stallman <rms@gnu.org> |
27271329 PR |
5443 | |
5444 | * unexelf.c (unexec): Don't get confused by a short section | |
5445 | just before the bss section. | |
5446 | ||
26901792 DL |
5447 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
5448 | ||
5449 | * emacs.c (main): Remove unused variables. | |
5450 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
5451 | ||
5452 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
5453 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
5454 | init_sound, check_message_stack. | |
5455 | ||
5456 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
5457 | ||
5458 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
5459 | ambiguous else warning. | |
5460 | (split_interval_left): Remove unused variables. | |
5461 | (previous_interval, adjust_intervals_for_deletion, | |
5462 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
5463 | (icount, idepth, zero_length): Move into #if 0 section below | |
5464 | original position where these are used. | |
5465 | ||
5466 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
5467 | ||
5468 | * buffer.c (Fkill_buffer): Remove unused variables. | |
5469 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
5470 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
5471 | init_buffer_once, (syms_of_buffer): Ditto. | |
5472 | ||
5473 | * xrdb.c (get_fallback): Remove unused variable. | |
5474 | (x_load_resources): Ditto. Put local variable used for Motif only | |
5475 | in #ifdef USE_MOTIF. | |
5476 | ||
5477 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
5478 | ||
5479 | * minibuf.c (read_minibuf): Remove unused variables. | |
5480 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
5481 | (do_completion): Move assignment out of conditional context. | |
5482 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
5483 | ||
5484 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
5485 | ||
5486 | * lisp.h: Add prototype for no_switch_window. | |
5487 | ||
5488 | * window.c (Fset_window_buffer): Remove unused variables. | |
5489 | (Fset_window_margins): Ditto. | |
5490 | ||
5491 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
5492 | window's or Vminibuf_scroll_window's height to "fixed" around | |
5493 | the call the change_window_height. | |
5494 | ||
5495 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
5496 | flag. | |
5497 | ||
5498 | * window.h (struct window): New member height_fixed_p. | |
5499 | ||
5500 | * dispnew.c (direct_output_forward_char): Don't use this method | |
5501 | if showing a message or a message was just cleared because we | |
5502 | might need to resize the mini-window. | |
5503 | ||
5504 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
5505 | ||
5506 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
5507 | selected frame after selecting new frame. | |
5508 | ||
5509 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
5510 | ||
5511 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
5512 | ||
5513 | * filelock.c (Vtemporary_file_directory): New variable. | |
5514 | (syms_of_filelock): Set up Lisp variable. | |
5515 | ||
5516 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
5517 | ||
5518 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
5519 | (encode_terminal_code): Remove unused variables. | |
5520 | (turn_off_face): Ditto. | |
5521 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
5522 | ||
5523 | * dispnew.c (update_frame_line): If writing whole desired line, | |
5524 | don't clear to end of line if already at the end. | |
5525 | ||
5526 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
5527 | ||
5528 | * xdisp.c (resize_mini_window): Don't report changed window | |
5529 | height if it actually hasn't changed. | |
5530 | ||
5531 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
5532 | unused variables. | |
5533 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
5534 | (create_frame_gcs): Put in #if 0 because currently unused. | |
5535 | (first_frame_p): Ditto. | |
5536 | ||
5537 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
5538 | single_submenu, update_frame_menubar, set_frame_menubar, | |
5539 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
5540 | variables. | |
5541 | ||
5542 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
5543 | is misleading. | |
5544 | (Ferror_message_string): Remove unused variables. | |
5545 | (print_object): Cast argument of sprintf to long for `%ld' | |
5546 | specifier. Remove unused variable. | |
5547 | ||
5548 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
5549 | ||
5550 | * sound.c (Fplay_sound): Remove usused variables. | |
5551 | (be2hs): Put in #if 0 because it's currently not used. | |
5552 | ||
5553 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
5554 | ||
5555 | * print.c (Ferror_message_string, print_error_message, | |
5556 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
5557 | member access. | |
5558 | ||
5559 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
5560 | ||
5561 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
5562 | ||
5563 | * frame.c (Fnext_frame): Remove unused variable(s). | |
5564 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
5565 | (store_frame_param): Add parentheses to conditional expression. | |
5566 | (Fmodify_frame_parameters): Remove unused variables. | |
5567 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
5568 | Ditto. | |
5569 | ||
5570 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
5571 | (x_set_border_pixel): Ditto. | |
5572 | (x_set_menu_bar_lines): Put local variable used only for | |
5573 | non-toolkit case in #ifdef/#endif. | |
5574 | (x_figure_window_size): Remove unused variable(s). | |
5575 | (x_figure_window_size, x_window, lookup_image, | |
5576 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
5577 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
5578 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
5579 | ||
5580 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
5581 | not USE_TOOLKIT_SCROLL_BARS. | |
5582 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
5583 | ||
5584 | * dispextern.h: Add prototypes for gamma_correct and | |
5585 | x_kill_gs_process. | |
5586 | ||
5587 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
5588 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
5589 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
5590 | (x_scroll_bar_create): Move local variable to the | |
5591 | conditionally compiled section of code where it is used. | |
5592 | (x_scroll_bar_create): Remove unused variable(s). | |
5593 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
5594 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
5595 | non-toolkit case into conditionally compiled section of code. | |
5596 | ||
5597 | * window.h (freeze_window_starts): Fix typo in prototype. | |
5598 | ||
5599 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
5600 | variable(s). | |
5601 | ||
5602 | * lisp.h: Add prototype for debug_print. | |
5603 | ||
5604 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
5605 | to use do-while. | |
5606 | ||
5607 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
5608 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
5609 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
5610 | ||
5611 | * lisp.h: Add prototype for getloadavg. | |
5612 | ||
5613 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
5614 | ||
5615 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
5616 | ||
5617 | * lisp.h: Declare close_file_unwind. | |
5618 | ||
5619 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
5620 | ||
5621 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
5622 | ||
5623 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
5624 | ||
5625 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
5626 | is always set correctly. | |
5627 | ||
5628 | 1999-09-13 Dave Love <fx@gnu.org> | |
5629 | ||
5630 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
5631 | declaration. | |
5632 | ||
5633 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
5634 | ||
5635 | * xdisp.c (QCfile): Move here from xfns.c. | |
5636 | (syms_of_xdisp): Initialize it. | |
5637 | (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 | 1999-09-13 Dave Love <fx@gnu.org> | |
5643 | ||
5644 | * xterm.c: Don't continue #define args for benefit of old cc. | |
5645 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
5646 | ||
5647 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
5648 | ||
5649 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
5650 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
5651 | (XRINGBELL): Removed. | |
5652 | ||
5653 | 1999-09-13 Dave Love <fx@gnu.org> | |
5654 | ||
5655 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
5656 | ||
5657 | * fns.c (Fmake_hash_table): Fix string continuation. | |
5658 | ||
5659 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
5660 | ||
5661 | * xfns.c (QCfile): Moved to xdisp.c. | |
5662 | (syms_of_xfns): Don't initialize QCfile. | |
5663 | (check_x_frame): Change for Lisp_Object selected_frame. | |
5664 | (check_x_display_info, x_get_resource_string): Ditto. | |
5665 | ||
5666 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
5667 | ||
5668 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
5669 | mini-buffer window's buffer, if the buffer is invalid. | |
5670 | ||
5671 | * xfns.c (QCfile): Moved to xdisp.c. | |
5672 | (syms_of_xfns): Don't initialize QCfile. | |
5673 | ||
5674 | * xdisp.c (QCfile): Move here from xfns.c. | |
5675 | (syms_of_xdisp): Initialize it. | |
5676 | ||
5677 | * lisp.h (selected_frame): Add external declaration. | |
5678 | ||
5679 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
5680 | (Fx_store_cut_buffer_internal): Ditto. | |
5681 | (Fx_rotate_cut_buffers_internal): Ditto. | |
5682 | ||
5683 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
5684 | selected_frame. | |
5685 | (Finternal_set_lisp_face_attribute): Ditto. | |
5686 | (Finternal_get_lisp_face_attribute): Ditto. | |
5687 | (Finternal_lisp_face_empty_p): Ditto. | |
5688 | (Fdump_face): Ditto. | |
5689 | ||
5690 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
5691 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
5692 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
5693 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
5694 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
5695 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
5696 | ||
5697 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
5698 | (kbd_input_ast, read_input_waiting): Ditto. | |
5699 | ||
5700 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
5701 | selected_frame. | |
5702 | (read_minibuf): Ditto. | |
5703 | ||
5704 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
5705 | selected_frame. | |
5706 | (cmd_error_internal, command_loop_1, read_char, | |
5707 | kbd_buffer_get_event, read_avail_input, | |
5708 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
5709 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
5710 | ||
5711 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
5712 | (Ffontset_info): DItto. | |
5713 | ||
5714 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
5715 | ||
5716 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
5717 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
5718 | (direct_output_for_insert, direct_output_forward_char, | |
5719 | init_display): Ditto. | |
5720 | ||
5721 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
5722 | selected_frame. | |
5723 | (set_internal): Ditto. | |
5724 | ||
5725 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
5726 | (record_buffer): Ditto. | |
5727 | ||
5728 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
5729 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
5730 | (Fselected_frame): Ditto. | |
5731 | (Fframe_first_window): Use SELECTED_FRAME. | |
5732 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
5733 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
5734 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
5735 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
5736 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
5737 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
5738 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
5739 | Fset_frame_height, Fset_frame_width): Ditto. | |
5740 | ||
5741 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
5742 | ||
5743 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
5744 | (message3_nolog, message_with_string, message, | |
5745 | setup_echo_area_for_printing, truncate_echo_area, | |
5746 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
5747 | ||
5748 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
5749 | (Fx_popup_dialog): Ditto. | |
5750 | ||
5751 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
5752 | (check_x_display_info, x_get_resource_string): Ditto. | |
5753 | ||
5754 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
5755 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
5756 | (XRINGBELL): Removed. | |
5757 | ||
5758 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
5759 | selected_frame. | |
5760 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
5761 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
5762 | Fcurrent_window_configuration, init_window_once): Ditto. | |
5763 | ||
5764 | * frame.h (SELECTED_FRAME): New. | |
5765 | ||
5766 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
5767 | ||
5768 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
5769 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
5770 | Fregister_code_conversion_map): Likewise. | |
5771 | * coding.c (setup_coding_system, detect_coding_system, | |
5772 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
5773 | Likewise. | |
5774 | * doc.c (get_doc_string, Fdocumentation, | |
5775 | store_function_docstring): Likewise. | |
5776 | * editfns.c (save_restriction_restore): Likewise. | |
5777 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
5778 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
5779 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
5780 | Likewise. | |
5781 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
5782 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
5783 | Fread_file_name): Likewise. | |
5784 | * filelock.c (unlock_all_files): Likewise. | |
5785 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
5786 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
5787 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
5788 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
5789 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
5790 | current_minor_maps, Faccessible_keymaps, | |
5791 | accessible_keymaps_char_table, Fkey_description, | |
5792 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
5793 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
5794 | describe_map): Likewise. | |
5795 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
5796 | read_list, init_lread): Likewise. | |
5797 | * search.c (Fmatch_data): Likewise. | |
5798 | * sunfns.c (Fsun_menu_internal): Likewise. | |
5799 | * syntax.c (describe_syntax): Likewise. | |
5800 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
5801 | truncate_undo_list): Likewise. | |
5802 | * vmsproc.c (child_sig): Likewise. | |
5803 | ||
5804 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
5805 | ||
5806 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
5807 | ||
5808 | * keyboard.c (command_loop_1): Resize mini-window to the | |
5809 | exact size of a message displayed, if any. | |
5810 | ||
5811 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
5812 | to exact size if exact_p is non-zero. | |
5813 | (display_echo_area_1): Call resize_mini_window with | |
5814 | new parameter. | |
5815 | (redisplay_internal): Ditto. | |
5816 | (resize_echo_area_axactly): New. | |
5817 | ||
5818 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
5819 | new parameter. | |
5820 | ||
5821 | * dispextern.h: Change prototype of resize_mini_window. | |
5822 | Add prototype for resize_echo_area_axactly. | |
5823 | ||
5824 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
5825 | (syms_of_xfaces): Defsubr accordingly. | |
5826 | ||
5827 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
5828 | desired or current matrix. | |
5829 | (redisplay_internal): Hscroll before updating. | |
5830 | ||
5831 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
5832 | ||
5833 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
5834 | of minibuffer_prompt_length. | |
5835 | ||
5836 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
5837 | of minibuffer_prompt_length. | |
5838 | (read_minibuf_unwind): Ditto. | |
5839 | (Fminibuffer_complete_and_exit): Ditto. | |
5840 | (Fminibuffer_complete_word): Ditto. | |
5841 | (Fminibuffer_prompt_end): Ditto. | |
5842 | ||
5843 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
5844 | of minibuffer_prompt_length. | |
5845 | (Fline_beginning_position): Ditto. | |
5846 | ||
5847 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
5848 | of minibuffer_prompt_length. | |
5849 | (Fmake_indirect_buffer): Ditto. | |
5850 | (Fkill_buffer): Ditto. | |
5851 | (Ferase_buffer): Ditto. | |
5852 | ||
5853 | * buffer.h (prompt_end_charpos): Replaces | |
5854 | minibuffer_prompt_length. | |
5855 | ||
5856 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
5857 | without the prompt. | |
5858 | ||
5859 | * editfns.c (make_buffer_string_both): Take out the code | |
5860 | to handle mini-buffer prompts. | |
5861 | (Fbuffer_string): Handle the prompt here, instead. | |
5862 | ||
5863 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
5864 | (Qmode_line): Replaces Qmodeline. | |
5865 | (realize_basic_faces): Use Qmode_line. | |
5866 | (syms_of_xfaces): Initialize Qmode_line. | |
5867 | ||
5868 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
5869 | ||
5870 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
5871 | current column after inserting prompt. | |
5872 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
5873 | ||
5874 | * xfaces.c (Qframe_update_face_colors): New. | |
5875 | (syms_of_xfaces): Initialize call. | |
5876 | (update_face_from_frame_parameter): Call that function when | |
5877 | the frame's background changes. | |
5878 | ||
5879 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
5880 | ||
5881 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
5882 | ||
5883 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
5884 | ||
5885 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
5886 | mark_object, mark_buffer): Use XCAR and XCDR. | |
5887 | * bytecode.c (Fbyte_code): Likewise. | |
5888 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
5889 | Likewise. | |
5890 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
5891 | getenv_internal): Likewise. | |
5892 | * dired.c (file_name_completion): Likewise. | |
5893 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
5894 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
5895 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
5896 | * indent.c (Fcompute_motion): Likewise. | |
5897 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
5898 | list_processes_1, Fstart_process, Fopen_network_stream, | |
5899 | wait_reading_process_input, read_process_output_call, | |
5900 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
5901 | status_notify, wait_reading_process_input): Likewise. | |
5902 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
5903 | extend_property_ranges): Likewise. | |
5904 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
5905 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
5906 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
5907 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
5908 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
5909 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
5910 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
5911 | x_display_info_for_name, Fx_display_list): Likewise. | |
5912 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
5913 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
5914 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
5915 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
5916 | w32_term_init, x_delete_display): Likewise. | |
5917 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
5918 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
5919 | x_top_window_to_frame, x_set_frame_parameters, | |
5920 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
5921 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
5922 | Fx_display_list, x_create_tip_frame): Likewise. | |
5923 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
5924 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
5925 | * xselect.c (x_own_selection, x_get_local_selection, | |
5926 | x_handle_selection_request, x_handle_selection_clear, | |
5927 | x_clear_frame_selections, wait_for_property_change_unwind, | |
5928 | wait_for_property_change, x_handle_property_notify, | |
5929 | copy_multiple_data, x_get_foreign_selection, | |
5930 | lisp_data_to_selection_data, clean_local_selection_data, | |
5931 | x_handle_selection_notify, Fx_get_selection_internal, | |
5932 | x_disown_buffer_selections): Likewise. | |
5933 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
5934 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
5935 | Likewise. | |
5936 | ||
5937 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
5938 | XFLOAT_DATA. | |
5939 | * bytecode.c (Fbyte_code): Likewise. | |
5940 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
5941 | fmod_float): Likewise. | |
5942 | ||
5943 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
5944 | ||
5945 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
5946 | buffers, switch back after. | |
5947 | ||
5948 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
5949 | ||
5950 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
5951 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
5952 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
5953 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
5954 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
5955 | XCDR. | |
5956 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
5957 | XCDR. | |
5958 | ||
5959 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
5960 | ||
5961 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
5962 | not RevertToPointerRoot. | |
5963 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
5964 | Fix the code to clear around the scroll bar. | |
5965 | ||
5966 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
5967 | ||
5968 | * print.c: Support print-circle and related features. | |
5969 | (Vprint_gensym_alist): Removed. | |
5970 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
5971 | Vprint_number_table): New variables. | |
5972 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
5973 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
5974 | (print, print_preprocess, print_preprocess_string, print_object): | |
5975 | New/modified functions with print-circle feature. Use | |
5976 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
5977 | (syms_of_print): Defined new Lisp variables `print-circle', | |
5978 | `print-continuous-numbering', `print-number-table'. | |
5979 | ||
5980 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
5981 | ||
5982 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
5983 | as background color specification instead of an integer. | |
5984 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
5985 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
5986 | (clear_image_cache, syms_of_xfns): Use it. | |
5987 | (Qpostscript): Replaces Qghostscript. | |
5988 | (gs_type): Use it. | |
5989 | (gs_image_p): Ditto. | |
5990 | (syms_of_xfns): Initialize Qpostscript. | |
5991 | ||
5992 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
5993 | ||
5994 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
5995 | ||
5996 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
5997 | ||
5998 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
5999 | ||
6000 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
6001 | ||
6002 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
6003 | ||
6004 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
6005 | ||
6006 | * xfns.c (QCindex): New. | |
6007 | (syms_of_xfns): Initialize QCindex. | |
6008 | (gif_load): Use it instead of `:image'. | |
6009 | ||
6010 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
6011 | ||
6012 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
6013 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
6014 | ||
6015 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
6016 | ||
6017 | * xdisp.c (Qwhen): Replaces QCwhen. | |
6018 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
6019 | (handle_single_display_prop): Use it instead of QCwhen. | |
6020 | ||
6021 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
6022 | ||
6023 | * charset.c (translate_char): Reset MSBs of arguments of | |
6024 | MAKE_CHAR. | |
6025 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
6026 | ||
6027 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
6028 | ||
6029 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
6030 | ||
6031 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
6032 | current accessible portion. | |
6033 | ||
6034 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
6035 | ||
6036 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
6037 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
6038 | ultimate ancestor. | |
6039 | ||
6040 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
6041 | ||
6042 | * xdisp.c (handle_single_display_prop): Change conditional | |
6043 | display property to `:when FORM . VALUE'. | |
6044 | ||
6045 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
6046 | ||
6047 | * fileio.c (Fwrite_region): Doc fix. | |
6048 | ||
6049 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
6050 | ||
6051 | * fileio.c (Qexcl): New variable. | |
6052 | (report_file_error): Handle EEXIST specially. | |
6053 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
6054 | (syms_of_fileio): Initialize Qexcl. | |
6055 | ||
6056 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
6057 | ||
6058 | * xfns.c (x_set_foreground_color): Call | |
6059 | update_face_from_frame_parameter. | |
6060 | (x_set_background_color): Ditto. | |
6061 | (x_set_mouse_color): Ditto. | |
6062 | (x_set_cursor_color): Ditto. | |
6063 | (x_set_border_color): Ditto. | |
6064 | (x_set_scroll_bar_foreground): Ditto. | |
6065 | (x_set_scroll_bar_background): Ditto. | |
6066 | ||
6067 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
6068 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
6069 | if attributes of certain faces are changed. | |
6070 | (update_face_from_frame_parameter): New. | |
6071 | ||
6072 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
6073 | ||
6074 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
6075 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
6076 | ||
6077 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
6078 | (syms_of_xfaces): Intialize new symbols. | |
6079 | ||
6080 | * fns.c (Fmakehash): Take one argument, test, make all the | |
6081 | rest keyword arguments. | |
6082 | ||
6083 | * window.c (Fset_window_margins): Make window the first argument. | |
6084 | (set_window_buffer): Call Fset_window_margins with window as first | |
6085 | argument. | |
6086 | ||
6087 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
6088 | ||
6089 | * xfaces.c (Qfringe): Replaces Qmargin. | |
6090 | ||
6091 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
6092 | ||
6093 | * charset.h: Lots of comments fixed. | |
6094 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
6095 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
6096 | ||
6097 | * charset.c : Lots of comments fixed. | |
6098 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
6099 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
6100 | CHAR_COMPONENT_VALID_P. Caller changed. | |
6101 | ||
6102 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
6103 | ||
6104 | * insdel.c (syms_of_insdel): Define Lisp variable | |
6105 | inhibit-modification-hooks. | |
6106 | ||
6107 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
6108 | ||
6109 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
6110 | unexaix.c. | |
6111 | ||
6112 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
6113 | ||
6114 | 1999-09-06 Dave Love <fx@gnu.org> | |
6115 | ||
6116 | * unexaix.c: New version incorporating Michael Sperber's changes | |
6117 | from XEmacs. Should solve problems on AIX 4.3. | |
6118 | ||
6119 | * lread.c (Vbyte_boolean_vars): New variable. | |
6120 | (defvar_bool, syms_of_lread): Use it. | |
6121 | ||
6122 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
6123 | ||
6124 | * minibuf.c (read_minibuf): Put all three properties on the | |
6125 | same range, the whole prompt. | |
6126 | ||
6127 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
6128 | ||
6129 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
6130 | (Fplay_sound, syms_of_sound): Use it. | |
6131 | (parse_sound): Allow float volume values in the range [0, 1]. | |
6132 | (Fplay_sound): Ditto. | |
6133 | ||
6134 | * window.c (Fset_window_vscroll): Make window the first argument, | |
6135 | amount to scroll the second. Take non-negative vscroll as | |
6136 | argument. | |
6137 | (Fwindow_vscroll): Return non-negative vscroll. | |
6138 | ||
6139 | * xfns.c (Fx_show_tip): Improve documentation. | |
6140 | ||
6141 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
6142 | ||
6143 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
6144 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
6145 | `top-line' and `top_line' to `header-line' and `header_line'. | |
6146 | Likewise for similar spellings. | |
6147 | ||
6148 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
6149 | ||
6150 | * xdisp.c (row_containing_pos): New. | |
6151 | (try_window_id): Use it. | |
6152 | ||
6153 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
6154 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
6155 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
6156 | Likewise for upper-case etc. | |
6157 | ||
6158 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
6159 | ||
6160 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
6161 | Fix reference to renamed variable. | |
6162 | ||
6163 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
6164 | ||
6165 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
6166 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
6167 | Qfixed_window_size. | |
6168 | (syms_of_window): Ditto. | |
6169 | ||
6170 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
6171 | ||
6172 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
6173 | ||
6174 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
6175 | under newly created scroll bar. | |
6176 | (expose_window): If window is not yet fully initialized, do | |
6177 | nothing. This can happen when toolkit scroll bars are used and a | |
6178 | window is split. Reconfiguring the scroll bars will generate an | |
6179 | expose for a newly created window. | |
6180 | ||
6181 | * frame.h (struct frame): New member `gamma'. | |
6182 | ||
6183 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
6184 | we don't see one. | |
6185 | (Qscreen_gamma): New. | |
6186 | (struct x_frame_parm_table): Add prototypes, add | |
6187 | x_set_screen_gamma. | |
6188 | (gamma_correct): New function. | |
6189 | (defined_color): Call it. | |
6190 | (x_set_screen_gamma): New. | |
6191 | (x_set_title): Add parameter old_value. | |
6192 | (RES_TYPE_FLOAT): New. | |
6193 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
6194 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
6195 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
6196 | new prototype. | |
6197 | (lookup_rgb_color): Ditto. | |
6198 | (syms_of_xfns): Initialize Qscreen_gamma. | |
6199 | ||
6200 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
6201 | New. Allocate color for lwlib widgets. | |
6202 | (x_alloc_nearest_color): Change parameter list include the | |
6203 | frame on which to allocate colors. Gamma-correct colors. | |
6204 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
6205 | parameter list. | |
6206 | ||
6207 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
6208 | ||
6209 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
6210 | ||
6211 | * callproc.c: Delete the system-independent include of stdlib.h | |
6212 | (leaving only the one in the WINDOWSNT conditional). | |
6213 | ||
6214 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
6215 | ||
6216 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
6217 | sysdep.c. The Mac code is modeled after the DOS code. | |
6218 | ||
6219 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
6220 | Window types and macros. | |
6221 | ||
6222 | * frame.h: Do nothing if included a second time. | |
6223 | (enum output_method): Add mac_output frame type. | |
6224 | (union output_data): Add new alternative `mac'. | |
6225 | (FRAME_MAC_P): New macro. | |
6226 | ||
6227 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
6228 | (syms_of_frame_1): Initialize Qmac. | |
6229 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
6230 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
6231 | (Fmodify_frame_parameters) [macintosh]: Call | |
6232 | mac_set_frame_parameter in macterm.c. | |
6233 | ||
6234 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
6235 | (512) because Mac compilers limit local data of a function to 32K. | |
6236 | ||
6237 | * make-docfiles.c: Correctly handle input files with Mac-style | |
6238 | eol's. | |
6239 | ||
6240 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
6241 | ||
6242 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
6243 | file of an X Window environment. | |
6244 | ||
6245 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
6246 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
6247 | ||
6248 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
6249 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
6250 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
6251 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
6252 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
6253 | New functions, replacing POSIX features. | |
6254 | ||
6255 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
6256 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
6257 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
6258 | ||
6259 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
6260 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
6261 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
6262 | ||
6263 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
6264 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
6265 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
6266 | Define empty stubs so Emacs will link. | |
6267 | ||
6268 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
6269 | ||
6270 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
6271 | ||
6272 | * window.h: New member frozen_window_start_p. | |
6273 | ||
6274 | * window.c (foreach_window, foreach_window_1): New. | |
6275 | (freeze_window_start, freeze_window_starts): New. | |
6276 | (make_window): Initialize frozen_window_start_p. | |
6277 | (replace_window): Ditto. | |
6278 | (Fset_window_point): Remove references to deleted variables. | |
6279 | (Fset_window_start): Ditto. | |
6280 | ||
6281 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
6282 | resize_mini_initial_height): Removed. | |
6283 | (syms_of_xdisp): Remove references to these variables. | |
6284 | (resize_mini_window): Don't save window configuration, freeze | |
6285 | window starts instead. Enlarge window until displaying an empty | |
6286 | buffer, then shrink it. Make the function externally visible. | |
6287 | (redisplay_window): Treat frozen window start like forced start, | |
6288 | but accept point outside of the window. | |
6289 | ||
6290 | * dispextern.h: Add function prototype for resize_mini_window. | |
6291 | ||
6292 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
6293 | reaching minibuf_level 0. | |
6294 | ||
6295 | * lisp.h: Remove extern declarations for variables deleted from | |
6296 | xdisp.c. | |
6297 | ||
6298 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
6299 | Vresize_mini_config. | |
6300 | ||
6301 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
6302 | ||
6303 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
6304 | to USE_TOOLKIT_SCROLL_BARS. | |
6305 | ||
6306 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
6307 | here. | |
6308 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
6309 | under newly created scroll bar. Put toolkit scroll bars in the | |
6310 | middle of the area reserved for the scroll bar. | |
6311 | ||
6312 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
6313 | ||
6314 | The following changes are for the new handling of mulitbyte | |
6315 | sequence. Now, except for a composite character, no multibyte | |
6316 | character in string/buffer has trailing garbage bytes. For | |
6317 | instance, the length of string "\201\300\300" is now 2, the first | |
6318 | character is Latin-1 A-grave, the second is raw \300. | |
6319 | ||
6320 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
6321 | are negative. | |
6322 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
6323 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
6324 | (PARSE_COMPOSITE_SEQ): New macro. | |
6325 | (PARSE_CHARACTER_SEQ): New macro. | |
6326 | (PARSE_MULTIBYTE_SEQ): New macro. | |
6327 | (CHAR_PRINTABLE_P): New macro. | |
6328 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
6329 | (STRING_CHAR_AND_LENGTH): Likewise. | |
6330 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
6331 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
6332 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
6333 | ||
6334 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
6335 | (SPLIT_CHARACTER_SEQ): New macro. | |
6336 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
6337 | (CHAR_COMPONENT_VALID_P): New macro. | |
6338 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
6339 | as possible. | |
6340 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
6341 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
6342 | (split_non_ascii_string): Likewise. | |
6343 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
6344 | (char_printable_p): New function. | |
6345 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
6346 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
6347 | VALID_MULTIBYTE_CHAR_P. | |
6348 | (Fmake_char_internal): Check the arguments more rigidly. | |
6349 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
6350 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
6351 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
6352 | CHAR_VALID_P. | |
6353 | (chars_in_text): Call multibyte_chars_in_text. | |
6354 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
6355 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
6356 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
6357 | ||
6358 | * data.c (Faset): Adjust the way to check byte-combining | |
6359 | possibility for the new handling of multibyte sequence. | |
6360 | ||
6361 | * editfns.c (Fsubst_char_in_region): Likewise. | |
6362 | ||
6363 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
6364 | (string_char_to_byte): Likewise. | |
6365 | (string_byte_to_char): Likewise. | |
6366 | ||
6367 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
6368 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
6369 | ||
6370 | * insdel.c (count_combining_composition): New function. | |
6371 | (count_combining_before): Adjust the way to check byte-combining | |
6372 | possibility for the new handling of multibyte sequence. Call | |
6373 | count_combining_composition for a composite character. | |
6374 | (count_combining_after): Likewise. | |
6375 | ||
6376 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
6377 | (print): Likewise. | |
6378 | ||
6379 | * dispextern.h (struct it): Change the size of the member | |
6380 | `ctl_chars'. | |
6381 | ||
6382 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
6383 | sequence (e.g. \222\300) by octal form. | |
6384 | ||
6385 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
6386 | ||
6387 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
6388 | ||
6389 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
6390 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
6391 | ||
6392 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
6393 | ||
6394 | * buffer.c (set_buffer_internal): Never set | |
6395 | windows_or_buffers_changed. | |
6396 | ||
6397 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
6398 | if we have displayed to the bottom of the window. | |
6399 | ||
6400 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
6401 | in both directions. Extend documentation. | |
6402 | ||
6403 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
6404 | ||
6405 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
6406 | column 0. | |
6407 | ||
6408 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
6409 | ||
6410 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
6411 | already defined. This avoids a warning from buffer.c. | |
6412 | ||
6413 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
6414 | ||
6415 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
6416 | of both margins. | |
6417 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
6418 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
6419 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
6420 | ||
6421 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
6422 | once instead of twice. | |
6423 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
6424 | ||
6425 | * xterm.c: Remove unused bitmaps. | |
6426 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
6427 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
6428 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
6429 | (x_after_update_window_line): Ditto. | |
6430 | (x_draw_bitmap): Likewise. | |
6431 | (x_draw_row_bitmaps): Likewise. | |
6432 | (x_draw_glyph_string_box): Likewise. | |
6433 | (x_draw_glyphs): Likewise. | |
6434 | (x_scroll_run): Likewise. | |
6435 | (expose_window_tree): Likewise. | |
6436 | (note_mode_line_highlight): Likewise. | |
6437 | (XTset_vertical_scroll_bar): Likewise. | |
6438 | (x_clip_to_row): Likewise. | |
6439 | (x_set_window_size): Likewise. | |
6440 | ||
6441 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
6442 | of 2 * that value. | |
6443 | ||
6444 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
6445 | 2 * that value. | |
6446 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
6447 | FRAME_FLAGS_AREA_WIDTH. | |
6448 | ||
6449 | * window.c (coordinates_in_window): Use | |
6450 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
6451 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
6452 | instead of twice. | |
6453 | ||
6454 | * widget.c (set_frame_size): Set flags_area_extra to | |
6455 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
6456 | (EmacsFrameSetCharSize): Ditto. | |
6457 | ||
6458 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
6459 | instead of FRAME_FLAGS_AREA_WIDTH. | |
6460 | ||
6461 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
6462 | FRAME_FLAGS_AREA_COLS once. | |
6463 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
6464 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
6465 | ||
6466 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
6467 | ||
6468 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
6469 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
6470 | ||
6471 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
6472 | ||
6473 | * fns.c (QCweakness): Replaces QCweak. | |
6474 | (Fmake_hash_table): Ditto. | |
6475 | (Fmakehash): Ditto. | |
6476 | (syms_of_fns): Ditto. | |
6477 | ||
6478 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
6479 | ||
6480 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
6481 | ||
6482 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
6483 | ||
6484 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
6485 | Add support for nested comments. | |
6486 | ||
863476d1 SM |
6487 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
6488 | Consolidate the forward comment code into the new `forw_comment'. | |
6489 | (forw_comment): New subroutine. Added support for nested comments. | |
6490 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
6491 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
6492 | |
6493 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
6494 | ||
6495 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
6496 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
6497 | defined, to help detect code that uses knowledge of the Lisp | |
6498 | internals that it shouldn't have. | |
6499 | (XFLOAT_DATA): New macro. | |
6500 | ||
6501 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
6502 | ||
6503 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
6504 | backwards, stop in front of the prompt to prevent accidentially | |
6505 | moving into the read-only prompt. | |
6506 | ||
6507 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
6508 | ||
6509 | * xdisp.c (resize_mini_window): Don't resize if | |
6510 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
6511 | Vmax_mini_window_height is not ot a number. | |
6512 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
6513 | ||
6514 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
6515 | ||
6516 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
6517 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
6518 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
6519 | * unexsgi.c: Deleted. | |
6520 | ||
6521 | * unexelf.c: Auto-detect .sbss section. | |
6522 | (round_up): Make it static. | |
6523 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
6524 | segment above .bss'' test on MIPS without .sbss. | |
6525 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
6526 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
6527 | ||
6528 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
6529 | ||
6530 | * xdisp.c (try_window_id): Remove typo. | |
6531 | ||
6532 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
6533 | ||
6534 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
6535 | unchanged text at the bottom when computing the cursor position. | |
6536 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
6537 | set. | |
6538 | ||
6539 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
6540 | ||
6541 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
6542 | ||
6543 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
6544 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
6545 | (syms_of_xfaces): Ditto. | |
6546 | ||
6547 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
6548 | (Fset_window_start): Ditto. | |
6549 | (set_window_buffer): Ditto. | |
6550 | ||
6551 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
6552 | ||
6553 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
6554 | before calling try_window. | |
6555 | (echo_area_display): If height has changed, update other windows. | |
6556 | (resize_mini_frame, resize_mini_initial_height): New. | |
6557 | (resize_mini_window): Save/restore window configuration | |
6558 | differently. | |
6559 | ||
6560 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
6561 | resize_mini_initial_height): Add extern declarations. | |
6562 | ||
6563 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
6564 | CANON_X_UNIT. | |
6565 | ||
6566 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
6567 | being redefined in jconfig.h. | |
6568 | ||
6569 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
6570 | ||
6571 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
6572 | ||
6573 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
6574 | ||
6575 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
6576 | ||
6577 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
6578 | resizing mini-window. | |
6579 | ||
6580 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
6581 | ||
6582 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
6583 | set_buffer_internal_1 instead of set_buffer_internal. | |
6584 | (with_echo_area_buffer): Ditto. | |
6585 | ||
6586 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
6587 | only if buffer is displayed somewhere. | |
6588 | ||
6589 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
6590 | ||
6591 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
6592 | (gap_right): Ditto. | |
6593 | (modify_region): Ditto. | |
6594 | ||
6595 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
6596 | ||
6597 | * xdisp.c (Vresize_mini_config): New. | |
6598 | (resize_mini_window): Use it to save restore original window | |
6599 | configuration | |
6600 | (syms_of_xdisp): Initialize it. | |
6601 | ||
6602 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
6603 | ||
6604 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
6605 | ||
6606 | * xdisp.c (reconsider_clip_changes): New. | |
6607 | (redisplay_internal, redisplay_window): Call it. | |
6608 | (mark_window_display_accurate, redisplay_internal): Set current | |
6609 | matrix' buffer, begv, zv. | |
6610 | ||
6611 | * window.c (Fset_window_hscroll): Set | |
6612 | prevent_redisplay_optimizations_p instead of clip_changed. | |
6613 | (Fset_window_hscroll): Ditto. | |
6614 | (temp_output_buffer_show): Ditto. | |
6615 | (Fset_window_vscroll): Ditto. | |
6616 | ||
6617 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
6618 | prevent_redisplay_optimizations_p to 1. | |
6619 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
6620 | ||
6621 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
6622 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
6623 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
6624 | END_UNCHANGED): New. | |
6625 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
6626 | unchanged_modified, overlay_unchanged_modified. | |
6627 | ||
6628 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
6629 | overlay_unchanged_modified): Removed. | |
6630 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
6631 | (unwind_with_echo_area_buffer): Don't restore them. | |
6632 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
6633 | (text_outside_line_unchanged_p, redisplay_internal, | |
6634 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
6635 | (redisplay_window): Let try_window_id be called if more than one | |
6636 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
6637 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
6638 | try_window_id): | |
6639 | Use buffer-specific beg/end_unchanged. | |
6640 | ||
6641 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
6642 | overlay_unchanged_modified): Remove extern declarations. | |
6643 | ||
6644 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
6645 | buffer. | |
6646 | ||
6647 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
6648 | (gap_right): Ditto. | |
6649 | (adjust_after_replace): Likewise. | |
6650 | (replace_range, del_range_2, modify_region): Likewise. | |
6651 | ||
6652 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
6653 | and unchanged_modified per buffer. | |
6654 | ||
6655 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
6656 | buffer. | |
6657 | ||
6658 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
6659 | per buffer. | |
6660 | (Fget_buffer_create): Initialize new members of the buffer | |
6661 | structure. | |
6662 | ||
6663 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
6664 | ||
6665 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
6666 | ||
6667 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
6668 | (Qkey_value_weak): Removed. | |
6669 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
6670 | (Fmake_hash_table): Ditto. | |
6671 | (copy_hash_table): New. | |
6672 | (Fcopy_hash_table): New. | |
6673 | ||
6674 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
6675 | ||
6676 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
6677 | new parameter. | |
6678 | ||
6679 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
6680 | ||
6681 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
6682 | well. | |
6683 | (redisplay_internal): Resize mini-window only if text might | |
6684 | have changed. | |
6685 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
6686 | at the end if we're displaying a nil message. | |
6687 | ||
6688 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
6689 | ||
6690 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
6691 | function. | |
6692 | (hash_remove): Ditto. | |
6693 | (cmpfn_eq): Removed. | |
6694 | (cmpfn_eql): Don't test with EQ. | |
6695 | (cmpfn_equal): Ditto. | |
6696 | (make_hash_table): Set comparison function for `eq' to null. | |
6697 | ||
6698 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
6699 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
6700 | ||
6701 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
6702 | ||
6703 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
6704 | xterm.c: Call change_frame_size and do_pending_window_change with | |
6705 | new parameter. | |
6706 | ||
6707 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
6708 | (change_frame_size): Ditto. | |
6709 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
6710 | and not called from a safe place. | |
6711 | (window_change_signal): Call change_frame_size with new parameter. | |
6712 | ||
6713 | * dispextern.h: Change prototypes for do_pending_window_change | |
6714 | and change_frame_size. | |
6715 | ||
6716 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
6717 | window's buffers equals current_buffer; this is not the | |
6718 | case during echo area display. | |
6719 | ||
6720 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
6721 | ||
6722 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
6723 | NO_PROMPT_IN_BUFFER. | |
6724 | ||
6725 | * minibuf.c (Fminibuffer_prompt_end): New. | |
6726 | (syms_of_minibuf): Defsubr it. Remove | |
6727 | minibuffer-prompt-in-buffer. | |
6728 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
6729 | Extend documentation. | |
6730 | ||
6731 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
6732 | ||
6733 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
6734 | under scroll bar widget. | |
6735 | ||
6736 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
6737 | ||
6738 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
6739 | anywhere. | |
6740 | (unwind_redisplay): Return nil. | |
6741 | (clear_garbaged_frames): New. | |
6742 | (redisplay_internal): Use it. | |
6743 | (echo_area_display): Ditto. | |
6744 | (resize_mini_window): Mew. | |
6745 | (display_echo_area_1): Use it to resize echo area window. | |
6746 | (redisplay_internal): Use it to resize active mini-window. | |
6747 | ||
6748 | * dispextern.h, lisp.h: Add function prototypes. | |
6749 | ||
6750 | * dispnew.c (set_window_cursor_after_update): Do the | |
6751 | cursor_in_echo_area case only for a mini-window showing | |
6752 | a message. Don't let cursor end up after the end of a row. | |
6753 | ||
6754 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
6755 | echo_area_glyphs_length, previous_echo_glyphs, | |
6756 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
6757 | Removed. | |
6758 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
6759 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
6760 | (message2_nolog): Use set_message and clear_message. | |
6761 | (message3): Rename parameter len to nbytes to make clear what | |
6762 | it is. | |
6763 | (message3_nolog): Ditto. Use set_message and clear_message. | |
6764 | (update_echo_area): Rewritten. | |
6765 | (with_echo_area_buffer): New. | |
6766 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
6767 | (setup_echo_area_for_printing): New. | |
6768 | (display_echo_area, display_echo_area_1): New. | |
6769 | ||
6770 | (current_message, current_message_1): New. | |
6771 | (push_message, restore_message, pop_message, | |
6772 | check_message_stack): New. | |
6773 | (truncate_echo_area): Rewritten. | |
6774 | (truncate_message_1): New. | |
6775 | (set_message, set_message_1, clear_message): New. | |
6776 | (echo_area_display): Rewritten. | |
6777 | (redisplay_internal): Check for needed echo area update | |
6778 | differently. | |
6779 | (redisplay_preserve_echo_area): Rewritten. | |
6780 | (redisplay_window): Check for mini-window displaying echo area | |
6781 | message differently. | |
6782 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
6783 | Remove initialzation of removed variables. | |
6784 | (init_xdisp): Remove references to removed variables. | |
6785 | ||
6786 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
6787 | to echo_area_glyphs and previous_echo_glyphs. | |
6788 | (direct_output_for_insert): Check for mini-window displaying | |
6789 | echo area message differently. | |
6790 | (update_frame): Likewise. | |
6791 | (set_window_cursor_after_update): Likewise. In echo area, | |
6792 | don't try to set cursor on rows that aren't enabled. | |
6793 | ||
6794 | * print.c: Remove conditional compilation on `standalone'. | |
6795 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
6796 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
6797 | longer used in that way. | |
6798 | (PRINTDECLARE): Add multibyte. | |
6799 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
6800 | (printbufidx): Removed. | |
6801 | (printchar, strout): Rewritten. | |
6802 | ||
6803 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
6804 | a struct kboard. | |
6805 | (echo_kboard): New. | |
6806 | (echo_now): Set echo_kboard to the current kboard. | |
6807 | (cancel_echoing): Set echo_kboard to null. | |
6808 | (cmd_error_internal): Use clear_message, remove references | |
6809 | to echo_area_glyphs and echo_area_message. | |
6810 | (command_loop_1): Check for echo area messages differently. | |
6811 | (read_char): Likewise. | |
6812 | (record_menu_key): Use clear_message. | |
6813 | (Fexecute_extended_command): Check for echo area messages | |
6814 | differently. Use push_message, restore_message, pop_message. | |
6815 | ||
6816 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
6817 | pop_message. | |
6818 | ||
6819 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
6820 | ||
6821 | * lisp.h: Add function prototypes and extern declarations for | |
6822 | new functions and variables. | |
6823 | ||
6824 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
6825 | pop_message. | |
6826 | ||
6827 | * minibuf.c (read_minibuf): Use clear_message instead of | |
6828 | setting echo_area_glyphs. | |
6829 | (Fminibuffer_completion_help): Ditto. | |
6830 | ||
6831 | * editfns.c (Fcurrent_message): Rewritten. | |
6832 | ||
6833 | * frame.c, window.h: Remove references to echo_area_glyphs | |
6834 | and previous_echo_glyphs. | |
6835 | ||
6836 | 1999-08-21 Dave Love <fx@gnu.org> | |
6837 | ||
6838 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
6839 | * aix4-1.h: Likewise. | |
6840 | ||
6841 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
6842 | ||
6843 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
6844 | ||
6845 | * xfns.c: Remove tiff34 prefix from include. | |
6846 | ||
6847 | 1999-08-20 Dave Love <fx@gnu.org> | |
6848 | ||
6849 | * cm.c: Revert previous change. | |
6850 | ||
6851 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
6852 | ||
6853 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
6854 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
6855 | ||
6856 | 1999-08-18 Dave Love <fx@gnu.org> | |
6857 | ||
6858 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
6859 | stdlib.h. | |
6860 | ||
6861 | * doprnt.c: Use stdlib.h, unistd.h. | |
6862 | ||
6863 | * config.in: Add HAVE_TERMCAP_H. | |
6864 | ||
6865 | * cm.c: Use termcap.h. | |
6866 | ||
6867 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
6868 | ||
6869 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
6870 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
6871 | cannot be created we will already have crashed earlier. Call | |
6872 | lw_set_main_areas with a null menu-bar widget, so that we have | |
6873 | a reasonable default. | |
6874 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
6875 | initialization cause less damage. Initialize menu bar widget | |
6876 | here. | |
6877 | ||
6878 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
6879 | ||
6880 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
6881 | whole line clear to end of frame. | |
6882 | ||
6883 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
6884 | ||
6885 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
6886 | and `right-bitmap-area' if position is in the bitmap areas. This | |
6887 | avoids an error when clicking on the bitmap areas. Instead, they | |
6888 | are currently treated like clicks inside the window. | |
6889 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
6890 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
6891 | (syms_of_window): Initialize new symbols. | |
6892 | ||
6893 | * dispnew.c (update_frame_line): If writing whole line, | |
6894 | don't write trailing spaces unless we must. | |
6895 | ||
6896 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
6897 | (redisplay_internal): Register unwind_redisplay with | |
6898 | register_unwind_protect. | |
6899 | (try_window_reusing_current_matrix): If new start > old start, | |
6900 | give up if start pos of first reusable row is not equal to new | |
6901 | start. | |
6902 | ||
6903 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
6904 | ||
6905 | * xterm.c (expose_area): If row extends face to end of line, | |
6906 | write the whole line. | |
6907 | ||
6908 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
6909 | ||
6910 | * dispextern.h (struct it): Remove member | |
6911 | show_trailing_whitespace_p. | |
6912 | ||
6913 | * dispnew.c (direct_output_for_insert): Use | |
6914 | Vshow_trailing_whitespace instead of former iterator member | |
6915 | show_trailing_whitespace_p. | |
6916 | (direct_output_forward_char): Don't do it if hightlighting | |
6917 | trailing whitespace. | |
6918 | ||
6919 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
6920 | (Vshow_trailing_whitespace): Added. | |
6921 | (init_iterator): Remove initialization code for | |
6922 | show_trailing_whitespace_p. | |
6923 | (redisplay_internal): Don't try cursor movement in this_line | |
6924 | if showing trailing whitespace. | |
6925 | (redisplay_window): Likewise for cursor movement in current | |
6926 | matrix and try_window_id. | |
6927 | (try_window_reusing_current_matrix): Likewise. | |
6928 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
6929 | in front of point. | |
6930 | (display_line): Use Vshow_trailing_whitespace instead of | |
6931 | former iterator member show_trailing_whitespace_p. | |
6932 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
6933 | ||
6934 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
6935 | ||
6936 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
6937 | ||
6938 | * xfaces.c (add_to_log): Renamed from display_message. | |
6939 | Don't display messages in echo area. | |
6940 | ||
6941 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
6942 | of the glyph string for the width of the box. | |
6943 | ||
6944 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
6945 | ||
6946 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
6947 | ||
6948 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
6949 | ||
6950 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
6951 | background first, and then set other parameters that might | |
6952 | depend upon their new values. | |
6953 | ||
6954 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
6955 | ||
6956 | * xfaces.c (Vfont_list_limit): New. | |
6957 | (syms_of_xfaces): Make it a user-variable. | |
6958 | (DEFAULT_FONT_LIST_LIMIT): New. | |
6959 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
6960 | maximally that number of fonts, otherwise use | |
6961 | DEFAULT_FONT_LIST_LIMIT. | |
6962 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
6963 | until we have all fonts. | |
6964 | (Fxfont_list): Additionally return the full names of fonts and | |
6965 | their registry and encoding. | |
6966 | ||
6967 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
6968 | Simplify clearing "under" scroll bar. | |
6969 | ||
6970 | * window.c (Qfixed_window_size): New. | |
6971 | (syms_of_window): Initialiaze it. | |
6972 | (check_all_windows): Add return type void. | |
6973 | (window_fixed_size_p): New. Return non-zero if window | |
6974 | is fixed-size. | |
6975 | (window_min_size_1): New. | |
6976 | (window_min_size): Handle fixed-size windows. | |
6977 | (size_window): New. Rewritten combination of set_window_height and | |
6978 | set_window_width that handles fixed-size windows. | |
6979 | (set_window_height): Call it. | |
6980 | (set_window_width): Call it. | |
6981 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
6982 | window. | |
6983 | (change_window_height): Partly rewritten to handle fixed-size | |
6984 | windows. | |
6985 | ||
6986 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
6987 | ||
6988 | * process.c (Fopen_network_stream): Fix previous change. | |
6989 | ||
6990 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
6991 | ||
6992 | * xdisp.c (line_number_display_limit_width): New var. | |
6993 | (decode_mode_spec): Use it instead of hardcoded value. | |
6994 | (syms_of_xdisp): Defvar it. | |
6995 | ||
6996 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
6997 | ||
6998 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
6999 | (run_hook_with_args): Likewise. | |
7000 | ||
7001 | * window.h (struct window): New field too_small_ok. | |
7002 | ||
7003 | * window.c (set_window_height, set_window_width): | |
7004 | If window starts out "too small", set its too_small_ok flag. | |
7005 | If window's too_small_ok flag is set, don't delete it | |
7006 | unless it is so small it would cause a crash. | |
7007 | ||
7008 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
7009 | ||
7010 | * window.c (MINSIZE): Removed. | |
7011 | (window_min_size): New. | |
7012 | (set_window_height): Use window_min_size. | |
7013 | (change_window_height): Ditto. | |
7014 | ||
7015 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
7016 | ||
7017 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
7018 | if prompts are inserted into mini-buffer. | |
7019 | ||
7020 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
7021 | ||
7022 | * config.in: Add HAVE_GETADDRINFO. | |
7023 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
7024 | ||
7025 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
7026 | ||
7027 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
7028 | glyphs to -1. | |
7029 | ||
7030 | * xdisp.c (face_before_or_after_it_pos): If position after | |
7031 | or before iterator's current position in the buffer is out | |
7032 | of bounds, return the iterator's original face id. | |
7033 | ||
7034 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
7035 | just swap glyphs pointers between current and desired row. | |
7036 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
7037 | desired matrix method string to current matrix. | |
7038 | ||
7039 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
7040 | ||
7041 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
7042 | ||
7043 | * lread.c (read_escape): For Control modifier, pay attention to | |
7044 | multibyte character. | |
7045 | (read1): Likewise. Singal error or a multibyte character which | |
7046 | has a modifer bit. Check validity of Shift modifer. | |
7047 | ||
7048 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
7049 | the same as Lisp reader. | |
7050 | ||
7051 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
7052 | ||
7053 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
7054 | ||
7055 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
7056 | ||
7057 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
7058 | ||
7059 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
7060 | ||
7061 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
7062 | and cached. | |
7063 | (IT_write_glyphs): Reset the screen face to the default face | |
7064 | before writing glyphs. | |
7065 | ||
7066 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
7067 | colors from the frame here. | |
7068 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
7069 | attributes with the actual name of the color taken from the | |
7070 | frame. | |
7071 | ||
7072 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
7073 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
7074 | ||
7075 | * frame.c (Fframe_parameters): Swap foreground and background | |
7076 | colors returned in frame parameters if the frame has reverse in | |
7077 | its parameter alist. | |
7078 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
7079 | each frame. | |
7080 | ||
7081 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
7082 | ||
7083 | * buffer.c (Fprevious_overlay_change): Just return | |
7084 | the answer obtained from overlays_at. | |
7085 | ||
7086 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
7087 | Use XpmCloseness and attrs.closeness instead. | |
7088 | ||
7089 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
7090 | ||
7091 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
7092 | ||
7093 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
7094 | ||
7095 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
7096 | Ffile_attributes_lessp): New functions. | |
7097 | (Fdirectory_files): Use directory_files_internal. | |
7098 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
7099 | Ffile_attributes_lessp. | |
7100 | ||
7101 | * w32.c (stat): Check for directory ending in separator when | |
7102 | doing readdir fast path. | |
7103 | ||
7104 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
7105 | * w32term.c (x_bitmap_icon): New function. | |
7106 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
7107 | ||
7108 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
7109 | ||
7110 | * xdisp.c (set_iterator_to_next): After delivering a character | |
7111 | from a display vector, restore face and charset to what they were | |
7112 | before the display vector was processed. | |
7113 | ||
7114 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
7115 | ||
7116 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
7117 | on_newline_p. | |
7118 | (set_iterator_to_next): After delivering last char | |
7119 | from display vector, reseat on next visible line start if | |
7120 | dpvec_char_len < 0. | |
7121 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
7122 | selective display. | |
7123 | ||
7124 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
7125 | ||
7126 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
7127 | is larger than its logical ascent, use the physical ascent, and | |
7128 | make the row taller. Set row's overlapping_p flag. | |
7129 | ||
7130 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
7131 | (direct_output_for_insert): Ditto. | |
7132 | ||
7133 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
7134 | ||
7135 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
7136 | ||
7137 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
7138 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
7139 | ||
7140 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
7141 | row is overlapped by others. | |
7142 | (update_text_area): Write full line if current line is overlapped. | |
7143 | (redraw_overlapped_rows): New. | |
7144 | (update_window): Call it. | |
7145 | (redraw_overlapping_rows): New. | |
7146 | (update_window): Call it. | |
7147 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
7148 | unchanged. | |
7149 | (row_equal_p): Take rows overlapped_p flag into account. | |
7150 | ||
7151 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
7152 | ||
7153 | * xterm.c (x_fix_overlapping_area): New. | |
7154 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
7155 | ||
7156 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
7157 | ||
7158 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
7159 | ||
7160 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
7161 | (struct glyph_string): Add member for_overlaps_p. | |
7162 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
7163 | of overlapping rows, clip to window bottom. | |
7164 | (x_fill_glyph_string): Add parameter overlaps_p. | |
7165 | (x_fill_composite_glyph_string): Ditto. | |
7166 | (BUILD_GLYPH_STRINGS): Ditto. | |
7167 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
7168 | (x_draw_glyph_string): Don't draw anything but the foreground | |
7169 | if glyph string draws row overlaps. | |
7170 | ||
7171 | * dispnew.c (direct_output_for_insert): Don't use this | |
7172 | optimization for rows that overlap others. | |
7173 | (update_window_line): Return non-zero if display has changed. | |
7174 | (update_text_area): Ditto. | |
7175 | (update_window): Record if display has been changed. | |
7176 | ||
7177 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
7178 | ||
7179 | * dispextern.h (struct redisplay_interface): Add | |
7180 | fix_overlapping_area. | |
7181 | ||
7182 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
7183 | ||
7184 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
7185 | ||
7186 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
7187 | ascent and descent. | |
7188 | (x_produce_stretch_glyph): Ditto. | |
7189 | (x_produce_glyphs): Ditto. | |
7190 | ||
7191 | * xdisp.c (init_iterator): Reset physical line height info | |
7192 | after producing special glyphs. | |
7193 | (display_toolbar_line): Set physical line height info. | |
7194 | (compute_line_metrics): Ditto. | |
7195 | (display_line): Ditto. | |
7196 | (display_string): Ditto. | |
7197 | ||
7198 | * term.c (produce_glyphs): Set iterator's physical height | |
7199 | information. | |
7200 | ||
7201 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
7202 | (row_equal_p): Take physical row heights into account. | |
7203 | (direct_output_for_insert): Ditto. | |
7204 | (update_text_area): Ditto. | |
7205 | ||
7206 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
7207 | phys_height. | |
7208 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
7209 | max_phys_descent. | |
7210 | ||
7211 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
7212 | ||
7213 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
7214 | Fswitch_to_buffer. | |
7215 | (no_switch_buffer): New function. | |
7216 | (Fswitch_to_buffer): Call them. Don't get confused | |
7217 | by "same-window" buffers in a dedicated frame. | |
7218 | ||
7219 | * window.c (display-buffer): Don't get confused | |
7220 | by "same-window" buffers in a dedicated frame. | |
7221 | ||
7222 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
7223 | ||
7224 | * insdel.c (insert_from_string_1): Check gap size against number | |
7225 | of outgoing bytes, not incoming bytes. | |
7226 | ||
7227 | 1999-08-03 Tom Breton <tob@world.std.com> | |
7228 | ||
7229 | * lread.c (read1): Added circular reading code to #N=. | |
7230 | (SUBSTITUTE): New macro. | |
7231 | (seen_list): New variable. | |
7232 | (substitute_object_in_subtree): New function. | |
7233 | (substitute_object_recurse): New function. | |
7234 | (substitute_in_interval): New function. | |
7235 | ||
7236 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
7237 | ||
7238 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
7239 | ||
7240 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
7241 | noninteractive, for termcap frames as well. | |
7242 | ||
7243 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
7244 | frames. | |
7245 | ||
7246 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
7247 | ||
7248 | * fns.c (internal_equal): Correct overlay comparison. | |
7249 | ||
83c8f461 | 7250 | 1999-07-31 Richard M. Stallman <rms@gnu.org> |
26901792 DL |
7251 | |
7252 | * xfns.c (x_set_internal_border_width): | |
7253 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
7254 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
7255 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
7256 | ||
7257 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
7258 | (Fset_frame_width, Fset_frame_size): Likewise. | |
7259 | ||
7260 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
7261 | specify 1 for DELAY. | |
7262 | ||
7263 | * widget.c (EmacsFrameSetCharSize): Don't call | |
7264 | do_pending_window_change here. | |
7265 | ||
7266 | 1999-07-30 Dave Love <fx@gnu.org> | |
7267 | ||
7268 | * config.in: Add HAVE_STDLIB_H. | |
7269 | ||
7270 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
7271 | ||
7272 | * process.c (create_process): Detect failure of `pipe'. | |
7273 | ||
7274 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
7275 | ||
7276 | * alloc.c (allocate_vectorlike): Add missing increment. | |
7277 | ||
7278 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
7279 | ||
7280 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
7281 | before calling indirect_function. | |
7282 | ||
7283 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
7284 | ||
7285 | * dispextern.h (load_color, lookup_derived_face): Declare | |
7286 | prototypes. | |
7287 | ||
7288 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
7289 | it will be done later. | |
7290 | ||
7291 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
7292 | init_frame_faces if non-interactive. | |
7293 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
7294 | array with a call to msdos_stdcolor_name. The font name is now | |
7295 | "ms-dos", consistent with realize_tty_face. | |
7296 | ||
7297 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
7298 | MSDOS frame. | |
7299 | ||
7300 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
7301 | x_set_toolbar_lines. | |
7302 | ||
7303 | * xfaces.c (load_color): Remove static from definition and remove | |
7304 | prototype. | |
7305 | [MSDOS]: Add a DOS-specific version of load_color. | |
7306 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
7307 | (lookup_derived_face): New function. | |
7308 | (realize_default_face): Support MSDOS frames. | |
7309 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
7310 | from the frame. | |
7311 | (realize_face): Support MSDOS frames. | |
7312 | (realize_tty_face): Support MSDOS frames. | |
7313 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
7314 | load_color to try to find a suitable approximation. If the face | |
7315 | is inverse-video, swap the foreground and background colors. | |
7316 | ||
7317 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
7318 | functions. | |
7319 | ||
7320 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
7321 | ||
7322 | * msdos.h: Remove redundant declarations (most of them are now in | |
7323 | dispextern.h). | |
7324 | ||
7325 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
7326 | Use default frame colors if the face doesn't specify them; invert | |
7327 | the colors if highlight is ON. | |
7328 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
7329 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
7330 | how the hook is called by term.c. | |
7331 | (IT_copy_glyphs): New function, copies an area of the display in | |
7332 | video RAM. | |
7333 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
7334 | redisplay now calls it even if char_ins_del_ok is zero. | |
7335 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
7336 | load_color. Puts the new fore/background colors into the default | |
7337 | face on current frame. | |
7338 | (IT_menu_display): Rewritten to handle the new struct glyph | |
7339 | instead of a char array. | |
7340 | (XMenuActivate): Call lookup_derived_face to create and use | |
7341 | special faces for the pop-up and drop-down menus. | |
7342 | ||
7343 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
7344 | ||
7345 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
7346 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
7347 | that function apparently isn't optimized for this case. | |
7348 | ||
7349 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
7350 | ||
7351 | * msdos.c (getdefdir): Don't return failure indication when | |
7352 | _fixpath sets errno to ENOSYS. | |
7353 | ||
7354 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
7355 | ||
7356 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
7357 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
7358 | ||
7359 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
7360 | ||
7361 | * fns.c (count_combining): New function. | |
7362 | (struct textprop_rec): New structure. | |
7363 | (concat): Copy text properties correctly when byte combining | |
7364 | occurs. | |
7365 | ||
7366 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
7367 | ||
7368 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
7369 | if display is mono. | |
7370 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
7371 | to foreground color for clearing areas, and set the fill style. | |
7372 | ||
7373 | * xfaces.c (load_face_colors): Load background color if setting | |
7374 | stipple, too. | |
7375 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
7376 | FillStippled. | |
7377 | ||
7378 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
7379 | ||
7380 | * xterm.c (x_find_ccl_program): Add casting. | |
7381 | ||
7382 | * w32fns.c (w32_find_ccl_program): Add casting. | |
7383 | ||
7384 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
7385 | ||
7386 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
7387 | ||
7388 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
7389 | because this will try to access a nonexisting widget. | |
7390 | ||
7391 | 1999-07-26 Markus Rost <rost@gnu.org> | |
7392 | ||
7393 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
7394 | (Fputhash): Ditto. | |
7395 | (Fremhash): Ditto. | |
7396 | ||
7397 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
7398 | ||
7399 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
7400 | value to frame width and height. | |
7401 | ||
7402 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
7403 | into account for full-width windows. Don't add scroll bar width | |
7404 | to width of clip rect. | |
7405 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
7406 | (x_set_glyph_string_background_width): Add 1 to background width. | |
7407 | (x_draw_glyphs): Take internal border into account for full-width | |
7408 | lines. | |
7409 | ||
7410 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
7411 | ||
7412 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
7413 | Don't allow nil as color value. | |
7414 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
7415 | Always unload the old color. | |
7416 | ||
7417 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
7418 | ||
7419 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
7420 | ||
7421 | * fns.c (Fy_or_n_p): Doc fix. | |
7422 | ||
7423 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
7424 | ||
7425 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
7426 | ||
7427 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
7428 | stored in the following CCL code. Adjusted for the change of | |
7429 | Vccl_program_table. | |
7430 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
7431 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
7432 | is resolving failed. | |
7433 | (ccl_get_compiled_code): New function. | |
7434 | (setup_ccl_program): Function type changed from `void' to `int'. | |
7435 | Resolve symbols in CCL_PROG. | |
7436 | (Fccl_program_p): New function. | |
7437 | (Fccl_execute): Get compiled CCL code by just calling | |
7438 | setup_ccl_program. | |
7439 | (Fccl_execute_on_string): Likewise. | |
7440 | (Fregister_ccl_program): Adjusted for the change of | |
7441 | Vccl_program_table. | |
7442 | ||
7443 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
7444 | calling setup_ccl_program. | |
7445 | ||
7446 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
7447 | calling setup_ccl_program. | |
7448 | ||
7449 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
7450 | calling setup_ccl_program. | |
7451 | ||
7452 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
7453 | ||
7454 | * xfaces.c (frame_update_line_height): Just use the height of the | |
7455 | frame's fontset or font, instead of taking face fonts into | |
7456 | account. | |
7457 | ||
7458 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
7459 | ||
7460 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
7461 | ||
7462 | * window.c (Fsplit_window): For default size, round up for left window. | |
7463 | ||
7464 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
7465 | ||
7466 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
7467 | has returned -1 (lockfile exists but is not a symlink?). | |
7468 | ||
7469 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
7470 | ||
7471 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
7472 | because of a change in cursor_gc made in 20.4. | |
7473 | ||
7474 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
7475 | ||
7476 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
7477 | for YNegative, if using X toolkit. | |
7478 | ||
7479 | * xfns.c (x_real_positions): Don't subtract window borders | |
7480 | from positions returned. | |
7481 | ||
7482 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
7483 | ||
7484 | * xrdb.c (x_load_resources): Set double-click time defaults | |
7485 | for Motif list boxes from double-click-time. | |
7486 | ||
7487 | * fns.c (Vhash_table_tests): Remvoed. | |
7488 | (Qhash_table_test): New. | |
7489 | (syms_of_fns): Initialize Qhash_table_test. | |
7490 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
7491 | `hash-table-test'. | |
7492 | (Fdefine_hash_table_test): Store test and hash function as | |
7493 | symbol prop `hash-table-test'. | |
7494 | (make_hash_table): Add parameters user_test and user_hash. | |
7495 | ||
7496 | * window.c (set_window_buffer): Set window margins for tty | |
7497 | frames, too. | |
7498 | (Fset_window_margins): Ditto. | |
7499 | ||
7500 | * term.c (append_glyph): Use glyph area of iterator instead of | |
7501 | always TEXT_AREA. | |
7502 | ||
7503 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
7504 | hpos. | |
7505 | (direct_output_for_insert): Ditto. | |
7506 | (direct_output_forward_char): Ditto. | |
7507 | ||
7508 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
7509 | ||
7510 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
7511 | ||
7512 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
7513 | ||
7514 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
7515 | instead. | |
7516 | ||
7517 | * fns.c (cmpfn_eq): Add hash code parameters. | |
7518 | (cmpfn_eql): Ditto. | |
7519 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
7520 | (cmpfn_user_defined): Likewise. | |
7521 | ||
7522 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
7523 | ||
7524 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
7525 | ||
7526 | * fns.c (maybe_resize_hash_table): Correct computation of | |
7527 | index vector size. | |
7528 | (make_hash_table): Ditto. | |
7529 | (Fmakehash): New. | |
7530 | ||
7531 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
7532 | ||
7533 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
7534 | (survives_gc_p): Make it externally visible. | |
7535 | (mark_object): Ditto. | |
7536 | ||
7537 | * fns.c (remove_hash_entry): Removed. | |
7538 | (sweep_weak_hash_tables): New. | |
7539 | ||
7540 | * print.c (print): Print more information about hash tables. | |
7541 | ||
7542 | * xfns.c (image_spec_hash): Removed. | |
7543 | (lookup_image): Use sxhash instead of image_spec_hash. | |
7544 | (image_spec_equal_p): Removed. | |
7545 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
7546 | ||
7547 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
7548 | ||
7549 | * lisp.h (P_): Moved to top of file. | |
7550 | ||
7551 | * fns.c (make_hash_table): Set new members. | |
7552 | ||
7553 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
7554 | Mark index vector for weak hash tables. | |
7555 | ||
7556 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
7557 | user_hash_function, cmpfn, and hashfn. | |
7558 | ||
7559 | * fns.c (build_hash): Removed. | |
7560 | (hash_test): Removed. | |
7561 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
7562 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
7563 | ||
7564 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
7565 | ||
7566 | * alloc.c (survives_gc_p): New. | |
7567 | ||
7568 | * print.c (print): Add hash table handling. | |
7569 | ||
7570 | * alloc.c (mark_object): Add code to mark hash tables. | |
7571 | ||
7572 | * lisp.h (GC_HASH_TABLE_P): New. | |
7573 | ||
7574 | * emacs.c (main): Call init_fns. | |
7575 | ||
7576 | * fns.c (init_fns): New. | |
7577 | ||
7578 | * fns.c: Add hash table implementation. | |
7579 | ||
7580 | * lisp.h (PVEC_HASH_TABLE): New. | |
7581 | (struct Lisp_Hash_Table): New. | |
7582 | (XHASH_TABLE): New. | |
7583 | (XSET_HASH_TABLE): New. | |
7584 | (HASH_TABLE_P): New. | |
7585 | (CHECK_HASH_TABLE): New. | |
7586 | (DEFAULT_HASH_SIZE): New. | |
7587 | (DEFAULT_REHASH_THRESHOLD): New. | |
7588 | (DEFAULT_REHASH_SIZE): New. | |
7589 | ||
7590 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
7591 | (x_write_glyphs): Compute overwritten cursor using real start | |
7592 | and end positions of display. | |
7593 | (x_insert_glyphs): Ditto. | |
7594 | ||
7595 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
7596 | ||
7597 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
7598 | ||
7599 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
7600 | visible height. | |
7601 | ||
7602 | * xdisp.c (next_element_from_string): Give padding spaces | |
7603 | a position of -1. | |
7604 | ||
7605 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
7606 | marginals areas on tty frames in a future version. | |
7607 | (allocate_matrices_for_frame_redisplay): Ditto. | |
7608 | ||
7609 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
7610 | to zero if number of glyphs in the row is <= 1. | |
7611 | ||
7612 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
7613 | ||
7614 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
7615 | into account. | |
7616 | ||
7617 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
7618 | a property from a string that came from a `display' property. | |
7619 | (handle_single_display_prop): Don't handle recursive `display' | |
7620 | properties. | |
7621 | (handle_single_display_prop): Handle some display property | |
7622 | forms for terminal frames. | |
7623 | (Qimage): Moved here from xfns.c. | |
7624 | ||
7625 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
7626 | ||
7627 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
7628 | line. | |
7629 | ||
7630 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
7631 | ||
7632 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
7633 | ||
7634 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
7635 | ||
7636 | * xdisp.c (QCwhen): New. | |
7637 | (display_prop_end): New. | |
7638 | (handle_single_display_prop): Use it. | |
7639 | (debug_method_add): Print buffer name if tracing. | |
7640 | (try_window_reusing_current_matrix): Compute visible height | |
7641 | of reused rows. Fix cursor position calculation in case of | |
7642 | top-line. | |
7643 | ||
7644 | * dispextern.h (struct redisplay_interface): Add parameter | |
7645 | cursor_on_p to update_window_end_hook. | |
7646 | ||
7647 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
7648 | ||
7649 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
7650 | ||
7651 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
7652 | doesn't become negative when decrementing it. | |
7653 | ||
7654 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
7655 | ||
7656 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
7657 | for window update. | |
7658 | (try_window_id): Ditto. | |
7659 | ||
7660 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
7661 | (x_scroll_run): Ditto. | |
7662 | (any_help_event_p): New. | |
7663 | (x_initialize): Set it to zero. | |
7664 | (XTread_socket): Clear help echo only if any_help_event_p. | |
7665 | ||
7666 | * xdisp.c (init_iterator): Set top_line_p. | |
7667 | (start_display): Use correct initial y if top-line is present. | |
7668 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
7669 | (try_scrolling): Ditto. | |
7670 | (try_window_reusing_current_matrix): Ditto. | |
7671 | ||
7672 | * dispextern.h (struct it): Add top_line_p. | |
7673 | ||
7674 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
7675 | of the loop. | |
7676 | ||
7677 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
7678 | XFLOATINT. | |
7679 | ||
7680 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
7681 | ||
7682 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
7683 | skip only over padding spaces at the end. | |
7684 | ||
7685 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
7686 | "tty". | |
7687 | ||
7688 | * term.c (update_end): Turn cursor on only if selected window's | |
7689 | cursor_off_p flag is not set. | |
7690 | ||
7691 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
7692 | ||
7693 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
7694 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
7695 | (TS_cursor_invisible): New. | |
7696 | (term_init): Initialize TS_cursor_invisible. | |
7697 | (tty_hide_cursor): New. | |
7698 | (tty_show_cursor): New. | |
7699 | (update_end): Show tty cursor. | |
7700 | (update_begin): Hide tty cursor to prevent cursor flickering | |
7701 | during redisplays triggered by timers (stealth fontification). | |
7702 | ||
7703 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
7704 | ||
7705 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
7706 | in scroll bars. | |
7707 | (x_handle_toolbar_click): Set modifier bits. | |
7708 | ||
7709 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
7710 | ||
7711 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
7712 | instead of a pointer to a volatile input_event. | |
7713 | (kbd_buffer_store_event): Remove volatile modifier from | |
7714 | declaration of local variable `sp'. | |
7715 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
7716 | to kbd_fetch_ptr. | |
7717 | ||
7718 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
7719 | ||
7720 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
7721 | only if buffer is modified. Return quickly if changes are | |
7722 | above window start. | |
7723 | ||
7724 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
7725 | ||
7726 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
7727 | ||
7728 | * xdisp.c (mark_window_display_accurate): Don't set | |
7729 | w->region_showing. | |
7730 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
7731 | ||
7732 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
7733 | ||
7734 | * xdisp.c (echo_area_display): Don't display truncation marks | |
7735 | for messages because 20.4 doesn't do it either. | |
7736 | (redisplay_window): Case same window start. Instead of giving | |
7737 | up when cursor is partially visible, make it fully visible. | |
7738 | (mark_window_display_accurate): Some cleanup. Record window's | |
7739 | last cursor information. | |
7740 | (debug_method_add): Improved. | |
7741 | (redisplay_internal): Record last cursor info only if not | |
7742 | consider_all_windows_p. | |
7743 | ||
7744 | * dispnew.c (update_window): Update top line after scrolling. | |
7745 | (blank_row): Renamed from make_empty_enabled_row. | |
7746 | (increment_glyph_row_buffer_positions): Increment positions | |
7747 | in buffers, only. | |
7748 | ||
7749 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
7750 | string. | |
7751 | ||
7752 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
7753 | ||
7754 | * dispnew.c (update_window): Check that updated row is visible. | |
7755 | ||
7756 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
7757 | top of window differently. | |
7758 | ||
7759 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
7760 | if region is showing. | |
7761 | ||
7762 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
7763 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
7764 | ||
7765 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
7766 | ||
26901792 DL |
7767 | * xdisp.c (debug_method_add): New. |
7768 | (debug_redisplay_method): Removed. | |
7769 | (try_window_reusing_current_matrix): Handle case where old | |
7770 | window start is the same as new window start. | |
7771 | ||
7772 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
7773 | an array instead of a pointer. | |
7774 | ||
26901792 DL |
7775 | * xfns.c (Fx_show_tip): Undo previous change. |
7776 | ||
7777 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
7778 | ||
7779 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
7780 | for CHAR_GLYPH to 12. | |
7781 | ||
7782 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
7783 | ||
7784 | * xfaces.c (x_charset_registry): Make it externally visible. | |
7785 | ||
7786 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
7787 | ||
7788 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
7789 | instead of WINDOW_WANTS_MODELINE_P. | |
7790 | ||
7791 | * xterm.c (clear_mouse_face): Make externally visible. | |
7792 | ||
7793 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
7794 | ||
7795 | * xterm.c (expose_line): Handle exposure of top-lines. | |
7796 | ||
7797 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
7798 | if mouse_face_mouse_frame is null. | |
7799 | ||
7800 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
7801 | and update_mode_line is set, update menubar and toolbar. | |
7802 | ||
7803 | * dispnew.c (space_glyph): Set its charpos to -1. | |
7804 | (update_frame_1): Ignore trailing padding spaces. | |
7805 | ||
7806 | * xdisp.c (next_element_from_c_string): Set position of padding | |
7807 | glyphs to -1. | |
7808 | ||
7809 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
7810 | ||
7811 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
7812 | XQueryColor. | |
7813 | ||
7814 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
7815 | (set_cursor_from_row): Skip over glyphs having a null object at | |
7816 | the start of rows. | |
7817 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
7818 | glyphs. | |
7819 | (handle_invisible_prop): Compute next change only when needed. | |
7820 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
7821 | line. | |
7822 | ||
7823 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
7824 | ||
7825 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
7826 | time. | |
7827 | ||
7828 | * xdisp.c (try_window_id): Return quickly if all changes are | |
7829 | below the window's current matrix end. | |
7830 | ||
7831 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
7832 | parameter. | |
7833 | ||
7834 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
7835 | in desired not in current matrix. | |
7836 | (try_window_reusing_current_matrix): Rotate matrices starting | |
7837 | at start_vpos instead of 0. | |
7838 | ||
7839 | * xterm.c (expose_window): Use window_text_bottom_y. | |
7840 | (fast_find_position): Ditto. | |
7841 | ||
7842 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
7843 | (try_window_reusing_current_matrix): Ditto. | |
7844 | (get_last_unchanged_at_beg_row): Ditto. | |
7845 | (init_iterator): Ditto. | |
7846 | ||
7847 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
7848 | more row. | |
7849 | (check_matrix_invariants): Use window_text_bottom_y. | |
7850 | (update_window): Ditto. | |
7851 | (scrolling_window): Ditto. | |
7852 | ||
7853 | * xdisp.c (window_text_bottom_y): New. | |
7854 | ||
7855 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
7856 | ||
7857 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
7858 | clearing mouse face. | |
7859 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
7860 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
7861 | set focus frame as if event.xcrossing.focus were set. | |
7862 | ||
7863 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
7864 | ||
7865 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
7866 | * keyboard.c (make_lispy_movement): Ditto. | |
7867 | ||
7868 | * window.c (coordinates_in_window): Return 4 if on top line. | |
7869 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
7870 | ||
7871 | * xdisp.c (window_box_height): Subtract top line height. | |
7872 | (window_box): Add top line height to top y position if top line | |
7873 | exists. | |
7874 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
7875 | the top line row of the window. Set initial y-position to | |
7876 | window's top line height plus delta. | |
7877 | (start_display): Choose start glyph row depending on whether | |
7878 | window has a top line. | |
7879 | (try_scrolling): Take top line height into account for aggressive | |
7880 | scrolling. | |
7881 | (compute_window_start_on_continuation_line): Take top line into | |
7882 | account. | |
7883 | (redisplay_window): Ditto. If top line height has changed, | |
7884 | trigger a new redisplay. | |
7885 | (try_window_reusing_current_matrix): Take top line into account. | |
7886 | (find_last_row_displaying_text): Ditto. | |
7887 | (get_last_unchanged_at_beg_row): DItto. | |
7888 | (try_window_id): Ditto. | |
7889 | (compute_line_metrics): Ditto. | |
7890 | ||
7891 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
7892 | taking top line of window into account. | |
7893 | (update_window): Update top line. If scrolling_window detects | |
7894 | that all rows are equal, only set cursor. | |
7895 | (update_window_line): Call after_update_window_line_hook if | |
7896 | mode_line_p flag of rows has changed. | |
7897 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
7898 | all rows are equal. | |
7899 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
7900 | in top lines. | |
7901 | ||
7902 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
7903 | (MATRIX_FIRST_TEXT_ROW): New. | |
7904 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
7905 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
7906 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
7907 | (MATRIX_TOP_LINE_HEIGHT): New. | |
7908 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
7909 | (CURRENT_TOP_LINE_HEIGHT): New. | |
7910 | (DESIRED_TOP_LINE_HEIGHT): New. | |
7911 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
7912 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
7913 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
7914 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
7915 | ||
7916 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
7917 | lines. | |
7918 | (x_draw_row_bitmaps): Take top line into account when clearing | |
7919 | bitmap area. | |
7920 | (x_estimate_mode_line_height): Replacement for | |
7921 | x_frame_mode_line_height. | |
7922 | (x_get_glyph_string_clip_rect): Take top line into account. | |
7923 | (x_clear_end_of_line): Ditto. | |
7924 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
7925 | top lines. | |
7926 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
7927 | (x_erase_phys_cursor): Take top line into account. | |
7928 | ||
7929 | * xdisp.c (window_box_height): Subtract top line height if | |
7930 | window wants a top line. | |
7931 | (display_mode_lines): New. | |
7932 | (redisplay_window): Call it. | |
7933 | (display_mode_line): Add parameters face_id and format. | |
7934 | ||
7935 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
7936 | (MATRIX_TOP_LINE_HEIGHT): New. | |
7937 | ||
7938 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
7939 | ||
7940 | * term.c (estimate_mode_line_height): Renamed from | |
7941 | frame_mode_line_height. Add parameter face_id. | |
7942 | (estimate_mode_line_height_hook): Renamed from | |
7943 | frame_mode_line_height_hook. | |
7944 | (produce_special_glyphs_hook): Removed. | |
7945 | (produce_glyphs_hook): Removed. | |
7946 | ||
7947 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
7948 | ||
7949 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
7950 | (struct glyph_row): Add mode_line_p. | |
7951 | ||
7952 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
7953 | (Qtop_line): New. | |
7954 | (syms_of_xfaces): Initialize Qtop_line. | |
7955 | ||
7956 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
7957 | ||
7958 | * buffer.c (init_buffer_once): Set default for | |
7959 | top_line_format to nil. | |
7960 | (init_buffer_once): Init top_line_format. | |
7961 | (default-top-line-format): New. | |
7962 | (top-line-format): New buffer-local variable. | |
7963 | ||
7964 | * buffer.h: Add top_line_format. | |
7965 | ||
7966 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
7967 | ||
7968 | 1999-06-17 Dave Love <fx@gnu.org> | |
7969 | ||
7970 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
7971 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
7972 | ||
7973 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
7974 | ||
7975 | * xfns.c (x_kill_gs_process): Don't free colors. | |
7976 | ||
7977 | 1999-06-17 Dave Love <fx@gnu.org> | |
7978 | ||
7979 | * s/gnu-linux.h: Zap spurious ~. | |
7980 | ||
7981 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
7982 | ||
7983 | * xfns.c (gif_load): Improve multi-image support. | |
7984 | ||
7985 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
7986 | ||
7987 | * xfns.c (gif_load): Support multi-image files. | |
7988 | ||
7989 | * Makefile.in (LIBGIF): Use libungif. | |
7990 | ||
7991 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
7992 | because the former doesn't contain patented compression code. | |
7993 | ||
7994 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
7995 | do it if line start is too far away from window start. | |
7996 | ||
7997 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
7998 | ||
7999 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
8000 | scroll_*_aggressively. | |
8001 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
8002 | (init_buffer_once): Set defaults for these variables. | |
8003 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
8004 | ||
8005 | * buffer.h (scroll_up_aggressively): New. | |
8006 | (scroll_down_aggressively): New. | |
8007 | ||
8008 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
8009 | a static PNG library. | |
8010 | ||
8011 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
8012 | in case it's a static library. | |
8013 | ||
8014 | * Makefile.in (ctagsfiles): Split so that files starting | |
8015 | with an `x' are found before files starting with `w32'. | |
8016 | (ctagsfiles1): New. | |
8017 | (ctagsfiles2): New. | |
8018 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
8019 | ||
8020 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
8021 | (redisplay_window): Use it. | |
8022 | (INFINITY): New. | |
8023 | (reseat_to_string): Use it. | |
8024 | (hscroll_window_tree): Ditto. | |
8025 | (compute_window_start_on_continuation_line): Ditto. | |
8026 | (redisplay_window): Don't force display with a new window start. | |
8027 | ||
8028 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
8029 | ||
8030 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
8031 | if widget not present. | |
8032 | ||
8033 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
8034 | ||
8035 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
8036 | ||
8037 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
8038 | value of realize_basic_faces. | |
8039 | (load_face_font_or_fontset): Store full font name in face. | |
8040 | (realize_default_face): Use full font name. | |
8041 | ||
26901792 DL |
8042 | * xterm.c (x_produce_glyphs): Set member char_to_display. |
8043 | (x_append_glyph): Store char_to_display in glyphs. | |
8044 | ||
8045 | * dispextern.h (struct it): Add char_to_display. | |
8046 | ||
8047 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
8048 | if faces haven't been initialized. | |
8049 | (Fx_create_frame): Call face-set-after-frame-default after | |
8050 | faces have been initialized, and widget has been created. | |
8051 | ||
8052 | * puresize.h (BASE_PURESIZE): Increased. | |
8053 | ||
8054 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
8055 | ||
8056 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
8057 | (Finternal_set_lisp_face_attribute): If frame is t when | |
8058 | :font attribute is set, use the selected frame. | |
8059 | (clear_face_cache): Add parameter clear_fonts_p. | |
8060 | (Fclear_face_cache): Add optional parameter thorougly. | |
8061 | ||
8062 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
8063 | in table. | |
8064 | (Fclear_face_cache): New. | |
8065 | (choose_face_fontset_font): If fontset doesn't contain font | |
8066 | pattern for the given charset, use CHARSET_ASCII. | |
8067 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
8068 | stipple attribute. | |
8069 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
8070 | font-related face attributes of the default face. | |
8071 | (set_lface_from_font_name): Set only attributes that aren't | |
8072 | specified. | |
8073 | ||
8074 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
8075 | ||
8076 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
8077 | font support. | |
8078 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
8079 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
8080 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
8081 | (first_font_matching): List more than one font to find the | |
8082 | first non-scalable matching font. | |
8083 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
8084 | depending on SCALABLE_FONTS. | |
8085 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
8086 | compare point sizes of fonts. | |
8087 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
8088 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
8089 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
8090 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
8091 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
8092 | ||
8093 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
8094 | ||
8095 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
8096 | mask only if image contains simple transparency information. | |
8097 | Otherwise, combine image with frame background color. | |
8098 | ||
8099 | * configure.in (--with-png, HAVE_PNG): New. | |
8100 | ||
8101 | * config.in (HAVE_PNG): New. | |
8102 | ||
8103 | * Makefile.in: Add PNG library. | |
8104 | ||
8105 | * xfns.c: Add PNG support. | |
8106 | ||
8107 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
8108 | ||
8109 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
8110 | previous_echo_area_message to nil. | |
8111 | ||
8112 | * keyboard.c (read_char): Rename local variable echo_area_message | |
8113 | because it shadows the global one. | |
8114 | ||
8115 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
8116 | ||
8117 | * xterm.c (note_mode_line_highlight): Restructured. | |
8118 | ||
8119 | * window.c (coordinates_in_window): Handle windows that don't have | |
8120 | a mode line because their buffer's mode-line-format is nil. | |
8121 | Recognize the mode line under x positions that correspond to | |
8122 | flags areas and left scroll bar. | |
8123 | ||
8124 | 1999-05-02 Dave Love <fx@gnu.org> | |
8125 | ||
8126 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
8127 | from check on mouse-face so that it works generally. | |
8128 | ||
8129 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
8130 | ||
8131 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
8132 | (Qplay_sound_hook): New. | |
8133 | ||
8134 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
8135 | ||
8136 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
8137 | ||
8138 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
8139 | ||
8140 | * editfns.c (Fmessage): Use message3. | |
8141 | ||
8142 | * print.c (printchar): Set echo_area_message to nil. | |
8143 | (strout): Ditto. | |
8144 | ||
8145 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
8146 | (Fminibuffer_completion_help): Ditto. | |
8147 | ||
8148 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
8149 | (command_loop_1): Test echo_areA_message. | |
8150 | (read_char): Ditto. | |
8151 | (record_menu_key): Set echo_area_message to nil. | |
8152 | (Fexecute_extended_command): Test echo_area_message. | |
8153 | (Fexecute_extended_command): Handle echo_area_message. | |
8154 | ||
8155 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
8156 | is set. | |
8157 | ||
8158 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
8159 | return a substring of that string. | |
8160 | ||
8161 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
8162 | in addition to echo_area_glyphs. | |
8163 | (set_window_cursor_after_update): Ditto. | |
8164 | (update_frame_1): Ditto. | |
8165 | ||
8166 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
8167 | old Lisp message string. | |
8168 | ||
8169 | * xdisp.c (echo_area_message): New. | |
8170 | (previous_echo_area_message): New. | |
8171 | (syms_of_xdisp): Initialize and staticpro new variables. | |
8172 | (echo_area_display): Display echo_area_message if set. | |
8173 | (message2_nolog): Set echo_area_message and | |
8174 | previous_echo_area_message. | |
8175 | (echo_area_display): Set previous_echo_area_message. | |
8176 | (redisplay_internal): Display echo area if echo_area_message | |
8177 | or previous_echo_area_message are set. | |
8178 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
8179 | previous_echo_area_message. | |
8180 | (redisplay_window): Test echo_area_message. | |
8181 | (message3_nolog): New. | |
8182 | (message3): New. | |
8183 | ||
8184 | * editfns.c (Fformat): Add text properties to the result string | |
8185 | from properties of the format string and properties of string | |
8186 | arguments. | |
8187 | ||
8188 | * textprop.c (text_property_list): New. | |
8189 | (add_text_properties_from_list): New. | |
8190 | (extend_property_ranges): New. | |
8191 | ||
8192 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
8193 | ||
8194 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
8195 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
8196 | Use these symbols for the box face attribute instead of the | |
8197 | removed ones. | |
8198 | ||
8199 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
8200 | ||
8201 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
8202 | Correct wrong test for slant. | |
8203 | ||
8204 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
8205 | ||
8206 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
8207 | use t and nil for on/off. | |
8208 | ||
8209 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
8210 | ||
8211 | * buffer.c (syms_of_buffer): Extend doc string of | |
8212 | mode-line-format. | |
8213 | ||
8214 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
8215 | (first_font_matching): New. | |
8216 | (set_lface_from_font_name): Use it if font name is a pattern. | |
8217 | (font_field_wildcard_p): Removed. | |
8218 | ||
8219 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
8220 | Recompute visible height of rows. | |
8221 | ||
8222 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
8223 | Don't accept non-strings for help-echo from overlays. | |
8224 | ||
8225 | 1999-03-04 Dave Love <fx@gnu.org> | |
8226 | ||
8227 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
8228 | property. | |
8229 | (XTread_socket): Fix compiler warning. | |
8230 | ||
8231 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
8232 | ||
8233 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
8234 | overlay to 10. Call overlays_at so that it doesn't try to | |
8235 | extend the vector. | |
8236 | ||
8237 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
8238 | height. | |
8239 | ||
8240 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
8241 | (update_text_area): Draw whole line if visible heights of | |
8242 | rows differ. | |
8243 | (update_window_line): Call after_update_window_line_hook | |
8244 | if visible row height has changed. | |
8245 | ||
8246 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
8247 | (struct glyph_row): New member visible_height. | |
8248 | ||
8249 | * xfaces.c (font_field_wildcard_p): New. | |
8250 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
8251 | font names containing wildcards. | |
8252 | ||
8253 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
8254 | ||
8255 | * xterm.c (x_after_update_window_line): Clear internal border | |
8256 | when windows_or_buffers_changed. | |
8257 | ||
8258 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
8259 | buffer has a nil mode_line_format. | |
8260 | ||
8261 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
8262 | ||
8263 | * xterm.c (x_setup_relief_colors): Use either background color | |
8264 | or specified color. | |
8265 | ||
8266 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
8267 | ||
8268 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
8269 | ||
8270 | * xterm.c (x_draw_box_rect): New. | |
8271 | (x_draw_glyph_string_box): Renamed from | |
8272 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
8273 | ||
8274 | * xfns.c (QCrelief): New. | |
8275 | (syms_of_xfns): Initialize it. | |
8276 | ||
8277 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
8278 | left_box_line_p, right_shadow_p to right_box_line_p. | |
8279 | (MAX_RELIEF_THICKNESS): Removed. | |
8280 | (struct it): Rename members having `relief' in their names | |
8281 | to contain `box' instead. | |
8282 | ||
8283 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
8284 | (QCrelief, Qbox): Removed. | |
8285 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
8286 | (syms_of_xfaces): Initialize new symbols. | |
8287 | ||
8288 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
8289 | ||
8290 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
8291 | ||
8292 | * xfaces.c (LFACE_RELIEF): Removed. | |
8293 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
8294 | (Finternal_set_lisp_face_attribute): Ditto. | |
8295 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
8296 | (Finternal_get_lisp_face_attribute): Ditto. | |
8297 | (realize_default_face): Ditto. | |
8298 | (lface_hash): Don't compute hash from relief. | |
8299 | ||
8300 | * dispextern.h (struct face): Replace member `relief' by | |
8301 | `box_line_width'. Add member `box'. | |
8302 | (face_box_type): New. | |
8303 | ||
8304 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
8305 | thickness + 1 to ascent. | |
8306 | ||
8307 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
8308 | ||
8309 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
8310 | strike-through, and boxes. | |
8311 | (x_draw_glyph_string_underline): Removed. | |
8312 | ||
8313 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
8314 | (Qoverline, Qstrike_through, Qbox): New. | |
8315 | (syms_of_xfaces): Define these symbols. | |
8316 | (check_lface_attrs): Add checks for overline, strike-through, | |
8317 | and box. | |
8318 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
8319 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
8320 | (load_color): Handle new attributes. | |
8321 | (realize_x_face): Ditto. | |
8322 | (merge_face_vector_with_property): Ditto. | |
8323 | (free_face_colors): Ditto. | |
8324 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
8325 | (Finternal_get_lisp_face_attribute): Ditto. | |
8326 | (Finternal_lisp_face_attribute_values): Ditto. | |
8327 | ||
8328 | * dispextern.h (lface_attribute_index): Add enumerators for | |
8329 | overstrike, strike-through, and box. | |
8330 | (struct face): Add members for overline, strike-through, and | |
8331 | box. | |
8332 | ||
8333 | 1999-02-17 Dave Love <fx@gnu.org> | |
8334 | ||
8335 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
8336 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
8337 | files. | |
8338 | ||
8339 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
8340 | ||
8341 | * keyboard.c (toolbar_items): Call access_keymap with third | |
8342 | parameter 1, so that we don't get inherited toolbar item | |
8343 | definitions. | |
8344 | ||
8345 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
8346 | the window end vpos when in empty first line of window. | |
8347 | ||
8348 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
8349 | ||
8350 | * xfaces.c (set_font_frame_param): New. | |
8351 | (Finternal_set_lisp_face_attribute): Call it. | |
8352 | ||
8353 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
8354 | ||
8355 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
8356 | Accept specifications of color for underline. | |
8357 | ||
8358 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
8359 | ||
8360 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
8361 | `frame' is t, operate on face defaults for new frames. If it | |
8362 | is nil, operate on the selected frame. | |
8363 | ||
8364 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
8365 | ||
8366 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
8367 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
8368 | ||
8369 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
8370 | ||
8371 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
8372 | Remove definition of UNDERLINE_COLOR. | |
8373 | ||
8374 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
8375 | ||
8376 | * xfaces.c (free_face_colors): Free the color for underline. | |
8377 | ||
8378 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
8379 | to the GC. | |
8380 | ||
8381 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
8382 | ||
8383 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
8384 | (struct face): Added two new members. | |
8385 | underline_color, underline_defaulted_p. | |
8386 | ||
8387 | * xfaces.c (merge_face_vector_with_property): | |
8388 | (check_lface_attrs): Accept the string value for underline. | |
8389 | (Finternal_set_lisp_face_attribute): Likewise. | |
8390 | ||
8391 | * xfaces.c (load_color): Change the last argument type to enum | |
8392 | lface_attribute_index from int. And addec code for underling coloring. | |
8393 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
8394 | ||
8395 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
8396 | ||
8397 | * xfns.c (Fx_image_header): Removed. | |
8398 | ||
8399 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
8400 | ||
8401 | * xterm.c: Don't include <bitmaps/gray>. | |
8402 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
8403 | ||
8404 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
8405 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
8406 | ||
8407 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
8408 | ||
8409 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
8410 | specified scroll bar color. | |
8411 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
8412 | ||
8413 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
8414 | (x_set_scroll_bar_background): Ditto. | |
8415 | ||
8416 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
8417 | ||
8418 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
8419 | (Fx_create_frame): Call it. | |
8420 | ||
8421 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
8422 | ||
8423 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
8424 | values in x_output structure. | |
8425 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
8426 | (syms_of_xfns): Initialize these symbols. | |
8427 | ||
8428 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
8429 | ||
8430 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
8431 | (x_set_scroll_bar_foreground): New. | |
8432 | (x_set_scroll_bar_background): New. | |
8433 | ||
26901792 DL |
8434 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> |
8435 | ||
8436 | * xdisp.c (handle_single_display_prop): New. | |
8437 | (handle_display_prop): Call it. | |
8438 | (handle_raise_prop): Removed. | |
8439 | (handle_height_prop): Removed. | |
8440 | (handle_space_width_prop): Removed. | |
8441 | (handle_face_prop): Remove handling of raised text. | |
8442 | (handle_display_prop): Do it here. | |
8443 | ||
8444 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
8445 | (RAISE_PROP_IDX): Removed. | |
8446 | (HEIGHT_PROP_IDX): Removed. | |
8447 | (SPACE_WIDTH_PROP_IDX): Removed. | |
8448 | ||
8449 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
8450 | (handle_display_prop): Formerly handle_glyph_prop. | |
8451 | ||
8452 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
8453 | ||
8454 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
8455 | (handle_stop): Set position in display vector to -1. Don't | |
8456 | check overlay strings when set up to deliver characters from a | |
8457 | display vector. | |
8458 | (set_iterator_to_next): At the end of a run of characters from a | |
8459 | display vector, check whether the display vector display replaces | |
8460 | the display of a character. | |
8461 | ||
8462 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
8463 | ||
8464 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
8465 | X window hasn't been created yet. | |
8466 | ||
8467 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
8468 | ||
8469 | * sound.c: New. | |
8470 | ||
8471 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
8472 | ||
8473 | * config.in (HAVE_SOUND): New. | |
8474 | ||
8475 | * emacs.c (main): Call syms_of_sound and init_sound. | |
8476 | ||
8477 | * Makefile.in (obj): Add sound.o. | |
8478 | ||
8479 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
8480 | ||
8481 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
8482 | (HAVE_SYS_SOUNDCARD_H): New. | |
8483 | ||
8484 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
8485 | ||
8486 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
8487 | indicate_zv_lines. | |
8488 | ||
8489 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
8490 | (default-indicate-zv-lines): Likewise. | |
8491 | ||
8492 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
8493 | to indicate_empty_line_p. | |
8494 | ||
8495 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
8496 | to next_element_from_buffer. | |
8497 | ||
8498 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
8499 | ||
8500 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
8501 | and `N-'. | |
8502 | ||
8503 | * xfns.c (xbm_scan): New. | |
8504 | (xbm_read_hexint): Removed. | |
8505 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
8506 | ||
8507 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
8508 | ||
8509 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
8510 | ||
8511 | * xfns.c (xbm_read_hexint): New. | |
8512 | (xbm_read_bitmap_file_data): New. | |
8513 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
8514 | instead of XReadBitmapFileData. | |
8515 | ||
8516 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
8517 | ||
8518 | * xfaces.c (face_with_height): New. | |
8519 | ||
8520 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
8521 | (eval_form): Renamed from eval_mode_element. | |
8522 | (handle_face_prop): Use it. | |
8523 | (Qheight): Replaces Qsmaller. | |
8524 | (handle_height_prop): Replaces handle_smaller_prop. | |
8525 | (handle_face_prop): If iterator's font_height is not an | |
8526 | integer, evaluate it to get the font height to use. | |
8527 | ||
8528 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
8529 | (struct it): Use `font_height' instead of `smaller'. | |
8530 | ||
8531 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
8532 | ||
8533 | * xdisp.c (reseat_1): New. | |
8534 | (reseat): Call it. | |
8535 | (move_it_vertically_backward): Ditto. | |
8536 | (redisplay_window): Don't abort when cursor not found in recenter. | |
8537 | ||
8538 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
8539 | ||
8540 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
8541 | currently delivering display elements from the current buffer, | |
8542 | restore buffer position first. | |
8543 | (init_from_display_pos): Don't set IT's position from the | |
8544 | position passed to this function. | |
8545 | ||
8546 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
8547 | ||
8548 | * config.in (PROTO): Removed. | |
8549 | ||
8550 | * xterm.h: Change PROTO to P_. | |
8551 | ||
8552 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
8553 | ||
8554 | * xterm.c (take_vertical_position_into_account): New. | |
8555 | (x_produce_image_glyph): Call it. | |
8556 | (x_produce_stretch_glyph): Ditto. | |
8557 | (x_produce_glyphs): Ditto. | |
8558 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
8559 | (x_fill_composite_glyph_string): Ditto. | |
8560 | (x_fill_image_glyph_string): Ditto. | |
8561 | (x_fill_stretch_glyph_string): Ditto. | |
8562 | ||
8563 | * xdisp.c (display_line): Always compute row height from | |
8564 | max_ascent and max_descent. | |
8565 | ||
8566 | * dispextern.h (struct glyph): Add voffset. | |
8567 | (struct it): Replace height by descent, max_height by max_descent. | |
8568 | ||
8569 | * xterm.c (x_append_glyph): Set voffset | |
8570 | (x_append_stretch_glyph): Ditto. | |
8571 | (x_produce_image_glyph): Ditto. | |
8572 | (x_produce_glyphs): Take voffset into account. | |
8573 | (x_produce_image_glyph): Ditto. | |
8574 | (x_produce_stretch_glyph): Ditto. | |
8575 | ||
8576 | * dispextern.h (struct it): Add voffset. | |
8577 | * xdisp.c (push_it): Save voffset. | |
8578 | (pop_it): Restore it. | |
8579 | ||
8580 | * xdisp.c (it_props): Add entry for `raise'. | |
8581 | (handle_raise_prop): New. | |
8582 | ||
8583 | * dispextern.h (RAISE_PROP_IDX): New. | |
8584 | ||
8585 | * xdisp.c (Qraise): New. | |
8586 | (syms_of_xdisp): Define Qraised. | |
8587 | ||
8588 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
8589 | of toolkit scroll bars differently. | |
8590 | (x_scroll_bar_move): Removed. | |
8591 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
8592 | ||
8593 | * dispextern.h: Make it compilable --with-x=no. | |
8594 | * alloc.c: Ditto. | |
8595 | * emacs.c: Ditto. | |
8596 | * dispnew.c: Ditto. | |
8597 | * keyboard.c: Ditto. | |
8598 | * term.c: Ditto. | |
8599 | * xdisp.c: Ditto. | |
8600 | * xfaces.c: Ditto. | |
8601 | * xfns.c: Ditto. | |
8602 | * xmenu.c: Ditto. | |
8603 | ||
8604 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
8605 | ||
8606 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
8607 | ||
8608 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
8609 | ||
8610 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
8611 | update slider size, only. | |
8612 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
8613 | (xt_action_hook): Reset last_scroll_bar_part. | |
8614 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
8615 | ||
26901792 DL |
8616 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor |
8617 | window on newly created frames that don't have one. | |
8618 | ||
8619 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
8620 | ||
8621 | * xdisp.c (restore_overlay_strings): Removed. | |
8622 | (restore_dpvec): Removed. | |
8623 | (init_from_display_pos): Inline both functions above. | |
8624 | ||
8625 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
8626 | (parse_image_spec): Handle it. | |
8627 | (xbm_format): Use it. | |
8628 | (xpm_format): Ditto. | |
8629 | (pbm_format): Ditto. | |
8630 | (jpeg_format): Ditto. | |
8631 | (tiff_format): Ditto. | |
8632 | (gif_format): Ditto. | |
8633 | (gs_format): Ditto. | |
8634 | ||
8635 | * xdisp.c (set_window_cursor): Removed. | |
8636 | (redisplay_internal): Case cursor motion in cursor line of | |
8637 | selected window; use set_cursor_from_row. | |
8638 | ||
8639 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
8640 | ||
8641 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
8642 | into account. | |
8643 | ||
8644 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
8645 | ||
8646 | * xterm.c (expose_frame): Redraw menu bar window. | |
8647 | ||
8648 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
8649 | in menu item. | |
8650 | ||
8651 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
8652 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
8653 | ||
8654 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
8655 | to determine vertical_scroll_bar_extra. | |
8656 | (EmacsFrameSetCharSize): Ditto. | |
8657 | * xfns.c (x_figure_window_size): Ditto. | |
8658 | ||
8659 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
8660 | (x_draw_bitmap): Ditto. | |
8661 | ||
8662 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
8663 | * xfaces.c (realize_basic_faces): Realize it. | |
8664 | ||
8665 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
8666 | ||
8667 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
8668 | under LessTif Use the widget of the frame as parent for the | |
8669 | menu, again. | |
8670 | ||
8671 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
8672 | ||
8673 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
8674 | When EnterNotify, don't generate a mouse movement event if | |
8675 | notification is from a busy-cursor child window. | |
8676 | ||
8677 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
8678 | ||
8679 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
8680 | Use a transparent window to display the busy-cursor. | |
8681 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
8682 | ||
8683 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
8684 | ||
8685 | * xdisp.c (check_window_end): New, for debugging. | |
8686 | (CHECK_WINDOW_END): New. | |
8687 | (try_window_id): Use it. | |
8688 | ||
8689 | * xterm.c (process_expose_from_menu): Return int. | |
8690 | ||
8691 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
8692 | TOOLBAR_EVENT events in last_nonmenu_event. | |
8693 | ||
8694 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
8695 | ||
8696 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
8697 | window end isn't reliable, so set window_end_valid to nil. | |
8698 | (redisplay_internal): If overlay arrow has changed, set | |
8699 | windows_or_buffers_changed to redisplay thoroughly. | |
8700 | ||
8701 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
8702 | necessary. | |
8703 | ||
8704 | * xfns.c (file_dialog_cb): New. | |
8705 | (Fx_file_dialog): New. | |
8706 | * fileio.c (Fread_file_name): Call it. | |
8707 | ||
8708 | * xrdb.c (x_load_resources): Add default resoures for file | |
8709 | selection dialog. | |
8710 | ||
8711 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
8712 | ||
8713 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
8714 | is active. | |
8715 | ||
26901792 DL |
8716 | * keyboard.c (timer_check): Inhibit busy cursor around calls to |
8717 | timer-event-handler. This busy cursor tends to be anoying if | |
8718 | fontifying stealthily. | |
8719 | ||
8720 | * dispnew.c (direct_output_for_insert): Give up if current row | |
8721 | contains trailing whitespace. | |
8722 | ||
8723 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
8724 | ||
8725 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
8726 | ||
8727 | * xdisp.c (handle_fontified_prop): New. | |
8728 | (Vfontification_functions): New. | |
8729 | (Qfontification_functions): New. | |
8730 | (it_props): Add handle_fontified_prop. | |
8731 | ||
8732 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
8733 | ||
8734 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
8735 | Otherwise, under LessTif, after the popup has gone, all button | |
8736 | press events come in for the frame's widget, and release events | |
8737 | come in for the edit_widget. | |
8738 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
8739 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
8740 | XmScrollBarSetValues. | |
8741 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
8742 | ||
26901792 DL |
8743 | * xfaces.c (display_message): If waiting_for_input, don't display |
8744 | the message. | |
8745 | ||
8746 | * window.c (scroll_command): If not acting on current_buffer, | |
8747 | make redisplay consider all windows. | |
8748 | ||
8749 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
8750 | ||
8751 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
8752 | the object having the glyph property. | |
8753 | ||
8754 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
8755 | invisible. | |
8756 | ||
8757 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
8758 | ||
8759 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
8760 | (x_term_init): Create the gray pixmap. | |
8761 | (x_setup_relief_color): Use it. | |
8762 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
8763 | internal border at the top of a frame. | |
8764 | (x_init_glyph_string): Likewise. | |
8765 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
8766 | full-width lines. | |
8767 | (XTflash): Don't flash the toolbar window. | |
8768 | ||
8769 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
8770 | in case of ButtonPress events. | |
8771 | ||
8772 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
8773 | ||
8774 | * xrdb.c (x_load_resources): Add grey background colors as | |
8775 | defaults for menus, scroll bars, and dialogs. | |
8776 | ||
8777 | * insdel.c (prepare_to_modify_buffer): Move setting | |
8778 | windows_or_buffers_changed from modify_region here. | |
8779 | ||
8780 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
8781 | (Fx_hide_tip): Ditto. | |
8782 | (Fx_image_header): New. | |
8783 | ||
8784 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
8785 | ||
8786 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
8787 | when clearing current window matrices. | |
8788 | ||
8789 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
8790 | ||
8791 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
8792 | position from a string position. Use the right end position | |
8793 | if the property spans a whole overlay string. | |
8794 | ||
8795 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
8796 | ||
8797 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
8798 | Lesstif not calling XmNpopdownCallback because it doesn't | |
8799 | handle the case where users don't select any menu item. | |
8800 | ||
26901792 DL |
8801 | * insdel.c (modify_region): Set windows_or_buffers_changed. |
8802 | ||
8803 | * buffer.c (set_buffer_internal): Don't set | |
8804 | windows_or_buffers_changed. | |
8805 | ||
26901792 DL |
8806 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. |
8807 | ||
26901792 DL |
8808 | * xmenu.c (menubar_selection_callback): Add workaround for |
8809 | Lesstif not calling XmNpopdownCallback. | |
8810 | ||
8811 | * xdisp.c (eval_mode_element): New. | |
8812 | (eval_mode_handler): New. | |
8813 | (display_mode_element): Use eval_mode_element. | |
8814 | ||
8815 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
8816 | Remove code looking at text props of default value. | |
8817 | ||
8818 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
8819 | ||
26901792 DL |
8820 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> |
8821 | ||
8822 | * xmenu.c (single_submenu): Set button_type of menu to | |
8823 | BUTTON_TYPE_NONE. | |
8824 | (single_submenu): Likewise for panes and menu items. | |
8825 | (set_frame_menubar): Set button_type of menu bar to none. | |
8826 | (xmenu_show): Likewise. | |
8827 | (single_submenu): Set widget values selected slot. | |
8828 | (xmenu_show): Likewise. | |
8829 | ||
26901792 DL |
8830 | * xmenu.c (push_menu_item): Add parameters `type' and |
8831 | `selected'. Store it in menu_items. | |
8832 | (MENU_ITEMS_ITEM_TYPE): New. | |
8833 | (MENU_ITEMS_ITEM_SELECTED): New. | |
8834 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
8835 | ||
8836 | * xfns.c (clear_image_cache): Get the current time, before | |
8837 | doing anything. | |
8838 | (cache_image): Set prev pointer of next image. | |
8839 | (clear_image_cache): Clear current matrices if any image was | |
8840 | freed. | |
8841 | ||
8842 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
8843 | ||
8844 | * xfns.c (x_set_cursor): New. | |
8845 | (Fx_display_busy_cursor): New. | |
8846 | (Fx_undisplay_busy_cursor): New. | |
8847 | ||
8848 | * xterm.h (struct x_output): Add busy_cursor. | |
8849 | ||
8850 | * xfns.c (Vx_busy_pointer_shape): New. | |
8851 | (x_set_mouse_color): Create busy cursor. | |
8852 | ||
8853 | * process.c (wait_reading_process_input): Show and hide busy | |
8854 | cursor. | |
8855 | ||
8856 | * keyboard.c (command_loop_1): Display busy cursor. | |
8857 | ||
8858 | * eval.c (Fsignal): Hide busy cursor. | |
8859 | ||
8860 | * buffer.c (set_buffer_internal): Don't set | |
8861 | windows_or_buffers_changed. | |
8862 | ||
8863 | * xterm.c (redo_mouse_highlight): New. | |
8864 | ||
8865 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
8866 | ||
26901792 DL |
8867 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. |
8868 | (x_build_heuritic_mask): New. | |
8869 | (lookup_image): Call it. | |
8870 | ||
8871 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
8872 | (previous_help_echo): New. | |
8873 | (XTread_socket): Generate help event with nil message when | |
8874 | leaving a region with help-echo. | |
8875 | (note_mouse_highlight): Handle `help-echo' over text. | |
8876 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
8877 | CirculateRequest. | |
8878 | (clear_mouse_face): Don't clear if tooltip is shown. | |
8879 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
8880 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
8881 | ||
8882 | * keyboard.c (Vshow_help_function): New. | |
8883 | (read_char): Use it. | |
8884 | ||
8885 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
8886 | ||
8887 | * xfns.c (x_create_tip_frame): New. | |
8888 | (Fx_show_tip): New. | |
8889 | (Fx_hide_tip): New. | |
8890 | ||
8891 | * xterm.c (x_destroy_window): Handle case that we don't have | |
8892 | a widget. | |
8893 | ||
8894 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
8895 | to full_width_p. Add internal_border_p. | |
8896 | ||
8897 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
8898 | ||
8899 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
8900 | the glyph under the mouse pointer before accessing text | |
8901 | properties at that position. | |
8902 | ||
8903 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
8904 | ||
8905 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
8906 | ||
8907 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
8908 | (build_desired_toolbar_string): Handle the flag. | |
8909 | (toolbar-button-margin): New. | |
8910 | (toolbar-button-relief): New. | |
8911 | (build_desired_toolbar_string): Use margin and relief. | |
8912 | ||
8913 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
8914 | for FreeBSD. | |
8915 | (note_mode_line_highlight): New. | |
8916 | (note_mouse_highlight): Call it. | |
8917 | ||
8918 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
8919 | ||
8920 | * s/freebsd.h (NARROWPROTO): New. | |
8921 | ||
8922 | * xdisp.c (display_string): New parameter face_string. | |
8923 | (display_mode_element): When displaying a symbol with a string | |
8924 | value, use text properties from the symbol's default value, maybe. | |
8925 | ||
8926 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
8927 | dialogs. | |
8928 | ||
8929 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
8930 | ||
8931 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
8932 | ||
8933 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
8934 | ||
8935 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
8936 | produced for characters with codes < 32 under certain | |
8937 | circumstances. | |
8938 | ||
8939 | * xdisp.c (redisplay_window): Handle values of PT in front | |
8940 | of invisible, intangible text. | |
8941 | (try_window_id): Set overlay_arrow_seen to zero before | |
8942 | displaying lines. | |
8943 | (display_mode_element): Assign to glyphs written for a mode | |
8944 | line spec `%x' as object the Lisp format string, as position | |
8945 | the position of the `%' in that string. | |
8946 | (display_string): If displaying a C string, optionally get | |
8947 | the face to use from a Lisp string. | |
8948 | ||
8949 | * xterm.c (expose_window_tree): Include mode line height. | |
8950 | ||
8951 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
8952 | ||
8953 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
8954 | ||
8955 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
8956 | over mode line. | |
8957 | ||
8958 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
8959 | ||
8960 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
8961 | ||
8962 | * xdisp.c (redisplay_window): If mode line height has changed, | |
8963 | arrange for a thorough immediate redisplay using the correct mode | |
8964 | line height. | |
8965 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
8966 | ||
8967 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
8968 | (CURRENT_MODE_LINE_HEIGHT): New. | |
8969 | (DESIRED_MODE_LINE_HEIGHT): New. | |
8970 | ||
8971 | * keyboard.c (make_lispy_event): Add string and string position | |
8972 | info to mouse-click events. | |
8973 | (read_key_sequence): Handle `local-map' property of mode line | |
8974 | strings. | |
8975 | ||
8976 | * keyboard.h (POSN_STRING): New. | |
8977 | ||
8978 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
8979 | ||
8980 | * dispnew.c (mode_line_string): Mew. | |
8981 | ||
8982 | * xterm.c (xt_action_hook): New. | |
8983 | (x_create_toolkit_scroll_bar): Add action hook. | |
8984 | (xm_scroll_callback): Implement dragging. | |
8985 | ||
8986 | * keyboard.c (Qend_scroll): New. | |
8987 | (scroll_bar_parts): Add it. | |
8988 | ||
8989 | * termhooks.h (scroll_bar_end_scroll): New. | |
8990 | ||
8991 | * xterm.c (XTread_socket): Bug fix. | |
8992 | ||
8993 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
8994 | ||
8995 | * xdisp.c (redisplay_window): Finish scroll bars after | |
8996 | redisplaying toolbar. | |
8997 | ||
8998 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
8999 | (syms_of_keyboard): Add Qbottom. | |
9000 | ||
9001 | * termhooks.h (scroll_bar_to_top): New. | |
9002 | (scroll_bar_to_bottom): New. | |
9003 | ||
9004 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
9005 | auto_resize_toolbar_p is non-zero. | |
9006 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
9007 | (window_box): New. | |
9008 | (window_box_height): New. | |
9009 | (window_box_width): New. | |
9010 | (window_box_left): New. | |
9011 | (window_box_right): New. | |
9012 | (window_box_edges): New. | |
9013 | ||
9014 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
9015 | ||
9016 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
9017 | XawScrollbarSetThumb in FreeBSD. | |
9018 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
9019 | to true. | |
9020 | ||
9021 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
9022 | is out of range. | |
9023 | ||
9024 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
9025 | (x_term_init): Initialize it. | |
9026 | ||
9027 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
9028 | ||
9029 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
9030 | cursor. | |
9031 | ||
9032 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
9033 | ||
9034 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
9035 | differently when using toolkit scroll bars. | |
9036 | ||
9037 | * xterm.c (x_send_scroll_bar_event): New. | |
9038 | (x_scroll_bar_to_input_event): New. | |
9039 | (xaw3d_scroll_callback): New. | |
9040 | (xaw3d_jump_callback): New. | |
9041 | (xm_scroll_callback): New. | |
9042 | (x_toolkit_scroll_p): New. | |
9043 | (XTread_socket): Handle scroll bar client message. | |
9044 | (x_term_init): Initialize Xatom_Scrollbar. | |
9045 | (x_scroll_bar_create): Set cursor. | |
9046 | (xm_scroll_callback): | |
9047 | (x_create_toolkit_scroll_bar): New. | |
9048 | (x_set_toolkit_scroll_bar_thumb): New. | |
9049 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
9050 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
9051 | ||
9052 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
9053 | ||
9054 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
9055 | ||
9056 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
9057 | (XTread_socket): Don't handle mouse button events for scroll bars | |
9058 | if using toolkit scroll bars. | |
9059 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
9060 | Athena scroll bar. | |
9061 | ||
9062 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
9063 | ||
9064 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
9065 | if using toolkit scroll bars. | |
9066 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
9067 | (x_scroll_bar_create): Create and show a scroll bar widget | |
9068 | if using toolkit scroll bars. | |
9069 | (x_scroll_bar_move): Handle tookit scroll bars. | |
9070 | ||
9071 | * Makefile.in (LIBW): Use Xaw3d if present. | |
9072 | ||
9073 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
9074 | (HAVE_XAW3D): New. | |
9075 | ||
9076 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
9077 | (HAVE_XAW3D): New. | |
9078 | ||
9079 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
9080 | right vertical scroll bar. | |
9081 | ||
9082 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
9083 | ||
9084 | * xfns.c (xpm_load): Support reading XPM images from string | |
9085 | buffers containing data in the same format as an XPM file. | |
9086 | Support `:color-symbols'. | |
9087 | (xpm_format): Add `:data'. | |
9088 | (xpm_keyword_index): Add XPM_DATA. | |
9089 | (syms_of_xfns): Add `:color-symbols'. | |
9090 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
9091 | (xpm_valid_color_symbols_p): New. | |
9092 | (xpm_image_p): Call it. | |
9093 | ||
9094 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
9095 | attribute to the image if item is not enabled. | |
9096 | ||
9097 | * xfns.c (x_laplace): New. | |
9098 | (x_laplace_read_row): New. | |
9099 | (x_laplace_write_row): New. | |
9100 | (lookup_image): Handle common image attributes here. New | |
9101 | attribute `:algorithm'. | |
9102 | ||
9103 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
9104 | ||
9105 | * xterm.c (x_inverted_image_mask): Removed. | |
9106 | (x_draw_image_foreground_1): New. | |
9107 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
9108 | pixmap to reduce flickering. | |
9109 | ||
9110 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
9111 | (display_toolbar_line): Remove parameter `margin'. | |
9112 | ||
9113 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
9114 | ||
9115 | * xdisp.c (toolbar_lines_needed): New. | |
9116 | (auto-resize-toolbars): New. | |
9117 | ||
9118 | * xfns.c (cache_image): Correct call to xrealloc. | |
9119 | ||
9120 | * dispnew.c (Fset_toolbar_height): Removed. | |
9121 | ||
9122 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
9123 | FRAME_MENU_BAR_LINES. | |
9124 | ||
9125 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
9126 | instead of FRAME_MENU_BAR_LINES. | |
9127 | (check_frame_size): Ditto. | |
9128 | ||
9129 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
9130 | instead of FRAME_MENU_BAR_LINES. | |
9131 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
9132 | (build_frame_matrix): Ditto. | |
9133 | (change_frame_size_1): Ditto. | |
9134 | ||
9135 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
9136 | (FRAME_TOP_MARGIN): New. | |
9137 | ||
9138 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
9139 | (Fset_window_configuration): Handle toolbar lines. | |
9140 | (Fcurrent_window_configuration): Save toolbar lines. | |
9141 | ||
9142 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
9143 | ||
9144 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
9145 | ||
9146 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
9147 | ||
9148 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
9149 | (x_set_toolbar_lines): New. | |
9150 | ||
9151 | * keyboard.c (cmd_error_internal): Bug fix. | |
9152 | ||
9153 | * xterm.c: Remove double include of syssignal.h. | |
9154 | ||
9155 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
9156 | ||
9157 | * xterm.c (x_toolbar_item): New. | |
9158 | (x_handle_toolbar_click): Use it. | |
9159 | (note_toolbar_highlight): Use it. | |
9160 | ||
9161 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
9162 | and toolbar_items_vectors. | |
9163 | ||
9164 | * xterm.c (help_echo): New. | |
9165 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
9166 | (x_set_glyph_string_gc): Handle them. | |
9167 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
9168 | (x_produce_image_glyph): Take image margin and face relief into | |
9169 | account. | |
9170 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
9171 | (x_draw_glyph_string_background): Optimize case when face has | |
9172 | relief. | |
9173 | (x_setup_relief_color): Take frame instead of glyph string | |
9174 | parameter. | |
9175 | (x_draw_relief_rect): New. | |
9176 | (x_draw_glyph_string_relief): Call it. | |
9177 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
9178 | relief. | |
9179 | (x_draw_image_glyph_string_background): Ditto. | |
9180 | (expose_frame): Redraw toolbar window. | |
9181 | (expose_window): Don't draw cursor for pseudo-windows. | |
9182 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
9183 | (frame_to_window_pixel_xy): New. | |
9184 | (note_mouse_highlight): Call note_toolbar_highlight. | |
9185 | (x_handle_toolbar_click): New. | |
9186 | (note_toolbar_highlight): New. | |
9187 | (show_mouse_face): Change int parameter `hl' to parameter of | |
9188 | type enum draw_glyphs_face. Handle image highlighting. | |
9189 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
9190 | non-nil. Use x_handle_toolbar_click. | |
9191 | ||
9192 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
9193 | ||
9194 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
9195 | IMAGE_BOOL_VALUE. | |
9196 | (parse_image_spec): Handle them. | |
9197 | (image_spec_value): Additional parameter found. | |
9198 | (free_image): Remove image from the vector `images' of the | |
9199 | image cache. | |
9200 | (clear_image_cache): Additional parameter force_p. | |
9201 | (Fclear_image_cache): New. | |
9202 | (x_find_image_file): New. | |
9203 | (xbm_load): Handle `:margin' and `:relief'. Use | |
9204 | x_find_image_file. | |
9205 | (xpm_load): Likewise. | |
9206 | (pbm_load): Likewise. | |
9207 | (jpeg_load): Likewise. | |
9208 | (tiff_load): Likewise. | |
9209 | (gif_load): Likewise. | |
9210 | ||
9211 | * keyboard.c (Qhelp_echo): New symbol. | |
9212 | (read_char): Handle `toolbar' and `help_echo' events. | |
9213 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
9214 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
9215 | (toolbar_items): New. | |
9216 | (process_toolbar_item): New. | |
9217 | (PROP): New. | |
9218 | (init_toolbar_items): New. | |
9219 | (append_toolbar_item): New. | |
9220 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
9221 | (read_key_sequence): Ditto. | |
9222 | ||
9223 | * xfaces.c (Qtoolbar): New. | |
9224 | (realize_basic_faces): Realize `toolbar' face. | |
9225 | (face_at_string_position): Remove parameter modeline_p, add | |
9226 | base_face_id. | |
9227 | ||
9228 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
9229 | to read data. | |
9230 | ||
9231 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
9232 | ||
9233 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
9234 | base_face_id. | |
9235 | (next_element_from_string): Call get_next_display_element | |
9236 | recursively after handling text properties. | |
9237 | (prepare_menu_bars): Call update_toolbar. | |
9238 | (update_toolbar): New. | |
9239 | (build_desired_toolbar_string): New. | |
9240 | (display_toolbar_line): New. | |
9241 | (redisplay_toolbar): New. | |
9242 | (toolbar_item_info): New. | |
9243 | (redisplay_window): Call redisplay_toolbar. | |
9244 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
9245 | ||
9246 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
9247 | window. | |
9248 | (clear_desired_matrices): Ditto. | |
9249 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
9250 | (free_glyphs): Free matrices of toolbar window. | |
9251 | (update_frame): Update toolbar window. | |
9252 | (change_frame_size_1): Take toolbar into account. | |
9253 | (Fset_toolbar_height): New. | |
9254 | ||
9255 | * dispextern.h (struct it): Remove member modeline_p, add | |
9256 | base_face_id. | |
9257 | (struct image): Add members relief and margin. | |
9258 | (IMAGE_ASCENT): Include margin in height. | |
9259 | ||
9260 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
9261 | ||
9262 | * xfns.c (Fclear_image_cache): New. | |
9263 | ||
9264 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
9265 | (face_at_string_position): Remove parameter modeline_p, add | |
9266 | base_face_id. | |
9267 | ||
9268 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
9269 | ||
9270 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
9271 | ||
9272 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
9273 | ||
9274 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
9275 | ||
9276 | * xterm.c (note_toolbar_highlight): New. | |
9277 | (note_mouse_highlight): Call it. | |
9278 | ||
9279 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
9280 | (coordinates_in_window): Handle toolbar window. | |
9281 | ||
9282 | * keyboard.c (toolbar_items): New. | |
9283 | (process_toolbar_item): New. | |
9284 | (parse_toolbar_item): New. | |
9285 | (init_toolbar_items): New. | |
9286 | (append_toolbar_item): New. | |
9287 | ||
9288 | * dispextern.h (enum toolbar_item_idx): New. | |
9289 | (enum toolbar_item_image): New. | |
9290 | ||
9291 | * frame.h (struct frame): Add toolbar-related members. | |
9292 | ||
9293 | * xfaces.c (face_at_string_position): Remove assertion that | |
9294 | current_buffer == window's buffer. This is not the case when | |
9295 | called for the toolbar window. | |
9296 | ||
9297 | * frame.c (make_frame): Initialize toolbar members. | |
9298 | ||
9299 | * alloc.c (mark_object): Mark toolbar data of frames. | |
9300 | ||
9301 | * frame.h (struct frame): Add toolbar-related members | |
9302 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
9303 | desired_toolbar_string, current_toolbar_string, | |
9304 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
9305 | window_height. | |
9306 | ||
9307 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
9308 | areas for pseudo-windows. | |
9309 | (expose_frame): Handle toolbar window. | |
9310 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
9311 | ||
9312 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
9313 | ||
9314 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
9315 | ||
9316 | * frame.c (make_frame): Initialize toolbar_window. | |
9317 | ||
9318 | * alloc.c (mark_object): Make the toolbar window. | |
9319 | ||
9320 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
9321 | (clear_current_matrices): Likewise. | |
9322 | (clear_desired_matrices): Likewise. | |
9323 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
9324 | (free_glyphs): Free the toolbar window and its matrices. | |
9325 | ||
9326 | * frame.h (struct frame): Add toolbar_window. | |
9327 | ||
9328 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
9329 | with relief. | |
9330 | ||
9331 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
9332 | ||
9333 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
9334 | window start is not in the range BEGV..ZV. | |
9335 | ||
9336 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
9337 | ||
9338 | * xdisp.c (try_scrolling): Experimentally handle the case | |
9339 | that scroll-preserve-screen-position is set to `always'. | |
9340 | ||
9341 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
9342 | scroll_preserve_screen_position. | |
9343 | ||
9344 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
9345 | ||
9346 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
9347 | doesn't like it. | |
9348 | * xdisp.c: Ditto. | |
9349 | ||
9350 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
9351 | ||
9352 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
9353 | ||
9354 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
9355 | i_byte when prompts are inserted into minibuffers. | |
9356 | ||
9357 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
9358 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
9359 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
9360 | ||
9361 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
9362 | ||
9363 | * xdisp.c (make_cursor_line_fully_visible): New. | |
9364 | (try_scrolling): New. | |
9365 | (redisplay_window): Move scrolling code to try_scrolling. | |
9366 | (make_cursor_line_fully_visible): Handle case of window too small | |
9367 | to show a single line. | |
9368 | (redisplay_window): Case forced window start---use | |
9369 | make_cursor_line_fully_visible. | |
9370 | (redisplay_window): Case cursor movement via current matrix. | |
9371 | If ending up on a partially visible line, make it fully visible | |
9372 | instead of recentering. | |
9373 | (try_scrolling): Additional parameter scroll_smoothly. | |
9374 | ||
9375 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
9376 | ||
9377 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
9378 | ||
9379 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
9380 | instead of y-position for scroll-preserved-screen-position. | |
9381 | ||
9382 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
9383 | ||
9384 | * dispnew.c (update_frame_line): If current row is not enabled, | |
9385 | write the whole line. | |
9386 | ||
9387 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
9388 | ||
9389 | * lisp.h (HAVE_FACES): Removed. | |
9390 | ||
9391 | * dispextern.h (HAVE_FACES): Removed. | |
9392 | ||
9393 | * config.in (HAVE_FACES): Removed. | |
9394 | ||
9395 | * dispnew.c (HAVE_FACES): Removed. | |
9396 | ||
9397 | * xdisp.c (HAVE_FACES): Removed. | |
9398 | ||
9399 | * xfaces.c (HAVE_FACES): Removed. | |
9400 | ||
9401 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
9402 | ||
9403 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
9404 | free realized faces. | |
9405 | ||
9406 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
9407 | (Finternal_set_lisp_face_attribute): Increment | |
9408 | windows_or_buffers_changed. | |
9409 | ||
9410 | * dispnew.c (direct_output_for_insert): Give up if | |
9411 | face_change_count is non-zero. | |
9412 | (direct_output_forward_char): Ditto. | |
9413 | ||
9414 | * xfaces.c (face_change_count): New. | |
9415 | ||
9416 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
9417 | ||
9418 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
9419 | of range. | |
9420 | ||
9421 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
9422 | ||
9423 | * term.c (Ftty_display_color_p): New. | |
9424 | ||
9425 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
9426 | ||
9427 | * xfaces.c (Ftty_defined_colors): New. | |
9428 | ||
9429 | * xterm.c (x_produce_glyphs): Fix computation of | |
9430 | contains_overlapping_glyphs_p for ASCII. | |
9431 | ||
9432 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
9433 | redisplaying. | |
9434 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
9435 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
9436 | ||
9437 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
9438 | ||
9439 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
9440 | (OUTPUT1_IF): Ditto. | |
9441 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
9442 | (TS_bold_mode): Removed. | |
9443 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
9444 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
9445 | (TS_enter_reverse_mode): New. | |
9446 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
9447 | (TN_magic_cookie_glitch_ul): New. | |
9448 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
9449 | (TS_exit_attribute_mode): New. | |
9450 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
9451 | (TS_set_foreground, TS_set_background): New. | |
9452 | (reset_terminal_modes): Switch colors back to default. | |
9453 | (write_glyphs): Turn face on before writing text, turn it off | |
9454 | afterwards. | |
9455 | (insert_glyphs): Ditto. | |
9456 | (term_init): Initialize new terminal capability variables. | |
9457 | (turn_on_face): Turn a face on. | |
9458 | (turn_off_face): Turn a face off. | |
9459 | ||
9460 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
9461 | (GLYPH_CHAR): Ditto. | |
9462 | (GLYPH_FACE): Ditto. | |
9463 | ||
9464 | * xfaces.c (Vface_tty_color_alist): New. | |
9465 | (face-register-tty-color): New. | |
9466 | (face-clear-tty-colors): New. | |
9467 | ||
9468 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
9469 | (struct it): Remove member faces_p since we now always have faces. | |
9470 | ||
9471 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
9472 | ||
9473 | * dispextern.h (struct face): Add tty appearance flags. | |
9474 | ||
9475 | * xdisp.c (init_iterator): Always handle faces. | |
9476 | (extend_face_to_end_of_line): Handle tty frames. | |
9477 | ||
9478 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
9479 | passed in. | |
9480 | ||
9481 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
9482 | ||
9483 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
9484 | that the face should use the default foreground/background | |
9485 | color of the terminal. Fill font-related attributes with | |
9486 | appropriate values for tty frames. | |
9487 | ||
9488 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
9489 | ||
9490 | * xfaces.c (realize_default_face): If face `default' is not | |
9491 | yet known, create it. | |
9492 | ||
9493 | * frame.c (make_terminal_frame): Call init_frame_faces | |
9494 | unconditionally. | |
9495 | ||
9496 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
9497 | (free_frame_faces): Ditto. | |
9498 | (clear_face_cache): Ditto. | |
9499 | (recompute_basic_faces): Ditto. | |
9500 | (Fframe_face_alist): Ditto. | |
9501 | (free_realized_face): Ditto. | |
9502 | (prepare_face_for_display): Ditto. | |
9503 | (clear_face_gcs): Ditto. | |
9504 | (lookup_face): Ditto. | |
9505 | (smaller_face): Ditto. | |
9506 | (realize_default_face): Ditto. | |
9507 | (realize_face): Ditto. | |
9508 | (realize_face): Dispatch to functions depending on the frame type. | |
9509 | (realize_x_face): X way of realizing faces. | |
9510 | (realize_tty_face): TTY way of realizing faces. | |
9511 | ||
9512 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
9513 | ||
9514 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
9515 | compute it instead. | |
9516 | (lookup_face): Remove local variable unibyte_registry. | |
9517 | ||
9518 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
9519 | ||
9520 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
9521 | 1 pixel longer. | |
9522 | ||
9523 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
9524 | of face in buffer. | |
9525 | ||
9526 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
9527 | prevent start > end. | |
9528 | ||
9529 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
9530 | buffer if it isn't already. | |
9531 | ||
9532 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
9533 | ||
9534 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
9535 | ||
9536 | * xdisp.c (it_props): New member `smaller'. | |
9537 | (init_iterator): Initialize it. | |
9538 | (Qsmaller): New. | |
9539 | (push_it): Save value of `smaller' value on the stack. | |
9540 | (pop_it): Restore `smaller' from the stack. | |
9541 | (handle_smaller_prop): New. | |
9542 | (handle_face_prop): Use `smaller' text property to select a | |
9543 | suitable face. | |
9544 | ||
9545 | * dispextern.h (SMALLER_PROP_IDX): New. | |
9546 | (struct it): Add member `smaller'. | |
9547 | ||
9548 | * xfaces.c (smaller_face): New. | |
9549 | ||
9550 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
9551 | ||
9552 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
9553 | total pixel width of window differently. | |
9554 | ||
9555 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
9556 | ||
9557 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
9558 | of bitmap areas. | |
9559 | ||
9560 | * window.c (Fsplit_window): Include width of bitmap areas in | |
9561 | window width. | |
9562 | (window_internal_width): Subtract width of bitmap areas from | |
9563 | total width. | |
9564 | ||
9565 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
9566 | ||
9567 | * xdisp.c: Functions reordered for better readability. | |
9568 | ||
9569 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
9570 | lbearing. | |
9571 | (update_window_tree): Parameter no_scrolling_p removed. | |
9572 | (update_single_window): Ditto. | |
9573 | ||
9574 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
9575 | x_get_char_face_and_encoding. | |
9576 | ||
9577 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
9578 | if end of current row reached. | |
9579 | ||
9580 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
9581 | (x_get_glyph_overhangs): Call it. | |
9582 | ||
9583 | * xdisp.c (Qshow_trailing_whitespace): New. | |
9584 | (Qtrailing_whitespace): New. | |
9585 | (enum prop_handled): New. | |
9586 | (struct props, it_props): New. | |
9587 | (next_overlay_change): New. Works like Fnext_overlay_change | |
9588 | but doesn't use xmalloc. | |
9589 | (handle_stop): Restructured. | |
9590 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
9591 | handling of face before current position. | |
9592 | ||
9593 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
9594 | ||
9595 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
9596 | reallocation matrix if fonts_changed_p. | |
9597 | (update_text_area): Handle glyphs with lbearing. | |
9598 | ||
9599 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
9600 | ||
9601 | * xdisp.c (struct props): New. | |
9602 | (it_props): New. | |
9603 | (compute_prop_info): New. | |
9604 | (handle_stop): New. | |
9605 | ||
9606 | * textprop.c (validate_interval_range): Make it externally | |
9607 | visible. | |
9608 | ||
9609 | * dispnew.c (direct_output_for_insert): Remove calls | |
9610 | to compute_stop_pos. | |
9611 | ||
9612 | * dispextern.h (struct it): Remove check_charpos, | |
9613 | next_overlay_pos. Add what_changes. | |
9614 | ||
9615 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
9616 | ||
9617 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
9618 | ||
9619 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
9620 | face_default_registry instead. | |
9621 | ||
9622 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
9623 | jumping to initial state label. | |
9624 | ||
9625 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
9626 | ||
9627 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
9628 | >= ZV specially. | |
9629 | ||
9630 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
9631 | ||
9632 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
9633 | ends up in partially visible row, try to scroll. Case forced | |
9634 | window start---handle windows not tall enough to show a single | |
9635 | line. | |
9636 | ||
9637 | * window.h (struct window): Member dy renamed vscroll. | |
9638 | ||
9639 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
9640 | fonts. | |
9641 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
9642 | hasn't set it yet. | |
9643 | ||
9644 | * xdisp.c (redisplay_window): Case forced window start - | |
9645 | don't let cursor end on partially visible row. Use desired | |
9646 | matrix to find a suitable PT if it doesn't appear. | |
9647 | (decode_mode_spec): Merged with 20.2.97. | |
9648 | (try_window_reusing_current_matrix): Give up if old or | |
9649 | new display is vscrolled. | |
9650 | (redisplay_window): Reset vscrolling if forced window start, | |
9651 | or if recentering. | |
9652 | ||
9653 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
9654 | ||
9655 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
9656 | the alias for the family attribute of the default face because we | |
9657 | can't easily determine a good alias from fontset-alias-alist. | |
9658 | (face_fontset): Use Fquery_fontset to find the fontset. | |
9659 | (font_list): Additional pattern parameter. | |
9660 | (try_font_list): Ditto. | |
9661 | (set_lface_from_font_name): Set face family from font foundry | |
9662 | and family. | |
9663 | (font_list): If family contains a hyphen, build pattern differently. | |
9664 | ||
9665 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
9666 | ||
9667 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
9668 | changed instead of setting the frame garbaged. | |
9669 | ||
9670 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
9671 | all attribute values. This is wrong if values are unspecified, | |
9672 | i.e. nil. | |
9673 | ||
9674 | * xdisp.c (try_window_id): Give up if window start changed. | |
9675 | ||
9676 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
9677 | (load_face_font_or_fontset): Compute registry of a face | |
9678 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
9679 | possible. | |
9680 | ||
9681 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
9682 | differently. | |
9683 | ||
9684 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
9685 | ||
9686 | * dispextern.h (struct face): Make registry a Lisp string. | |
9687 | ||
9688 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
9689 | ||
9690 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
9691 | multibyte_p. Handle unibyte text. | |
9692 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
9693 | (x_produce_image_glyph): Ditto. | |
9694 | (x_append_stretch_glyph): Ditto. | |
9695 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
9696 | ||
9697 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
9698 | stack. | |
9699 | (pop_it): Restore it. | |
9700 | (face_before_or_after_it_pos): Handle the case that the string or | |
9701 | buffer is unibyte. | |
9702 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
9703 | the new overlay string is multibyte. | |
9704 | (get_glyph_property): Likewise. | |
9705 | (get_next_display_element): Don't check for charset changes in | |
9706 | unibyte text. | |
9707 | (append_space): Compute face differently for unibyte text. | |
9708 | (extend_face_to_end_of_line): Don't return quickly if face has | |
9709 | stipple. | |
9710 | ||
9711 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
9712 | encoding of the font in the registry member of the face. | |
9713 | (make_realized_face): Additional parameter `registry'. | |
9714 | (free_realized_face): Free the registry of a realized face. | |
9715 | (face_suitable_for_charset_p): Function form of the macro | |
9716 | with the same name in uppercase. | |
9717 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
9718 | (choose_face_font): New parameter unibyte_registry. | |
9719 | (choose_face_fontset_font): Ditto. | |
9720 | (realize_default_face): Remember the registry and encoding of | |
9721 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
9722 | (face_at_buffer_position): Handle unibyte. | |
9723 | (face_at_string_position): Likewise. | |
9724 | (realize_face): New parameter unibyte_registry. | |
9725 | (compute_char_face): Handle the unibyte case. | |
9726 | ||
9727 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
9728 | (struct face): New member registry holding the registry and | |
9729 | encoding of the X font of the face. | |
9730 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
9731 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
9732 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
9733 | text. | |
9734 | (struct iterator_stack_entry): Add multibyte_p. | |
9735 | ||
9736 | * xdisp.c (string_pos): Use string_char_to_byte. | |
9737 | (char_charset): Removed. | |
9738 | ||
9739 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
9740 | ||
9741 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
9742 | rectangle for a block cursor over an image without a mask. | |
9743 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
9744 | a block cursor over a stretch as wide as that stretch. | |
9745 | (x_draw_stretch_glyph_string): Use it. | |
9746 | (x_draw_hollow_cursor): Ditto. | |
9747 | ||
9748 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
9749 | (read_minibuf): Add front-sticky text property for prompt. | |
9750 | ||
9751 | * xdisp.c (char_charset): Return charset of a character, | |
9752 | depending on whether or not multi-byte characters are enabled. | |
9753 | ||
9754 | * xfaces.c (Fset_face_charset_registry): Removed. | |
9755 | (x_charset_registry): Determine registry from charset plist. | |
9756 | ||
9757 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
9758 | ||
9759 | * xdisp.c (get_next_display_element): Don't check for charset | |
9760 | changes if multi-byte characters are not enabled. | |
9761 | ||
9762 | * xdisp.c (echo_area_display): Use the flush function from the | |
9763 | redisplay interface. | |
9764 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
9765 | ||
9766 | * dispextern.h (produce_*glyphs_hook): Removed. | |
9767 | * term.c (produce_*glyphs): Ditto. | |
9768 | (cursor_to): Remove pixel position parameters. | |
9769 | ||
9770 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
9771 | a redisplay interface structure. | |
9772 | ||
9773 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
9774 | char metric exists but contains a zero width. Adobe Courier seems | |
9775 | to contain such characters. | |
9776 | ||
9777 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
9778 | without stopping at glyphs with zero width. | |
9779 | ||
9780 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
9781 | ||
9782 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
9783 | display a space. | |
9784 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
9785 | to ZV and window is not the selected window. | |
9786 | ||
9787 | * dispnew.c (check_matrix_invariants): Remove check for window | |
9788 | start at BEGV or after newline. This happens in rare cases | |
9789 | intentionally. | |
9790 | ||
9791 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
9792 | ||
9793 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
9794 | (syms_of_xfaces): Add Vface_default_registry. | |
9795 | (x_charset_registry): Use it. | |
9796 | ||
9797 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
9798 | (redisplay_window): Use it. | |
9799 | ||
9800 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
9801 | by backing up one character. | |
9802 | ||
9803 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
9804 | ||
9805 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
9806 | decide to do nothing. | |
9807 | ||
9808 | * xfaces.c (face_at_string_position): Additional parameter | |
9809 | mode_line_p. If non-zero, merge with the mode line face | |
9810 | instead of the default face. | |
9811 | * dispextern.h (struct it): Add mode_line_p. | |
9812 | * xdisp.c (init_iterator): Set it. | |
9813 | (compute_face_in_string): Use it. | |
9814 | (face_before_or_after_it_pos): Handle strings. | |
9815 | (get_next_display_element): Don't look for relief end in C strings. | |
9816 | (next_element_from_string): Deliver string position instead of | |
9817 | buffer position. | |
9818 | ||
9819 | * xterm.c (x_flush): Flush X output buffer. | |
9820 | (XTflash): Use it. | |
9821 | ||
9822 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
9823 | Allow strings as face names. | |
9824 | ||
9825 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
9826 | alive. | |
9827 | ||
9828 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
9829 | it's also called from x_destroy_window. Since this function is | |
9830 | called from X, freeing stuff allocated with xmalloc is dangerous | |
9831 | here, anyway. | |
9832 | ||
9833 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
9834 | of a frame being destroyed. | |
9835 | ||
9836 | * frame.c (make_frame): Call set_window_buffer instead of | |
9837 | Fset_window_buffer. | |
9838 | ||
9839 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
9840 | with an additional argument specifying whether or not hooks may | |
9841 | be called. | |
9842 | (Fset_window_buffer): Call it. | |
9843 | ||
9844 | * dispnew.c (clear_desired_matrices): Check that frame has | |
9845 | a valid root window before clearing matrices in the window tree. | |
9846 | (clear_current_matrices): Ditto. | |
9847 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
9848 | vchild are valid windows if not nil. | |
9849 | ||
9850 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
9851 | for :inverse-video. | |
9852 | (Finternal_set_lisp_face_attribute): Ditto. | |
9853 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
9854 | (Finternal_get_lisp_face_attribute): Ditto. | |
9855 | (Finternal_lisp_face_attribute_values): Ditto. | |
9856 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
9857 | ||
9858 | * xdisp.c (get_glyph_property): Renamed from | |
9859 | fill_iterator_from_glyph_property. | |
9860 | (next_element_from_buffer): Handle case that no `glyph' property | |
9861 | was found correctly. | |
9862 | (display_line): Extend face to end of line only if we have faces. | |
9863 | ||
9864 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
9865 | ||
9866 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
9867 | additional window argument. | |
9868 | ||
9869 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
9870 | set_iterator_to_previous_visible_line_start. | |
9871 | (reseat_at_next_visible_line_start): Likewise. | |
9872 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
9873 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
9874 | (compute_face_in_buffer): Renamed from | |
9875 | compute_face_at_iterator_position. | |
9876 | (compute_face_in_string): Renamed from | |
9877 | compute_face_at_iterator_string_position. | |
9878 | (get_space_width): Renamed from get_iterator_space_width. | |
9879 | (next_overlay_string): Renamed from | |
9880 | set_iterator_to_next_overlay_string. | |
9881 | (get_overlay_strings): Renamed from | |
9882 | get_overlay_strings_at_iterator_position. | |
9883 | (restore_overlay_strings): Renamed from | |
9884 | setup_overlay_strings_from_glyph_pos. | |
9885 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
9886 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
9887 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
9888 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
9889 | ||
9890 | * xterm.c: Merge with 20.2.97. | |
9891 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
9892 | ||
9893 | * dispextern.h (struct glyph): Replace text_pos position with | |
9894 | simple charpos. | |
9895 | ||
9896 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
9897 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
9898 | (enum move_it_result): Renamed from move_iterator_result. | |
9899 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
9900 | known text_pos plus a character delta. | |
9901 | (string_pos): Compute text_pos in string from charpos. | |
9902 | (c_string_pos): Likewise for a C string. | |
9903 | (number_of_chars): Return number of characters in a possibly | |
9904 | multi-byte C string. | |
9905 | (check_it): Renamed from check_iterator. Check that charpos and | |
9906 | bytepos are in sync. | |
9907 | (push_it): Renamed from save_iterator_settings. | |
9908 | (pop_it): Renamed from restore_iterator_settings. | |
9909 | (move_it_.*): Renamed from move_iterator_.*. | |
9910 | (charset_at_position): Take charpos/bytepos into account. | |
9911 | (back_to_previous_line_start): Set iterator to previous line start. | |
9912 | (forward_to_next_line_start): Set iterator to next line start. | |
9913 | (back_to_previous_visible_line_start): Renamed from | |
9914 | move_iterator_previous_visible_line_start. | |
9915 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
9916 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
9917 | Handle charpos/bytepos. | |
9918 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
9919 | (compute_face_at_iterator_string_position): Likewise. | |
9920 | (get_iterator_space_width): Likewise. | |
9921 | (load_overlay_strings): Likewise. | |
9922 | (get_overlay_strings_at_iterator_position): Likewise. | |
9923 | (reseat_iterator): Take a text_pos position argument. | |
9924 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
9925 | bytepos. | |
9926 | (init_iterator): Take additional bytepos parameter. | |
9927 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
9928 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
9929 | (next_element_from_string): Handle charpos/bytepos. | |
9930 | (next_element_from_c_string): Likewise. | |
9931 | (fill_iterator_from_glyph_property): Likewise. | |
9932 | (next_element_from_buffer): Likewise. | |
9933 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
9934 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
9935 | (move_it_to): Likewise. | |
9936 | (move_it_vertically_backward): Likewise. | |
9937 | (move_it_vertically): Likewise. | |
9938 | (move_it_by_lines): Likewise. | |
9939 | (hscroll_window_tree): Likewise. | |
9940 | (redisplay_internal): Likewise. | |
9941 | (set_cursor_from_row): Likewise. | |
9942 | (redisplay_window): Likewise. | |
9943 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
9944 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
9945 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
9946 | (try_window_id): Handle charpos/bytepos. | |
9947 | (Ftrace_redisplay_toggle): Return Qnil. | |
9948 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
9949 | (insert_left_trunc_glyphs): Likewise. | |
9950 | ||
9951 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
9952 | do a real merge). | |
9953 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
9954 | (increment_glyph_row_buffer_positions): Ditto. | |
9955 | (copy_glyph_row_contents): Ditto. | |
9956 | (check_matrix_invariants): Add additional checks for charpos/ | |
9957 | bytepos consistency. | |
9958 | (direct_output_for_insert): Changed for charpos/bytepos. | |
9959 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
9960 | `direction-reversed' in #if 0. | |
9961 | ||
9962 | * xterm.h: Merge with 20.2.97. | |
9963 | ||
9964 | * frame.h: Merge with 20.2.97. | |
9965 | ||
9966 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
9967 | ||
9968 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
9969 | start. | |
9970 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
9971 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
9972 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
9973 | (struct it): Various members renamed from .*pos to .*charpos. | |
9974 | (IT_CHARPOS): Access current buffer character position of an | |
9975 | iterator. | |
9976 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
9977 | (IT_STRING_CHARPOS): Access current string character position of | |
9978 | an iterator. | |
9979 | (IT_STRING_BYTEPOS): Access current string byte position of | |
9980 | an iterator. | |
9981 | (globally): Add function prototypes from 20.2.97. | |
9982 | ||
9983 | * everywhere: Use P_ instead of PROTO for function prototypes | |
9984 | because everyone else seems to use P_. | |
9985 | ||
9986 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
9987 | bytepos position in text. | |
9988 | (BYTEPOS): Access the byte position part of a text_pos. | |
9989 | (CHARPOS): Likewise for the character position. | |
9990 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
9991 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
9992 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
9993 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
9994 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
9995 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
9996 | for buffer and string positions. | |
9997 | (struct glyph): Use text_pos. | |
9998 | (struct it): Renamed from display_iterator. Use text_pos. | |
9999 | ||
10000 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
10001 | ||
10002 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
10003 | pixmap. | |
10004 | ||
10005 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
10006 | ||
10007 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
10008 | * xterm.c (x_draw_row_bitmaps): Use it. | |
10009 | * dispnew.c (row_equal_p): Ditto. | |
10010 | (update_window_line): Ditto. | |
10011 | ||
10012 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
10013 | flag of images. | |
10014 | ||
10015 | * dispextern.h (struct image): Removed member loading_failed_p. | |
10016 | It's probably better to have the chance to try to load an image | |
10017 | again. | |
10018 | ||
10019 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
10020 | ||
10021 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
10022 | at ZV if `indicate-zv-lines' is non-nil. | |
10023 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
10024 | ||
10025 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
10026 | ends_at_zv_p flags of rows. | |
10027 | (update_window_line): Ditto. | |
10028 | ||
10029 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
10030 | ||
10031 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
10032 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
10033 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
10034 | ||
10035 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
10036 | if current glyph row w->last_cursor.vpos isn't enabled. | |
10037 | ||
10038 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
10039 | ||
10040 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
10041 | values. Others don't seem to make sense, and this way it's easy | |
10042 | to restore a vscroll of zero. | |
10043 | ||
10044 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
10045 | allocated. | |
10046 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
10047 | could not be created. | |
10048 | ||
10049 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
10050 | be created. | |
10051 | (xbm_load): Ditto. | |
10052 | (gs_load): Ditto. | |
10053 | ||
10054 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
10055 | glyphs into account. | |
10056 | ||
10057 | * xfaces.c (realize_default_face): Don't set font family of | |
10058 | the default face from the fontset alias name for `fontset-startup'. | |
10059 | ||
10060 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
10061 | color to the Lisp loader. | |
10062 | ||
10063 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
10064 | ||
10065 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
10066 | libtiff34. | |
10067 | ||
10068 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
10069 | ||
10070 | * config.in (HAVE_TIFF): Added. | |
10071 | ||
10072 | * Makefile.in (LIBTIFF): Added. | |
10073 | ||
10074 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
10075 | ||
10076 | * Makefile.in (LIBJPEG): Added. | |
10077 | ||
10078 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
10079 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
10080 | jpeglib.h. | |
10081 | ||
10082 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
10083 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
10084 | configure must be run with `--x-includes=/usr/X11R6/include: | |
10085 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
10086 | ||
10087 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
10088 | ||
10089 | * config.in (HAVE_JPEG): Added. | |
10090 | ||
10091 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
10092 | from images to X pixel colors. | |
10093 | (ct_free): Free color table. | |
10094 | (ct_lookup): Look an RGB color up. | |
10095 | (ct_allocated_colors): Get vector of allocated colors. | |
10096 | (pbm_image_p): Test if image specification is a valid PPM | |
10097 | image specification. | |
10098 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
10099 | (pbm_load): Load a PPM image. | |
10100 | ||
10101 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
10102 | necessary. Take canonical character units as parameter. | |
10103 | (Fwindow_vscroll): Return canonical character units. | |
10104 | ||
10105 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
10106 | w->dy to display height for which glyph rows must be allocated. | |
10107 | ||
10108 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
10109 | ||
10110 | * xfaces.c (face_at_string_position): Merge in region face | |
10111 | so that it won't overwrite the font in the region. | |
10112 | (face_at_buffer_position): Ditto. | |
10113 | (realize_basic_faces): Don't realize region face. | |
10114 | ||
10115 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
10116 | ||
10117 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
10118 | cursor face extend to end of line. | |
10119 | ||
10120 | * xdisp.c (append_space): If adding space of default face, | |
10121 | make sure glyph ist produced with right face. | |
10122 | ||
10123 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
10124 | background color of a glyph string. | |
10125 | (x_draw_glyph_string_background): Call it. | |
10126 | (x_draw_glyph_string_bg_rect): Ditto. | |
10127 | (x_draw_stretch_glyph_string): Ditto. | |
10128 | ||
10129 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
10130 | ||
10131 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
10132 | window's vscroll w->dy. | |
10133 | ||
10134 | * window.c (Fwindow_vscroll): Return number of pixels window | |
10135 | is vscrolled smoothly. | |
10136 | (Fset_window_vscroll): Set the number. | |
10137 | ||
10138 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
10139 | to_pos in truncated part of a line. | |
10140 | ||
10141 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
10142 | ||
10143 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
10144 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
10145 | (display_line): Ditto. | |
10146 | ||
10147 | * xfns.c: Experimental support for Ghostscript images. | |
10148 | ||
10149 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
10150 | (XTread_socket): React on events from Ghostscript. | |
10151 | (expose_frame): If width or height are zero, redraw entire frame. | |
10152 | (XTread_socket): Call expose_frame after receiving event from | |
10153 | Ghostscript. | |
10154 | ||
10155 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
10156 | for Ghostscript support. | |
10157 | ||
10158 | * xdisp.c (redisplay_internal): Return quickly if called | |
10159 | recursively. | |
10160 | ||
10161 | * alloc.c (NSTATICS): Increased to 1024. | |
10162 | ||
10163 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
10164 | ||
10165 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
10166 | iterator's glyph row. | |
10167 | (x_produce_stretch_glyph): Call it. | |
10168 | (x_produce_glyphs): Handle `space-width' property; call | |
10169 | x_append_stretch_glyph. | |
10170 | ||
10171 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
10172 | property. | |
10173 | (get_iterator_space_width): Determine value of `space-width' | |
10174 | property at iterator's position. | |
10175 | (reseat_iterator): Call it. | |
10176 | (next_element_from_string): Ditto. | |
10177 | (next_element_from_buffer): Ditto. | |
10178 | (init_iterator): Initialize space_width of iterator. | |
10179 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
10180 | moved, but cursor blinks. | |
10181 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
10182 | ||
10183 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
10184 | (struct display_iterator): Add new member space_width. | |
10185 | ||
10186 | * window.h (struct window): Add last_cursor_off_p. | |
10187 | ||
10188 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
10189 | ||
10190 | * Saved. | |
10191 | ||
10192 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
10193 | date---return nil if iterator hasn't reached position. | |
10194 | ||
10195 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
10196 | ||
10197 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
10198 | overlays have changed. | |
10199 | (redisplay_window): Case cursor movement. Don't try it if | |
10200 | last_cursor.vpos is out of range. | |
10201 | ||
10202 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
10203 | way, the display optimization for the line containing the cursor | |
10204 | is used more frequently, esp. when we have a blinking cursor. | |
10205 | (display_line): Don't set this_line_.* variables. | |
10206 | ||
10207 | * xterm.c (x_redraw_cursor): Removed. | |
10208 | (x_display_and_set_cursor): Set cursor type depending on | |
10209 | cursor_off_p flag of window. | |
10210 | ||
10211 | * dispnew.c (redraw_cursor_hook): Removed. | |
10212 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
10213 | member of the selected window. | |
10214 | ||
10215 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
10216 | ||
10217 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
10218 | Return glyph area under x/y. | |
10219 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
10220 | ||
10221 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
10222 | after redisplaying. | |
10223 | ||
10224 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
10225 | ||
10226 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
10227 | are all outside of a line of text. | |
10228 | (redisplay_internal): Use it. | |
10229 | ||
10230 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
10231 | ||
10232 | * xdisp.c (next_element_from_buffer): After skipping over | |
10233 | invisible text, look for the `glyph' property. | |
10234 | (set_iterator_stop_pos): Ignore check positions in front | |
10235 | of an iterator's current position. | |
10236 | ||
10237 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
10238 | anymore or which are marked as not having valid contents. | |
10239 | ||
10240 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
10241 | realized faces if new attribute value is equal to old value. | |
10242 | ||
10243 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
10244 | ||
10245 | * xfaces.c (Finternal_make_lisp_face): Increment | |
10246 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
10247 | ||
10248 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
10249 | ||
10250 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
10251 | as minimum of endpos and overlay_pos. | |
10252 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
10253 | -1 if we don't have to check for more overlay strings. | |
10254 | ||
10255 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
10256 | ||
10257 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
10258 | do anything if iterator is at ZV because scan_buffer doesn't | |
10259 | work otherwise. | |
10260 | ||
10261 | * xterm.c (x_encode_char): Inline it. | |
10262 | (x_get_char_font_and_encoding): Simplified. | |
10263 | (x_per_char_metric): Inline it. | |
10264 | ||
10265 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
10266 | ||
10267 | * xdisp.c (get_next_display_element): Check for end of relief | |
10268 | face moved here from next_element_from_buffer. | |
10269 | ||
10270 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
10271 | (x_produce_stretch_glyph): Ditto. | |
10272 | ||
10273 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
10274 | ||
10275 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
10276 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
10277 | ||
10278 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
10279 | from a glyph property. | |
10280 | (x_produce_glyphs): Use it. | |
10281 | ||
10282 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
10283 | ||
10284 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
10285 | in text area. | |
10286 | (x_produce_glyphs): Ditto. | |
10287 | ||
10288 | * xdisp.c (display_line): Compute row height from glyphs in | |
10289 | marginal areas. | |
10290 | ||
10291 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
10292 | background of an image glyph string. | |
10293 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
10294 | the background of a glyph string. | |
10295 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
10296 | an image glyph string. | |
10297 | (x_inverted_image_mask): Return the inverted mask of an image. | |
10298 | ||
10299 | * xfns.c (x_draw_image): Removed. | |
10300 | ||
10301 | * dispextern.h (struct image_type): Remove drawing function. | |
10302 | ||
10303 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
10304 | ||
10305 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
10306 | newlines, tabs, etc. like normal control characters. | |
10307 | ||
10308 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
10309 | and color. | |
10310 | (free_realized_faces): Set frame garbaged. | |
10311 | ||
10312 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
10313 | internal-lisp-face-attribute-values. | |
10314 | ||
10315 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
10316 | ||
10317 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
10318 | full. | |
10319 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
10320 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
10321 | ||
10322 | * dispextern.h (struct image_type): Additional clipping rect | |
10323 | parameters for drawing functions. | |
10324 | ||
10325 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
10326 | a glyph string. | |
10327 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
10328 | image drawing function. | |
10329 | ||
10330 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
10331 | first character with `glyph' property as image position. Set | |
10332 | iterator back to that position as long as the image hasn't been | |
10333 | consumed with set_iterator_to_next. | |
10334 | (set_cursor_from_row): Accept when glyph with given position is | |
10335 | not found in the row. Set cursor x to end of line in that case, | |
10336 | so that we can hscroll. | |
10337 | (redisplay_internal): Correct computation of delta by which | |
10338 | positions have changed in redisplay optimization for cursor | |
10339 | row of selected window. | |
10340 | ||
10341 | * xdisp.c (display_line): Remove start_pos. | |
10342 | (display_line): Fix bug preventing display optimization for | |
10343 | cursor line of selected window. | |
10344 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
10345 | instead. | |
10346 | ||
10347 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
10348 | (update_text_area): Take glyph pixel width into account | |
10349 | when trying to find a resync point. | |
10350 | (row_equal_p): Compare glyphs in all areas. | |
10351 | ||
10352 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
10353 | ||
10354 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
10355 | ||
10356 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
10357 | ||
10358 | * xdisp.c (display_line): Simplified and made faster by setting | |
10359 | the cursor with set_cursor_from_row. | |
10360 | (set_cursor_from_row): Handle rows of desired matrix. | |
10361 | ||
10362 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
10363 | ||
10364 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
10365 | with type != CHAR_GLYPH. | |
10366 | (fill_iterator_from_glyph_property): Return void. Set | |
10367 | method to next_element_from_image. | |
10368 | (next_element_from_image): Dummy function for delivering a | |
10369 | single image id. | |
10370 | (set_iterator_to_next): Add method next_element_from_image. | |
10371 | (redisplay_window): When recentering, and cursor vpos is -1 | |
10372 | after display, assume middle of window is in first line displayed | |
10373 | in window, and display again. | |
10374 | (fill_iterator_from_glyph_property): Assign image glyph | |
10375 | the position of the first character having the glyph property. | |
10376 | ||
10377 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
10378 | * xfns.c (x_draw_image): Use it. | |
10379 | * xterm.c (x_produce_image_glyph): Use it. | |
10380 | ||
10381 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
10382 | ||
10383 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
10384 | ||
10385 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
10386 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
10387 | stretch glyph. | |
10388 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
10389 | for text glyph strings. | |
10390 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
10391 | (x_draw_glyph_string): Call it. | |
10392 | ||
10393 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
10394 | (struct glyph): Add sub-structure for stretchable glyphs. | |
10395 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
10396 | ||
10397 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
10398 | #ifdef HAVE_FACES. | |
10399 | ||
10400 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
10401 | ||
10402 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
10403 | setup_iterator_from_glyph_property. Don't do it for terminal | |
10404 | frames. | |
10405 | ||
10406 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
10407 | that can't be loaded. | |
10408 | ||
10409 | * xfns.c (lookup_image): If image can't be loaded, set its | |
10410 | width and height so that we can draw a rectangle. | |
10411 | (x_draw_image): Draw a rectangle for images that don't have | |
10412 | a pixmap. | |
10413 | (make_image): Set hash value. | |
10414 | (image_spec_equal_p): Use image_spec_value. | |
10415 | ||
10416 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
10417 | haven't benn realized yet. | |
10418 | (x_draw_image_glyph_string): Fill background only if image | |
10419 | is not as tall as row. | |
10420 | ||
10421 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
10422 | ||
10423 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
10424 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
10425 | ||
10426 | * xfns.c (xpm_image_p): Implementation of image type functions | |
10427 | for XPM. | |
10428 | (xpm_load): Ditto. | |
10429 | ||
10430 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
10431 | ||
10432 | * xfns.c (x_draw_image): Handle images with masks. | |
10433 | ||
10434 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
10435 | ||
10436 | * config.in: Add HAVE_XPM. | |
10437 | ||
10438 | * xfns.c (xbm_draw): Removed. | |
10439 | (x_draw_image): Default implementation for drawing images. | |
10440 | (xbm_keyword_index): Remove XBM_DEPTH. | |
10441 | (xbm_format): Remove `:depth'. | |
10442 | (xbm_image_spec_from_file): Removed to reduce consing. | |
10443 | (xbm_load_image_from_file): Added for the same reason. | |
10444 | ||
10445 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
10446 | glyph string. | |
10447 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
10448 | ||
10449 | * xfns.c (make_image): Set default baseline. | |
10450 | ||
10451 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
10452 | from its height and baseline percentage. | |
10453 | ||
10454 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
10455 | (xbm_format): Add description for `:baseline'. | |
10456 | (xbm_image_spec_from_file): Add keywords from original spec to | |
10457 | result. | |
10458 | (xbm_load): Set baseline of image. | |
10459 | (xbm_image_p): Check range for baseline. | |
10460 | ||
10461 | * dispextern.h (struct image): Add member baseline. | |
10462 | ||
10463 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
10464 | ||
10465 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
10466 | ||
10467 | * xdisp.c (get_next_display_element): Do character translations | |
10468 | only if delivering characters. | |
10469 | ||
10470 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
10471 | ||
10472 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
10473 | DISP_CHARACTER. | |
10474 | ||
10475 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
10476 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
10477 | ||
10478 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
10479 | ||
10480 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
10481 | (clear_image_cache): Clear images if image's timestamp + | |
10482 | Vimage_eviction_seconds is > now. | |
10483 | (syms_of_xfns): New variables image-eviction-seconds, and | |
10484 | image-types. | |
10485 | (add_image_format): Add to image-types. | |
10486 | (xbm_load): Support new image spec format. | |
10487 | (x_alloc_image_color): Allocate a color for an image. | |
10488 | ||
10489 | * dispextern.h (struct image): Add timestamp. | |
10490 | ||
10491 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
10492 | vectors of bool-vectors. | |
10493 | (xbm_lisp_object_from_file): Build new format image spec. | |
10494 | ||
10495 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
10496 | ||
10497 | * xfaces.c (init_frame_faces): Initialize image cache. | |
10498 | (free_frame_faces): Free it. | |
10499 | ||
10500 | * xterm.c (x_delete_display): Don't free image cache. | |
10501 | ||
10502 | * emacs.c (main): Call init_xfns. | |
10503 | ||
10504 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
10505 | ||
10506 | * alloc.c (mark_object): Mark objects in image cache. | |
10507 | ||
10508 | * xfns.c (x_set_internal_border_width): Correct call to | |
10509 | widget_store_internal_border_width. | |
10510 | ||
10511 | * widget.c (widget_store_internal_border): Return void. | |
10512 | ||
10513 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
10514 | void. | |
10515 | (init_x_parm_symbols): Return void. | |
10516 | (x_report_frame_params): Ditto. | |
10517 | (x_set_border_pixel): Ditto. | |
10518 | (syms_of_xfns): Ditto. | |
10519 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
10520 | ||
10521 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
10522 | ||
10523 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
10524 | (x_delete_display): Free image cache. | |
10525 | ||
10526 | * xterm.h (struct x_display_info): Add image_cache. | |
10527 | ||
10528 | * xfns.c (make_image_cache): Allocate a new image cache. | |
10529 | (free_image_cache): Free an image cache. | |
10530 | (make_image): Allocate an image. | |
10531 | (free_image): Free an image. | |
10532 | ||
10533 | * dispextern.h (struct image): Structure describing an image. | |
10534 | (struct image_cache): Structure describing an image cache. | |
10535 | ||
10536 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
10537 | ||
10538 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
10539 | non-zero if iterator is filled with something to return. | |
10540 | (next_element_from_buffer): Immediately return if | |
10541 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
10542 | (next_element_from_string): Likewise. | |
10543 | ||
10544 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
10545 | ||
10546 | * dispextern.h (struct glyph): Add pixmap_id. | |
10547 | (display_element_type): Add DISP_PIXMAP. | |
10548 | ||
10549 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
10550 | malloc/free. | |
10551 | ||
10552 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
10553 | (clear_face_cache): Call it. | |
10554 | ||
10555 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
10556 | (x_compute_min_glyph_bounds): Likewise. | |
10557 | (x_term_init): Initialize font_table to null. | |
10558 | (x_load_font): Change allocation of font_info structures so | |
10559 | that it is possible to free fonts. | |
10560 | ||
10561 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
10562 | Only free fonts from filled font table entries. | |
10563 | ||
10564 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
10565 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
10566 | ||
10567 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
10568 | and resy. | |
10569 | * xterm.c (x_term_init): Compute resx and resy. | |
10570 | ||
10571 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
10572 | ||
10573 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
10574 | in #if 0. | |
10575 | ||
10576 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
10577 | point size cannot be determined. | |
10578 | ||
10579 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
10580 | width over all fonts on a frame. | |
10581 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
10582 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
10583 | macros. | |
10584 | ||
10585 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
10586 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
10587 | (x_load_font): Use x_compute_min_char_bounds. | |
10588 | ||
10589 | * xterm.h (struct x_display_info): New members smallest_char_width | |
10590 | and smallest_font_height. | |
10591 | ||
10592 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
10593 | ||
10594 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
10595 | the same name if GC of face is zero. | |
10596 | ||
10597 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
10598 | ||
10599 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
10600 | for characters < 0177 in default face. Prepare face for | |
10601 | display before returning it. | |
10602 | (x_produce_glyphs): Use it->charset. | |
10603 | (x_get_char_font_and_encoding): Simplified. | |
10604 | (x_encode_char): Remove parameter `font'. | |
10605 | ||
10606 | * xfaces.c (choose_face_font): If registry from charset symbol | |
10607 | doesn't contain a `-', make it a pattern by appending "*-*". | |
10608 | ||
10609 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
10610 | glyph_check_pos computation to character boundary. | |
10611 | ||
10612 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
10613 | ||
10614 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
10615 | ||
10616 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
10617 | ASCII face for a given Lisp face id. | |
10618 | ||
10619 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
10620 | account. | |
10621 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
10622 | new position is < original position. | |
10623 | (check_iterator_glyph_property): Handle glyph property in strings. | |
10624 | (next_element_from_string): Call above function. | |
10625 | (next_element_from_display_vector): Handle faces in glyphs. | |
10626 | (get_next_display_element): Set face_id of glyphs for | |
10627 | control chars to zero. | |
10628 | ||
10629 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
10630 | ||
10631 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
10632 | (display_line): Handle marginal areas. | |
10633 | (move_iterator_in_display_line_to): Likewise. | |
10634 | ||
10635 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
10636 | ||
10637 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
10638 | text property. | |
10639 | (face_at_string_position): Ditto. | |
10640 | ||
10641 | * dispextern.h (struct display_iterator): Use a stack of saved | |
10642 | values instead of saving check positions etc. individually. | |
10643 | ||
10644 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
10645 | maybe pop the iterator's stack. | |
10646 | (save_iterator_settings): Push a value on iterator's stack. | |
10647 | (get_overlay_strings_at_iterator_position): Use it. | |
10648 | (restore_iterator_settings): Pop the stack. | |
10649 | (set_iterator_to_next_overlay_string): Use it. | |
10650 | ||
10651 | * xfaces.c (try_font_list): Use alternative font families. | |
10652 | ||
10653 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
10654 | ||
10655 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
10656 | font selection matches fonts. | |
10657 | (Fface_font_sort_order): Return the font sort order. | |
10658 | (best_matching_font): Find best matching font based on sort order. | |
10659 | (cmp_font_names): Sort by given sort order. | |
10660 | ||
10661 | * dispextern.h (struct display_iterator): New member faces_p. | |
10662 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
10663 | (compute_face_at_iterator_string_position): Use it. | |
10664 | (compute_face_at_iterator_position): Use it. | |
10665 | (init_iterator): Use it. | |
10666 | (display_mode_line): Ditto. | |
10667 | ||
10668 | * xdisp.c (get_next_display_element): Put code choosing a face | |
10669 | when the charset changes in #ifdef HAVE_FACES. | |
10670 | ||
10671 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
10672 | lookup_face_for_charset. | |
10673 | ||
10674 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
10675 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
10676 | ||
10677 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
10678 | ||
10679 | * xfaces.c (best_matching_font): Return the name of the best | |
10680 | matching font in an array of font_name structures. | |
10681 | (choose_face_font): Use it. | |
10682 | (choose_face_fontset_font): Use it. | |
10683 | (find_best_weight_font): If final font found has same weight as | |
10684 | the font we started with, return the original font because it is a | |
10685 | better match for the resolution of the display. | |
10686 | (find_best_slant_font): Likewise. | |
10687 | (merge_face_vector_with_property): Check more invalid attribute | |
10688 | values. | |
10689 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
10690 | name in upper-case. | |
10691 | ||
10692 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
10693 | ||
10694 | * dispextern.h (struct face): Member | |
10695 | fontset_chosen_for_realization_p removed. | |
10696 | ||
10697 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
10698 | end of the collision list, so that we find more specific faces | |
10699 | first. | |
10700 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
10701 | 0, and charset != CHARSET_COMPOSITION. | |
10702 | ||
10703 | * xfaces.c (split_font_name): Return zero if point size of font | |
10704 | couldn't be computed. | |
10705 | (realize_default_face): Use ASCII font of a fontset to determine | |
10706 | font-related attributes of the default face. | |
10707 | (face_fontset): Return fontset id for face family. | |
10708 | (font_list): Additional parameter font_pattern. If non-nil, | |
10709 | return fonts matching that pattern. | |
10710 | ||
10711 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
10712 | ||
10713 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
10714 | constructed, or fontset name cannot be split, return the id of the | |
10715 | standard fontset. | |
10716 | ||
10717 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
10718 | When Emacs starts, it may be called for the initial frame which | |
10719 | isn't an X frame. | |
10720 | ||
10721 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
10722 | background_defaulted_p. | |
10723 | (struct face): Members `mask' and `cache' removed. | |
10724 | ||
10725 | * xfaces.c (load_color): Set them. | |
10726 | (free_face_colors): Check them. | |
10727 | (xlfd_point_size): Return -1 if resolution or point size of | |
10728 | font unknown. | |
10729 | ||
10730 | * xfaces.c (free_font): Removed. | |
10731 | (load_face_font_or_fontset): Renamed from load_font. | |
10732 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
10733 | (load_color): Likewise. | |
10734 | (load_pixmap): Likewise. | |
10735 | ||
10736 | * xterm.h (struct x_display_info): Add screen_dpi. | |
10737 | * xterm.c (x_term_init): Initialize it. | |
10738 | * xfaces.c (xlfd_point_size): Use it. | |
10739 | (split_font_name): Compute numeric XLFD_RESY. | |
10740 | (cmp_font_names): Make fonts with an y-resolution more | |
10741 | similar to that of the frame appear first in the result. | |
10742 | ||
10743 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
10744 | is set for the face to cache, add it to the end of the collision | |
10745 | list. | |
10746 | (try_font_list): If fonts for given family and registry cannot | |
10747 | be found, first try to keep the registry, and choose a different | |
10748 | family. | |
10749 | (choose_face_font): Allow nfonts == 0. | |
10750 | (try_font_list): Give up if no font matches given registry. | |
10751 | ||
10752 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
10753 | ||
10754 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
10755 | font info id of the face. | |
10756 | ||
10757 | * xfaces.c (load_font): Set font_info_id. | |
10758 | (realize_face): Ditto. | |
10759 | ||
10760 | * dispextern.h (struct face): Change member font_info to | |
10761 | font_info_id. | |
10762 | ||
10763 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
10764 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
10765 | ||
10766 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
10767 | isn't ASCII, get the ASCII face before adding a space. | |
10768 | (append_space): Likewise. | |
10769 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
10770 | to -1 so that it will compute the right face for the truncation | |
10771 | glyphs. | |
10772 | ||
10773 | * xfaces.c (realize_face): Set | |
10774 | face->fontset_chosen_for_realization_p. | |
10775 | (lookup_face_for_charset): If fontset wasn't specified originally | |
10776 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
10777 | charset. | |
10778 | ||
10779 | * dispextern.h (struct face): New member | |
10780 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
10781 | realize_face has chosen a fontset to display composite characters | |
10782 | for a Lisp face not specifying a fontset. | |
10783 | ||
10784 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
10785 | face and line already filled here. Don't do anything if current | |
10786 | face hasn't a relief or has a background equal to the frame | |
10787 | background. | |
10788 | ||
10789 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
10790 | Don't compute numeric values if it is non-zero. | |
10791 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
10792 | (choose_face_fontset): Print a message if fontset contains a | |
10793 | font whose name cannot be split into fields. | |
10794 | ||
10795 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
10796 | ||
10797 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
10798 | possibly using less restrictive patterns. | |
10799 | (choose_face_font): Use it. | |
10800 | ||
10801 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
10802 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
10803 | ||
10804 | * dispextern.h (struct face): New member font_info. | |
10805 | ||
10806 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
10807 | specifying a fontset as well as those not having a fontset. | |
10808 | (free_font): Make it empty. | |
10809 | (realize_face): Use changed load_font. | |
10810 | ||
10811 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
10812 | fit for charset, get the right one. | |
10813 | ||
10814 | * xfaces.c (load_font): Take frame and name parameter, return | |
10815 | font. | |
10816 | (free_font): Likewise. | |
10817 | (split_font_name): Compute numeric values for height, swidth etc. | |
10818 | (cmp_font_names): Use them. | |
10819 | (find_best_width_font): Ditto. | |
10820 | (find_best_height_font): Ditto. | |
10821 | (find_best_weight_font): Ditto. | |
10822 | (find_best_slant_font): Ditto. | |
10823 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
10824 | (lface_equal_p): Make it faster. | |
10825 | (lface_from_symbol): Use assq_no_quit. | |
10826 | (Fnote_default_face_changed): Removed. | |
10827 | (cmp_font_names): Use strcmp instead of xstricmp. | |
10828 | (face_charset_registries): Removed. | |
10829 | ||
10830 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
10831 | ||
10832 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
10833 | (CHECK_LIVE_FRAME): Ditto. | |
10834 | ||
10835 | * xfaces.c (find_best_width_font): Find the best matching font | |
10836 | for a given width. | |
10837 | (find_best_height_font): Likewise for height. | |
10838 | (find_best_weight_font): Likewise for weight. | |
10839 | (find_best_slant_font): Likewise for slant. | |
10840 | (choose_face_font): Use them. | |
10841 | (get_lface_attributes): Always return frame-local face attrs. | |
10842 | (Finternal_merge_in_global_face): Merge local face with | |
10843 | global face attributes. | |
10844 | ||
10845 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
10846 | Lisp face attributes. | |
10847 | ||
10848 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
10849 | ||
10850 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
10851 | and :italic for compatibility. | |
10852 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
10853 | :bold and :italic. Handle boolean resource values for | |
10854 | :underline and :italic. | |
10855 | ||
10856 | * xfns.c (display_x_get_resource): Make it externally visible. | |
10857 | ||
10858 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
10859 | If that frame is non-null, return the frame-local face. | |
10860 | (Finternal_make_lisp_face): Additional frame argument. | |
10861 | (lface_attributes): Get face attributes from global and frame-local | |
10862 | definitions. | |
10863 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
10864 | (merge_lisp_face_vector_with_property): Ditto. | |
10865 | (Frealize_basic_faces): Removed. | |
10866 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
10867 | (Finternal_lisp_face_p): Ditto. | |
10868 | (load_color) [MSDOS]: Removed because it isn't clear how | |
10869 | to do this for MS-DOS. | |
10870 | ||
10871 | * xfaces.c (lface_from_symbol): Get global face definition | |
10872 | from face-global-alist. | |
10873 | ||
10874 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
10875 | as values for :underline and :inverse-video. | |
10876 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
10877 | ||
10878 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
10879 | ||
10880 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
10881 | ||
10882 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
10883 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
10884 | ||
10885 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
10886 | (redisplay_internal): Ditto. | |
10887 | (init_iterator): Do it here. | |
10888 | ||
10889 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
10890 | for subusequent attributes. | |
10891 | (xlfd_point_size): Return int. | |
10892 | ||
10893 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
10894 | faces have been cleared, call recompute_basic_faces. | |
10895 | ||
10896 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
10897 | face_attributes_changed_p. | |
10898 | (remove_all_realized_faces): Remove all realized faces on | |
10899 | all frames. | |
10900 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
10901 | ||
10902 | * xdisp.c (redisplay_internal): If face attributes have been | |
10903 | changed since the last redisplay, recompute basic faces. | |
10904 | (echo_area_display): Ditto. | |
10905 | ||
10906 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
10907 | ||
10908 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
10909 | don't try to get font dimensions from faces. | |
10910 | ||
10911 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
10912 | set, return default height. | |
10913 | ||
10914 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
10915 | index bug. | |
10916 | ||
10917 | * dispextern.h (struct face): Renamed from struct rface. Member | |
10918 | underline renamed underline_p. Make it a bit-field. | |
10919 | ||
10920 | * xfaces.c (init_frame_faces): Allocate face cache. | |
10921 | (free_frame_faces): Free face cache. | |
10922 | (recompute_basic_faces): Realize basic faces only if face cache is | |
10923 | allocated, i.e. after init_frame_faces has been called. | |
10924 | ||
10925 | * frame.c (make_frame): Initialze face cache with null. | |
10926 | ||
10927 | * xfaces.c (same_size_fonts): Removed. | |
10928 | ||
10929 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
10930 | s->gc != 0. | |
10931 | (x_set_mouse_face_gc): Ditto. | |
10932 | (x_set_mode_line_face_gc): Ditto. | |
10933 | ||
10934 | * xfaces.c (realize_default_face): Return int. Value is | |
10935 | zero if frame params don't contain enough information to | |
10936 | realize the default face. | |
10937 | (realize_basic_faces): Ditto. | |
10938 | (init_frame_faces): Realize basic faces. | |
10939 | ||
10940 | * xfns.c (x_set_font): First store real font name in frame | |
10941 | parameters, then call recompute_basic_faces. | |
10942 | ||
10943 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
10944 | ||
10945 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
10946 | ||
10947 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
10948 | ||
10949 | * xfns.c (Fx_face_fixed_p): Removed. | |
10950 | (Fx_list_fonts): Moved to xfaces.c. | |
10951 | ||
10952 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
10953 | face_at_buffer_position. Parameter charset removed; always | |
10954 | compute face for CHARSET_ASCII. | |
10955 | (face_at_string_position): Renamed from | |
10956 | compute_face_at_string_pos. Parameter charset removed; always | |
10957 | compute for CHARSET_ASCII. | |
10958 | (lookup_face_for_charset): Take frame parameter instead of | |
10959 | face_cache. | |
10960 | (lookup_face): Ditto. | |
10961 | (compute_char_face): Renamed from compute_glyph_face. | |
10962 | ||
10963 | * xdisp.c (init_iterator): Initialize charset member. | |
10964 | (reseat_iterator_to_string): Ditto. | |
10965 | (get_charset_at_buffer_position): Determine charset at | |
10966 | buffer position in current_buffer. | |
10967 | (reseat_iterator): Call above function. | |
10968 | (compute_face_at_iterator_position): Call | |
10969 | compute_face_at_buffer_pos. | |
10970 | (compute_face_at_iterator_string_position): Call | |
10971 | compute_face_at_string_pos. | |
10972 | (get_face_from_id): Removed. | |
10973 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
10974 | Call get_charset_at_buffer_position. | |
10975 | (reseat_iterator): Determine face if charset at pos differs | |
10976 | from iterator's charset. | |
10977 | (reseat_iterator_to_glyph_pos): Removed. | |
10978 | ||
10979 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
10980 | Determine charset from buffer position. | |
10981 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
10982 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
10983 | ||
10984 | * dispextern.h (struct display_iterator): Add member charset. | |
10985 | ||
10986 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
10987 | ||
10988 | * xfaces.c (compute_char_face): Removed. | |
10989 | ||
10990 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
10991 | with new parameter list. | |
10992 | ||
10993 | * xfaces.c (region_face): Removed. | |
10994 | (allocate_face): Removed. | |
10995 | (copy_face): Ditto. | |
10996 | (face_eql): Removed. | |
10997 | (intern_face): Removed. | |
10998 | (clear_face_cache): Removed. | |
10999 | (load_font): Ditto. | |
11000 | (unload_font): Ditto. | |
11001 | (load_color): Ditto. | |
11002 | (unload_color): Ditto. | |
11003 | (new_computed_face): Ditto. | |
11004 | (intern_computed_face): Ditto. | |
11005 | (ensure_face_ready): Ditto. | |
11006 | (merge_faces): Ditto. | |
11007 | (compute_base_face): Ditto. | |
11008 | (merge_face_list): Ditto. | |
11009 | (Fmake_face_internal): Removed. | |
11010 | (Fset_face_attribute_internal): Ditto. | |
11011 | (face_name_id_number): Removed. | |
11012 | (Fframe_face_alist): Ditto. | |
11013 | (Fset_frame_face_alist): Ditto. | |
11014 | (Finternal_next_face_id): Ditto. | |
11015 | ||
11016 | * xterm.h (struct x_output): Remove computed_faces, and | |
11017 | param_faces. Remove macros accessing them. | |
11018 | ||
11019 | * xfaces.c: Entirely new face implementation added. | |
11020 | ||
11021 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
11022 | ||
11023 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
11024 | `charpos'. | |
11025 | ||
11026 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
11027 | ||
11028 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
11029 | scroll bar window to reduce flickering. Clear entire height. | |
11030 | ||
11031 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
11032 | current_x and hpos to zero after moving to previous line | |
11033 | start. | |
11034 | ||
11035 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
11036 | ||
11037 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
11038 | ||
11039 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
11040 | fonts from font and frame resolution. | |
11041 | (sort_fonts): New function to sort fonts, temporarily setting | |
11042 | font_frame to the frame in effect. | |
11043 | (xlfd_point_size): Take additional frame parameter to be able | |
11044 | to get at the display's resolution. | |
11045 | ||
11046 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
11047 | BLACK_PIX_DEFAULT. | |
11048 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
11049 | screen of display. | |
11050 | ||
11051 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
11052 | ||
11053 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
11054 | ||
11055 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
11056 | and Vglobal_fontset_alist. | |
11057 | ||
11058 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
11059 | (realize_default_face): If frame parameters contain an artificial | |
11060 | font name naming a fontset, set the family of the default face to | |
11061 | the fontset name given by the registry. | |
11062 | ||
11063 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
11064 | ||
11065 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
11066 | ||
11067 | * alloc.c (mark_object): Add function prototype. Add cast to | |
11068 | Lisp_Object pointer in call to mark_object for symbol names | |
11069 | because this otherwise gives a warning from gcc 2.8.1. | |
11070 | (mark_face_cache): Mark Lisp objects in realized faces. | |
11071 | ||
11072 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
11073 | ||
11074 | * frame.h (struct frame): Add member face_cache. | |
11075 | ||
11076 | * alloc.c (mark_object): Mark face cache. | |
11077 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
11078 | ||
11079 | * frame.c (make_frame): Initialize face_cache. | |
11080 | (Fdelete_frame): Free it. | |
11081 | ||
11082 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
11083 | ||
11084 | * xfaces.c: Very first skeleton of functions for face realization, | |
11085 | face merging, face cache etc. | |
11086 | ||
11087 | * dispextern.h (struct rface): Realized faces. Will replace | |
11088 | struct face when tested. | |
11089 | (struct face_cache): Realized face caches. | |
11090 | ||
11091 | * xdisp.c (init_iterator): Initialize area member of display | |
11092 | iterator. | |
11093 | ||
11094 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
11095 | ||
11096 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
11097 | ||
11098 | * dispextern.h (struct display_iterator): New member area. | |
11099 | ||
11100 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
11101 | cursor of a window is overwritten. | |
11102 | ||
11103 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
11104 | row, display the cursor at the start of the row. | |
11105 | ||
11106 | * dispnew.c (direct_output_forward_char): Call | |
11107 | set_cursor_from_row. | |
11108 | ||
11109 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
11110 | position is not in an overlay string, set iterator's position and | |
11111 | method explicitly so. | |
11112 | (set_cursor_from_row): Correct cursor position calculation. | |
11113 | Make it externally visible. | |
11114 | (redisplay_window): Call set_cursor_from_row so that there is only | |
11115 | one place where the cursor position is calculated from a current | |
11116 | row. | |
11117 | ||
11118 | * dispextern.h (struct display_iterator): New member | |
11119 | overlay_strings_at_end_processed_p. | |
11120 | ||
11121 | * xdisp.c (check_iterator): Perform sanity checks on | |
11122 | display_iterators. | |
11123 | (next_element_from_buffer): Check for overlay strings at ZV. | |
11124 | ||
11125 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
11126 | ||
11127 | * buffer.c (init_buffer_once): Add left_margin_width and | |
11128 | right_margin_width to buffer_local_flags. | |
11129 | ||
11130 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
11131 | number of glyphs to reserve for a marginal area. | |
11132 | (adjust_glyph_matrix): Call it. | |
11133 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
11134 | is not alive. | |
11135 | ||
11136 | * window.c (Fset_window_margins): Allow floats. | |
11137 | ||
11138 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
11139 | left-margin-width and right-margin-width. Add defaults | |
11140 | default-left-margin-width and default-right-margin-width. | |
11141 | ||
11142 | * buffer.h (struct buffer): New members left_margin_width | |
11143 | and right_margin_width. | |
11144 | ||
11145 | * window.c (Fset_window_margins): Make window the last and | |
11146 | optional argument. | |
11147 | ||
11148 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
11149 | flag no_marginal_areas_p differently. | |
11150 | (x_clear_end_of_line): Ditto. | |
11151 | (x_draw_glyph_string_relief): Compute width of relief differently | |
11152 | for rows with flag no_marginal_areas_p. | |
11153 | ||
11154 | * dispnew.c (update_window_line): Update marginal areas only | |
11155 | for rows that don't have no_marginal_areas_p set. | |
11156 | ||
11157 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
11158 | (display_menu_bar): Ditto. | |
11159 | ||
11160 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
11161 | ||
11162 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
11163 | marginal areas in window-based redisplay. | |
11164 | ||
11165 | * dispextern.h (struct glyph_matrix): New members | |
11166 | left_margin_glyphs and right_margin_glyphs. | |
11167 | ||
11168 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
11169 | ||
11170 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
11171 | ||
11172 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
11173 | because the function is used that way from outside. Use unsigned | |
11174 | char internally. | |
11175 | ||
11176 | * window.c (change_window_height): Return void. | |
11177 | (make_dummy_parent): Return void. | |
11178 | (init_window_once): Return void. | |
11179 | (syms_of_window): Ditto. | |
11180 | (keys_of_window): Ditto. | |
11181 | (delete_window): Correct return with and without value. | |
11182 | ||
11183 | * buffer.c (record_buffer): Return void. | |
11184 | ||
11185 | * marker.c (unchain_marker): Return void. | |
11186 | ||
11187 | * window.c (unshow_buffer): Return void. | |
11188 | (replace_window): Ditto. | |
11189 | (delete_window): Ditto. | |
11190 | ||
11191 | * term.c (delete_glyphs_hook): Void return type. | |
11192 | (ring_bell_hook): Ditto. | |
11193 | (set_terminal_window_hook): Ditto. | |
11194 | ||
11195 | * sysdep.c (init_sigio): Return void. | |
11196 | ||
11197 | * xterm.c (x_set_window_size): Return void. | |
11198 | (x_calc_absolute_position): Ditto. | |
11199 | (x_set_offset): Ditto. | |
11200 | (x_focus_on_frame): Ditto. | |
11201 | (x_unfocus_frame): Ditto. | |
11202 | (x_make_frame_visible): Ditto. | |
11203 | (x_make_frame_invisible): Ditto. | |
11204 | (x_iconify_frame): Ditto. | |
11205 | (x_destroy_window): Ditto. | |
11206 | (x_wm_set_window_state): Ditto. | |
11207 | (x_wm_set_icon_pixmap): Ditto. | |
11208 | (x_wm_set_icon_position): Ditto. | |
11209 | (x_initialize): Ditto. | |
11210 | (x_error_quitter): Ditto. | |
11211 | (x_destroy_window): Use xfree instead of free. | |
11212 | ||
11213 | * keyboard.c (clear_waiting_for_input): Return void. | |
11214 | ||
11215 | * xterm.c (x_wm_set_size_hint): Return void. | |
11216 | (x_raise_frame): Ditto. | |
11217 | (refreshicon): Ditto. | |
11218 | (x_error_catcher): Ditto. | |
11219 | (x_clear_errors): Ditto. | |
11220 | ||
11221 | * keyboard.c (record_asynch_buffer_change): Return void. | |
11222 | ||
11223 |