*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
28c7826c
GM
12000-09-18 Gerd Moellmann <gerd@gnu.org>
2
6fed3546
GM
3 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4 a feature to implement that is already implemented.
5 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
6 warnings.
7
8 * xfns.c (x_clear_image_1): New function.
9 (x_clear_image): Use it.
10 (x_from_xcolors): Use x_clear_image_1; don't free the image's
11 mask.
12
05b1f851
GM
13 * dispnew.c (update_window): Move test for invisible lines
14 at the top to update_window_line.
15 (update_window_line): Handle invisible lines here.
16
f4779de9
GM
17 * xfns.c (clear_image_cache): Clear current matrices of all
18 frames sharing an image cache. Block input while freeing
19 images. Fix timestamp comparison.
20 (x_clear_image): Also free the mask.
21
28c7826c
GM
22 * xfns.c (lookup_image): Block input while loading the image so
23 that we won't get interrupted in a state where the image isn't yet
24 set up completely.
25 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
26 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
27 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
28 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
29 input.
30
b7412313
GM
312000-09-16 Gerd Moellmann <gerd@gnu.org>
32
33 * dispnew.c (update_window): Make sure to make desired rows
34 current even if they are completely invisible at the top
35 of a window.
36
47e351a3
GM
372000-09-15 Gerd Moellmann <gerd@gnu.org>
38
7f8f1edc
GM
39 * xfns.c (lookup_image): Build mask before applying an algorithm.
40 Recognize algorithm `disabled'.
41 (cross_disabled_images): New variable.
42 (COLOR_INTENSITY): New macro.
43 (x_detect_edges): Use COLOR_INTENSITY.
44 (x_disable_image): New function.
45 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
46
47 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
48 disabled state, don't apply an image transformation algorithm if
49 the user specified an image for the disabled state. Use
28c7826c 50 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
51 user hasn't specified an image.
52
ebb8f116
GM
53 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
54 allocation functions with the XPM lib.
55 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
56 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
57 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
58 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
59 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
60 functions.
61 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
62 functions, if possible, because these handle color allocation
63 failure more gracefully.
64 (Fimage_mask_p): New function.
65
47e351a3
GM
66 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
67 (Qedge_detection, Qheuristic): New symbols.
68 (syms_of_xfns): Initialize new symbols.
69 (lookup_image): Handle `:mask X', `:algorithm emboss', and
70 `algorithm (edge-detection ...)'.
71 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
72 (tiff_format, gif_format, gs_format): Add `:mask'.
73 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
74 (GIF_MASK, GS_MASK): New enumerators.
75 (x_laplace_read_row, x_laplace_write_row): Functions removed.
76 (emboss_matrix, laplace_matrix): New variables.
77 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
78 (x_edge_detection): New functions.
79 (x_laplace): Rewritten in terms of x_detect_edges.
80 (x_build_heuristic_mask): If image has a mask, free it.
81
fe83b953
AI
822000-09-14 Andrew Innes <andrewi@gnu.org>
83
84 * makefile.w32-in: Revert to Unix line endings.
85
3021e816
AI
862000-09-14 Andrew Innes <andrewi@gnu.org>
87
88 * makefile.w32-in: Standardize indentation somewhat.
89 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
90 cater for differences between shells.
91
92 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
93
2a32b5ea
GM
942000-09-14 Gerd Moellmann <gerd@gnu.org>
95
96 * xterm.c (x_produce_glyphs): If the distance from the current
97 position to the next tab stop is less than a canonical character
98 width, use the tab stop after that.
99
b4331e96
DL
1002000-09-14 Dave Love <fx@gnu.org>
101
102 * buffer.c (alloc_buffer_text): Fix xmalloc call.
103
ef9e4345
GM
1042000-09-14 Gerd Moellmann <gerd@gnu.org>
105
085536c2
GM
106 * xdisp.c (handle_fontified_prop): While running fontification
107 functions, bind `fontification-functions' and
108 `after-change-functions' to nil.
109
ef9e4345
GM
110 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
111 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
112
113 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
114
115 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
116 USE_MMAP_FOR_BUFFERS.
117
118 * insdel.c (make_gap): Use enlarge_buffer_text.
119
120 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
121 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
122 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
123 from former r_alloc_* functions in ralloc.c.
124 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
125 variables.
126 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
127 (mmap_init) [REL_ALLOC_MMAP]: New function.
128 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
129 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
130 BUFFER_FREE.
131
132 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
133 (enlarge_buffer_text): Add prototype.
134
135 * ralloc.c: Remove everything having to do with the use of mmap.
136
f8608968
GM
1372000-09-13 Gerd Moellmann <gerd@gnu.org>
138
2a494b2d
GM
139 * sound.c (Fplay_sound): Doc fix.
140
8c907a56
GM
141 * keyboard.c: Avoid some more compiler warnings.
142 (parse_tool_bar_item): Ignore cached key bindings.
143
f8608968
GM
144 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
145 and allocation of Lisp data.
146
6ab70e9a
GM
1472000-09-12 Gerd Moellmann <gerd@gnu.org>
148
d12d0a9b
GM
149 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
150 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
151 defaults first.
152
6ab70e9a
GM
153 * lread.c (Fload): Put code checking for recursive loads in #if 0.
154
63c36c3c
KH
1552000-09-12 Miyashita Hisashi <himi@meadowy.org>
156
157 * ccl.c: Comment fixed.
158 (MAX_MAP_SET_LEVEL): Increased to 30.
159 (PUSH_MAPPING_STACK): Enclose with do-while block.
160 (POP_MAPPING_STACK): Likewise.
161 (stack_idx_of_map_multiple): New variable.
162 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
163 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
164 call the corresponding CCL program by
165 CCL_CALL_FOR_MAP_INSTRUCTION.
166 (ccl_driver) <CCL_MapSingle>: Likewise.
167 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
168 with the case where looking up process reaches to the end of
169 map-set, and call CCL programs as the above change.
170
7ee3bd7b
GM
1712000-09-11 Gerd Moellmann <gerd@gnu.org>
172
8ec8a5ec
GM
173 * xfns.c (png_load, jpeg_load): Declare some variables volatile
174 that might be clobbered by longjmp.
175 (check_x_display_info, x_decode_color, create_frame_xic)
176 (Fx_display_backing_store, Fx_display_visual_class)
177 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
178 warnings.
179
f74b0705
GM
180 * lread.c (init_lread): Set Vloads_in_progress to nil.
181 (Fload): Show list of recursively loaded files, when signaling an
182 error.
183
7ee3bd7b
GM
184 * lread.c (Vloads_in_progress): New variable.
185 (record_load_unwind): New function.
186 (Fload): Check for recursive loads.
187 (syms_of_lread): Initialize Vloads_in_progress.
188 (read_integer, read1): Avoid some compiler warnings.
189
190 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
191 compiler warnings.
192
974e1e5b
MB
1932000-09-11 Miles Bader <miles@gnu.org>
194
195 * editfns.c (Fbuffer_string): Doc fix.
196
9824c4e3
GM
1972000-09-10 Gerd Moellmann <gerd@gnu.org>
198
199 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
200
6a72fdd1
KR
2012000-09-09 Ken Raeburn <raeburn@gnu.org>
202
203 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
204 whether to include other header files.
205
28e6fb66
GM
2062000-09-09 Gerd Moellmann <gerd@gnu.org>
207
208 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 209 by Fmemq as a boolean.
28e6fb66 210
7f8b6551
SM
2112000-09-08 Stefan Monnier <monnier@cs.yale.edu>
212
213 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
214
a8710abf
GM
2152000-09-08 Gerd Moellmann <gerd@gnu.org>
216
d1a02881
GM
217 * ralloc.c (mmap_fd): Remove initializer which can make it
218 read-only in a dumped Emacs.
219 (mmap_fd_1): New variable.
220 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
221 restore it from there.
222 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
223 unconditionally so that mmap_fd can be initialized there.
224 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
225 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
226 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
227
c454aac1
GM
228 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
229
230 * xdisp.c (dump_glyph_row): Fix printf format string.
231 (display_line, move_it_in_display_line_to): Avoid compiler
232 warnings.
233
fc653ef2
GM
234 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
235
3015eec0
GM
236 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
237 inheritance.
238
bfe0ee88
GM
239 * xdisp.c (try_window_id): When trying to locate cursor in
240 unchanged rows at the top, handle the case that we can't find it.
241
a8710abf
GM
242 * xterm.c (x_draw_glyphs): Handle case START and END are out
243 of bounds more carefully.
244
6b7d4ae4
DL
2452000-09-08 Dave Love <fx@gnu.org>
246
423193c5
DL
247 * s/sol2.h (REL_ALLOC_MMAP): Define.
248 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
249
250 * ralloc.c: Don't include string.h (redundant).
251 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
252 [!MAP_ANON]: Include fcntl.h.
253 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
254 (r_alloc, r_re_alloc, r_alloc_free)
255 (mmap_enlarge, mmap_set_vars): Use it.
256 (r_alloc_init_fd): New function.
257 (__morecore) [SYSTEM_MALLOC]: Don't declare.
258 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
259 malloc type.
260
261 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
262 Remove vm-limit.o.
263
6b7d4ae4
DL
264 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
265 change to __NetBSD__.
266
44d31981
KH
2672000-09-08 Kenichi Handa <handa@etl.go.jp>
268
269 * search.c (compile_pattern): Check the multibyteness of cached
270 string and PATTERN.
271
aad40737
MB
2722000-09-08 Miles Bader <miles@gnu.org>
273
274 * xfaces.c (default_face_vector): Function removed.
275 (Finternal_merge_in_global_face): Restore old global/local
276 attribute override order. Use inline loop instead of calling
277 default_face_vector.
278
91a211b5
GM
2792000-09-07 Gerd Moellmann <gerd@gnu.org>
280
281 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
282 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
283 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
284 where necessary, in case POINTER_TYPE is `void'.
285
03419440
EZ
2862000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
287
288 * frame.c (make_terminal_frame): Initialize frame foreground and
289 background colors to unspecified, for the initial instance of an
290 MSDOS frame.
291
f46f845b
GM
2922000-09-07 Gerd Moellmann <gerd@gnu.org>
293
24f76fbf
GM
294 * ralloc.c (mmap_find): Fix overlap computation.
295 (mmap_enlarge): Compute nbytes before trying to find an
296 overlapping region.
297
f46f845b
GM
298 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
299 instead of `!='.
300
301 * lread.c (syms_of_lread): Change value of regexp
302 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
303
304 * xmenu.c (xdialog_show): When looking up the selection in
305 menu_items, take `quote' boundaries into account; this corresponds
306 to a nil ITEM in x-popup-dialog.
307
3c014385
KH
3082000-09-07 Kenichi Handa <handa@etl.go.jp>
309
fd6f711b
KH
310 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
311 not 0x81.
312 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
313
3c014385 314 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
315 encoding, not decoding. Fix the handling of latin-jisx0201.
316 Check for the charset katakana-jisx0201 too.
3c014385 317 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 318 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 319
0da3ecef
GM
3202000-09-07 Gerd Moellmann <gerd@gnu.org>
321
ab0ee409
GM
322 * xfaces.c (Vparam_value_alist): New variable.
323 (syms_of_xfaces): Initialize it.
324 (Finternal_set_lisp_face_attribute): Avoid more consing.
325
326 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
327 specially.
328 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
329 (Qbackground_mode): New variable.
330 (syms_of_frame_1): Initialize Qbackground_mode.
331
332 * lisp.h (Qdisplay): Declare extern.
1091dd67 333
0da3ecef
GM
334 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
335 change face on all frames, and change the default for new frames.
336
b14654b9
DL
3372000-09-07 Dave Love <fx@gnu.org>
338
339 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
340
d24fd56f
KH
3412000-09-07 Kenichi Handa <handa@etl.go.jp>
342
794f3670
KH
343 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
344
0fddd0dc
KH
345 * charset.c: Include composite.h
346 (lisp_string_width): New function.
347 (Fstring_width): Call lisp_string_width instead of strwidth.
348
349 * Makefile.in (charset.o): Depends on composite.h.
350
d24fd56f
KH
351 * process.c (read_process_output): Before inserting the decoded
352 text in the buffer, adjust the multibyteness.
353
fa0b693c
GM
3542000-09-06 Gerd Moellmann <gerd@gnu.org>
355
73b77ee5
GM
356 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
357 buffer's text buffer is null, map new memory.
358
0a58f946
GM
359 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
360 POINTER_TYPE and size_t.
361 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
362 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
363 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
364 [REL_ALLOC_MMAP]: New macros.
365 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
366 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
367 [REL_ALLOC_MMAP]: New functions.
368
369 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
370 before and after unexec.
371
372 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
373 text buffers if necessary.
374
375 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
376 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
377 in prototypes.
378
fa0b693c
GM
379 * config.in (HAVE_MMAP): Add #undef.
380
877055f6
GM
3812000-09-05 Gerd Moellmann <gerd@gnu.org>
382
08ba3862
GM
383 * frame.c (Qdisplay_type): New variable.
384 (syms_of_frame_1): Initialize it.
385 (Fframe_parameter): New function that avoids consing.
386 (syms_of_frame): Defsubr it.
387
66ffe51c
GM
388 * buffer.c (Fother_buffer): Consider buffers as invisible when
389 they are displayed in a window on an invisible frame.
390
877055f6
GM
391 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
392 get-largest-window always return nil.
393
bb970e67
GM
3942000-09-04 Gerd Moellmann <gerd@gnu.org>
395
396 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
397 variable; recognize Emacs 19 elc files.
398
7a3d0e0e
MB
3992000-09-04 Miles Bader <miles@gnu.org>
400
401 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
402 before initially popping up the menu, so the menu doesn't flash
403 when the face settings are significantly different from the
404 defaults.
405
14473664
SM
4062000-09-04 Stefan Monnier <monnier@cs.yale.edu>
407
408 * regex.c (WIDE_CHAR_SUPPORT): New macro.
409 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
410 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
411 (BIT_UNIBYTE): Remove.
412 (re_match_2_internal): Delete corresponding code and streamline the
413 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
414 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
415 (re_wctype_t): New type.
416 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
417 (regex_compile): Use them and fix handling of overly long char classes.
418
c1174479
AI
4192000-09-03 Andrew Innes <andrewi@gnu.org>
420
f8803e97
AI
421 * makefile.w32-in: Change to DOS line endings.
422
c1174479
AI
423 * s/ms-w32.h (ORDINARY_LINK): New define.
424
425 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
426 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
427
428 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
429 (distclean): Delete them here instead.
430
44ef7cf6
AI
431 * w32proc.c (compare_env): Convert to uppercase for comparison,
432 not lowercase, to match how the native Windows shell works.
433
49b3bd82
JR
4342000-09-03 Jason Rumney <jasonr@gnu.org>
435
436 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
437 CVS changes the line-ends when checking in/out on DOS/Windows.
438
439 * makefile.nt (emacs): Do not change directory to run temacs, as
440 the load-path is set relative to current directory.
441
a3d35a39
MB
4422000-09-03 Miles Bader <miles@gnu.org>
443
444 * xterm.c (x_alloc_lighter_color_for_widget): New function.
445
d276b0cf
GM
4462000-09-02 Gerd Moellmann <gerd@gnu.org>
447
715e84c9
GM
448 * xdisp.c (redisplay_mode_lines): New function.
449 (display_mode_lines): Return number of mode lines displayed.
450 (echo_area_display): Use redisplay_mode_lines to draw garbaged
451 mode lines. Don't temporarily bind redisplay-dont-pause to t.
452
8892f40b
GM
453 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
454 string.h and strings.h.
455 (index) [HAVE_INDEX]: Add prototype.
456
d276b0cf
GM
457 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
458 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
459
460 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
461 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
462
38404229
GM
4632000-09-01 Gerd Moellmann <gerd@gnu.org>
464
465 * lread.c (read1): Accept `?' as symbol constituent, for
466 compatiblity with XEmacs.
467
c0f9ea08
SM
4682000-08-31 Stefan Monnier <monnier@cs.yale.edu>
469
470 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
471 (struct re_pattern_buffer): Remove newline_anchor.
472 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
473 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
474 (re_max_failures, fail_stack): Use size_t rather than unsigned.
475 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
476 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
477 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
478 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
479 Get rid of references to newline_anchor.
480 (regcomp): Allocate and precompute a fastmap.
481
8c0f83fe
GM
4822000-08-31 Gerd Moellmann <gerd@gnu.org>
483
484 * lread.c (openp): GCPRO local variable `filename'.
485
4bb91c68
SM
4862000-08-30 Stefan Monnier <monnier@cs.yale.edu>
487
488 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
489
490 * regex.c: Merge some changes from GNU libc. Add prototypes.
491 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
492 Use memcmp and memcpy instead of bcopy and bcmp.
493 (init_syntax_once): Use ISALNUM.
494 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
495 (REG_UNSET_VALUE): Remove. Use NULL instead.
496 (REG_UNSET, re_match_2_internal): Use NULL.
497 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
498 New macros.
499 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
500 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
501 (regex_compile): In handle_interval, return an error rather than try to
502 unfetch the interval if we can't find the closing brace.
503 Obey the RE_NO_GNU_OPS syntax bit.
504 (TOLOWER): New macro.
505 (regcomp): Use it.
506 (regexec): Allocate regs.start and regs.end as one block.
507
5226a931
GM
5082000-08-30 Gerd Moellmann <gerd@gnu.org>
509
868dd24b
GM
510 * xdisp.c (echo_area_display): Check display_completed instead
511 of calling detect_input_pending.
512
513 * dispnew.c (update_frame): Only set display_completed here; move
514 the update_begin and update_end calls here from update_frame_1.
515 (update_frame_1): Don't set display_completed here, don't call
516 update_begin/update_end.
517
5226a931
GM
518 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
519 instead of store_frame_param.
520
2a8bd25f
GM
5212000-08-29 Gerd Moellmann <gerd@gnu.org>
522
523 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
524 desired window matrix hasn't been displayed, use the current row
525 instead. Make sure that only those frame rows are updated for
526 which there exists a corresponding enabled desired row.
527
ba3478d9
MB
5282000-08-29 Miles Bader <miles@gnu.org>
529
530 * xfaces.c (default_face_vector): New function.
531 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
532
87d0f685
GM
5332000-08-29 Gerd Moellmann <gerd@gnu.org>
534
535 * lread.c (openp): Prevent temporary string passed to
536 Ffile_readable_p from being garbage collected.
537
6fa86045
DL
5382000-08-28 Dave Love <fx@gnu.org>
539
540 * keymap.c (store_in_keymap): Add `static' to declaration.
541
bb17930d
GM
5422000-08-28 Gerd Moellmann <gerd@gnu.org>
543
544 * emacs.c, callint.c, doc.c, editfns.c
545 (toplevel) [HAVE_STRING_H]: Include string.h.
546 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
547 (index): Remove prototypes which might conflict with non-standard
548 definitions of index/strchr.
549
550 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
551 (rindex): Define only if !HAVE_RINDEX.
552
553 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
554
555 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
556
87188200
MB
5572000-08-28 Miles Bader <miles@gnu.org>
558
559 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
560 made inconsistent by a font-related attribute in FROM.
561 (merge_face_inheritance): Add function comment.
562
41a68aef
KH
5632000-08-28 Kenichi Handa <handa@etl.go.jp>
564
565 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
566 the 4th arg (PREV_EVENT) Qt to suppress input method.
567
f7c436c1
SM
5682000-08-27 Stefan Monnier <monnier@cs.yale.edu>
569
0b32bf0e
SM
570 * regex.c: Indent cpp directives and remove parens after `defined'.
571 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
572 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
573 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
574 (re_compile_pattern): Use size_t for length.
575 (init_syntax_once): Move to a better place.
576 * regex.h: Merge changes from GNU libc. Indent cpp directives.
577 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
578
f7c436c1
SM
579 * syntax.c (back_comment): Detect cases where a comment-starter is
580 actually inside another comment as in: /* a // b */ c // d \n.
581 Make it clear that `comstart_pos' is unused for nested comments.
582
583 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
584 (KEYMAPP): New macro.
585 (Fkeymap_parent, Fset_keymap_parent): Use it.
586 (fix_submap_inheritance): Mark it static.
587 (define_as_prefix, describe_buffer_bindings, describe_command)
588 (describe_translation, describe_map): Complete prototypes.
589
590 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
591
592 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
593 to better match the key-lookup behavior.
594
6288c62f
GM
5952000-08-27 Gerd Moellmann <gerd@gnu.org>
596
597 * xfaces.c (lface_fully_specified_p): Handle :inherit.
598 (Finternal_set_lisp_face_attribute): Fix typo in error message.
599
e931344e
EZ
6002000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
601
602 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
603 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
604 (xterm.o): Depend on coding.h
605
d10dfeef
KH
6062000-08-26 Kenichi Handa <handa@etl.go.jp>
607
608 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
609 the corresponding '#endif'.
610
2d73e8d3
MB
6112000-08-26 Miles Bader <miles@gnu.org>
612
613 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
614 * xfaces.c (QCinherit): New variable.
615 (syms_of_xfaces): Initialize it.
616 (LFACE_INHERIT): New macro.
617 (Finternal_get_lisp_face_attribute)
618 (merge_face_vector_with_property)
619 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
620 (check_lface_attrs): Allow new types of face height. Check
621 inherit attribute.
622 (CYCLE_CHECK): New macro.
623 (merge_face_inheritance): New function.
624 (merge_face_vectors): Merge inherited faces too. Add F and
625 CYCLE_CHECK arguments.
626 (merge_face_vector_with_property, Finternal_merge_in_global_face)
627 (lookup_named_face, lookup_derived_face, realize_named_face)
628 (face_at_string_position, face_at_buffer_position): Supply
629 new F and CYCLE_CHECK arguments to merge_face_vectors.
630 (merge_face_heights): New function.
631 (merge_face_vectors, merge_face_vector_with_property)
632 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
633 handle relative face heights.
634 (lface_same_font_attributes_p): Compare heights using EQ.
635
6ce974d4
KH
6362000-08-26 Kenichi Handa <handa@etl.go.jp>
637
638 * charset.c (char_to_string): Check the character validity.
639 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
640 0.
641
dc1e502d
SM
6422000-08-25 Stefan Monnier <monnier@cs.yale.edu>
643
644 * regex.c (PUSH_FAILURE_COUNT): New macro.
645 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
646 Handle popping of a register's or a counter's data.
647 (POP_FAILURE_POINT): Use the new name.
648 (re_match_2_internal): Push counter data on the stack for succeed_n,
649 jump_n and set_number_at and remove misleading dead code in succeed_n.
650
bd9d0f3f
GM
6512000-08-25 Gerd Moellmann <gerd@gnu.org>
652
653 * xdisp.c (redisplay_internal): If considering all windows on all
654 frames, update the display for each frame as soon as possible,
655 instead of first building all desired matrices for all frames, and
656 then updating them all.
657 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
658
aa5b8e15
GM
6592000-08-24 Gerd Moellmann <gerd@gnu.org>
660
17494071
GM
661 * bytecode.c (mark_byte_stack): Add a comment.
662
aa5b8e15
GM
663 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
664 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
665 a graphical frame.
666
c543db81
KH
6672000-08-24 Kenichi Handa <handa@etl.go.jp>
668
d246d5f5
KH
669 * minibuf.c (do_completion): Always use compare-string, not
670 string-equal because the latter doesn't pay attention to
671 multibyteness of strings.
672
c543db81
KH
673 * process.c (create_process): Don't setup raw-text coding here.
674 (Fopen_network_stream): Don't set coding->src_multibyte and
675 coding->dst_multibyte here.
676 (read_process_output): For process filter, return unibyte string
677 if default-enable-multibyte-characters is nil.
678 (send_process): If OBJECT is multibyte text, be sure to encoded it
679 by the specified coding system for the process. Otherwise, setup
680 raw-text coding.
681 (init_process): Don't initialize default-process-coding-system
682 here.
683
9b47cfe0
EZ
6842000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
685
686 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
687 <scroll-down-aggressively>: Likewise.
688
f5a36960
KH
6892000-08-23 Kenichi Handa <handa@etl.go.jp>
690
691 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
692 zero. Set coding->produced_char correctly.
693
69a7ffa7
AI
6942000-08-22 Andrew Innes <andrewi@gnu.org>
695
696 * makefile.w32-in: New file.
697
698 * unexw32.c (unexec): Ignore old_name, and use the actual location
699 of the current executable instead. Base new_name on this.
700
701 * w32proc.c (create_child): Remove reference to security
702 descriptor, which isn't needed and doesn't compile with mingw32.
703
704 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
705 up dllimport attributes.
706 (x_update_window_end): Update prototype.
707
708 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
709 extern, which screws up dllimport attributes.
710
711 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
712 up dllimport attributes.
713
714 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
715 screws up dllimport attributes.
716
717 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
718 up dllimport attributes.
719 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
720 screws up dllimport attributes.
721
722 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
723 up dllimport attributes.
724
725 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
726 screws up dllimport attributes.
727
728 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
729 screws up dllimport attributes.
730
731 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
732 up dllimport attributes.
733
734 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
735 unnecessary extern, which screws up dllimport attributes.
736 (main): Ditto.
737
738 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
739 up dllimport attributes.
740
741 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
742 unnecessary extern, which screws up dllimport attributes.
743
744 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
745 screws up dllimport attributes.
746
747 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
748 up dllimport attributes.
749
750 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
751
752 * w32bdf.c (search_file_line):
753 (set_bdf_font_info):
754 (seek_char):
755 (w32_get_bdf_glyph):
756 (w32_BDF_to_x_font): Fix compile warnings.
757
758 * w32menu.c: Include keyboard.h before frame.h. Fix compile
759 warnings.
760
761 * w32select.c: Include keyboard.h before frame.h.
762
763 * w32fns.c (max): Define macro.
764 (JOHAB_CHARSET): Define if not known.
765 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
766 (Fx_show_tip): Synch with X version.
767
768 * w32xfns.c: Include keyboard.h before frame.h.
769
770 * w32fns.c: Include keyboard.h before frame.h.
771
772 * w32term.c: Include keyboard.h before frame.h.
773
774 * fontset.c: Include keyboard.h before frame.h.
775
776 * w32inevt.c: Include keyboard.h before frame.h.
777 (MOUSE_MOVED): Define if not known.
778
779 * minibuf.c: Include keyboard.h before frame.h.
780
781 * keyboard.c: Include keyboard.h before frame.h.
782
783 * indent.c: Include keyboard.h before frame.h.
784
785 * dispnew.c: Include keyboard.h before frame.h.
786
787 * buffer.c: Include keyboard.h before frame.h.
788
789 * alloc.c: Include keyboard.h before frame.h.
790
791 * print.c: Include keyboard.h before frame.h.
792
793 * process.c: Include keyboard.h before frame.h.
794
795 * scroll.c: Include keyboard.h before frame.h.
796
797 * sysdep.c: Include keyboard.h before frame.h.
798
799 * term.c: Include keyboard.h before frame.h.
800
801 * window.c: Include keyboard.h before frame.h.
802
803 * xdisp.c: Include keyboard.h before frame.h.
804 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
805
806 * frame.c: Include keyboard.h before frame.h.
807
808 * w32heap.h: Undefine min, max.
809
810 * w32gui.h: Undefine min, max.
811
812 * unexw32.c: Change PUCHAR to PCHAR.
813 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
814 (relocate_offset):
815 (get_section_info):
816 (copy_executable_and_dump_data): Remove unnecessary static defs.
817 (copy_executable_and_dump_data): Fix compile warnings.
818
819 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
820
821 * w32console.c (min): Define macro.
822 (clear_frame, write_glyphs): Fix compile warning.
823
824 * w32proc.c (compare_env):
825 (find_child_console): Fix compile warning.
826
827 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
828 sys_errlist instead of _sys_errlist.
829 (get_emacs_configuration_options): New function.
830
831 * s/ms-w32.h (sys_nerr): Provide default definition.
832 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
833 name with _ prepended.
834 (NSIG): Define if not known.
835 (get_emacs_configuration): Provide extern declaration.
836 (get_emacs_configuration_options): Provide extern declaration.
837 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
838
839 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
840 (map_w32_filename):
841 (read_unc_volume): Fix compile warning.
842
843 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
844 definitions from being used.
845
846 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
847
848 * w32.c (unc_volume_file_attributes):
849 (open_unc_volume): Make arg const.
850
851 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
852 (read_input_waiting): Remove excess parameter.
853
854 * w32.c (init_environment): Call _access.
855 (check_windows_init_file): Call _close.
856 (init_user_info): Call _putenv.
857 (init_environment): Call _putenv and _strdup.
858 (init_ntproc): Reset volume info cache on startup.
859
860 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
861 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
862 cannot override the CRT malloc.
863
864 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
865 (LINK_FLAGS): Append to original value of LINK_FLAGS.
866
867 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
868 unless we are linking with a static CRT.
869 (RVA_TO_PTR): Cast result to unsigned char*.
870
871 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
872 (add_volume_info): Use xstrdup.
873
25060080
SM
8742000-08-22 Stefan Monnier <monnier@cs.yale.edu>
875
876 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
877 (do_completion, Fminibuffer_complete_word): Use it.
878 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
879 var so it can take non-boolean values.
880
6917e6bb
GM
8812000-08-21 Gerd Moellmann <gerd@gnu.org>
882
acb7cc89
GM
883 * editfns.c (find_field): Formatting changes.
884 (toplevel): Some old-style function forward declarations
885 changed to prototypes, some new protypes added, some functions
886 made static.
887
888 * lisp.h (set_time_zone_rule): Add prototype.
889 (use_dialog_box): External declaration.
890
0bbfdc25
GM
891 * keyboard.c (gen_help_event): Add parameter SIZE.
892 (kbd_buffer_events_waiting): Slightly rewritten.
893 (clear_event): New function.
894 (kbd_buffer_get_event): Use it, and clear the input_events of
895 HELP_EVENTs.
896 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
897 don't fill the newly created array with nils.
898 (toplevel): Convert some old-style function forward declarations
899 to prototypes.
900
901 * keyboard.h (gen_help_event): Change prototype.
902
903 * xterm.c (XTread_socket): Change calls to gen_help_event.
904
905 * w32term.c (w32_read_socket): Change calls to gen_help_event.
906
6917e6bb
GM
907 * eval.c (Fmacroexpand): Doc fix.
908
e5cd3d11
JR
9092000-08-20 Jason Rumney <jasonr@gnu.org>
910
911 * w32term.h (x_display_info_for_display): Remove as this function
912 does not exist on W32.
913
914 * w32term.c (help_echo_window): New variable.
915 (syms_of_w32term): staticpro it.
916 (note_mode_line_highlight): Set it.
917 (XTextExtents16): Removed as there is no equivalent on W32.
918 (x_compute_glyph_string_overhangs): Incomplete body removed, as
919 the X way of doing this will not work for W32.
920 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
921 (x_draw_image_foreground): Avoid drawing outside of the clip area
922 when image doesn't have a mask.
923 (note_mouse_highlight): Process overlays in the right order of
924 priority. Set help_echo_window.
925 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
926 because that's more visible for large images.
927
928 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
929 name to single_keymap_panes.
930 (w32_menu_show): Set wv->title when dealing with titles.
931 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
932
6e69ab8c
MB
9332000-08-21 Miles Bader <miles@gnu.org>
934
935 * minibuf.c (do_completion): Try again if we rewrite the input
936 string, but no completion was done, so that any completion message
937 will be correct.
938
511bd4eb
GM
9392000-08-20 Gerd Moellmann <gerd@gnu.org>
940
941 * xfaces.c (lface_equal_p): Compare strings differently.
942 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
943 (realize_tty_face): Use them.
944 (syms_of_xfaces): Initialize new variables.
945 (map_tty_color): New function, extracted from realize_tty_face.
946 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
947 foreground or background color, store the new color name in the
948 realized face; previous code trying to do this had no effect.
949 (realize_tty_face): Use map_tty_color.
950 (Fclear_face_cache): Set face_change_count and ensure thorough
951 redisplay.
952
1433385f
GM
9532000-08-19 Gerd Moellmann <gerd@gnu.org>
954
511bd4eb
GM
955 * undo.c (record_first_change, record_marker_adjustment): Don't
956 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 957
419ac0a2
KH
9582000-08-18 Kenichi Handa <handa@etl.go.jp>
959
960 * coding.c (decode_coding_string): Set members consumed,
961 consumed_char, produced, produced_char of *coding correctly. If
962 decode_coding doesn't consume any byte, don't try anymore.
963 (encode_coding_string): Likewise.
964
7eb9e30d
GM
9652000-08-18 Gerd Moellmann <gerd@gnu.org>
966
511bd4eb
GM
967 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
968 conditional have void type, for Standard C compilers.
7eb9e30d
GM
969
970 * xdisp.c (redisplay_internal): Compare windows for equality with
971 EQ, instead of applying XWINDOW to something that might not
972 be a window.
973
dd34a735
KH
9742000-08-18 Kenichi Handa <handa@etl.go.jp>
975
976 * fontset.c (Finternal_char_font): Search only the selected frame
977 for a window of the current buffer.
978
385ff9e3
GM
9792000-08-18 Gerd Moellmann <gerd@gnu.org>
980
511bd4eb 981 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
982 Lisp_Objects.
983
385ff9e3
GM
984 * keyboard.c (kbd_buffer_get_event): Handle the case that the
985 second half of a HELP_EVENT is found at the start of kbd_buffer.
986
d6abb4c7
MB
9872000-08-18 Miles Bader <miles@gnu.org>
988
4618074a
MB
989 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
990
d6abb4c7
MB
991 * editfns.c (save_restriction_save): Rewrite to use markers.
992 (save_restriction_restore): Rewrite to understand new form of data
993 saved by save_restriction_save.
994 (Fsave_restriction): Remove cautionary note in doc-string.
995
a7b28523
GM
9962000-08-17 Gerd Moellmann <gerd@gnu.org>
997
998 * fileio.c (build_annotations): Add a comment explaining the
999 return value of format-annotate-function. Replace a spurious call
1000 to Flength with a CONSP test. Call format-annotate-function with
1001 a fifth arg specifying how many times the function is been called
1002 in a row, to let it choose temporary buffers appropriately.
1003
03c9ed77
DL
10042000-08-17 Dave Love <fx@gnu.org>
1005
1006 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
1007 declare make_temp_name twice.
1008
1009 * lread.c: Prototype readevalloop, load_unwind,
1010 load_descriptor_unwind.
1011 (unreadpure): Give it an arg.
1012
1013 * unexalpha.c: Prototype fatal_unexec, mark_x,
1014 update_dynamic_symbols. Declare unexec as void.
1015
1016 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
1017 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
1018
1019 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
1020 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
1021 DOUG_LEA_MALLOC.
1022
1023 * alloca.c: Use #error.
1024 [POINTER_TYPE]: Use it.
1025
1026 * eval.c (Fdefvar): Doc fix.
1027
1028 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
1029 INITIALIZE_INTERVAL.
1030
1031 * buffer.h: Avoid DECLARE_INTERVALS.
1032
1033 * config.in: Add size_t.
1034
aae41d97
EZ
10352000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
1036
1037 * w16select.c (set_clipboard_data): If there's not enough memory
1038 to put text into clipboard, return 1, as Fw16_set_clipboard_data
1039 expects. In case of other failures, return 3.
1040 (system_error_msg): New error message.
1041 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
1042 system_error_msg.
1043
65aa5e85
GM
10442000-08-16 Gerd Moellmann <gerd@gnu.org>
1045
1046 * term.c (write_glyphs): Also turn off inverse video after turning
1047 off other appearances in case TS_exit_attribute_mode is not equal
1048 to TS_end_standout_mode.
1049 (insert_glyphs): Turn inverse video on/off for each run of glyphs
1050 with the same face.
1051 (turn_off_face): Reset standout_mode only if
1052 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
1053 is equal to TS_end_standout_mode.
1054
ece23901
KH
10552000-08-16 Kenichi Handa <handa@etl.go.jp>
1056
9d7bcb2e
KH
1057 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
1058 sequence at the end of the source block.
1059
ece23901
KH
1060 * ccl.c (Fccl_program_p): Docstring modified.
1061 (Fccl_execute): Likewise.
1062 (Fccl_execute_on_string): Likewise.
1063
5e30eaa2
EZ
10642000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1065
1066 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
1067
290602fd
KH
10682000-08-16 Kenichi Handa <handa@etl.go.jp>
1069
1070 The following changes are mainly to fix bugs of
1071 encode/decode-coding-string failing if encoding/decoding return
1072 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
1073 variable conversion_buffer.
1074
1075 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
1076 decrement dst_end to avoid buffer overflow in the later call of
1077 string_as_multibyte
1078
1079 * coding.h (conversion_buffer_size, conversion_buffer)
1080 (get_conversion_buffer): Extern deleted.
1081
1082 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
1083 (conversion_buffer, conversion_buffer_size): Variables deleted.
1084 (get_conversion_buffer): Function deleted.
1085 (struct conversion_buffer): New structure.
1086 (MAX_ALLOCA): New macro.
1087 (allocate_conversion_buffer): New macro.
1088 (extend_conversion_buffer, free_conversion_buffer): New functions.
1089 (ccl_coding_driver): Set coding->result.
1090 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
1091 this is the last block of source.
1092 (encode_coding): Likewise. Handle the source block as the last
1093 one only when the whole source text is consumed.
1094 (decode_coding_string): Handle the case that the output buffer is
1095 too small to decode the whole source text. Use
1096 allocate_conversion_buffer, extend_conversion_buffer and
1097 free_conversion_buffer, not get_conversion_buffer.
1098 (encode_coding_string): Likewise.
1099 (init_coding): Function deleted.
1100 (init_coding_once): Delete code to initialize
1101 conversion_buffer_size.
1102
1103 * emacs.c (main): Don't call init_coding.
1104
1105 * msdos.c (IT_write_glyphs): Use a locally declared
1106 conversion_buffer.
1107
1108 * term.c (write_glyphs): Use a locally declared conversion_buffer.
1109 (insert_glyphs): Likewise.
1110
1111 * w32console.c (write_glyphs): Use a locally declared
1112 conversion_buffer.
1113
b9f80d41
EZ
11142000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
1115
1116 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
1117 member of display_info is NULL.
1118
32dc52f7
GM
11192000-08-15 Gerd Moellmann <gerd@gnu.org>
1120
58ed0d3b
GM
1121 * alloc.c (compact_small_strings): Use safe_bcopy, add an
1122 assertion.
1123
32dc52f7 1124 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 1125 appearances with capability `me'.
32dc52f7
GM
1126 (write_glyphs): Switch on inverse video before each face change.
1127
4eb22d33
DL
11282000-08-14 Dave Love <fx@gnu.org>
1129
1130 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
1131 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
1132 (lisp_free): Declare and make static.
1133
1134 * window.c: Fix embedded comment.
1135 (syms_of_window): Fix doc string.
1136
90cbf47e
GM
11372000-08-14 Gerd Moellmann <gerd@gnu.org>
1138
1139 * keymap.c (push_key_description): If C without modifiers is < 32,
1140 make sure to print `C-' before `M-', like in the manual.
1141
440fc135
GM
11422000-08-11 Gerd Moellmann <gerd@gnu.org>
1143
1144 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
1145 since they aren't relocated anymore.
1146 (sxhash_string): Make sure returned hash code fits in a Lisp
1147 integer.
1148
1149 * xdisp.c (try_cursor_movement): Fix handling of cursor in
1150 partially visible line which is smaller than the window's
1151 height.
1152
6e264fad
KH
11532000-08-11 Kenichi Handa <handa@etl.go.jp>
1154
1155 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
1156 the multibyte form of eight-bit-control characters.
1157 (Fccl_execute_on_string): Initialize ccl->multibyte.
1158
1159 * ccl.h (struct ccl_program): New member multibyte.
1160
1161 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
1162
c371f69a
KH
11632000-08-11 Kenichi Handa <handa@etl.go.jp>
1164
1165 * regex.c (regex_compile) <normal_char>: Pay attention to
1166 multibyteness.
1167 (analyse_first) <exactn>: Setup fastmap correctly for
1168 eight-bit-control characters.
1169
11702000-08-11 Kenichi Handa <handa@etl.go.jp>
1171
1172 * termhooks.h (enum event_kind): New member
1173 multibyte_char_keystroke.
1174
1175 * keyboard.c (make_lispy_event): Handle the new event type
1176 multibyte_char_keystroke.
1177
1178 * xterm.c: Include coding.h.
1179 (XTread_socket): Work around a bug of XmbLookupString. If the
1180 input is from XIM, decode it according to the current locale. In
1181 that case, generate multibyte_char_keystroke events.
1182
b8ddbe71
KH
11832000-08-11 Kenichi Handa <handa@etl.go.jp>
1184
1185 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
1186 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
1187
47589c8c
GM
11882000-08-10 Gerd Moellmann <gerd@gnu.org>
1189
1190 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
1191 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
1192 (move_it_in_display_line_to): Record iterator's ascent and descent
1193 before producing glyphs, and restore them when we know the glyph
1194 doesn't fit on the line.
1195 (move_it_to): Restructured so that it's easier to debug. If
1196 moving to a vpos, and not moving to an x or character position,
1197 stop as soon as the specified vpos is reached; don't move further
1198 into that line because that might change the computed line height.
1199 (try_cursor_movement): New function, extracted from the cursor
1200 movement branch of redisplay_window. If ending on a partially
1201 visible line, don't try to scroll if the cursor line is taller
1202 than the window.
1203 (redisplay_window): Use try_cursor_movement.
1204
1205 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
1206 because that function doesn't cope with variable-height lines.
1207
1208 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
1209 box cursor because that's better visible for large images.
1210
c51bacd6
MB
12112000-08-10 Miles Bader <miles@gnu.org>
1212
1213 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
1214
bea56df7
GM
12152000-08-10 Gerd Moellmann <gerd@gnu.org>
1216
1217 * xdisp.c (Vmessages_buffer_name): New variable.
1218 (message_dolog): Use it.
1219 (syms_of_xdisp): Initialize it.
1220
99cd7364
EZ
12212000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1222
1223 * msdos.c (IT_note_mouse_highlight): Update the calls to
1224 overlays_at.
1225 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
1226 redundant now that keyboard.h is included.
1227
7d093d56
EZ
12282000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1229
1230 * keyboard.c (kbd_buffer_events_waiting): New function.
1231
1232 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
1233
1234 * msdos.c: Include keyboard.h.
1235 (XMenuActivate): Empty no_event events from the event buffer. If
1236 no events are left after that, call clear_input_pending.
1237 (mouse_clear_clicks): New function, code moved from mouse_init.
1238 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
1239 mouse driver to ``forget'' any past clicks.
1240
1241 * Makefile.in (msdos.o): Depend on keyboard.h.
1242
41e757a6
GM
12432000-08-09 Gerd Moellmann <gerd@gnu.org>
1244
8e7bd231
GM
1245 * lisp.h (input_pending): External declaration.
1246
1247 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1248
1249 * xdisp.c (echo_area_display): Display thoroughly if input is
1250 pending. Bind redisplay-dont-pause to t during the redisplay.
1251 in case input is pending.
1252
1253 * dispnew.c (Qredisplay_dont_pause): New variable.
1254 (syms_of_display): Initialize and staticpro it.
1255 (update_frame_1): Don't interrupt the display for pending input if
1256 redisplay_dont_pause is set.
1257
43028b7e
GM
1258 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1259
41e757a6
GM
1260 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1261
2f2174fa
KH
12622000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1263
1264 * callproc.c (Fcall_process): Terminate the unwind-protect around
1265 the post-read-conversion of coding system.
1266
0a6fd67e
MB
1267 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
1268 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
1269 * buffer.h (overlays_at): Update prototype.
1270 * xdisp.c (next_overlay_change): Update call to overlays_at.
1271 * xfaces.c (face_at_buffer_position): Likewise.
1272 * textprop.c (Fget_char_property): Likewise.
1273 * xterm.c (note_mouse_highlight): Likewise.
1274
0c80756e
MB
1275 * minibuf.c (do_completion): Don't consider a simple change of
1276 case as `completion'.
1277
975f250a
KR
12782000-08-08 Ken Raeburn <raeburn@gnu.org>
1279
b347b3fd
KR
1280 * keyboard.c (syms_of_keyboard): Initialize
1281 last_point_position_buffer.
1282 * undo.c (record_delete): Make sure last_point_position_buffer is
1283 a buffer before comparing pointers.
1284
1285 * coding.h (decode_coding_string): Declare.
1286
1287 * intervals.h (Fprevious_single_char_property_change): Declare.
1288
1289 * textprop.c (Fprevious_single_char_property_change): Don't do
1290 arithmetic directly on lisp objects.
1291
25ad1371 1292 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
1293 objects.
1294
1295 * keyboard.h (menu_item_eval_property): Declare.
1296
1297 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
1298 reuse as buffer name, instead of recreating (and discarding) every
1299 time a message is logged.
1300 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
1301 (current_message_1, truncate_message_1, set_message_1)
1302 (display_echo_area_1, resize_mini_window_1): Signatures changed.
1303 (current_message, truncate_echo_area, display_echo_area)
1304 (resize_echo_area_axactly): Changed calls.
b347b3fd 1305
975f250a 1306 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 1307 Lisp object.
975f250a 1308 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 1309 must be an integer, not a Lisp object.
975f250a 1310
46dc9912
KH
13112000-08-08 Kenichi Handa <handa@etl.go.jp>
1312
1313 * charset.c (Fchar_width): Doc fix.
1314
9f6d1a6c
GM
13152000-08-08 Gerd Moellmann <gerd@gnu.org>
1316
1317 * charset.c (Fstring_width): Doc fix.
1318
ff3d9573
GM
13192000-08-07 Gerd Moellmann <gerd@gnu.org>
1320
41e757a6 1321 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
1322 line, clear ascent and descent members of the iterator structure;
1323 the height of the continued line does not affect the height of the
1324 continuation line.
1325 (make_cursor_line_fully_visible): Do nothing if cursor is on a
1326 line taller than the window.
1327 (redisplay_window) <forced window start>: Handle case that the
1328 middle of the window is not found in any row.
1329 (dump_glyph_row): Show more information.
1330 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
1331 first text line in a glyph matrix.
1332
1333 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1334 of the clip area when image doesn't have a mask.
1335
70fc58b3
GM
1336 * fns.c (sweep_weak_table): Fix survival conditions for
1337 key-or-value and key-and-value weakness.
1338
1339 * .gdbinit (xhashtable): New command.
1340
ac0e96ee
GM
1341 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1342 tables out of the list of all weak hash tables.
1343
ff3d9573
GM
1344 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
1345 a new buffer is created, make sure echo_area_buffer[] references
1346 the new buffer.
1347
e0d8827b
EZ
13482000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1349
1350 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1351 the doc string.
1352
c6f35378
KH
13532000-08-07 Kenichi Handa <handa@etl.go.jp>
1354
1355 * syntax.c (skip_chars): Fix previous change. Make the handling
1356 of unibyte string consistent with that of regex search.
1357
1fd4c450
GM
13582000-08-05 Gerd Moellmann <gerd@gnu.org>
1359
e49aa397
GM
1360 * xmenu.c (popup_get_selection): Use xfree instead of free.
1361
1362 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1363
1364 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1365
1366 * callproc.c (child_setup): Use xfree instead of free.
1367
1368 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1369 instead of malloc.
1370 (run_mac_command, closedir): Use `xfree' instead of `free'.
1371
1372 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1373
1374 * eval.c (error): Use xfree instead of free.
1375
1fd4c450
GM
1376 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1377
1378 * fns.c: Replace `illegal' with `invalid'.
e49aa397 1379 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 1380
82d497fc
KH
13812000-08-05 Kenichi Handa <handa@etl.go.jp>
1382
1383 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1384 conversion.
1385
59f953a2
NF
13862000-08-04 Noah Friedman <friedman@splode.com>
1387
1388 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1389 docstring.
1390
688351f2
GM
13912000-08-04 Gerd Moellmann <gerd@gnu.org>
1392
1393 * syntax.c (skip_chars): Fix typo in error message.
1394
2dad51cc
AS
13952000-08-04 Andreas Schwab <schwab@suse.de>
1396
1397 * m/ia64.h: Moved from s/ia64.h.
1398
99bb2c60
KH
13992000-08-04 Kenichi Handa <handa@etl.go.jp>
1400
082a1df2
KH
1401 * process.c (read_process_output): Big simplification. Handle
1402 composition and post-read-conversion of coding system correctly.
1403 (send_process): Handle composition correctly.
1404
1405 * callproc.c (Fcall_process): Handle post-read-conversion of
1406 coding system if any.
1407
99bb2c60
KH
1408 * coding.c (decode_coding_iso2022): More strict check for handling
1409 single shifting.
082a1df2
KH
1410 (coding_restore_composition): Pay attention to the case that
1411 cmp_data is not set properly (because of invalid code in the
1412 source text).
1413 (run_pre_post_conversion_on_str): Include text properties in the
1414 resulting string.
1415 (decode_coding_string): Set members of coding correctly.
99bb2c60 1416
f4988be7
GM
14172000-08-03 Gerd Moellmann <gerd@gnu.org>
1418
1419 * s/ia64.h: New file.
1420
1421 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
1422 Use NULL instead of 0 at the end of variable argument list of
1423 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
1424 sizeof (int) < sizeof (void *).
1425
1426 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
1427 of variable argument lists of XtVaGetValues and XtVaSetValues.
1428
1429 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
1430 variable argument lists of XtVaGetValues and XtVaSetValues.
1431
ead53494
GM
14322000-08-02 Gerd Moellmann <gerd@gnu.org>
1433
1434 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
1435 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
1436
1437 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
1438 prototype.
1439
1440 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
1441 in call to Fsingle_key_description.
1442
1443 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
1444 Callers changed.
1445
14462000-08-02 Colin Walters <walters@cis.ohio-state.edu>
1447
1448 * window.c (display_buffer_reuse_frames): New variable.
1449 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
1450 frames displaying BUFFER.
1451 (syms_of_window): Define Lisp variable
1452 display-buffer-reuse-frames.
1453
10b0f752
MB
14542000-08-01 Miles Bader <miles@gnu.org>
1455
1456 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
1457 when to constrain NEW_POS (they were pretty screwed up before).
1458
16425c4a
EZ
14592000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
1460
1461 * msdos.c (run_msdos_command): Save and restore the master
1462 environment, for the case that child_setup signals an error.
1463 When mirroring slashes in DOS shell commands, don't fail when
1464 argv[2] has embedded blanks.
da288c14
EZ
1465 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
1466 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
1467 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
1468
1469 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
1470 using alloca; free it after run_msdos_command returns.
1471
27f73852
DL
14722000-07-27 Dave Love <fx@gnu.org>
1473
1474 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
1475 define.
1476 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
1477 working.
1478
1479 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
1480
c0261b5e
EZ
14812000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1482
1483 * editfns.c (lisp_time_argument): Fix last change.
1484
b548072f
GM
14852000-07-27 Gerd Moellmann <gerd@gnu.org>
1486
3ab82477
GM
1487 * fns.c (Fdelete): Make it work on vectors and strings in addition
1488 to lists.
1489
b548072f
GM
1490 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
1491 (syms_of_fns): Initialize new variables.
1492 (sweep_weak_table): Handle weakness `key-or-value' and
1493 `key-and-value'.
1494 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
1495 weakness, with t meaning the same as `key-and-value'.
1496
91ae8751
KH
14972000-07-27 Kenichi Handa <handa@etl.go.jp>
1498
1499 * coding.h (struct coding_system): Member safe_charset deleted.
1500
1501 * coding.c (Qsafe_charsets): This variable deleted.
1502 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
1503 variables.
1504 (coding_safe_chars): New function.
1505 (CODING_SAFE_CHAR_P): New macro.
1506 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
1507 checking safe_charsets member of the coding system. Caller
1508 changed.
1509 (detect_coding_iso2022): New local variable safe_chars.
1510 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
1511 safe_charsets member of the coding system.
1512 (decode_coding_iso2022): New local variable safe_chars.
1513 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
1514 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
1515 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
1516 (ENCODE_UNSAFE_CHARACTER): New macro.
1517 (encode_coding_iso2022): New local variable safe_chars. Check
1518 unsafe chars.
1519 (setup_coding_system): Delete the code to initialize
1520 coding->safe_charses
1521 (intersection, find_safe_codings): New functions.
1522 (Ffind_coding_systems_region_internal): New function.
1523 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
1524 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
1525 variable and initialize it.
1526
1527 * fns.c (char_table_ref_and_index): New function.
1528
1529 * lisp.h (char_table_ref_and_index): Add prototype.
1530
34a7a267
SS
15312000-07-26 Sam Steingold <sds@gnu.org>
1532
1533 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 1534 (Ffloat_time): New built-in Lisp function.
34a7a267 1535
a95cb10a
GM
15362000-07-26 Gerd Moellmann <gerd@gnu.org>
1537
3353ef5a
GM
1538 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
1539 for the character code.
1540
1541 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
1542 GNU/Linux.
1543
a95cb10a
GM
1544 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
1545 if called for a popup menu.
1546 (xmenu_show): Store help string in widget values.
1547
b4a12321
DL
15482000-07-26 Dave Love <fx@gnu.org>
1549
1550 * syswait.h: Move some definitions.
1551 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
1552 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
1553 perspicuous definitions.
1554 (WTERMSIG): Fix bit pattern used.
1555
13f5ad37
KH
15562000-07-26 Kenichi Handa <handa@etl.go.jp>
1557
1558 * print.c (print_object): If vector printing is truncated, print
1559 "..." to indicate it as well as the case of list printing.
1560
070fe99c
GM
15612000-07-25 Gerd Moellmann <gerd@gnu.org>
1562
969065c3
GM
1563 * xdisp.c (next_element_from_display_vector): Improve comments.
1564
1565 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
1566 for the character code, and the rest for the face id as in 20.x.
1567 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
1568
1569 * window.c (window_display_table): Cleaned up.
1570
070fe99c
GM
1571 * syntax.c (Fforward_word): Add last arg nil in call of
1572 Fconstrain_to_field.
1573
bad77ef7
EZ
15742000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1575
969065c3 1576 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
1577 identical but for the letter-case, don't call
1578 barf_or_query_if_file_exists.
1579
c28da489
MB
15802000-07-25 Miles Bader <miles@gnu.org>
1581
1582 * editfns.c (find_field): Honor special `boundary' fields.
1583 (Qboundary): New variables.
1584 (syms_of_editfns): Initialize Qboundary.
1585 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
1586 Use scan_buffer instead of find_before_next_newline, because it
1587 allows us to detect the boundary case where there's a newline at
1588 the search limit.
1589 * lisp.h (Fconstrain_to_field): Update external declaration.
1590
e3c31fd5
GM
15912000-07-24 Gerd Moellmann <gerd@gnu.org>
1592
1593 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
1594 if that is nil.
c28da489 1595
c66c29a2
DL
15962000-07-24 Dave Love <fx@gnu.org>
1597
1598 * s/sunos4-0.h, s/sol2.h:
1599 (LIBS_TERMCAP): Move from m/sparc.h.
1600
1601 * m/sparc.h (TERMINFO): Moved to system files (probably only
1602 relevant for sunos4 judging by its vintage).
1603 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
1604 __arch64__.
1605
fbe0a958
EZ
16062000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1607
1608 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
1609 name to single_keymap_panes.
1610
7d88e5c9
AS
16112000-07-24 Andreas Schwab <schwab@suse.de>
1612
1613 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
1614
e024b101
GM
16152000-07-24 Gerd Moellmann <gerd@gnu.org>
1616
1617 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
1618 parameters instead of using int parameters. Expect FN to accept
1619 EMACS_INT parameters.
1620 (display_echo_area, resize_echo_area_axactly, current_message)
1621 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
1622 with new argument list.
1623 (resize_mini_window_1): New callback function.
1624 (current_message_1, truncate_message_1, set_message_1): Change
1625 parameter lists to the new format expected by
1626 with_echo_area_buffer.
1627
25c1a9ce
KH
16282000-07-24 Kenichi Handa <handa@etl.go.jp>
1629
1630 * fontset.c (fontset_ref): Remove INLINE declaration.
1631 (fontset_ref_via_base): Likewise.
1632 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
1633 to downcase.
1634
7f987ac0
EZ
16352000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1636
1637 * msdos.c (IT_note_mouse_highlight): Process overlays in the
1638 correct order of priority. If help echo was found in an overlay,
1639 use that overlay as the object in which the help echo was found.
1640
e2db3069
MB
16412000-07-22 Miles Bader <miles@gnu.org>
1642
1643 * textprop.c (Fprevious_single_char_property_change): The initial
1644 property value should be from the position preceding POSITION, not
1645 following it.
1646
5e3203e4
EZ
16472000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
1648
1649 * coding.c (syms_of_coding): Doc fix for
1650 inhibit-iso-escape-detection.
1651
62145073
GM
16522000-07-21 Gerd Moellmann <gerd@gnu.org>
1653
c20aeb83
GM
1654 * xterm.c (note_mouse_highlight): Process overlays in the right
1655 order of priority.
34a7a267 1656
743934db
GM
1657 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
1658
1659 * xterm.c (note_mouse_highlight): If help-echo was found in an
1660 overlay, use that overlay as the object in which the help was
1661 found.
1662
d1dc7e43 1663 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 1664
62145073
GM
1665 * window.c (foreach_window): Instead of a fake variable argument
1666 list, take one USER_DATA argument.
1667 (foreach_window_1): Likewise, and call callback functions with two
1668 args, the window and USER_DATA.
1669 (struct check_window_data): New struct.
1670 (check_window_containing): Use it.
1671 (window_from_coordinates): Set up a struct check_window_data for
1672 foreach_window.
1673 (add_window_to_list, freeze_window_start): Change parameters
1674 according to new calling convention.
1675
1676 * window.h (foreach_window): Change prototype.
1677
1678 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
1679
16802000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
1681
1682 * xmenu.c (menu_help_callback): Call show_help_echo with
1683 additional arguments OBJECT and POS.
1684
11270583
KH
16852000-07-21 Kenichi Handa <handa@etl.go.jp>
1686
07b14857
KH
1687 * data.c (Faset): Allow storing any multibyte character in a
1688 string. Convert unibyte string to multibyte if necessary.
1689
11270583
KH
1690 * xfns.c (x_encode_text): New function.
1691 (x_set_name): Use x_encode_text.
1692 (x_set_title): Likewise.
1693
1694 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
1695
1696 * xterm.h (x_encode_text): Add prototype.
1697
bc75b4fd
DL
16982000-07-20 Dave Love <fx@gnu.org>
1699
1700 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
1701 xfree, not free.
1702
48c14970
EZ
17032000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
1704
1705 * msdos.c (help_echo_window): New variable.
1706 (syms_of_msdos): Initialize and staticpro it.
1707 (IT_note_mode_line_highlight): Set help_echo_window.
1708 (IT_note_mouse_highlight): Ditto.
1709 (dos_rawgetc): Store help_echo_window in the second event produced
1710 for HELP_EVENTs.
1711
1712 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
1713 Record the object that generated the help echo and the position of
1714 that object in help_echo_object and help_echo_pos. Record that
1715 some glyphs in a row are displayed in mouse-face.
1716 (IT_update_begin): Don't clear mouse highlight unless one of the
1717 enabled glyph rows is marked as being displayed in mouse-face.
1718 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
1719 and position recorded in help_echo_object and help_echo_pos to the
1720 event queue.
1721 (IT_menu_display): Accept a new argument PN: the pane number of
1722 the current menu pane. Record the pane number and the item
1723 number of the item which has associated help string.
1724 (XMenuActivate): Update the prototype for help_callback in
1725 function declaration. Call IT_menu_display with the current menu
1726 pane number as an additional argument. Call help_callback with
1727 two additional arguments: the pane number and the item number of
1728 the menu item associated with the help text.
1729 (help_echo_object, help_echo_pos): New variables.
1730 (syms_of_msdos): Initialize them and staticpro help_echo_object.
1731
1732 * msdos.h (XMenuActivate): Update prototype.
1733
4279296d
GM
17342000-07-19 Gerd Moellmann <gerd@gnu.org>
1735
47db06aa
GM
1736 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
1737 Add some more prototypes.
1738
1739 * xterm.c, xterm.h: Add some more prototypes.
1740
1741 * lisp.h (Fnext_single_char_property_change): Add prototype.
1742
1743 * dispnew.c (direct_output_for_insert): Remove confusing
1744 outer local variable mouse_face_overwritten_p.
1745 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
1746
4279296d
GM
1747 * alloc.c (allocate_string_data): Don't copy old string contents.
1748
670acd62
KH
17492000-07-19 Kenichi Handa <handa@etl.go.jp>
1750
1751 * coding.c (code_convert_region): Delete text properties before
1752 shrinking the conversion region.
1753
7cea38bc
GM
17542000-07-18 Gerd Moellmann <gerd@gnu.org>
1755
dc1cac59
GM
1756 * dispnew.c (update_text_area): Write the whole row if it
1757 has mouse-face in it.
1758
85a8aca9
GM
1759 * xfaces.c (face-alternative-font-family-alist): Remove
1760 DEFVAR_LISP; staticpro instead.
1761
34a7a267 1762 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
1763 new arguments.
1764
1765 * keyboard.c (show_help_echo): Add parameter WINDOW.
1766 (read_char): Call show_help_echo with window extracted from Lisp
1767 help event.
1768 (gen_help_event): Add parameter WINDOW.
1769
1770 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
1771
1772 * xterm.c (help_echo_window): New variable.
1773 (note_mouse_highlight, note_tool_bar_highlight): Set
1774 help_echo_window.
1775 (XTread_socket): Pass help_echo_window to gen_help_event.
1776 (syms_of_xterm): Initialize and staticpro help_echo_window.
1777
f8276b77
DL
17782000-07-18 Dave Love <fx@gnu.org>
1779
1780 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
1781 systime.h.
1782
088831a6
GM
17832000-07-18 Gerd Moellmann <gerd@gnu.org>
1784
3d6cd763
GM
1785 * alloc.c (allocate_string_data): If string had already data
1786 assigned, copy old contents to new string data.
1787
1788 * coding.c (syms_of_coding): Fix typo in spelling of variable
1789 `inhibit-iso-escape-detection'.
1790
088831a6
GM
1791 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
1792
1793 * Makefile.in: Add dependencies on dispextern.h.
1794 (alloca.o): Don't define malloc and define EMACS_FREE instead of
1795 `free'; both can conflict with system header files.
1796
bc8a8d55
KH
17972000-07-18 Kenichi Handa <handa@etl.go.jp>
1798
1799 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
1800 undefined.
1801
069f5950
DL
18022000-07-18 Dave Love <fx@gnu.org>
1803
1804 * window.c (Fwindow_list): Declare arg `window'.
1805
aa96c820
KH
18062000-07-18 Kenichi Handa <handa@etl.go.jp>
1807
1808 * coding.c (setup_coding_system): Don't override the explicitly
1809 specified designations.
1810
06be8d32
MB
18112000-07-15 Miles Bader <miles@gnu.org>
1812
1813 * editfns.c (char_property_eq, char_property_stickiness): Renamed
1814 from `text_property_eq' and `text_property_stickiness', respectively.
1815 (find_field, Fconstrain_to_field, char_property_eq)
1816 (char_property_stickiness): Changed to call char-property functions
1817 instead of text-property-only ones.
1818
1819 * textprop.c (Fnext_single_char_property_change): Made a subr (was
1820 `next_single_char_property_change'). Do more error checking, and
1821 cleanup limit behavior.
1822 (Fprevious_single_char_property_change): New function.
1823 (syms_of_textprop): Initialize new subrs.
1824
1825 * xdisp.c (display_prop_end, invisible_text_between_p):
1826 Call Fnext_single_char_property_change instead of
1827 next_single_char_property_change.
1828
3fddcdc3
JR
18292000-07-15 Jason Rumney <jasonr@gnu.org>
1830
1831 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
1832 after menu is finished with.
1833 (add_menu_item): Only consider wv->title as a menu title.
1834 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
1835
1836 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
1837 null title.
1838 (FONT_REGEXP): Remove unused macro, and its sub-components.
1839 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
1840
1841 * w32term.c (help_echo_object, help_echo_pos): New variables.
1842 (note_mode_line_highlight): Store additional information about the
1843 help-echo in help_echo_object and help_echo_pos. Check both
1844 `local-map' and `keymap' properties for changing the cursor
1845 (note_mouse_highlight): Store additional information about the
1846 help-echo in help_echo_object and help_echo_pos.
1847 (note_tool_bar_highlight): Set help_echo_object to nil and
1848 help_echo_pos to -1.
1849 (w32_read_socket): Use gen_help_event instead of filling
1850 input_events manually.
1851 (syms_of_w32term): Staticpro help_echo_object.
1852 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
1853 set, arrange for a mouse-highlight redisplay in
1854 XTframe_up_to_date.
1855 (x_clear_mouse_face): New function.
1856 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
1857 (x_update_window_begin): No need to turn off the mouse
1858 highlight here.
1859 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1860 depending on whether they contain glyphs highlighted in
1861 mouse-face.
1862 (x_fill_stretch_glyph_string): Consume runs of stretch
1863 glyphs instead of a single one.
1864 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1865 with new argument list.
1866 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1867 (x_append_glyph, x_append_composite_glyph)
1868 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1869 changes in struct glyph starting 1999-12-27. See comments for
1870 xterm.c on 2000-07-05.
1871
178c5d9c
SS
18722000-07-14 Sam Steingold <sds@gnu.org>
1873
1874 * xfaces.c (realize_x_face): Fix the last patch:
1875 check `default_face' before dereferencing.
1876
6fe533f6
DL
18772000-07-14 Dave Love <fx@gnu.org>
1878
069f5950 1879 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 1880
dd7b81cf
KH
18812000-07-14 Kenichi Handa <handa@etl.go.jp>
1882
0693904a 1883 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 1884 default_face's fontset, not using the default fontset.
0693904a 1885
dd7b81cf
KH
1886 * coding.c (inhibit_iso_escape_detection): New variable.
1887 (syms_of_coding): Make it a Lisp variable.
1888 (detect_coding_iso2022): If inhibit_iso_escape_detection is
1889 nonzero, ignore ISO2022's escape sequence.
1890
d5aa31d8
GM
18912000-07-14 Gerd Moellmann <gerd@gnu.org>
1892
e5acf0ca
GM
1893 * alloca.c (malloc) [emacs]: Define as xmalloc.
1894
bd23a692
GM
1895 * xfns.c (Fx_show_tip): If frame parameters contain a position,
1896 use that instead of the mouse position. Add parameters DX and DY.
1897
1898 * dispextern.h (Fx_show_tip): Adjust number of parameters
1899 in prototype.
1900
9662da0b
GM
1901 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
1902 if HELP is a function, call it with OBJECT and POS as parameters
1903 to get the help to display.
1904 (gen_help_event, kbd_buffer_store_help_event): New functions.
1905 (kbd_buffer_get_event): Construct the Lisp help-event differently.
1906 (read_char): Call show_help_echo with new parameters.
1907
178c5d9c 1908 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
1909 Add prototypes.
1910
1911 * xterm.c (help_echo_object, help_echo_pos): New variables.
1912 (note_mode_line_highlight): Store additional information about the
1913 help-echo in help_echo_object and help_echo_pos. Check both
1914 `local-map' and `keymap' properties for changing the cursor
1915 (note_mouse_highlight): Store additional information about the
1916 help-echo in help_echo_object and help_echo_pos.
1917 (note_tool_bar_highlight): Set help_echo_object to nil and
1918 help_echo_pos to -1.
1919 (XTread_socket): Use gen_help_event instead of filling
1920 input_events manually.
1921 (syms_of_xterm): Staticpro help_echo_object.
1922
1923 * xmenu.c (menu_highlight_callback): Use
1924 kbd_buffer_store_help_event instead of setting up and input_event
1925 structure manually.
1926
1927 * xdisp.c (eval_form): GCPRO argument sexpr.
1928 (call_function): New function.
1929 (handle_single_display_prop): Use call_function and FUNCTIONP
1930 instead of checking whether if font_height is a symbol and
1931 using eval_form.
1932
1933 * eval.c (internal_condition_case_2): New function.
1934
1935 * lisp.h (FUNCTIONP): New macro.
1936 (internal_condition_case_2, call_function): Add prototypes.
1937
d5aa31d8
GM
1938 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
1939 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
1940 Always set `arg' member of input_events.
1941 (construct_menu_click): Unused function removed.
1942
1943 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
1944
1945 * w32term.c (construct_mouse_click, construct_mouse_wheel)
1946 (construct_drag_n_drop, x_scroll_bar_handle_click)
1947 (w32_read_socket): Always set `arg' member of input_events.
1948
1949 * keyboard.c (show_help_echo): Use eval_form. Add comment.
1950
1951 * lisp.h (eval_form): Add prototype.
1952
1953 * xdisp.c (eval_form): Make it externally visible.
1954
0f1a9b23
GM
19552000-07-13 Gerd Moellmann <gerd@gnu.org>
1956
1957 * xterm.c (x_handle_tool_bar_click): Store the frame in the
1958 frame_or_window slot of TOOL_BAR_EVENT input events instead of
1959 consing. For prefix events, store the frame in the `arg' slot of
1960 the event, otherwise store the key there.
1961 (XTread_socket): Instead of consing, use the frame_or_window slot
1962 of HELP_EVENTs for the frame, and the `arg' slot for the help
1963 string.
1964
1965 * xmenu.c (menu_highlight_callback): Store help string in the
1966 `arg' member of the input event; don't cons.
1967 (menubar_selection_callback): Use the `arg' slot of input events
1968 to queue additional information, instead of consing.
1969
1970 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
1971
1972 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
1973 TOOL_BAR_EVENTs.
1974 (w32_read_socket): Adapt to changes in HELP_EVENTs.
1975
1976 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
1977 input events to queue additional information, instead of consing.
1978
1979 * keyboard.c (kbd_buffer_gcpro): Renamed from
1980 kbd_buffer_frame_or_window. Now used for all Lisp objects
1981 referenced from the input queue.
1982 (kbd_buffer_store_event): Always use structure assignment for
1983 copying input events. Record all Lisp objects referenced from
1984 events in kbd_buffer_gcpro.
1985 (kbd_buffer_get_event): Construct Lisp `help-echo' events
1986 differently from input events. Test for prefix menu_bar_events
1987 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
1988 event in kbd_buffer_gcpro to nil.
1989 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
1990 frame_or_window is equal to its arg member as prefix events.
1991 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
1992 used by an input event to nil.
1993 (init_keyboard): Use two times the size of the input queue
1994 for kbd_buffer_gcpro.
1995 (syms_of_keyboard): Likewise.
1996
1997 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
1998 USER_SIGNAL_EVENT.
1999
2000 * termhooks.h (struct input_event): Add member `arg'.
2001 (MENU_BAR_EVENT): Renamed from menu_bar_event.
2002 (USER_SIGNAL_EVENT): Renamed from user_signal.
2003
2004 * xfaces.c (ASET): Remove definition.
2005
2006 * lisp.h (AREF, ASET, ASIZE): New macros.
2007
2008 * fontset.c (AREF, ASIZE): Remove definitions.
2009
2010 * fns.c (AREF): Remove definition.
178c5d9c 2011
0f1a9b23
GM
2012 * composite.c (AREF): Remove definition.
2013
712eaef2
GM
20142000-07-12 Gerd Moellmann <gerd@gnu.org>
2015
d8ee7803
GM
2016 * dispnew.c (redraw_overlapped_rows): Add missing local.
2017 (scrolling_window): Remove debug code.
2018
712eaef2
GM
2019 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
2020 Before scrolling, turn off a mouse-highlight in the window
2021 being scrolled.
2022
2023 * xterm.c (x_update_window_end): Add parameter
2024 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
2025 redisplay in XTframe_up_to_date.
2026 (x_clear_mouse_face): New function.
2027 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
2028
2029 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
2030 current glyph row.
2031 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
2032 it when any row is written to that contains glyphs highlighted in
2033 mouse-face.
2034 (update_window): Call the window update end hook with new
2035 parameter MOUSE_FACE_OVERWRITTEN_P.
2036 (direct_output_for_insert): Give up if row contains mouse-face.
2037
2038 * dispextern.h (struct redisplay_interface): Add parameter
2039 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
2040 (clear_mouse_face): New function pointer member.
2041
02010917
SM
20422000-07-11 Stefan Monnier <monnier@cs.yale.edu>
2043
2044 * syntax.c (back_comment): Use one switch rather than a few `if's.
2045 Obey open_paren_in_column_0_is_defun_start.
2046 When reverting to the `slow' method, try to nicely handle the case
2047 of nested comments by checking that the comment-starter we found
2048 does indeed match the comment-ender.
2049 (scan_sexps_forward, scan_sexps_forward):
2050 Ignore excessive opening parenthesis rather than throwing an error.
2051
d76c03ea
GM
20522000-07-11 Gerd Moellmann <gerd@gnu.org>
2053
2054 * doc.c (Fsubstitute_command_keys): Handle case that a GC
2055 in Fwhere_is_internal or get_keymap_1 relocates string contents.
2056
2057 * dispnew.c (direct_output_forward_char): Give up if currently
2058 displaying a message instead of the minibuffer contents.
2059
2060 * xterm.c (x_update_window_begin): No need to turn off the mouse
2061 highlight here.
2062 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2063 depending on whether they contain glyphs highlighted in
2064 mouse-face.
2065
2066 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
2067 compare the mouse_face_p flags of both rows.
2068
2069 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
2070
d55ead18
EZ
20712000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2072
2073 * keyboard.c (show_help_echo): Accept additional parameter
2074 ok_to_overwrite_keystroke_echo.
2075 (read_char): Call show_help_echo with a zero
2076 ok_to_overwrite_keystroke_echo argument.
2077 * keyboard.h (show_help_echo): Update prototype of
2078 show_help_echo.
2079 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
2080 ok_to_overwrite_keystroke_echo argument.
2081 * w32menu.c (w32_menu_display_help): Call show_help_echo with
2082 non-zero ok_to_overwrite_keystroke_echo argument.
2083
df75b1a3
GM
20842000-07-10 Gerd Moellmann <gerd@gnu.org>
2085
4b92c49a
GM
2086 * xdisp.c (try_window_id): If changes are all below what is
2087 displayed in the window, and point is in the window, we still
2088 might have to find point on the display.
2089
2090 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
2091 glyphs instead of a single one.
2092 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2093 with new argument list.
2094 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2095
df75b1a3
GM
2096 * keymap.c (get_keymap_1): Add comment that this function can GC.
2097 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
2098 comment that functions can GC.
2099 (Fset_keymap_parent): GCPRO arg KEYMAP.
2100
4314cf3e
EZ
21012000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
2102
2103 * msdos.c (XMenuActivate): After exiting the menu, restore the
2104 echo area message and erase it.
2105
ab49ce15
KH
21062000-07-10 Kenichi Handa <handa@etl.go.jp>
2107
2108 * fontset.c (Ffontset_info): Make the return value more compatible
2109 with that of Emacs 20.
2110
090a072f
GM
21112000-07-07 Gerd Moellmann <gerd@gnu.org>
2112
2113 * eval.c (Fsignal): Handle case that backtrace_list is null.
2114
f92de4a6
KH
21152000-07-07 Kenichi Handa <handa@etl.go.jp>
2116
2117 * ccl.c (Fccl_execute): Typo fixed.
2118
dd8888a1
GM
21192000-07-06 Gerd Moellmann <gerd@gnu.org>
2120
e5c81191 2121 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 2122
dd8888a1
GM
2123 * window.c (Fwindow_list): Reverse list at the end.
2124 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
2125 means allow windows on OWINDOW's frame, only.
2126 (window_loop): Simplified; use Fwindow_list.
2127
2128 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
2129
485266d0
GM
21302000-07-05 Gerd Moellmann <gerd@gnu.org>
2131
2132 * xterm.c (XTread_socket): Increment handling_signal at the start,
2133 decrement it at the end.
2134
2135 * eval.c (handling_signal): New variable.
2136 (Fsignal): Abort if handling_signal is non-zero.
2137
2138 * lisp.h (handling_signal): External declaration.
178c5d9c 2139
485266d0
GM
2140 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
2141
80fcd514
KR
21422000-07-05 Ken Raeburn <raeburn@gnu.org>
2143
2144 Sound support for NetBSD through "Linux emulation" support:
2145 * config.in (HAVE_SOUNDCARD_H): Undef.
2146 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
2147 * Makefile.in (LIBSOUND): New variable.
2148 (LIBES): Include it.
2149 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
2150 <soundcard.h>.
2151 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
2152 elsewhere.
2153 (vox_open): Use DEFAULT_SOUND_DEVICE.
2154 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
2155
d5c5cddd
GM
21562000-07-05 Gerd Moellmann <gerd@gnu.org>
2157
2158 * print.c (print_error_message): If Vsignaling_function is set,
2159 show it in *Messages*.
2160
2161 * lisp.h (Vsignaling_function): External declaration.
2162
2163 * eval.c (Vsignaling_function): New variable.
2164 (Fsignal): Compute it.
2165 (syms_of_eval): Staticpro it.
2166
65171e3a
DL
21672000-07-05 Dave Love <fx@gnu.org>
2168
2169 * syswait.h: Use the autoconf recommended approach. Old code
2170 #if'd out in case we need to revert.
2171
178c5d9c 2172 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 2173
e2c46326
AI
21742000-07-05 Andrew Innes <andrewi@gnu.org>
2175
2176 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
2177 when non-NULL instead of __morecore, to take account of buffer
2178 memory. This also solves a problem with spurious memory warnings
2179 on Windows.
2180
2181 * ralloc.c: Make real_morecore non-static.
2182
2183 * eval.c (internal_condition_case): Comment out abort if
2184 interrupt_input_blocked is not zero.
2185
2186 * makefile.nt: Add support for `bootstrap' and related targets.
2187 Include minimal debug info in emacs.exe in release build.
2188 Remove all dependencies on lisp.h, and fixup some others.
2189
2190 * w32.c (init_environment): Install code from 20.7 for providing
2191 default values for environment variables, based on the
2192 executable's own location.
2193 (map_w32_filename): Handle filenames that are longer than
2194 MAX_PATH.
2195 (sys_socket): Install socket inheritance bug fix from 20.7.
2196
2197 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
2198 here via blockinput.h).
2199
a027a91b
SM
22002000-07-05 Stefan Monnier <monnier@cs.yale.edu>
2201
e4b31601
SM
2202 * w32menu.c (w32_menu_display_help):
2203 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
2204
2205 * keyboard.h (show_help_echo): Declare.
2206
2207 * keyboard.c (show_help_echo): New function, extracted from read_char.
2208 Feval its `msg' argument if it's a cons cell.
2209 (read_char): Use it.
4cf8d9d5 2210 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 2211
178c5d9c 2212 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 2213 (note_tool_bar_highlight, XTread_socket):
178c5d9c 2214 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
2215 (dos_rawgetc):
2216 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
2217 (note_tool_bar_highlight, w32_read_socket):
2218 Do not gratuitously ignore non-string `help-echo' properties.
2219
88d75730
GM
22202000-07-05 Gerd Moellmann <gerd@gnu.org>
2221
969f7e79
GM
2222 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
2223
71201b00
GM
2224 * window.c (delete_all_subwindows): Reset Vwindow_list.
2225
88d75730
GM
2226 * xterm.c (x_append_glyph, x_append_composite_glyph)
2227 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2228 changes in struct glyph starting 1999-12-27. Some bit-fields of
2229 struct glyph were not set, which made glyphs unequal when compared
2230 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
2231 effects were the result. This also depended on the contents of
2232 memory returned by xmalloc. If flickering happens again, activate
2233 the code in clear_glyph_row that's in #if 0. If the flickering is
2234 gone with that, chances are that it is caused by something
2235 similar.
2236
2237 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 2238
88d75730
GM
2239 * dispextern.h: Add some comments.
2240
2241 * window.c (add_window_to_list): Add parameter LIST.
2242 (window_list): Order list so that, for each frame, windows are
2243 in canonical order, and so that frames appear in the list in
2244 the order given by Vframe_list.
2245 (next_window): Reverse the handling of NEXT_P.
2246
53654733
GM
22472000-07-04 Gerd Moellmann <gerd@gnu.org>
2248
87efd256
GM
2249 * window.c (Vwindow_list): New variable.
2250 (make_window, delete_window): Set Vwindow_list to nil.
2251 (check_window_containing): New function.
2252 (window_from_coordinates): Rewritten.
2253 (add_window_to_list, window_list, candidate_window_p)
2254 (decode_next_window_args, next_window): New functions.
2255 (Fnext_window, Fprevious_window): Rewritten in terms of
2256 next_window.
2257 (Fwindow_list): New function.
2258 (Fother_window): Cleaned up.
2259 (foreach_window): Add a longer "variable argument list". Let
2260 callback function return 0 to indicate that cycling over windows
2261 should stop.
2262 (foreach_window_1): Likewise.
2263 (freeze_window_start): Return int.
2264 (init_window): New function.
2265 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
2266
2267 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2268 input_event with bzero.
2269 (main): Call init_window.
2270
53654733
GM
2271 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2272 a menu filter.
2273
4a8c194f
KH
22742000-07-04 Kenichi Handa <handa@etl.go.jp>
2275
2276 * composite.h (make_composition_value_copy): Extern it.
2277
2278 * composite.c (make_composition_value_copy): New function.
2279
2280 * editfns.c (Fformat): While copying text properties, make each
2281 composition property value a copy.
2282
2283 * fns.c (concat): While copying text properties, make each
2284 composition property value a copy.
2285
831a6cb0
GM
22862000-07-03 Gerd Moellmann <gerd@gnu.org>
2287
2f516940
GM
2288 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2289
178c5d9c 2290 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
2291 marked already.
2292
831a6cb0
GM
2293 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
2294 include those frames as candidates which have their focus
2295 redirected to the minibuffer frame.
2296
d9c4f922
SM
22972000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2298
2299 * fns.c (Fputhash): Return `value' rather than nil.
2300
3780bc22
GM
23012000-06-30 Gerd Moellmann <gerd@gnu.org>
2302
97d176db
GM
2303 * frame.c (next_frame): Don't check focus redirection in case
2304 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
2305 unless their focus is redirected, which contradicts the
2306 specification of next-frame, and leads to infinite loops in
2307 certain situations when cycling through windows with next-window.
2308
dca9961d
KH
23092000-06-30 Kenichi Handa <handa@etl.go.jp>
2310
2311 * coding.c (code_convert_region): Even if the length of text is
2312 zero, try to convert it if coding->type is coding_type_ccl.
2313 (decode_coding_string, encode_coding_string): Likewise.
2314
d5483ab1
GM
23152000-06-28 Gerd Moellmann <gerd@gnu.org>
2316
af5c25e1 2317 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 2318 the display if windows_or_buffers_changed.
af5c25e1
GM
2319
2320 * dispnew.c (struct row_entry): New structure.
2321 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
2322 (row_table_size, old_lines, new_lines, old_lines_size)
2323 (new_lines_size, run_pool, runs_size, runs): New variables.
2324 (add_row_entry): New function.
2325 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 2326 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
2327 holding them in local variables. Use a larger hash table whose
2328 size depends on glyph matrix sizes. Don't use bzero to clear the
2329 hash table; instead, clear used slots only.
2330
2331 * fns.c (next_almost_prime): Make it externally visible.
2332
2333 * lisp.h (next_almost_prime): Add prototype.
2334
d5483ab1
GM
2335 * s/isc4-0.h (sigunblock): Define.
2336
2337 * s/sco5.h (sigunblock): Define.
2338
93e40f40
DL
23392000-06-27 Dave Love <fx@gnu.org>
2340
2341 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
2342 (moved to osf5-0.h).
2343 [!NOT_C_CODE]: Protect string.h stuff.
2344
2345 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2346 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2347
3c4b7685
GM
23482000-06-27 Gerd Moellmann <gerd@gnu.org>
2349
97d176db 2350 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
2351 below the last line from the needed window height.
2352
32cad0aa
SM
23532000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2354
2355 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2356 (Fwidget_get): Use it.
2357 (syms_of_fns): Defsubr it.
2358
2c69ced2
GM
23592000-06-26 Gerd Moellmann <gerd@gnu.org>
2360
178c5d9c 2361 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
2362 display info for XIM.
2363 (xim_open_dpy): Likewise.
2364 (xim_close_dpy): Don't free the display info's XIM.
2365
2366 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2367
2368 * config.in (USE_XIM): New define.
2369
3fc720e4
GM
2370 * keymap.c (get_keyelt): For menu-items containing a `:filter
2371 FILTER', apply FILTER to the menu-item's definition to get the
2372 real definition to use.
2373
2374 * lisp.h (QCfilter): External declaration.
2375
2c69ced2
GM
2376 * xfns.c (Fimage_size): New function.
2377 (syms_of_xfns): Defsubr it.
2378
f978b2a2
AS
23792000-06-26 Andreas Schwab <schwab@suse.de>
2380
2381 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2382 Fstring_as_unibyte.
2383
94cc7892
DL
23842000-06-25 Dave Love <fx@gnu.org>
2385
2386 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2387 tgetnum.
2388
2389 * Makefile.in (blockinput.h): Depend on atimer.h.
2390 (atimer.h): Depend on systime.h.
2391
2392 * blockinput.h: Protect against multiple inclusion. Include
2393 atimer.h.
2394
2395 * atimer.h: Protect against multiple inclusion. Include
2396 systime.h.
2397
2398 * lisp.h (swap_in_global_binding): Declare.
2399
b8c24556
KR
24002000-06-24 Ken Raeburn <raeburn@gnu.org>
2401
2402 * process.c (Fopen_network_stream): Turn off atimers for duration
2403 of call to connect. (Patch from Gerd.)
2404
8cf8560b
DL
24052000-06-23 Dave Love <fx@gnu.org>
2406
511c7541
DL
2407 * ralloc.c: Maybe include unistd.h
2408
8cf8560b
DL
2409 * emacs.c (setgrp): Undefine before defining.
2410 (malloc_warning, set_time_zone_rule, index): Prototype.
2411
2412 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
2413 HAVE_STRUCT_TIMEZONE.
2414
2415 * s/osf1.h: Move string.h hack here from alpha.h and make it
2416 conditional.
2417 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
2418 _XOPEN_SOURCE.
2419 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
2420 (SOCKLEN_TYPE): Don't define.
2421
2422 * m/alpha.h: Remove string.h hack.
2423
2424 * s/osf5-0.h: New file.
2425
2426 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
2427 include time.h, done by systime.h.
2428 [__FreeBSD__]: Remove redundant includes.
2429
3fc720e4 2430 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
2431 (delete_temp_file): Return Qnil to avoid warning.
2432
2433 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
2434
2435 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
2436 HAVE_X_WINDOWS.
2437
2438 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
2439
2440 * composite.h (compose_text): Declare.
2441
2442 * xterm.c: Don't include sys/types.h unconditionally. Don't
2443 protect its inclusion with !USG (following xmenu.c).
2444
ea055732
GM
24452000-06-23 Gerd Moellmann <gerd@gnu.org>
2446
2447 * xfns.c (x_create_tip_frame): Initialize frame's colors like
2448 in x_create_frame.
2449
74b01b80
EZ
24502000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2451
2452 * coding.c (decode_eol_post_ccl): Special handling for undecided
2453 and inconsistent EOL types.
2454
64f3a166
GM
24552000-06-22 Gerd Moellmann <gerd@gnu.org>
2456
16cf31f7
GM
2457 * xrdb.c (x_load_resources): Add default resource for scroll bar's
2458 trough color and main window's background color.
2459
178c5d9c 2460 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
2461 differently.
2462
2463 * xterm.h (Xt_app_con): External declaration.
2464
2465 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 2466
486a103d
GM
2467 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
2468
64f3a166
GM
2469 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
2470 (handle_invisible_prop): Record the start of invisible text in
2471 it->add_overlay_start.
2472 (struct overlay_entry): Add member `overlay'.
2473 (handle_overlay_change): Simplify.
2474 (next_overlay_string): After having processed overlay strings at the
2475 end of the buffer, record that fact in
2476 it->overlay_strings_at_end_processed_p.
2477 (compare_overlay_entries): If before- and after-strings come
2478 from the same overlay, let before-strings come first.
2479 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
2480 (load_overlay_strings): Take it->add_overlay_start into account
2481 when adding overlay strings.
2482
2483 * dispextern.h (struct it): Add member add_overlay_start.
2484
bb746ea6
DL
24852000-06-22 Dave Love <fx@gnu.org>
2486
2487 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
2488
2489 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
2490
a8f573f3
KH
24912000-06-22 Kenichi Handa <handa@etl.go.jp>
2492
2493 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
2494 is greater than 0.
2495
9f2bbc92
DL
24962000-06-21 Dave Love <fx@gnu.org>
2497
178c5d9c 2498 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 2499
3ee5041c
SM
25002000-06-21 Stefan Monnier <monnier@cs.yale.edu>
2501
2502 * syntax.c (back_comment): Simplify string-parity counting (with
2503 the added benefit of handling multiple string-styles as long as
2504 they are not intertwined).
2505 Jump to the slow code as soon as a comment starter is found in
2506 a "string_lossage" position. Fixes the case: " /* " /* " */.
2507
4c343001
DL
25082000-06-21 Dave Love <fx@gnu.org>
2509
2510 * Makefile.in: Use GETLOADAVG_LIBS.
2511
2512 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
2513 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
2514
e6365855
SM
25152000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2516
2517 * syntax.c (describe_syntax): Recognize the `n'estable bit.
2518 (Fforward_comment, scan_lists):
2519 Check the comstyle of single-char comment-starters.
2520 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
2521 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
2522 Check the comstyle of single-char comment-starters.
2523 Clarify control-flow around the Scomment case.
e6365855 2524
5700d2cc
DL
25252000-06-20 Dave Love <fx@gnu.org>
2526
d355bd8a
SM
2527 * fns.c (make_hash_table, maybe_resize_hash_table):
2528 Cast arg of next_almost_prime.
5700d2cc 2529
178c5d9c 2530 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
2531
2532 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
2533 and unistd.h.
2534
4a27bdfb
GM
25352000-06-20 Gerd Moellmann <gerd@gnu.org>
2536
a61d762c
GM
2537 * keyboard.c (adjust_point_for_property): Check if display
2538 property should be treated as intangible by looking at its
2539 value.
2540
178c5d9c 2541 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
2542 (display_prop_intangible_p): New functions.
2543
2544 * dispextern.h (display_prop_intangible_p): Add prototype.
2545
2546 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 2547
4a27bdfb
GM
2548 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
2549 argument to sigprocmask.
2550
2551 * s/sco5.h (sigblock): Redefined to pass a pointer as second
2552 argument to sigprocmask.
2553
2554 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
2555 sigprocmask_set, and pass a pointer to it to sigprocmask.
2556
2557 * sysdep.c (sigprocmask_set): New variable.
2558
2559 * fileio.c (make_temp_name): Don't use `%s' in string passed to
2560 report_file_error.
2561
427ec082
SS
25622000-06-20 Sam Steingold <sds@gnu.org>
2563
2564 * xrdb.c: Don't declare xmalloc, xrealloc.
2565
8972fe79 25662000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
2567
2568 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
2569 (re_comp): Cast gettext return value to avoid complaints when
2570 !HAVE_LIBINTL.
2571
074b6efe
DL
25722000-06-20 Dave Love <fx@gnu.org>
2573
f85c008a
DL
2574 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
2575 HAVE_GETTIMEOFDAY.
2576
5700d2cc 2577 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 2578
d355bd8a 2579 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
2580
2581 * m/alpha.h: Don't declare xmalloc, xrealloc.
2582
0af4f205
DL
2583 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
2584
2585 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
2586
2587 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
2588
2589 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
2590 HAVE_GETWD.
2591
074b6efe
DL
2592 * keyboard.h (poll_for_input_1): Declare.
2593
2594 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
2595
2596 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
2597
2598 * doprnt.c: Don't declare xmalloc, xrealloc.
2599
2600 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
2601 (getenv, ctime, getwd): Removed.
2602 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
2603
2604 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
2605 x_set_tool_bar_lines.
2606
2607 * config.in: Add HAVE_GETWD. Move some definitions above
2608 machine/system includes.
2609
68a5e97b
KH
26102000-06-20 Kenichi Handa <handa@etl.go.jp>
2611
95417e1e
KH
2612 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
2613
68a5e97b
KH
2614 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
2615 contain information about ENCODING.
2616
2617 * fontset.c (FONTSET_ASCII): Use the first element of char table
2618 for an ASCII font, not defalt slot.
2619 (fontset_ref_via_base): If FONTSET doesn't contain information for
2620 C, try the default fontset.
2621 (make_fontset): Don't copy the default fontset.
2622 (fontset_font_pattern): Likewise.
2623 (accumulate_font_info): If ELT is nil, use the corresponding
2624 element in the default fontset.
2625
3b4fa1b2
DL
26262000-06-19 Dave Love <fx@gnu.org>
2627
943e731c
DL
2628 * syntax.c (Fparse_partial_sexp): Doc fix.
2629
2630 * regex.h: Test PROTOTYPES as well as __STDC__.
2631
3b4fa1b2
DL
2632 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
2633 errno, strerror. Put text after #endif in comment.
2634
2635 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
2636 pcc).
2637
2638 * xterm.c (x_frame_of_widget): Likewise.
2639
cdf0357b
GM
26402000-06-19 Gerd Moellmann <gerd@gnu.org>
2641
2642 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
2643 to Vfundamental_mode_abbrev_table.
2644
2645 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
2646 bogus objects are marked. This slows down GC by ~80 percent, but
2647 it might be worth trying when debugging GC-related problems.
2648 This feature requires conservative stack marking to be enabled.
2649
2650 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
2651 returns XLookupChars, reset `modifiers' to zero.
2652
998e9f8c
DL
26532000-06-19 Dave Love <fx@gnu.org>
2654
2655 * mktime.c: Unprotoized.
2656
18e21ce8 26572000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
2658
2659 * data.c (set_internal): If variable is frame-local,
2660 store the new value immediately into the frame parameter alist.
2661
140c4ac6
KR
26622000-06-19 Ken Raeburn <raeburn@gnu.org>
2663
14358466
KR
2664 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
2665 in the custom handler pointer.
2666
140c4ac6
KR
2667 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
2668 value, or checks for CHAR_META can fail when Lisp_Object is a
2669 union type.
2670 * keymap.c (get_keyelt): Likewise.
2671
10d7bf84
KH
26722000-06-19 Kenichi Handa <handa@etl.go.jp>
2673
2674 * ccl.h (struct ccl_program): New member eol_type.
2675 (struct ccl_spec): New member cr_carryover.
2676
2677 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
2678 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
2679
2680 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
2681 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
2682 (decode_eol_post_ccl): New function.
2683 (decode_coding): Don't detect EOL format here for CCL based coding
2684 systems.
2685 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
2686 decode_eol_post_ccl after running the CCL program.
2687 (code_convert_region): Don't detect EOL format here for CCL based
2688 coding systems.
2689 (decode_coding_string): Likewise.
2690
52e386c2
KR
26912000-06-18 Ken Raeburn <raeburn@gnu.org>
2692
2693 * charset.c (update_charset_table): Use XINT on "iso_final_char"
2694 when treating it as an integer.
2695
2696 * coding.h (encode_coding_string): Declare.
2697
2698 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
2699 it as an integer.
2700
2701 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
2702 "xkeymap" to avoid shadowing the "enum map_type" value that needs
2703 to be passed to get_local_map.
2704
2705 * sound.c (Fplay_sound): Don't call make_number on
2706 Frun_hook_with_args count argument.
2707
2708 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
2709 for lisp objects in X event structure data field, when lisp
2710 objects are represented with unions.
2711 (x_scroll_bar_to_input_event): Ditto.
2712
b357b9d4
KR
27132000-06-16 Ken Raeburn <raeburn@gnu.org>
2714
2715 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
2716 termination of string. Fix sense of test whether
2717 Vline_number_display_limit is an integer.
b357b9d4 2718
a871441d
GM
27192000-06-16 Gerd Moellmann <gerd@gnu.org>
2720
a9021acd
GM
2721 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
2722 only if HAVE_X_WINDOWS.
2723
6344985d
GM
2724 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
2725 of titles.
2726
427ec082 2727 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
2728 out of bounds.
2729
228b083e
EZ
27302000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2731
2732 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
2733 of its headers.
2734
c25b53a2
KH
27352000-06-15 Kenichi Handa <handa@etl.go.jp>
2736
2737 * coding.c (decode_coding_emacs_mule): Always set src_base at the
2738 start of the while loop.
2739
a6981b11
GM
27402000-06-15 Gerd Moellmann <gerd@gnu.org>
2741
e9924e52
GM
2742 * atimer.c (alarm_signal_handler): Add forward declaration.
2743
a6981b11
GM
2744 * data.c (set_internal): Remove debug code.
2745
25fa6deb
GM
27462000-06-14 Gerd Moellmann <gerd@gnu.org>
2747
dce6b995
GM
2748 * Makefile.in (bootstrap-temacs): Add `-I../src'.
2749
9f817ea4
GM
2750 * unexec.c (toplevel) [COFF]: Include coff.h.
2751
2752 * s/lynxos.h: New file.
2753
2754 * keymap.c (Fsingle_key_description): Enclose function key and
2755 event symbol names in angle brackets.
2756
8a4e3c0c
GM
2757 * xdisp.c (setup_echo_area_for_printing): Call
2758 message_log_maybe_newline if message_buf_print is not set.
2759
2760 * print.c (printchar, strout): Don't check message_buf_print
427ec082 2761 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
2762 function does something useful even when message_buf_print is
2763 already set.
2764
25fa6deb
GM
2765 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
2766 variables.
2767 (ensure_echo_area_buffers): Initialize echo buffer's
2768 truncate lines setting to nil.
2769 (with_echo_area_buffer): Don't set the echo buffer's truncate
2770 lines setting here.
8a4e3c0c 2771 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
2772 of message_truncate_lines.
2773 (resize_mini_window): Handle case that lines are truncated.
2774 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
2775 message-truncate-lines.
2776
2777 * keyboard.c (read_char): Bind message-truncate-lines to t
2778 while displaying a help-echo.
2779
2780 * lisp.h (Qmessage_truncate_lines): External declaration.
2781
163dcff3
GM
27822000-06-13 Gerd Moellmann <gerd@gnu.org>
2783
1681ead6
GM
2784 * xdisp.c (Vline_number_display_limit): Renamed from
2785 line_number_display_limit.
2786 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
2787 Extend documentation string. Initialize
2788 Vline_number_display_limit to nil meaning no limit.
2789 (decode_mode_spec): Use Vline_number_display_limit with its new
2790 meaning.
2791
163dcff3
GM
2792 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
2793
18e21ce8 27942000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
2795
2796 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 2797
163dcff3
GM
2798 * xfns.c (x_set_frame_parameters): Comment fix.
2799
2800 * frame.c (store_frame_param): Call swap_in_global_binding if the
2801 variable's current binding was chosen based on this frame.
2802
2803 * data.c (swap_in_global_binding): New function.
2804
a704139d
EZ
28052000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2806
2807 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
2808 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
2809
9b6610db
EZ
28102000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2811
2812 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
2813
c68833d2
JR
28142000-06-12 Jason Rumney <jasonr@gnu.org>
2815
2816 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
2817
2818 * w32.h (EMACS_W32_H): Renamed from _NT_H_
2819
2820 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
2821
2822 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
2823
ed1056b3
GM
28242000-06-12 Gerd Moellmann <gerd@gnu.org>
2825
2826 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
2827 (syms_of_xfaces): Defsubr Sdump_colors.
2828 (x_free_colors): Don't treat b&w specially on default visual.
2829 (x_free_dpy_colors): New function.
2830 (free_face_colors): Don't check visual class; it's done
2831 in x_free_colors.
2832
2833 * xterm.c (x_frame_of_widget): New function.
2834 (x_alloc_nearest_color_for_widget): Use it.
2835 (x_copy_dpy_color): New function.
2836 (x_destroy_window): Free various colors.
2837
5050a2ef
KH
28382000-06-12 Kenichi Handa <handa@etl.go.jp>
2839
2840 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
2841
2842 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
2843
2844 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
2845
2846 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
2847
2848 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
2849
fb1b041d
DL
28502000-06-11 Dave Love <fx@gnu.org>
2851
2852 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
2853
ff96b5f4
EZ
28542000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2855
2856 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
2857
db8eeecd
GM
28582000-06-11 Gerd Moellmann <gerd@gnu.org>
2859
ed1056b3 2860 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
2861 to `XEvent *'.
2862
49b71c5f
KH
28632000-06-10 Kenichi Handa <handa@etl.go.jp>
2864
c479bd55
KH
2865 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
2866 (regex_compile): Fix the code for handling the case of single byte
2867 char and multibyte char being mixed in a range within [...].
2868
ff6a65c2
KH
2869 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
2870 and dst_multibyte members of coding.
2871
49b71c5f
KH
2872 * charset.c (update_charset_table): Update the table
2873 bytes_by_char_head.
2874 (init_charset_once): Initialize elements of bytes_by_char_head to
2875 1 except for leading codes for private charases.
2876
2877 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
2878 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
2879 sequence.
2880
9e80b57d
KR
28812000-06-09 Ken Raeburn <raeburn@gnu.org>
2882
2883 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
2884 access the data it doesn't point to.
2885
f83fe4b4
GM
28862000-06-08 Gerd Moellmann <gerd@gnu.org>
2887
2888 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 2889 will be translated to a switch-frame event when reading the
f83fe4b4
GM
2890 event queue. This is necessary because Emacs otherwise won't
2891 perform a switch-frame to a new frame until some other event, for
2892 example a keystroke event, forces it to do so. This has various
2893 effects, one visible being that the cursor of a frame created with
2894 C-x 5 2 or switched to with a window manager key binding like
2895 A-TAB stays hollow because selected_window isn't on the newly
2896 focused frame until the switch-frame is performed.
2897
2898 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
2899 generating a switch-frame event if necessary.
2900
2901 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
2902
2903 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
2904 it's an integer.
2905
0890801b
KH
29062000-06-08 Kenichi Handa <handa@etl.go.jp>
2907
2908 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
2909 charset.
2910
173cbca8
GM
29112000-06-07 Gerd Moellmann <gerd@gnu.org>
2912
3091c2a6
GM
2913 * window.c (displayed_window_lines): Take empty lines at
2914 the bottom of a window into account.
427ec082 2915
f38952fe
GM
2916 * window.c (displayed_window_lines): New function.
2917 (Fmove_to_window_line): Use displayed_window_lines to determine
2918 the number of lines to move, instead of using the window's height.
2919
2920 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
2921 to stop reading, even if the form read sets point to a different
2922 value when evaluated.
2923
427ec082 2924 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
2925 put the cursor.
2926
6ba6c818
KH
29272000-06-07 Kenichi Handa <handa@etl.go.jp>
2928
2929 * fileio.c (e_write): Free composition data if stored in
2930 coding->cmp_data.
2931
5f1aea9a
GM
29322000-06-06 Gerd Moellmann <gerd@gnu.org>
2933
666852af
GM
2934 * xdisp.c (display_line): Set row's and iterator's
2935 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
2936 Set cursor even if row ends in the middle of a character.
2937 (dump_glyph_row): Print values of new flags.
2938 (redisplay_window) <cursor movement in unchanged window>: When
2939 point has been moved forward, and PT is at the end of the cursor
2940 row, don't place the cursor in the next row if the cursor row ends
2941 in the middle of a character or at ZV.
2942
2943 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
2944 (struct glyph_row): Add starts_in_middle_of_char_p and
2945 ends_in_middle_of_char_p.
2946 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
2947 ends_in_middle_of_char_p flag.
2948 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
2949
d13f3e2e
GM
2950 * term.c (append_glyph): Revert change of 2000-06-06.
2951
2952 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
2953 padding glyph not fitting on line as whole character not
2954 fitting on line.
2955
5f1aea9a
GM
2956 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
2957 this isn't true for images with `:ascent 100'.
2958
10cda9b0
KH
29592000-06-06 Kenichi Handa <handa@etl.go.jp>
2960
ed00559d
KH
2961 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
2962 as modified if it is originally unmodified.
2963
10cda9b0
KH
2964 * term.c (encode_terminal_code): Change the way to check if
2965 terminal coding does any conversion.
2966 (append_glyph): Set glyph->pixel_width correctly.
2967
2968 * xdisp.c (display_line): While checking line continuation, pay
2969 attention to a padding glyph.
2970
1969fae2
GM
29712000-06-05 Gerd Moellmann <gerd@gnu.org>
2972
2973 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
2974
162ccef4
DL
29752000-06-05 Dave Love <fx@gnu.org>
2976
f19f32dd
DL
2977 * xdisp.c: Include fontset.h.
2978
2979 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
2980
2981 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2982
2983 * dispnew.c: Conditionally include term.h.
2984
2985 * coding.h: Declare code_convert_string_norecord.
2986
2987 * frame.h (struct frame): Use volatile unconditionally.
2988
2989 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
2990
2991 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
2992
2993 * systime.h: Protect against multiple inclusion.
2994 (timezone) [USG5_4]: Define as time_t.
2995
2996 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
2997 (Foptimize_char_table, make_temp_name): Declare.
2998
2999 * Makefile.in (xdisp.o): Depend on fontset.h.
3000
3001 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3002
3003 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3004 (Foptimize_char_table, make_temp_name): Declare.
3005
427ec082 3006 * s/irix4-0.h:
162ccef4
DL
3007 * s/irix5-0.h:
3008 * s/netbsd.h: Don't define autoconfiscated MATHERR.
3009
2082fe81
DL
30102000-06-02 Dave Love <fx@gnu.org>
3011
3012 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
3013
dcf671d2
GM
30142000-06-02 Gerd Moellmann <gerd@gnu.org>
3015
3016 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 3017 result face, set flags in that face indicating that colors may not
dcf671d2
GM
3018 be freed.
3019
3020 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
3021 glyph, use the ASCII NUL character to determine the face.
3022
d42122a3
DL
30232000-06-02 Dave Love <fx@gnu.org>
3024
3025 * sysdep.c: Conditionally include stdlib.h, unistd.h.
3026 (VFORK_RETURN_TYPE): Remove.
427ec082 3027
d42122a3
DL
3028 * config.in: Add NO_MATHERR.
3029
dd432f16
DL
30302000-06-01 Dave Love <fx@gnu.org>
3031
90aa4ea8
DL
3032 * cmds.c (internal_self_insert): Don't check
3033 Vbefore_change_function, Vafter_change_function.
3034
3035 * insdel.c (signal_before_change, signal_after_change): Likewise.
3036
3037 * buffer.c (Vbefore_change_function, Vafter_change_function):
3038 Variables and their initializations deleted.
3039
2330c9d4
DL
3040 * callint.c (Fcall_interactively): Doc fix.
3041
dd432f16
DL
3042 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
3043
bf9e8804
DL
30442000-05-31 Dave Love <fx@gnu.org>
3045
3046 * textprop.c: Revert last change -- duplicated.
3047
3694b4ab
GM
30482000-05-31 Gerd Moellmann <gerd@gnu.org>
3049
3050 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
3051 in #if 0.
3052
3053 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
3054
f14156cd
JR
30552000-05-31 Jason Rumney <jasonr@gnu.org>
3056
8119aab8
JR
3057 * search.c (Fre_search_forward, Fre_search_backward)
3058 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
3059
f14156cd
JR
3060 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
3061
4aab9be3
JR
30622000-05-30 Jason Rumney <jasonr@gnu.org>
3063
3064 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
3065 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
3066
3067 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
3068 member.
3069
3070 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
3071 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
3072 expand a nil default_filename.
3073
3074 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
3075 pointer to glyph_to_pixel_coords, not a frame.
3076
3077 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
3078 coding.h to dependencies.
3079
3080 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
3081
3082 * w32console.c (glyph_to_pixel_coords): Change first parameter to
3083 window pointer to be consistent with w32term.c and xterm.c.
3084
3085 * w32fns.c: Format and doc changes to bring closer to xfns.c.
3086 (VIETNAMESE_CHARSET): Define if not defined in system headers.
3087 (Qline_spacing, Qcenter): New variables.
3088 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
3089 (x_set_line_spacing): New function.
3090 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
3091 macros.
3092 (x_specified_cursor_type): New function.
3093 (x_set_cursor_type): Use it.
3094 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
3095 and icon strings.
3096 (validate_x_resource_name, x_get_resource_string): Measure lengths
3097 of external strings in bytes.
3098 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
3099 GetTextExtentPoint32 with NULL title.
3100 (Fx_create_frame): Initialize Qline_spacing.
3101 (w32_load_system_font): Initialize font->double_byte_p.
3102 (x_to_w32_charset): Use Vw32_charset_info_alist.
3103 (Image, busy cursor, tooltip functions): Merged changes from
3104 xfns.c. Not yet functional on Windows.
3105
3106 * w32gui.h (W32FontStruct): Add double_byte_p member.
3107
3108 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
3109 (emacs_button_translation): Use it.
3110 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
3111 in `mask' to be set.
3112
3113 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
3114 menu strings.
3115
3116 * w32term.c: Format and doc changes to bring closer to xterm.c.
3117 (w32_char_font_type): New enum.
3118 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
3119 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
3120 (w32_encode_char): New function.
3121 (x_encode_char): Removed.
3122 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
3123 x_encode_char and w32_font_is_double_byte.
3124 (x_produce_image_glyph): Use image_ascent.
3125 (x_produce_glyphs): Use new version of w32_per_char_metric and
3126 handle NULL return value. Allow extra line spacing.
3127 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
3128 (w32_get_glyph_overhangs): Remove unicode_p param. Use
3129 w32_font_type member of glyph instead.
3130 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
3131 (fast_find_position): Make sure not to consider rows not visible
3132 in the window.
3133 (w32_read_socket) [WM_MENUSELECT]: Cannot call
3134 w32_menu_display_help with input blocked, as it can abort.
3135 (x_display_and_set_cursor): Choose cursor depending
3136 on buffer-local value of cursor_type.
3137 (x_draw_bar_cursor): Add parameter WIDTH.
3138
3139 * w32term.h (CP_DEFAULT): Define.
3140 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
3141
10fc3187
GM
31422000-05-30 Gerd Moellmann <gerd@gnu.org>
3143
3144 * search.c (Fre_search_forward, Fre_search_backward)
3145 (Fposix_search_backward, Fposix_search_forward): Doc fix.
3146
d0555360
KH
31472000-05-30 Kenichi Handa <handa@etl.go.jp>
3148
3149 * coding.c (detect_coding_iso2022): Fix code for checking
3150 CODING_CATEGORY_MASK_ISO_8_2.
3151
f1ad044f
SM
31522000-05-29 Stefan Monnier <monnier@cs.yale.edu>
3153
3154 * regex.c (PREFETCH_NOLIMIT): New function.
3155 (re_match_2_internal): Use it and adjust the end_match_2 logic.
3156
84ec3b4b
GM
31572000-05-29 Gerd Moellmann <gerd@gnu.org>
3158
66254a13
GM
3159 * syntax.c (find_defun_start): Move test for
3160 open_paren_in_column_0_is_defun_start outside of the loop.
3161
49e70dec
GM
3162 * xdisp.c (redisplay_window): Really switch buffers when
3163 displaying mode lines, and temporarily set selected_frame to the
3164 frame of the window that's redisplayed.
3165
84ec3b4b
GM
3166 * xfaces.c (free_realized_faces): Block/unblock input.
3167 (free_realized_multibyte_face): Ditto.
3168
869a3a14
DL
31692000-05-29 Dave Love <fx@gnu.org>
3170
3171 * textprop.c (Qkeymap): New variable.
3172 (syms_of_textprop): Intern it.
3173
3174 * keymap.c: Include intervals.h.
3175 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
3176
3177 * Makefile.in (keymap.o): Depend on intervals.h.
3178
3179 * keyboard.c (menu_bar_items, tool_bar_items)
3180 (Fexecute_extended_command): Deal with `keymap' property.
3181 (read_key_sequence): Track map from `keymap' property as well as
3182 `local_map'.
3183
3184 * intervals.c (get_local_map): Extra arg to allow looking for
3185 `keymap' too.
3186
3187 * intervals.h (map_property): New enum.
3188 (get_local_map): Extra arg using it.
3189 (Qkeymap): Declare.
3190
84ec3b4b 3191 * lisp.h (get_local_map): Don't declare here.
869a3a14 3192
89d0c844
KH
31932000-05-29 Kenichi Handa <handa@etl.go.jp>
3194
3195 * Makefile.in (callproc.o): Depend on composite.h.
3196
3197 * callproc.c: Include composite.h.
3198 (Fcall_process): Handle composition correctly.
3199
3200 * coding.h (coding_allocate_composition_data): Extern it.
3201 (coding_restore_composition): Likewise.
3202
3203 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
3204 yet allocated, finish decoding with result
3205 CODING_FINISH_INSUFFICIENT_CMP.
3206 (coding_allocate_composition_data): Make it non-static.
3207 (coding_restore_composition): Likewise.
3208
797a084a
EZ
32092000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
3210
3211 * charset.c (syms_of_charset): Revert last change.
3212
cf872af5
EZ
32132000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3214
3215 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
3216 charsets as unibyte, with 1-column screen width. Sent by Kenichi
3217 Handa.
cf872af5 3218
5b1ae051
EZ
32192000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3220
3221 * charset.c (syms_of_charset): Set width of character sets
3222 eight-bit-control and eight-bit-graphic to 1 column.
3223
34ec9ebe
GM
32242000-05-26 Gerd Moellmann <gerd@gnu.org>
3225
3226 * config.in (HAVE_SPEED_T): New define.
3227
3228 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
3229 `extern speed_t'.
3230
dd854dc2
DL
32312000-05-26 Dave Love <fx@gnu.org>
3232
3233 * coding.c (shrink_decoding_region): Initialize eol_conversion.
3234
3235 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
3236 (Fsubr_arity): New function.
3237 (syms_of_data): Install them.
3238
ba9f8f95
KH
32392000-05-26 Kenichi Handa <handa@etl.go.jp>
3240
0f3e0672
KH
3241 * charset.c (init_charset_once): Set the table bytes_by_char_head
3242 correctly.
3243
cebefb44
KH
3244 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
3245 the default fontset to what Emacs uses by default.
0f3e0672
KH
3246 (check_registry_encoding): This function deleted.
3247 (Fset_fontset_font): Remove the adhoc condition for the default
3248 fontset. Allow cons in FONTNAME.
cebefb44 3249
0f3e0672
KH
3250 * fns.c (map_char_table): Ignore char-table entries for
3251 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 3252
7a18af49
KR
32532000-05-25 Ken Raeburn <raeburn@gnu.org>
3254
3255 * emacs.c (main): Initialize keyboard syms before initializing
3256 window code, so face names are available.
3257
d2af47df
SM
32582000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3259
3260 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3261 of an anchor at the beginning of a shy-group.
3262
fc6a6a4e
GM
32632000-05-25 Gerd Moellmann <gerd@gnu.org>
3264
3265 * xdisp.c (handle_invisible_prop): Don't try to skip over
3266 invisible text if end of text is already reached.
3267
005f0d35
DL
32682000-05-25 Dave Love <fx@gnu.org>
3269
02513cdd
DL
3270 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3271
005f0d35
DL
3272 * coding.c (encode_eol): Add null statement after label.
3273
89f6ca4e
EZ
32742000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3275
3276 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3277 2000-05-20.
3278
a4e1759e
KH
32792000-05-25 Kenichi Handa <handa@etl.go.jp>
3280
3281 * ccl.c (ccl_driver): Fix previous change.
3282
eacfd7fe
KH
32832000-05-25 Kenichi Handa <handa@etl.go.jp>
3284
46ab33a9
KH
3285 * coding.c (run_pre_post_conversion_on_str): Set point to the
3286 beginning of buffer before calling coding->post_read_conversion.
3287 (decode_coding_string): Give correct args to
3288 run_pre_post_conversion_on_str.
3289 (encode_coding_string): Likewise.
3290
eacfd7fe
KH
3291 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3292 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3293 eight-bit-graphic correctly.
3294
f8569325
DL
32952000-05-24 Kenichi HANDA <handa@etl.go.jp>
3296
3297 * fileio.c (Finsert_file_contents): Even if a file is not found,
3298 execute codes for setting up coding system. Call
3299 after-insert-file-functions unconditionally.
3300
04545643
GM
33012000-05-24 Gerd Moellmann <gerd@gnu.org>
3302
3303 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3304 BSD_PGRPS are not defined.
3305
747d90ea
KH
33062000-05-24 Kenichi Handa <handa@etl.go.jp>
3307
3308 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3309 DESCRIPTION.
3310 (syms_of_charset): Avoid building same strings.
3311
716e3b88
GM
33122000-05-23 Gerd Moellmann <gerd@gnu.org>
3313
3314 * lread.c (Fload): Add a comment about the meaning of
3315 Vuser_init_file being t.
3316
3317 * puresize.h (BASE_PURESIZE): Increase to 675000.
3318
3319 * s/gnu-linux.h (setpgrp): Don't define it here because this
3320 prevents compilation on GNU/Linux systems with glib 2.2.
3321
3322 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3323 as setpgid.
427ec082 3324
9aeb39fa
EZ
33252000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3326
3327 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
3328 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
3329 version.
3330 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3331
29ced61b
KH
33322000-05-23 Kenichi Handa <handa@etl.go.jp>
3333
0574a2ed
KH
3334 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3335 unconditionally.
3336
3d80f24d
KH
3337 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3338
3339 * term.c (encode_terminal_code): Set coding->src_multibyte
3340 properly.
3341
29ced61b
KH
3342 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3343
d7e00792
KH
33442000-05-22 Kenichi Handa <handa@etl.go.jp>
3345
c9d80d38
KH
3346 * keyboard.c (read_char): Allow character codes 128..255 to be
3347 handled by input-method-function.
3348
d7e00792
KH
3349 * insdel.c (adjust_markers_for_replace): Fix previous change.
3350 (adjust_after_replace): If PREV_TEXT is nil, call
3351 adjust_markers_for_insert, not adjust_markers_for_replace.
3352
087121cc 33532000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 3354
087121cc
GM
3355 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
3356 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
3357 [HAVE_GRANDPT]: Define.
3358 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
3359
3360 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3361 like SYSV_PTYS.
3362
3363 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3364
3365 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3366
c9671f81
KH
33672000-05-20 Kenichi Handa <handa@etl.go.jp>
3368
3369 The following changes are to handle 8-bit characters in a
3370 multibyte buffer/string without facing with byte combining
3371 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
3372 eight-bit-graphic (for 0xA0..0xFF) are introduced.
3373
3374 * Makefile.in (fns.o): Depend on charset.h.
3375
3376 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
3377 convert it to unibyte.
3378 (make_string): Use parse_str_as_multibyte, not chars_in_text.
3379
3380 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
3381 apparent char boundary.
3382 (Fset_buffer_multibyte): Convert 8-bit characters in the range
3383 0x80..0x9F to/from multibyte form.
3384
3385 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3386 to unibyte.
3387
3388 * callproc.c (Fcall_process): Always encode an argument string if
3389 it is multibyte. Setup src_multibyte and dst_multibyte members of
3390 process_coding properly.
ce75fd23 3391
c9671f81
KH
3392 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
3393 SPLIT_NON_ASCII_CHAR.
3394
3395 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
3396 as is.
3397 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
3398
3399 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
3400 variables.
3401 (SPLIT_CHARACTER_SEQ): This macro deleted.
3402 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
3403 valid.
3404 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
3405 and eight-bit-graphic.
3406 (char_to_string): Likewise. Signal an error for too large
3407 character code.
3408 (char_printable_p): Return 0 for 8-bit characters.
3409 (update_charset_table): Update iso_charset_table only when a final
3410 character is non-negative.
3411 (find_charset_in_text): Renamed from find_charset_in_str.
3412 Arguments and return value changed. Callers changed.
3413 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
3414 be -1 if CHARSET is used only internally.
3415 (Fmake_char_internal): Handle new charsets; eight-bit-control and
3416 eight-bit-graphic.
3417 (Fcharset_after): Simplified.
3418 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
3419 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
3420 (multibyte_chars_in_text): Simplified by assuming there's no
3421 invalid multibyte sequence.
3422 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3423 str_as_unibyte): New functions.
3424 (Fstring): Simpified by assuming that byte combining never
3425 happens.
3426 (init_charset_once): Initialization for
3427 LEADING_CODE_8_BIT_CONTROL.
3428 (syms_of_charset): Intern and staticpro Qeight_bit_control and
3429 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
3430 eight-bit-control and eight-bit-graphic.
3431
3432 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
3433 CHARSET_8_BIT_GRAPHIC): New macros.
3434 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
3435 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
3436 (CHARSET_REVERSE_CHARSET): Likewise.
3437 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
3438 eight-bit-graphic.
3439 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
3440 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
3441 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
3442 encounter an invalid multibyte sequence.
3443 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
3444 sequence is always valid.
3445 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
3446 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
3447 macros.
3448 (CHAR_STRING): For 8-bit characters, call char_to_string.
3449 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
3450 multibyte sequence is always valid.
3451 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
3452 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3453 str_as_unibyte): Extern them.
3454 (BCOPY_SHORT): Fix a bug.
3455 (CHAR_LEN): This macro deleted. Callers changed to use
3456 CHAR_BYTES.
3457 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
3458 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
3459 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
3460
bd4bde7f 3461 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
3462 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
3463 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
3464 EMIT_BYTES): New macros.
3465 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
3466 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
3467 macros deleted.
3468 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
3469 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
3470 check the validity of multibyte sequence.
3471 (decode_coding_emacs_mule): New function.
3472 (encode_coding_emacs_mule): New macro.
3473 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
3474 the source.
3475 (DECODE_ISO_CHARACTER): Just return a character code.
3476 (DECODE_COMPOSITION_START): Set coding->result instead of result.
3477 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
3478 EMIT_CHAR to produced decoded characters. Exit the loop only by
3479 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
3480 block here.
3481 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
3482 only position codes for an invalid character.
3483 (encode_designation_at_bol): Return new destination pointer. 5th
3484 arg DSTP is changed to DST.
3485 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
3486 from the source by ONE_MORE_CHAR. Don't handle the case of last
3487 block here.
3488 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
3489 macros deleted.
3490 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
3491 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
3492 TWO_MORE_BYTES to fetch a byte from the source.
3493 (encode_eol): Pay attention to coding->src_multibyte.
3494 (detect_coding, detect_eol): Preserve members src_multibyte and
3495 dst_multibyte.
3496 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
3497 (encoding_buffer_size): Set magnification to 3 for all coding
3498 systems that require encoding.
3499 (ccl_coding_driver): For decoding, be sure that the result is
3500 valid multibyte sequence.
3501 (decode_coding): Initialize coding->errors and coding->result.
3502 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
3503 and raw-text, always call decode_eol. Handle the case of last
3504 block here. If not coding->dst_multibyte, convert the resulting
3505 sequence to unibyte.
3506 (encode_coding): Initialize coding->errors and coding->result.
3507 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
3508 and raw-text, always call encode_eol. Handle the case of last
3509 block here.
3510 (shrink_decoding_region, shrink_encoding_region): Detect cases
3511 that we can't skip data more rigidly.
3512 (code_convert_region): Setup src_multibyte and dst_multibyte
3513 members of coding. For decoding, if the buffer is multibyte,
3514 convert the source sequence to unibyte in advance. For encoding,
3515 if the buffer is multibyte, convert the resulting sequence to
3516 multibyte afterward.
3517 (run_pre_post_conversion_on_str): New function.
3518 (code_convert_string): Deleted and divided into the following two.
3519 (decode_coding_string, encode_coding_string): New functions.
3520 (code_convert_string1, code_convert_string_norecord): Call one of
3521 above.
3522 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
3523 MAKE_NON_ASCII_CHAR.
3524 (Fset_terminal_coding_system_internal,
3525 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
3526 and dst_multibyte members.
3527 (init_coding_once): Initialize iso_code_class with new enum
3528 ISO_control_0 and ISO_control_1.
3529
3530 * coding.h (enum iso_code_class_type): Member ISO_control_code is
3531 devided into ISO_control_0 and ISO_control_1.
3532 (struct coding_system): New members src_multibyte, dst_multibyte,
3533 errors, and result. Delete member fake_multibyte.
3534 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
3535 nonzero.
3536 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
3537 nonzero.
3538
3539 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
3540 (Faset): Likewise.
3541
3542 * editfns.c (Fformat): Be sure to convert 8-bit characters to
3543 multibyte form.
3544 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
3545 combining occurs.
3546 (Ftranspose_region): Delete codes for handling byte combining.
3547
3548 * fileio.c (Finsert_file_contents): Setup src_multibyte and
3549 dst_multibyte members of coding. On handling REPLACE on unibyte
3550 buffer, convert the result of decode_coding to unibyte. On
3551 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 3552 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
3553 multibyteness of the source (buffer or string).
3554
3555 * fns.c (concat): Handle 8-bit characters correctly.
3556 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
3557 unibyte in the result.
3558 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
3559 valid multibyte form in the result.
3560 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3561 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
3562 return -1, signal an error.
3563 (base64_encode_1): New arg MULTIBYTE. Get each character by
3564 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
3565 character is found, return -1.
3566 (Fbase64_decode_region): Delete codes for handling byte-combining.
3567 Treat each decoded byte as a unibyte character.
3568 (Fbase64_decode_string): Return unibyte string.
3569 (Fcompare_strings, concat, string_byte_to_char): Use
3570 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
3571 FETCH_STRING_CHAR_ADVANCE.
3572 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3573 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
3574
3575 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
3576 SPLIT_NON_ASCII_CHAR.
3577 (fontset_ref_via_base, fontset_set): Likewise
3578
3579 * insdel.c (adjust_markers_for_record_delete): Deleted.
3580 (adjust_markers_for_insert): Argument changed. Caller changed.
3581 (adjust_markers_for_replace): Likewise.
3582 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
3583 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
3584 (copy_text): Delete unused local varialbe c_save. For converting
3585 to multibyte, be sure to make all 8-bit characters in valid
3586 multibyte form.
3587 (count_size_as_multibyte): Handle 8-bit characters correctly.
3588 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3589 adjust_after_replace, replace_range, del_range_2)
3590 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
3591 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3592 adjust_after_replace, replace_range, del_range_2) Delete codes for
3593 handling byte combining.
3594 (adjust_before_replace): Deleted.
427ec082 3595
c9671f81
KH
3596 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
3597 SPLIT_NON_ASCII_CHAR.
3598 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3599 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
3600 unconditionally.
3601 (Fkey_description): Likewise.
3602
3603 * lread.c (read1): On reading multibyte string, be sure to make
3604 all 8-bit chararacters in valid multibyte form.
3605 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3606
3607 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
3608 unconditionally.
3609
3610 * process.c (Fstart_process): GCPRO current_dir before calling
3611 Ffind_operation_coding_system. Encode arguments here.
3612 (create_process): Don't encode arguments here. Setup
3613 src_multibyte and dst_multibyte members of struct coding.
3614 (read_process_output): Setup src_multibyte and dst_multibyte
3615 members of struct coding. If the output is to multibyte buffer,
3616 always decode the output of the process. Adjust the
3617 representation of 8-bit characters to the multibyteness of the
3618 output.
3619 (send_process): Setup coding->src_multibyte according to the
3620 multibyteness of the source.
3621
3622 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
3623 unconditionally.
3624 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
3625 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
3626
3627 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
3628 CHAR_LEN.
3629
3630 * w16select.c (Fw16_set_clipboard_data): Setup members
3631 src_multibyte and dst_multibyte of coding. Adjusted for the
3632 change for find_charset_in_str.
3633 (Fw16_get_clipboard_data): Likewise.
3634
3635 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
3636 dst_multibyte of coding.
3637 (x_to_w32_font): Likewise.
3638
3639 * w32select.c (Fw32_set_clipboard_data): Setup members
3640 src_multibyte and dst_multibyte of coding. Adjusted for the
3641 change for find_charset_in_str.
3642 (Fw32_get_clipboard_data): Likewise.
3643
3644 * xdisp.c (get_next_display_element): Handle 8-bit characters
3645 correctly.
3646 (next_element_from_display_vector): Use CHAR_BYTES instead of
3647 CHAR_LEN.
3648 (disp_char_vector): Use SPLIT_CHAR instead of
3649 SPLIT_NON_ASCII_CHAR.
3650
3651 * xselect.c (selection_data_to_lisp_data): Setup members
3652 src_multibyte and dst_multibyte of coding. Adjusted for the
3653 change for find_charset_in_str.
3654 (lisp_data_to_selection_data): Likewise.
3655
5f64c9e0
GM
36562000-05-19 Gerd Moellmann <gerd@gnu.org>
3657
2b63d473
GM
3658 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
3659 buffer.
3660
5f64c9e0
GM
3661 * dispextern.h (Vimage_types): Add extern declaration.
3662
3663 * xdisp.c (Vimage_types): Moved here from xfns.c.
3664 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
3665
3666 * xfns.c (Vimages_types): Moved to xdisp.c.
3667 (syms_of_xfns): Move `image-types' to xdisp.c.
3668
3669 * w32fns.c (Vimage_types): Removed.
3670 (syms_of_w32fns): Remove `image-types'.
3671
813086ea
KH
36722000-05-18 Kenichi Handa <handa@etl.go.jp>
3673
3674 * fns.c (map_char_table): Pay attention to character number of
3675 charset. Check the validity of charset at the first level. For
3676 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
3677 the default value.
3678
3679 * fontset.c: Include "buffer.h".
3680 (fs_load_font): If the face has fontset, record the face ID in
3681 that fontset.
3682 (Finternal_char_font): New function.
3683 (accumulate_font_info): New function.
3684 (Ffontset_info): Rewritten for the new fontset implementation.
3685 (syms_of_fontset): Register Vdefault_fontset in the first element
3686 of Vfontset_table. Include Vdefault_fontset in
3687 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
3688 function.
3689
bdaebbf0
DL
36902000-05-16 Dave Love <fx@gnu.org>
3691
3692 * m/iris5d.h: Deleted -- unused.
3693
cb613bb8
GM
36942000-05-16 Gerd Moellmann <gerd@gnu.org>
3695
b15f3b77
GM
3696 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
3697 `invalid' instead of `illegal'.
3698
3699 * indent.c (Fmove_to_column): When ending within a tab, insert
3700 spaces first so that markers at the end of the tab get adjusted.
3701
835c1b36
GM
3702 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
3703 buffer list that wasn't selected in that frame.
3704
cb613bb8
GM
3705 * filelock.c (get_boot_time): To obtain an 8 char file name, which
3706 is needed on mescaline, use a 2 char prefix, and call
3707 make_temp_name with second arg non-zero.
3708
3709 * fileio.c (make_temp_name): New function, extracted from
3710 Fmake_temp_name.
3711 (Fmake_temp_name): Use it.
3712
f685bea9
EZ
37132000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3714
3715 * window.c (coordinates_in_window): Subtract 1 when computing
3716 right_x.
3717
a1b8d58b
GM
37182000-05-15 Gerd Moellmann <gerd@gnu.org>
3719
3720 * Makefile.in (lisp): Add env.elc.
3721
3722 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
3723
a265079f
GM
37242000-05-12 Gerd Moellmann <gerd@gnu.org>
3725
3726 * search.c (Freplace_match): Handle case of `\N' in the
3727 replacement when there's no group N.
3728
da4496b6
GM
37292000-05-11 Gerd Moellmann <gerd@gnu.org>
3730
0ace421a
GM
3731 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
3732 of the message to message_dolog.
3733
1172eb8d
GM
3734 * keyboard.c (read_char): Don't clear current message for help
3735 events; let the code handling help events handle this. Change
3736 code detecting help events that should be ignored.
3737
da4496b6
GM
3738 * xdisp.c (handle_single_display_prop): Don't try to set PT if
3739 we're interating over a string.
3740
0623e40f
DL
37412000-05-09 Dave Love <fx@gnu.org>
3742
3743 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
3744 that offset before writing. Move gcpro region past call of
3745 Ffile_regular_p.
3746
bae2503b
DL
37472000-05-04 Dave Love <fx@gnu.org>
3748
3749 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
3750
ec82fb2f
GM
37512000-05-04 Gerd Moellmann <gerd@gnu.org>
3752
3753 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
3754 of inserted characters when BUF equals the current buffer, and PT
3755 is in front of or equal to FROM.
3756
cbf18892
GM
37572000-05-03 Gerd Moellmann <gerd@gnu.org>
3758
4ff40dd0
GM
3759 * xdisp.c (handle_single_display_prop): If display property value
3760 is invalid, or something not supported on the frame, restore
3761 iterator's position to what it was initially. Make sure to return
3762 0 for invalid and unsupported property values.
3763
cbf18892
GM
3764 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
3765 that x_per_char_metric returns null.
3766
1b0672c3
GM
37672000-05-02 Gerd Moellmann <gerd@gnu.org>
3768
576da55d
GM
3769 * xterm.h (struct face): Add forward declaration.
3770 (struct image): Ditto.
3771 (image_ascent): Add prototype.
3772
3773 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3774 (x_draw_image_relief, x_draw_image_foreground_1): Call function
3775 image_ascent instead of using IMAGE_ASCENT.
3776
3777 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
3778 (IMAGE_ASCENT): Removed.
3779
3780 * xfns.c (Qcenter): New variable.
3781 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
3782 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
3783 (image_ascent): New function.
3784 (lookup_image): Recognize `:ascent center'.
3785 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3786 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3787 (xbm_load): Don't set image's ascent here.
3788 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
3789 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
3790 check ascent values here.
3791 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
3792 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
3793 (syms_of_xfns): Initialize Qcenter.
3794
1b0672c3
GM
3795 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
3796 to the limits, increase the limits.
3797
0d7811ed
KH
37982000-05-01 Kenichi Handa <handa@etl.go.jp>
3799
3800 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
3801 Check Vfont_encoding_alist against the full name of the opened
3802 font.
3803
a943a5ca
GM
38042000-04-28 Gerd Moellmann <gerd@gnu.org>
3805
3806 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
3807 taller than the window.
3808
5dba1e29
KH
38092000-04-28 Kenichi Handa <handa@etl.go.jp>
3810
3811 * xfaces.c (realize_x_face): Fix the argument of the second
3812 xassert. BASE_FACE may not be a face for ASCII.
3813
353964e3
GM
38142000-04-27 Gerd Moellmann <gerd@gnu.org>
3815
c76e04a8
GM
3816 * print.c (print_object): Treat print-length < 0 as nil.
3817
3818 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
3819
3820 * s/freebsd.h (TERMCAP_OBJ): Removed.
3821 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
3822
3823 * lread.c (read1): Don't treat period followed by certain
3824 characters as symbol start.
3825
3826 * xfns.c (slurp_file): New function.
3827 (xbm_image_p): Handle case of in-memory XBM files.
3828 (xbm_scan): Rewritten to work on memory buffers instead of files.
3829 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
3830 Work on memory buffers instead of files. If DATA is null test
3831 if buffer looks like an in-memory XBM file.
3832 (xbm_load_image): Renamed from xbm_load_image_file. Work on
3833 memory buffers instead of files.
3834 (xbm_file_p): New function.
3835 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
3836
353964e3
GM
3837 * lread.c (end_of_file_error): New function.
3838 (read1): Call it instead of signaling `end-of-file' directly.
3839
427ec082 3840 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
3841 with Fprinc instead of Fprin1.
3842
24d744ac
KR
38432000-04-26 Ken Raeburn <raeburn@gnu.org>
3844
3845 * window.c (freeze_window_start): Check that minibuffer scroll
3846 window isn't nil before extracting the window structure pointer
3847 from it.
3848
3849 * undo.c (record_delete): If we hit the end of the undo list, stop
3850 picking elements apart.
3851
7464346d
GM
38522000-04-26 Gerd Moellmann <gerd@gnu.org>
3853
3854 * xdisp.c (display_line): If lines are continued, restore
3855 iterator's ascent/descent information to the values before the
3856 first glyph not fitting on the line.
3857
612839b6
GM
38582000-04-25 Gerd Moellmann <gerd@gnu.org>
3859
3860 * xdisp.c (try_window_id) <all changes above window start>: Adjust
3861 positions in glyph matrix. Don't compute new window end
3862 positions.
3863
3864 * dispnew.c (increment_matrix_positions): Renamed from
3865 increment_glyph_matrix_buffer_positions.
3866 (increment_row_positions): Renamed from
3867 increment_glyph_row_buffer_positions.
3868
3869 * dispextern.h: Change names of renamed functions from dispnew.c
3870 in prototypes.
3871
cc181e95
GM
38722000-04-24 Gerd Moellmann <gerd@gnu.org>
3873
abfcc168
GM
3874 * fileio.c (Fdo_auto_save): Create directories for auto-save
3875 list file if necessary.
3876
cc181e95
GM
3877 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
3878 from buffer or frame.
3879 (automatic_hscrolling_p): New variable.
3880 (hscroll_windows): Scroll windows horizontally only if automatic
3881 hscrolling is allowed.
3882 (syms_of_xdisp): New variable `automatic-hscrolling'.
3883
3884 * frame.h (struct frame): Add member extra_line_spacing.
3885
3886 * xfns.c (x_set_line_spacing): New function.
3887 (Fx_create_frame): Set line spacing from resources.
3888 (Qline_spacing): New variable.
3889 (syms_of_xfns): Initialize Qline_spacing.
427ec082 3890
cc181e95
GM
3891 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
3892
3893 * buffer.c (init_buffer_once): Handle extra_line_spacing.
3894 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 3895 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
3896 extra_line_spacing from default value.
3897 (init_buffer_once): Initialize default value of extra_line_spacing.
3898
3899 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
3900 and extra3.
3901
3902 * xterm.c (x_produce_glyphs): Remove reference to struct it's
3903 prompt_width. Add extra line spacing.
3904
3905 * term.c (produce_glyphs): Remove reference to struct it's
3906 prompt_width.
3907
3908 * dispextern.h (struct it): Remove member prompt_width, add
3909 extra_line_spacing.
3910
58827478
GM
39112000-04-22 Gerd Moellmann <gerd@gnu.org>
3912
3913 * dispnew.c (update_frame_line): When writing a whole line, make
3914 sure cursor is in the right row afterwards, otherwise a use of
3915 capability `ch' in cmgoto might leave the cursor in the row below.
3916
25a87f42
GM
39172000-04-21 Gerd Moellmann <gerd@gnu.org>
3918
3919 * lisp.h (struct Lisp_Buffer_Cons): Remove.
3920
3921 * keyboard.c (timer_check): Fix typo in comment.
3922
54edf5c2
KH
39232000-04-21 Kenichi Handa <handa@etl.go.jp>
3924
3925 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
3926 name change: ch -> character.
3927
3a64eef5
GM
39282000-04-20 Gerd Moellmann <gerd@gnu.org>
3929
3930 * keyboard.c (echo_message_buffer): New variable.
3931 (echo_now): Set echo_message_buffer to the echo area buffer used
3932 to display the echo.
3933 (cancel_echoing): Reset echo_message_buffer to nil.
3934 (read_char): Code rewritten that handles canceling an echo or
3935 echoing a dash, respectively.
3936
3937 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
3938 directory doesn't exist.
3939
6142fdcb
DL
39402000-04-19 Dave Love <fx@gnu.org>
3941
3942 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
3943 (concat): Don't allow numeric args.
3944 (Fconcat): Doc change.
6142fdcb 3945
ac6b5352
SM
39462000-04-19 Stefan Monnier <monnier@cs.yale.edu>
3947
3948 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
3949 instead define end_match(1|2) more carefully.
3950 Use GET_CHAR_BEFORE_2 for `begline'.
3951
cb9215e4
GM
39522000-04-19 Gerd Moellmann <gerd@gnu.org>
3953
5e3dac3f
GM
3954 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
3955 on 64-bit systems where NULL is defined as `0'.
3956
3957 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
3958 the `variable argument list' to make it work on Alpha.
3959
cb9215e4
GM
3960 * m/alpha.h (_LP64) [!_LP64]: Define.
3961 (ORDINARY_LINK): Define for NetBSD.
3962
3963 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 3964
f532dca0
DL
39652000-04-19 Dave Love <fx@gnu.org>
3966
c750667e
DL
3967 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
3968 change.
3969
3970 * Makefile.in (LIBS): Don't use.
3971 (GETLOADAVG_OBJ): Define again.
3972 (otherobj): Add GETLOADAVG_OBJ.
3973
f532dca0
DL
3974 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
3975
1c7e22fd
GM
39762000-04-18 Gerd Moellmann <gerd@gnu.org>
3977
f6d3257b
GM
3978 * lread.c (read_filtered_event): Cancel and start busy cursor.
3979
427ec082 3980 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
3981 that the per-character metrics may be null.
3982
e10f64e7
GM
39832000-04-17 Gerd Moellmann <gerd@gnu.org>
3984
0daee095
GM
3985 * buffer.c (clone_per_buffer_values): New function.
3986 (Fmake_indirect_buffer): Add optional argument CLONE. Call
3987 clone_per_buffer_values if CLONE is not nil.
3988
e10f64e7
GM
3989 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
3990
38687d43
DL
39912000-04-16 Dave Love <fx@gnu.org>
3992
3993 * Makefile.in: Remove obsolete localcpp stuff.
3994 (GETLOADAVG_OBJ): Don't define.
3995 (obj): Move LIBOBJS...
3996 (otherobj): ... to here.
3997 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
3998 whitespace-only lines after the continuation (Irix).
3999
c21c7262
GM
40002000-04-14 Gerd Moellmann <gerd@gnu.org>
4001
4002 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
4003
4004 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
4005
314767c0
DL
40062000-04-14 Dave Love <fx@gnu.org>
4007
4008 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
4009 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
4010 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
4011 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
4012 NLIST_STRUCT.
4013
4014 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
4015 autoconfiscated HAVE_GETLOADAVG.
4016
4017 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
4018 BROKEN_MKTIME.
4019
a2522dca
GM
40202000-04-14 Gerd Moellmann <gerd@gnu.org>
4021
4022 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
4023 (fill_in_lock_file_name): Avoid existing files that aren't
4024 links.
4025
33744b5d
DL
40262000-04-14 Dave Love <fx@gnu.org>
4027
c21c7262 4028 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
4029 (INTERVAL_SRC): Convert to make variable.
4030 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
4031 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
4032 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
4033 add LIBOBJS.
4034 (SOME_MACHINE_OBJECTS): Remove interval stuff.
4035 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
4036 (shortlisp): Add facemenu, float-sup, frame.
4037 (SOME_MACHINE_LISP): Remove them from here.
4038 (LIBES): Change unused LDLIBS to autoconf LIBS.
4039
4040 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
4041
9d3d5916
KH
40422000-04-14 Kenichi Handa <handa@etl.go.jp>
4043
4044 * composite.c (update_compositions): If FROM and TO are not in a
4045 valid range, do nothing.
4046
198e3c7a
GM
40472000-04-13 Gerd Moellmann <gerd@gnu.org>
4048
4049 * tparam.c (tparam1): Abort when encountering an unknown
4050 `%'-specifier.
4051
4052 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
4053 terminfo.o.
4054
4055 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
4056 as TERMCAP_OBJ.
4057
055a28c9
EZ
40582000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4059
4060 * fileio.c (a_write): Remove redundant semi-colons.
4061 (e_write): Return -1 if failed to write all the data.
4062 This fixes the changes made at 1999-12-15.
4063
f5c75033
DL
40642000-04-12 Dave Love <fx@gnu.org>
4065
4066 * fns.c (mapcar1): Test for null vals to support mapc.
4067 (Fmapc): New function.
4068
0c3cfc51
EZ
40692000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
4070
4071 * msdos.c (NUM_MOUSE_BUTTONS): Define.
4072 (IT_frame_up_to_date): Support the buffer local value of
4073 cursor-type, if defined.
4074
33465a31
DL
40752000-04-10 Dave Love <fx@gnu.org>
4076
4077 * editfns.c (preceding-char, following-char): Doc fix.
4078
6ed56568
KR
40792000-04-10 Ken Raeburn <raeburn@gnu.org>
4080
4081 * Makefile.in (temacs): Revert 2000-03-12 change.
4082
7cf80d4e
JR
40832000-04-10 Jason Rumney <jasonr@gnu.org>
4084
4085 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
4086
34f3f342
GM
40872000-04-10 Gerd Moellmann <gerd@gnu.org>
4088
1a1b1895
GM
4089 * xdisp.c (setup_echo_area_for_printing): Choose an echo
4090 area buffer, if it's not set up yet.
4091
34f3f342
GM
4092 * indent.c (compute_motion): Set immediate_quit.
4093
be0dbdab
GM
40942000-04-09 Gerd Moellmann <gerd@gnu.org>
4095
c45be9ac
GM
4096 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
4097 variable.
4098 (realize_tty_face): Suppress boldness if colors are the inverse of
4099 the default colors, and tty_suppress_bold_inverse_default_colors_p
4100 is set.
4101 (Ftty_suppress_bold_inverse_default_colors): New function.
4102 (syms_of_xfaces): Defsubr it.
4103
be0dbdab
GM
4104 * buffer.c (Frestore_buffer_modified_p): New function.
4105 (syms_of_buffer): Defsubr it.
4106
e8413c3b
KR
41072000-04-08 Ken Raeburn <raeburn@gnu.org>
4108
87f67317
KR
4109 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
4110 charset id (int) argument, not a charset (Lisp_Object).
4111
e8413c3b
KR
4112 * coding.h (code_convert_string): Declare.
4113 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
4114 object, as the fourth argument to code_convert_string.
4115
4116 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
4117 value.
4118 (Fset_fontset_font): Use EQ to compare lisp objects.
4119
7c752c80
KR
41202000-04-05 Ken Raeburn <raeburn@gnu.org>
4121
c0333abc
KR
4122 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
4123 a pointer that looks like a lisp object.
4124 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
4125 zero, instead see whether it's an integer object, since they can't
4126 have intervals.
4127 (GET_INTERVAL_OBJECT): Simply assign to the destination.
4128
7c752c80
KR
4129 * dispnew.c (allocate_matrices_for_frame_redisplay,
4130 direct_output_forward_char): Use X(U)INT and make_number as needed
4131 to convert between (unsigned) int values and lisp integers.
4132 * keyboard.c (read_key_sequence): Likewise.
4133 * lread.c (substitute_object_recurse): Likewise.
4134 * fns.c (concat, hash_lookup, hash_remove): Likewise.
4135 * minibuf.c (do_completion, Fminibuffer_complete_word,
4136 Fminibuffer_completion_help): Likewise.
4137 * term.c (produce_special_glyphs): Likewise.
4138
4139 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
4140 * print.c (print_preprocess, print_object): Likewise.
4141
4142 * search.c (compile_pattern): Use NILP when checking for nil.
4143
74e49b38
KR
4144 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
4145 __OPTIMIZE__]: Provide a GNU C macro version that handles
4146 lisp-object unions.
4147 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
4148 field, to better cope with ENABLE_CHECKING and calls that modify a
4149 Lisp_Object using its old value.
4150
685e5ed2
GM
41512000-04-04 Gerd Moellmann <gerd@gnu.org>
4152
c407c570
GM
4153 * window.c (compare_window_configurations): Signal an error
4154 if parameters C1 or C2 aren't window configurations.
4155
685e5ed2
GM
4156 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
4157 AFTER_POTENTIAL_GC calls around calls to functions that can
4158 signal an error and thus invoke the debugger.
4159
587a49ab
GM
41602000-04-03 Gerd Moellmann <gerd@gnu.org>
4161
62f20204
GM
4162 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
4163 an error if decoding fails.
4164
587a49ab
GM
4165 * keyboard.c (lispy_mouse_names): Variable removed.
4166 (Vlispy_mouse_stem): New variable.
4167 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
4168 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
4169 for any mouse button number. Increase size of mouse_syms and
4170 button_down_location as needed. Call modify_event_symbol with
4171 different arguments.
4172 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
4173 Call modify_event_symbol with different arguments.
4174 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
4175 for any button number. Call modify_event_symbol with different
4176 arguments.
4177 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
4178 Accept a string for NAME_ALIST_OR_STEM.
4179
4180 * lisp.h (larger_vector): Add prototype.
4181
4182 * fns.c (larger_vector): Make externally visible.
4183
4184 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
4185
2d1675e4
SM
41862000-04-02 Stefan Monnier <monnier@cs.yale.edu>
4187
4188 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
4189 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
4190 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
4191 we are between str1 and str2.
4192 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
4193 (PATFETCH): Use `TRANSLATE'.
4194 (PATFETCH_RAW): Fetch multibyte char if applicable.
4195 (PATUNFETCH): Remove.
4196 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
4197 When writing a char, write it directly into the pattern buffer rather
4198 than going needlessly through a temp char-array.
4199 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
4200 multibyte magic and remove the useless `#ifdef emacs'.
4201 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
4202 buffer.
4203
4204 * regex.h (struct re_pattern_buffer): Make field `multibyte'
4205 conditional on `emacs'.
4206
4207 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
4208
cc2d8c6b
KR
42092000-04-01 Ken Raeburn <raeburn@gnu.org>
4210
4211 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
4212 non-union-type versions of XMARK and friends here, because XMARK
4213 and friends won't work on an integer field if NO_UNION_TYPE is not
4214 defined.
4215 (make_number): Define as a function if it's not defined as a
4216 macro.
4217
09654086
KR
4218 * composite.c (run_composite_function): Use NILP when checking for
4219 nil.
4220 (syms_of_composite): Delete local var NARGS, pass an int as first
4221 argument to Fmake_hash_table.
4222
2387b382
KR
4223 * editfns.c (text_property_stickiness): Use NILP to test
4224 Lisp_Object boolean value.
4225 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
4226 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
4227 problems reading from and changing the same lisp value in an
4228 XSETSTRING call.
4229
27660e89
GM
42302000-04-01 Gerd Moellmann <gerd@gnu.org>
4231
4232 * term.c (TN_no_color_video): New variable.
4233 (term_init): Intitialize TN_no_color_video.
4234 (enum no_color_bit): New enumeration.
4235 (MAY_USE_WITH_COLORS_P): New macro.
4236 (turn_on_face): Use it to determine if attributes may be used
4237 combined with colors.
4238
3578db3c
KR
42392000-04-01 Ken Raeburn <raeburn@gnu.org>
4240
4241 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
4242 with int lvalues via casts; instead, just yield lisp object
4243 lvalues.
4244 (enlarge_window): Variable sizep now points to Lisp_Object. Use
4245 proper accessor macros.
4246 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
4247 (grow_mini_window): Fix typo getting int value of root->height.
4248
6fc556fd
KR
4249 * xdisp.c (compute_string_pos): Fix order of arguments to
4250 string_pos_nchars_ahead.
4251 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
4252 count arg to variable-arg routines like Frun_hook_with_args and
4253 Fformat.
587a49ab
GM
4254 (back_to_previous_visible_line_start)
4255 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
4256 fixed-arg routines like Fget_char_property and Fmake_string.
4257 (reconsider_clip_changes): Use XINT when comparing integer lisp
4258 objects, or passing them as int arguments.
587a49ab
GM
4259 (mark_window_display_accurate, insert_left_trunc_glyphs)
4260 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
4261 storing or passing integer values as lisp objects.
4262 (set_cursor_from_row, highlight_trailing_whitespace): Use
4263 INTEGERP, not implicit test against zero, for glyph object.
4264 (try_window_id): Don't use make_number when we want an int value.
4265
4266 * xfaces.c (xlfd_symbolic_value): Make last argument a
4267 Lisp_Object, to be consistent with callers.
4268 (Fbitmap_spec_p): Use XINT to get numeric value of height.
4269 (lface_hash): Apply XFASTINT to lisp values before folding in.
4270
4271 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
4272 fill in window width and height. Pass an int, not a lisp object,
4273 as first arg to Finsert.
4274
6e7b2457
GM
42752000-04-01 Gerd Moellmann <gerd@gnu.org>
4276
610d841e
GM
4277 * xfaces.c (realize_basic_faces): Block input while realizing
4278 the faces.
4279
6e7b2457
GM
4280 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4281
4282 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4283
aa110c0c
GM
42842000-03-31 Gerd Moellmann <gerd@gnu.org>
4285
4286 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 4287 or ASCII, handle case that per-char metric is null.
aa110c0c 4288
8801a864
KR
42892000-03-30 Ken Raeburn <raeburn@gnu.org>
4290
c6129d7e
KR
4291 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4292
8801a864
KR
4293 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
4294 XSUBR, XBUFFER): Verify correct object type before returning
4295 pointer, using eassert.
4296 * frame.h (XFRAME): Likewise.
4297
4298 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
4299 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
4300 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
4301 type.
4302 * data.c (set_internal): Likewise.
4303 * dispextern.h (WINDOW_WANTS_MODELINE_P,
4304 WINDOW_WANTS_HEADER_LINE_P): Likewise.
4305 * fileio.c (auto_save_1): Likewise.
4306 * insdel.c (check_markers): Likewise.
4307 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
4308 * undo.c (record_insert): Likewise.
4309 * vmsproc.c (child_sig): Likewise.
4310 * window.c (unshow_buffer, window_loop): Likewise.
4311 * xterm.c (x_erase_phys_cursor): Likewise.
4312
8e7af858
GM
43132000-03-30 Gerd Moellmann <gerd@gnu.org>
4314
4315 * xfns.c (free_image_cache): Free the cache structure itself
4316 last, after all its members have been freed.
4317
4318 * lisp.h (xstrdup): Add prototype.
4319
4320 * alloc.c (xstrdup): Moved here from xfaces.c.
4321 (allocating_for_lisp): Variable removed.
4322 (lisp_malloc): Block input around the calls to malloc and
4323 mem_insert.
4324
4325 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4326 of Fsymbol_value.
4327 (xstrdup): Moved to alloc.c.
4328
e0b8c689
KR
43292000-03-29 Ken Raeburn <raeburn@gnu.org>
4330
b96f9fb7
KR
4331 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4332
4333 * emacs.c (main): Fix sense of no-loadup test.
4334
e0b8c689
KR
4335 * config.in (ENABLE_CHECKING): Undef.
4336
4337 * lisp.h (struct interval): Replace "parent" field with a union of
4338 interval pointer and Lisp_Object; add new bitfield to use as
4339 discriminant. Change other flag fields to bitfields.
4340 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
4341 is defined and the supplied test fails, print a message and
4342 abort.
4343 (eassert): New macro. Use CHECK to provide an assert-like
4344 facility.
4345
4346 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
4347 pointers; abort if the value looks like a lisp object.
4348 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
4349 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
4350 Modify for new interval parent definition.
4351
4352 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
4353 UNMARK_BALANCE_INTERVALS): Update references that need an
4354 addressable lisp object in the interval structure.
4355 (die): New function.
4356 (suppress_checking): New variable.
4357
4358 * intervals.c (interval_start_pos): Just return 0 if there's no
4359 parent object.
4360
f83c5440
GM
43612000-03-29 Gerd Moellmann <gerd@gnu.org>
4362
4363 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4364 and earlier Emacs versions.
4365
4366 * keyboard.c (Ftop_level): Cancel busy-cursor.
4367
4368 * eval.c (call_debugger): Cancel busy-cursor.
4369
fdce64ff
KH
43702000-03-29 Kenichi Handa <handa@etl.go.jp>
4371
4372 * search.c (Freplace_match): Adjust multibyteness of the current
4373 buffer and NEWTEXT. Free allocated memory before signaling an
4374 error.
4375
f6a3f532
SM
43762000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4377
4378 * regex.c (analyse_first): New function obtained by ripping out most
4379 of re_compile_fastmap and generalizing it a little bit so that it
4380 can also just return whether a given (sub)pattern can match the empty
4381 string or not.
4382 (regex_compile): Use `analyse_first' to decide whether the loop-check
4383 needs to be done or not for *, +, *? and +? (the loop check is costly
4384 for non-greedy repetition).
4385 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
4386
e9b309ac
DL
43872000-03-28 Dave Love <fx@gnu.org>
4388
bb15bd9a
DL
4389 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4390 alpha.
4391
e9b309ac
DL
4392 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4393
ed0767d8
SM
43942000-03-27 Stefan Monnier <monnier@cs.yale.edu>
4395
4396 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
4397 an expression.
4398 (enum re_opcode_t): Update description of succeed_n.
4399 (PATFETCH): Always define.
4400 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
4401 operators, char classes, shy-groups and intervals).
4402 Optimize special cases of intervals so as to only use succeed_n and
4403 jump_n when really needed.
4404 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
4405 that we don't have to handle the special cases any more.
4406 Simplify on_failure_jump handling as well.
4407
e11e7e46
JR
44082000-03-28 Jason Rumney <jasonr@gnu.org>
4409
4410 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
4411
88faab89
GM
44122000-03-27 Gerd Moellmann <gerd@gnu.org>
4413
182ff242
GM
4414 * s/freebsd.h (GC_SETJMP_WORKS): Define.
4415
4416 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 4417
182ff242
GM
4418 * alloc.c (mark_maybe_object): New function.
4419 (mark_memory): Use it.
4420 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
4421 (setjmp_tested_p, longjmp_done): New variables.
4422 (test_setjmp): New function.
4423 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
4424 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
4425
c1005d06
GM
4426 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4427 to DEC_TEXT_POS and INC_TEXT_POS.
4428
4429 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
4430 with parameter MULTIBYTE_P.
4431
427ec082 4432 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
4433 MULTIBYTE_P.
4434
7439e5b9 4435 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
4436 buffers because it looks for multibyte character byte sequences
4437 which don't exist in unibyte text.
7439e5b9 4438
d9c545da
GM
4439 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
4440
11fd416e 4441 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
4442 [DEBUG_X_COLORS]: New functions.
4443 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
4444
4445 * xfns.c (x_set_cursor_color): Get color reference counts right.
4446
4447 * xterm.c (x_copy_color): New function.
4448 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
4449
4450 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
4451 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
4452 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
4453 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
4454 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
4455 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
4456 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
4457 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
4458 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
4459 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
4460
11fd416e
GM
4461 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
4462 names for handling per-buffer variables.
d9c545da
GM
4463
4464 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
4465 instead of MAX_BUFFER_LOCAL_VARS.
4466 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
4467
4468 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
4469
88faab89
GM
4470 * xfns.c (x_specified_cursor_type): New function.
4471 (x_set_cursor_type): Use it.
4472
4473 * buffer.h (struct buffer): Add cursor_type.
4474
d80f42b7
SM
44752000-03-26 Stefan Monnier <monnier@cs.yale.edu>
4476
4477 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 4478 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 4479 opcode.
d80f42b7
SM
4480 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
4481 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
4482 executing it as well as when popping it off the stack to find infinite
4483 loops in non-greedy repetition operators.
4484
89e80928
GM
44852000-03-26 Gerd Moellmann <gerd@gnu.org>
4486
3d4ff2dd
GM
4487 * doc.c (Qfunction_documentation): New variable.
4488 (syms_of_doc): Initialize Qfunction_documentation.
4489 (Fdocumentation): If FUNCTION is a symbol with non-nil
4490 `function-documentation' property, return a documentation derived
4491 from that.
4492
bd96bd79
GM
4493 * buffer.c (syms_of_buffer): Add default-cursor-type.
4494 (init_buffer_once): Don't let cursor_type have a local value
4495 in every buffer.
4496
19d1bc27
GM
4497 * xterm.c (x_display_and_set_cursor): Choose cursor depending
4498 on buffer-local value of cursor_type.
4499 (x_draw_bar_cursor): Add parameter WIDTH.
4500
4501 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
4502 (init_buffer_once): Set default cursor_type value to t.
4503 Mark cursor_type as local everywhere.
4504 (syms_of_buffer): New per-buffer variable cursor-type.
4505
89e80928
GM
4506 * buffer.h (struct buffer): Remove member local_var_flags,
4507 add local_flags.
4508 (MAX_BUFFER_LOCAL_VARS): New macro.
4509 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
4510 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
4511 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
4512 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
4513
4514 * print.c (print_object): Use new macros for per-buffer
4515 variables.
4516
4517 * category.c (Fset_category_table): Use new macros for per-buffer
4518 variables.
4519
4520 * buffer.c (buffer_permanent_local_flags): Make a char array.
4521 (max_buffer_local_idx): New variable.
4522 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
4523 for new handling of per-buffer variables.
4524 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
4525 (init_buffer_once): Initialize per-buffer vars differently.
4526 Set max_buffer_local_idx.
4527
4528 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
4529 variables.
4530
4531 * lread.c (defvar_per_buffer): Use new macros for per-buffer
4532 variables.
4533
4534 * data.c (do_symval_forwarding, store_symval_forwarding)
4535 (find_symbol_value, set_internal, default_value, Fset_default)
4536 (Fkill_local_variable, Flocal_variable_p): Use new macros for
4537 per-buffer variables.
4538
4539 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
4540
9a0dd3dc
GM
45412000-03-24 Gerd Moellmann <gerd@gnu.org>
4542
b68c375f
GM
4543 * xterm.c (x_term_init): Unblock input around call1 of
4544 Qvendor_specific_keysyms.
4545
9a0dd3dc
GM
4546 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
4547 (find_defun_start): Consider an open parenthesis in column 0
4548 a defun start only if open_paren_in_column_0_is_defun_start is set.
4549 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
4550
7973e637
SM
45512000-03-24 Stefan Monnier <monnier@cs.yale.edu>
4552
4553 * eval.c (Fautoload): Add entry in load-history (if after dump).
4554 * lread.c (load-history): Update docstring.
4555
39210e90
GM
45562000-03-24 Gerd Moellmann <gerd@gnu.org>
4557
4558 * indent.c (Fvertical_motion): Always use the current buffer.
4559 Temporarily change the window's buffer, if necessary.
4560
72db3ab5
GM
45612000-03-23 Gerd Moellmann <gerd@gnu.org>
4562
4563 * xterm.c (fast_find_position): Make sure not to consider rows
4564 not visible in the window.
4565
990b2375
SM
45662000-03-22 Stefan Monnier <monnier@cs.yale.edu>
4567
4568 * regex.c (enum syntaxcode): Provide default for non-Emacs.
4569 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
4570
ff4df011
JR
45712000-03-22 Jason Rumney <jasonr@gnu.org>
4572
4573 * w32menu.c (single_submenu): Set help string to NULL if none.
4574 (w32_menu_show): Set help string correctly.
4575 (add-menu-item): Set help string in MIIM_DATA for menu item.
4576 Load SetMenuItemInfoA explicitly.
4577 (w32_menu_display_help): New function.
427ec082 4578
ff4df011
JR
4579 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
4580 (QCdata): Moved to xdisp.c.
4581
4582 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
4583 (Vw32_charset_to_codepage_alist): Removed.
4584 (Vw32_charset_info_alist): New variable.
4585 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
4586 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
4587 greek, hebrew, thai, johab, mac, unicode]): New symbols.
4588 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
4589 with TODO comment.
4590 (w32_codepage_for_font): Use Vw32_charset_info_alist.
4591 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
4592 Define Vw32_charset_info_alist and w32_charset symbols.
4593
45942000-03-22 Jason Rumney <jasonr@gnu.org>
4595
4596 * makefile.nt (w32bdf.obj): Update dependencies.
4597
4598 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
4599
4600 * w32fns.c: Include fontset.h after dispextern.h.
4601 (Fx_create_frame): Do not create fontset.
4602 (w32_load_system_font): Doc fix.
4603 (Fx_close_connection): Free full_name if it is not shared.
4604
4605 * w32term.c: Include fontset.h after dispextern.h.
4606 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
4607 updated.
4608 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
4609 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
4610 (w32_font_is_double_byte): New function, needs body.
4611 (x_append_glyph): Set glyph->glyph_not_available_p.
4612 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4613 it->charset. If it->multibyte_p is zero and it->c is a multibyte
4614 character, convert it to a unibyte character.
4615 (struct glyph_string): Delete member `charset'.
4616 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
4617 calculating it is found.
4618 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4619 the case that per char metric is not available correctly.
4620 (x_fill_glyph_string): Handle the case that the specific glyph is
4621 not available correctly.
4622 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4623 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4624 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4625 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4626 fontset. Don't call FS_LOAD_FONT.
4627
439d5cb4
KR
46282000-03-22 Ken Raeburn <raeburn@gnu.org>
4629
4630 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
4631 (INT_LISPLIKE): New macro.
4632 (NULL_INTERVAL_P): Use it.
4633 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
4634 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
4635 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
4636
4637 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
4638 explicit references to "parent" field of struct interval and
4639 associated unclean type conversions.
4640 * intervals.c (create_root_interval, root_interval, rotate_right,
4641 rotate_left, balance_possible_root_interval, split_interval_right,
4642 split_interval_left, interval_start_pos, find_interval,
4643 next_interval, previous_interval, update_interval,
4644 adjust_intervals_for_insertion, delete_node, delete_interval,
4645 adjust_intervals_for_deletion, merge_interval_right,
4646 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
4647 copy_intervals_to_string): Likewise.
4648 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
4649 Likewise.
4650 * syntax.c (update_syntax_table): Likewise.
4651
4652 * intervals.c (reproduce_tree_obj): New function, like
4653 reproduce_tree but takes a Lisp_Object for the parent. Declare
4654 with prototype.
4655 (graft_intervals_into_buffer): Use it when appropriate.
4656 (reproduce_tree): Declare with prototype.
4657 (balance_possible_root_interval): Check that the parent is a lisp
4658 object before trying to examine its type.
4659
ee1c5b21
GM
46602000-03-22 Gerd Moellmann <gerd@gnu.org>
4661
4662 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
4663 as strings only if both are known to be strings.
4664
4665 * s/openbsd.h (LIBS_TERMCAP): Undef.
4666
1fb352e0
SM
46672000-03-21 Stefan Monnier <monnier@cs.yale.edu>
4668
4669 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
4670 definitions for non-Emacs compilation.
4671 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
4672 outside of `#ifdef emacs'.
4673 (print_partial_compiled_pattern): Update.
4674 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
4675 (re_compile_fastmap): Merge handling of charset and charset_not (for
4676 emacs and non-emacs compilation as well).
4677 Similarly for (not)categoryspec and (not)syntaxspec.
4678 Don't use the fastmap when reaching `anychar' since the added
4679 complexity is not justified.
4680 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
4681 and (not)syntaxspec. Merge (not)categoryspec.
4682
fdaa1f77
KH
46832000-03-22 Kenichi Handa <handa@etl.go.jp>
4684
ff1a0d8e
KH
4685 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4686 FACE_FOR_CHAR): Define them differently for the configuration of
4687 --without-x.
fdaa1f77 4688
d152fb46
DL
46892000-03-21 Dave Love <fx@gnu.org>
4690
4691 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
4692 doc string.
4693
d2cafc8c
GM
46942000-03-21 Gerd Moellmann <gerd@gnu.org>
4695
4696 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
4697 (lface_fully_specified_p): Don't check contents of
4698 LFACE_FONT_INDEX because that attribute is optional.
4699 (realize_x_face): Remove now unwarranted xassert.
4700
9111d4b5
KH
47012000-03-21 Kenichi HANDA <handa@etl.go.jp>
4702
4703 The following changes are to make font selection based on
4704 characters, not charset. In addition, they recover fontset
4705 facilities while utilizing the new font selection mechanism.
4706
6c4bfdc0
KH
4707 * Makefile.in (fontset.o): Depend on dispextern.h.
4708
4709 * alloc.c (mark_face_cache): Don't mark face->registry.
4710
9111d4b5
KH
4711 * dispextern.h (struct glyph): New member glyph_not_available_p.
4712 Use 22 bits for face_id.
4713 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
4714 (struct face): Delete member registry, new member ascii_face.
4715 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
4716 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
4717 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
4718 (struct it): Delete member charset, new member
4719 glyph_not_available_p.
4720
4721 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
4722 (struct fontset_info, struct fontset_data): Structs removed.
4723 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
4724 Vglobale_fontset_alist, font_idx_temp): Externs removed.
4725 (fs_load_font, fs_query_fontset): Adjusted for new argument.
4726 (fs_free_face_fontset, fontset_font_pattern,
4727 face_suitable_for_char_p, face_for_char,
4728 make_fontset_for_ascii_face): Extern them.
4729 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
4730 (FS_LOAD_FACE_FONT): New macro.
4731
4732 * fontset.c: All codes rewritten or adjusted for the change of
4733 fontset implementation. Now fontset is represented by char table.
4734 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
4735 removed.
4736 (my_strcasecmp): Function removed.
4737 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
4738 variables.
4739 (AREF, ASIZE): New macros.
4740 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
4741 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
4742 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
4743 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
4744 fontset_id_valid_p, font_family_registry, fontset_name,
4745 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
4746 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
4747 New functions.
4748 (fs_load_font): New arg FACE. Caller changed.
4749 (fs_query_fontset): Argument changed. Caller changed.
4750 (Fquery_fontset): call fs_query_fontset.
4751 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
4752 Functions removed.
4753 (clear_fontset_elements, check_registry_encoding,
4754 check_fontset_name): New functions.
4755 (syms_of_fontset): Set char-table-extra-slots property of fontset
4756 to 3. Staticpro and initialize Vfontset_table and
4757 Vdefault_fontset. Defsubr fontset_font and fontset_list.
4758
4759 * frame.h (struct frame): Member `fontset_data' removed.
4760 (FRAME_FONTSET_DATA): Macro removed.
4761
4762 * frame.c (make_frame): Don't allocate f->fontset_data.
4763 (Fdelete_frame): Don't free f->fontset_data.
4764
6c4bfdc0
KH
4765 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
4766
9111d4b5
KH
4767 * xdisp.c (charset_at_position): Function removed.
4768 (init_iterator): Don't set member charset of struct `it'.
4769 (handle_face_prop, reseat_to_string, set_iterator_to_next,
4770 next_element_from_display_vector, insert_left_trunc_glyphs):
4771 Likewise.
4772 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
4773 FACE_FOR_CHARSET.
4774 (get_next_display_element, append_space,
4775 extend_face_to_end_of_line): Likewise.
4776
4777 * xfaces.c (Qx_charset_registry, Vface_default_registry):
4778 Variables removed.
4779 (clear_font_table, frame_update_line_height, load_face_font):
4780 Adjusted for the change of fontset implementation.
4781 (load_face_fontset_font): Function removed.
4782 (pixel_point_size): New function.
4783 (font_list): Argument type changed. Caller changed.
4784 (LFACE_FONT): New macro.
4785 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
4786 (set_lface_from_font_name): Type of arg FONTNAME is changed to
4787 Lisp_Object. Determine the font name by actually loading a font
4788 by the specified pattern. Set LFACE_FONT (lface) to the specified
4789 pattern. Even if a font is not found, don't try alternatives.
4790 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
4791 (set_font_frame_param): If `font' is specified in lface, use it.
4792 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
4793 (lface_same_font_attributes_p): Likewise.
4794 (make_realized_face): Arguent changed. Caller changed. Set
4795 face->ascii_face to face itself.
4796 (free_realized_face): Free face->fontset if face is for ASCII.
4797 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
4798 deduce_unibyte_registry, x_charset_registry): Functions removed.
4799 (free_realized_multibyte_face): New function.
4800 (lookup_face, lookup_named_face, lookup_derived_face): Argument
4801 changed. Caller changed.
4802 (try_font_list): Argument type changed.
4803 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
4804 (choose_face_font): Argument changed. Handle fontset properly.
4805 (choose_face_fontset_font): Function removed.
4806 (realize_default_face, realize_named_face): Don't remove the
4807 former face here.
4808 (realize_face): Argument changed. Caller changed. Remove face
4809 with the arg former_face_id in advance. Load font for the new
4810 face.
4811 (realize_x_face): Argument changed. Caller changed. For a
4812 multibyte character, share fontset with base_face. For a single
4813 byte character, make a new realized fontset. Don't load a font
4814 here.
4815 (realize_tty_face): Argument changed. Caller changed.
4816 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
4817 (face_at_buffer_position): Don't check multibyte_p for returning
4818 DEFAULT_FACE_ID.
4819 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
4820 FACE_SUITABLE_FOR_CHARSET_P.
4821 (syms_of_xfaces): Remove code for Qx_charset_registry and
4822 Vface_default_registry.
4823
6c4bfdc0
KH
4824 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
4825 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
4826 (x_per_char_metric): Don't try FONT->default_char. Even if
4827 pcm->width is zero, glyph bits may exist.
4828 (x_encode_char): Always initialize char2b->byte1.
4829 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
4830 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
4831 changed.
4832 (x_append_glyph): Set glyph->glyph_not_available_p.
4833 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4834 it->charset. Handle the case that per char metric is not
4835 available. If it->multibyte_p is zero and it->c is a multibyte
4836 character, convert it to a unibyte character.
4837 (struct glyph_string): Delete member `charset'.
4838 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4839 the case that per char metric is not available correctly.
4840 (x_fill_glyph_string): Handle the case that the specific glyph is
4841 not available correctly.
4842 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4843 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4844 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4845 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4846 fontset. Don't call FS_LOAD_FONT.
4847
4848 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
4849 (x_create_tip_frame): Likewise.
4850 (Fx_close_connection): Free full_name of font_info.
4851
4852 * fns.c (optimize_sub_char_table): New function.
4853 (Foptimize_char_table): New function.
4854 (syms_of_fns): Defsubr Soptimize_char_table.
4855
b33dd3b0
GM
48562000-03-20 Gerd Moellmann <gerd@gnu.org>
4857
4858 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
4859 only if buffer is displayed in some window.
4860
4861 * xdisp.c (handle_single_display_prop): Initialize local `value'.
4862 (try_window_reusing_current_matrix): Don't call scroll run
4863 function if run's current and desired position are the same;
4864 this prevents cursor flickering.
4865
4e8a9132
SM
48662000-03-19 Stefan Monnier <monnier@cs.yale.edu>
4867
4868 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
4869
4870 * regex.c (RE_STRING_CHAR): New macro.
4871 (GET_CHAR_AFER_2): Remove.
4872 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
4873 (enum re_opcode_t): Remove on_failure_jump_exclusive.
4874 (print_partial_compiled_pattern, re_compile_fastmap)
4875 (re_match_2_internal): Remove on_failure_jump_exclusive.
4876 (regex_compile): Turn optimizable P+ loops into PP*, so that the
4877 optimization only need to work for * (ie. can use of_keep_string_jump).
4878 Remove the special case for .*\n since it is now covered by the general
4879 optimization.
4880 (re_search_2): Don't bother with `room'.
4881 (skip_one_char): New function.
4882 (skip_noops): Simplify since `memory' is not needed any more.
4883 (mutually_exclusive_p): Restructure slightly to use `switch' and
4884 add handling for "all" remaining cases.
4885 (re_match_2_internal): Change on_failure_jump_smart to use
4886 on_failure_keep_string_jump (and redirect the end-of-loop jump)
4887 rather than on_failure_jump_exclusive.
4888
2136fdd4
GM
48892000-03-19 Gerd Moellmann <gerd@gnu.org>
4890
4891 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
4892 number of bits per RGB because it's everywhere used as the depth
4893 of the visual.
4894
4895 * term.c (calculate_costs): Remove code dealing with X frames.
4896
18e21ce8 48972000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
4898
4899 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
4900
d7b511c4
GM
49012000-03-18 Gerd Moellmann <gerd@gnu.org>
4902
4903 * lread.c (read_integer): Unread the last char not consumed.
4904
16b5d424
GM
49052000-03-17 Gerd Moellmann <gerd@gnu.org>
4906
4907 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 4908 which are in the process of being deleted.
16b5d424 4909
1fa28578
GM
49102000-03-16 Gerd Moellmann <gerd@gnu.org>
4911
83488cce
GM
4912 * Makefile.in (mostlyclean): Add `*.core'.
4913 (clean): Add `bootstrap-emacs'.
4914
1fa28578
GM
4915 * lread.c (read_integer): New function.
4916 (read1): Support read syntax #o, #x, #b, #r.
4917
99633e97
SM
49182000-03-15 Stefan Monnier <monnier@cs.yale.edu>
4919
1fa28578
GM
4920 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
4921 make sure POINTER_TO_OFFSET gives the same value before and after
4922 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
4923 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
4924 (debug): Now only active if > 0 rather than if != 0.
4925 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
4926 (print_partial_compiled_pattern): Add missing `succeed' case. Use
4927 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
4928 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
4929 (store_op1, store_op2, insert_op1, insert_op2)
4930 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
4931 (group_in_compile_stack): Move to after its arg's types are
4932 declared and add a prototype.
99633e97 4933 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
4934 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
4935 wrapper.
99633e97 4936 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
4937 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
4938 indentation of the greedy-op and shy-group code.
99633e97
SM
4939 (at_(beg|end)line_loc_p): Fix argument's types.
4940 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
4941 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
4942 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
4943 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
4944 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
4945 QUIT unconditionally.
99633e97 4946
699238d9
GM
49472000-03-15 Gerd Moellmann <gerd@gnu.org>
4948
4949 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
4950 a sole completion.
4951
4952 * process.c (send_process): Add a hint that the function
4953 can call Lisp code to its comment.
4954
4955 * lread.c (load_dangerous_libraries): New variable.
4956 (Vbytecomp_version_regexp): New variable.
4957 (safe_to_load_p): New function.
4958 (Fload): Handle files not compiled with Emacs specially.
4959 (syms_of_lread): New Lisp variable load-dangerous-libraries.
4960
34e23e5a
GM
49612000-03-14 Gerd Moellmann <gerd@gnu.org>
4962
9c763cca
GM
4963 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
4964
4965 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
4966 support functions only if HAVE_X11R6_XIM is defined.
4967 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
4968
4969 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
4970
4971 * xfns.c (X_I18N_INHIBITED): Don't define.
4972 (create_frame_xic): Remove conditional compilation on
4973 X_I18N_INHIBITED.
4974 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
4975
4976 * config.in (HAVE_X_I18N): Moved here from xterm.h.
4977 (HAVE_X11R6_XIM): Define.
4978
4979 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
4980
34e23e5a
GM
4981 * xterm.c (x_term_init): Add support for X resource `synchronous'.
4982 If set, call XSynchronize.
4983
66f0296e
SM
49842000-03-13 Stefan Monnier <monnier@cs.yale.edu>
4985
34e23e5a
GM
4986 * regex.c: Declare a new type `re_char' used throughout the code
4987 for the string char type. It's `const unsigned char' to match the
4988 rest of Emacs. Consistently make sure all pointers to strings use
4989 it and make sure all pointers into the pattern use `unsigned
4990 char'.
66f0296e 4991 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
4992 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
4993 code duplication.
66f0296e
SM
4994
4995 * charset.h (GET_CHAR_AFTER_2): Remove.
4996 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
4997
854a025c
KR
49982000-03-12 Ken Raeburn <raeburn@gnu.org>
4999
5000 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
5001 variable before the invocation of YMF_PASS_LDFLAGS, in case both
5002 of them try to use backquotes.
5003
b9d2c7e2
DL
50042000-03-12 Dave Love <fx@gnu.org>
5005
5006 * unexelf.c: Restore changes of 1999-10-19.
5007 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
5008 fix its type and alignment; copy it from current process.
5009
5e5dff44
GM
50102000-03-12 Gerd Moellmann <gerd@gnu.org>
5011
9b2f3c38
GM
5012 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
5013 has been found. Fix bug not computing timer's predecessor.
5014
427ec082 5015 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
5016 file name.
5017
e1cff360
GM
5018 * window.c (Fsave_window_excursion): Doc fix.
5019
5e5dff44
GM
5020 * xfns.c (x_defined_color): Rewritten to use
5021 x_allocate_nearest_color.
5022
e411ce4b
EZ
50232000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5024
5025 * msdos.c (vga_installed): New function, code moved from
5026 dos_set_window_size.
5027 (Qbar, Qcursor_type, outside_cursor): New variables.
5028 (syms_of_msdos): Intern and staticpro them.
5029 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
5030 shape used outside Emacs when called for the first time.
5031 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
5032 cursor shape used outside Emacs.
5033 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
5034 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
5035 type has changed.
5036 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
5037 parameters specify the cursor. Make qreverse a global
5038 variable (renamed to Qreverse).
5039
80460654
GM
50402000-03-09 Gerd Moellmann <gerd@gnu.org>
5041
5042 * fns.c (Fy_or_n_p): Cancel busy-cursor.
5043
95cd4c40
SM
50442000-03-08 Stefan Monnier <monnier@cs.yale.edu>
5045
5046 This is a big redesign of failure-stack and register handling, prompted
5047 by bugs revealed when trying to add shy-groups. Overall, what happened
5048 is that loops are now structured a little differently, groups can be
5049 shy and the code is a little simpler.
5050
5051 * regex.h: Update the copyright.
5052 (RE_SHY_GROUPS): New value.
5053 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
5054 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
5055
80460654
GM
5056 * regex.c (enum re_opcode_t): Remove jump_past_alt,
5057 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
5058 on_failure_jump_(exclusive, loop and smart). Also fix the comment
5059 for (start|stop)_memory since they now only take one argument (the
5060 second has becomes unnecessary).
5061 (print_partial_compiled_pattern): Adjust for changes in
5062 re_opcode_t.
5063 (print_compiled_pattern): Use %ld to printf long ints and flush to
5064 make debugging a little easier.
95cd4c40
SM
5065 (union fail_stack_elt): Make the integer unsigned.
5066 (struct fail_stack_type): Add a `frame' element.
5067 (INIT_FAIL_STACK): Init `frame' as well.
5068 (POP_PATTERN_OP): New macro for re_compile_fastmap.
5069 (DEBUG_PUSH, DEBUG_POP): Remove.
5070 (NUM_REG_ITEMS): Remove.
5071 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
5072 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
5073 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 5074 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
5075 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
5076 macros.
5077 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
5078 address pushed is not the destination of the jump but the source
5079 of it instead.
95cd4c40
SM
5080 (NUM_FAILURE_ITEMS): Remove.
5081 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
5082 registers before the actual failure point). Don't hardcode any
5083 meaning for str==NULL anymore.
95cd4c40 5084 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
5085 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
5086 Remove.
95cd4c40
SM
5087 (REG_UNSET_VALUE): Use NULL (why not?).
5088 (compile_range): Remove declaration since it doesn't exist.
5089 (struct compile_stack_elt_t): Remove inner_group_offset.
5090 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
5091 (regex_grow_registers): Remove dead code.
5092 (FIXUP_ALT_JUMP): New macro.
80460654
GM
5093 (regex_compile): Add shy-groups Change loops to use
5094 on_failure_jump_smart&jump instead of
5095 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
5096 initial (dummy_failure_)jump. Remove c1_base (looks like unused
5097 variable to me). Use `jump' instead of `jump_past_alt' and don't
5098 bother with push_dummy_failure in alternatives since it is now
5099 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
5100 emacs' for (re)allocating the stack.
5101 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
5102 from loop when bufp->can_be_null rather than jumping to `done'.
5103 Avoid jumping backwards so as to ensure termination. Use
5104 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
5105 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 5106 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
5107 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
5108 improve mutually_exclusive_p to handle ".+\n".
5109 (lowest_active_reg, highest_active_reg,
5110 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
5111 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
5112 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
5113 variables. Push register (in `start_memory') on the stack rather
5114 than storing it in old_reg(start|end). Remove the cycle detection
5115 from `stop_memory', replaced by the use of on_failure_jump_loop
5116 for greedy loops. Add code for the new on_failure_jump_<foo>.
5117 Remove ad-hoc code in `on_failure_jump' to push more registers in
5118 the case of a loop. Take out code from `maybe_pop_jump' into
5119 separate functions and adapt it to the semantics of
5120 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
5121 and push_dummy_failure. Remove dummy_failure handling and
5122 handling of `failures to jump to on_failure_jump' (this last one
5123 was already dead code, it seems).
5124 (group_match_null_string_p, alt_match_null_string_p)
5125 (common_op_match_null_string_p): Remove.
95cd4c40 5126
7397acc4
DL
51272000-03-08 Dave Love <fx@gnu.org>
5128
5129 * config.in: Don't depend on __STDC__ for volatile.
5130 Add POINTER_TYPE, PTR, PROTOTYPES.
5131
5132 * hftctl.c, strftime.c: Use PROTOTYPES.
5133 * eval.c (find_handler_clause): Likewise.
5134
5135 * mem-limits.h: Use POINTER_TYPE.
5136
5137 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
5138 (memory_warnings): Declare using POINTER_TYPE.
5139
5e91ff9e
GM
51402000-03-08 Gerd Moellmann <gerd@gnu.org>
5141
feab4fba
GM
5142 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
5143
25edb08f
GM
5144 * xdisp.c (display_echo_area): Temporarily inhibit garbage
5145 collection.
5146
5e91ff9e
GM
5147 * xfns.c: Remove obsolete code in #if 0.
5148 (Fx_focus_frame): New function.
5149
a735b7e1
KH
51502000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5151
5152 * coding.c (coding_category_name): Add coding-category-utf-8,
5153 coding-category-utf-16-be, coding-category-utf-16-le.
5154 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
5155 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
5156 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
5157 (detect_coding_utf_8): New function.
5158 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
5159 UTF_16_LOW_SURROGATE_P): New macros.
5160 (detect_coding_utf_16): New function
5161 (detect_coding_mask): When priorities are specified, skip any
5162 categories that have `nil' coding-system. Fix bug of returning
5163 wrong mask when PRIORITIES is specified and detect_coding_XXX()
5164 returns a mask not set in PRIORITIES.
5165 (detect_eol_type_in_2_octet_form): New function.
5166 (detect_eol): selects detect_eol_type_XXX to call according to
5167 cooding->category_idx.
5168 (detect_coding_system): Remove `nil' coding-system in the result.
5169 (Fupdate_coding_systems_internal): Update all coding-categories.
5170
5171 * coding.h (CODING_CATEGORY_IDX_UTF_8,
5172 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
5173 macros.
5174 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
5175 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
5176 CODING_CATEGORY_IDX_UTF_16_LE.
5177 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
5178 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
5179 (CODING_CATEGORY_MASK_ANY): Include the above macros.
5180 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
5181
9994cc69
GM
51822000-03-07 Gerd Moellmann <gerd@gnu.org>
5183
e9b4e5ff
GM
5184 * doc.c (Fdocumentation_property): If value is not a string,
5185 and doesn't refer to etc/DOC, evaluate it to obtain a string.
5186
f7daf1e1
GM
5187 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
5188 close the display with XtCloseDisplay. This caused a bus error
5189 on OpenWindows.
5190
9994cc69
GM
5191 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
5192 complete but not unique.
5193
4336c705
GM
51942000-03-06 Gerd Moellmann <gerd@gnu.org>
5195
18bb0684
GM
5196 * process.c (send_process): Remove local variable `procname' that
5197 might become invalid when a GC happens. Instead, access the
5198 process name slot directly.
5199
4336c705
GM
5200 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
5201 orig_height if set.
5202
5203 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
5204 orig_height if set.
5205
515d0d0e
EZ
52062000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5207
5208 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
5209 glyph matrices have been freed.
5210
100b3cbb
GM
52112000-03-05 Gerd Moellmann <gerd@gnu.org>
5212
50df5e5a 5213 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 5214 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
5215
5216 * xfns.c (QCdata): Moved to xdisp.c.
5217
5218 * xdisp.c (QCdata): Moved here from xfns.c.
5219 (syms_of_xdisp): Initialize QCdata.
5220
5221 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
5222
5223 * window.c (coordinates_in_window): Use
5224 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
5225 FRAME_INTERNAL_BORDER_WIDTH.
5226
100b3cbb 5227 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 5228 it is obviously invalid.
100b3cbb
GM
5229
5230 * xterm.c (x_term_init): Create a colormap if not using the
5231 default visual.
5232
5233 * xterm.h (select_visual): Change prototype.
5234
5235 * xfns.c (select_visual): Rewritten. Recognize user-specified
5236 visual classes.
5237 (visual_classes): New variable.
5238
64d739c4
GM
52392000-03-04 Gerd Moellmann <gerd@gnu.org>
5240
5241 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
5242 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
5243 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
5244 (x_decode_color): Don't handle allocation of white and black
5245 specially.
5246 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
5247 XtNcolormap resources.
5248 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
5249 (Fx_create_frame): Initialize color members of x_output structure.
5250 (xpm_load): Pass colormap to XPM lib.
5251
5252 * xfaces.c (x_free_colors): Access colormap of frame using
5253 FRAME_X_COLORMAP. Be paranoid about freeing black and white
5254 when default colormap is used.
5255
5256 * xterm.c (x_term_init): Set Colormap member of x_display_info
5257 structure. Copy colormap if resource `privateColormap' is
5258 specified (PseudoColor only).
5259 (x_setup_relief_color): Access colormap of frame using
5260 FRAME_X_COLORMAP.
5261
5262 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5263 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5264
c3cee013
JR
52652000-03-04 Jason Rumney <jasonr@gnu.org>
5266
5267 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
5268 other non-platform-specific equivalents.
64d739c4 5269 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
5270 specific functions and macros as their w32 equivalents where
5271 non-platform-specifics are not available.
5272 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
5273 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
5274 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
5275 (frame_update_line_height): Use macros to access f->output_data.
5276 (defined_color): Remove FIXME comments; fixed.
5277 (x_face_list_fonts, prepare_face_for_display): Put X specifics
5278 into #ifdef blocks. Add WINDOWSNT blocks.
5279 (Fx_list_fonts): Use macros for accessing font data.
5280 (set_lface_from_font_name): Different default fonts for X and
5281 WINDOWSNT.
5282 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
5283 scalable for backward compatibility.
64d739c4 5284 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
5285 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
5286
64d739c4 5287 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
5288 syms_of_w32faces.
5289
5290 * makefile.nt (w32faces.obj): Remove.
5291 (xfaces.obj): Add.
5292
807cc41c
JR
52932000-03-03 Jason Rumney <jasonr@gnu.org>
5294
5295 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5296 correct parameters.
5297
0007072a
KR
52982000-03-03 Ken Raeburn <raeburn@gnu.org>
5299
5300 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5301 standard ELF definitions here if the system header does not.
5302
71a6ba55
GM
53032000-03-03 Gerd Moellmann <gerd@gnu.org>
5304
5305 * xterm.c (PER_CHAR_METRIC): Removed.
5306 (x_per_char_metric_1, x_default_char): New functions.
5307 (x_per_char_metric): If font's default char is invalid, return
5308 metrics of a suitably chosen usable default char.
5309 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
5310 char, replace occurrences of unprintable chars with a suitably
5311 chosen usable default char.
71a6ba55 5312
900fa1f1
GM
53132000-03-02 Gerd Moellmann <gerd@gnu.org>
5314
42f55fe0
GM
5315 * xterm.c (note_mouse_highlight): Return quickly if frame's
5316 glyph matrices have been freed.
5317
5318 * dispnew.c (free_glyphs): Block input while freeing matrices.
5319
900fa1f1
GM
5320 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5321
5322 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5323 x_free_colors.
5324
5325 * dispextern.h (x_free_colors): Add prototype.
5326
5327 * xfaces.c (x_free_colors): New function.
5328 (unload_color, free_face_colors): Use it.
5329
2f950292
EZ
53302000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5331
5332 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5333
5334 * window.c [MSDOS]: Include msdos.h.
5335
54d04320
DL
53362000-03-02 Dave Love <fx@gnu.org>
5337
5338 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5339
5340 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
5341 set C_OPTIMIZE_SWITCH for gcc.
5342
0ba93ac4
KH
53432000-03-02 Kenichi Handa <handa@etl.go.jp>
5344
5345 * coding.c (coding_save_composition): Be sure to allocate
5346 composition data area in coding even if there's no composition in
5347 the current run.
5348
a2bc11d4
JR
53492000-03-01 Jason Rumney <jasonr@gnu.org>
5350
5351 * w32term.c: Equivalent changes to those made to xterm.c on
5352 2000-02-25 and 2000-02-24.
5353
5354 * w32fns.c: Equivalent changes to those made to xfns.c on
5355 2000-02-25 and 2000-02-21.
5356
5357 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5358 correct line-end convention is followed.
5359
5360 * w32menu.c [HAVE_BOXES]: Remove #undef.
5361 (single_keymap_panes): Remove code for simulating checkmarks.
5362 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
5363 Remove code for drawing simulated checkmarks.
5364 (w32_menu_show): make unibyte help string correctly.
5365 (add_menu_item): draw standard Windows checkmarks. Draw radio
5366 buttons as radio buttons if possible.
5367
72d19d75
GM
53682000-03-01 Gerd Moellmann <gerd@gnu.org>
5369
2df636f4
GM
5370 * sysdep.c (start_of_text): Don't define this function for NetBSD
5371 with ELF.
5372
427ec082 5373 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
5374 Don't define.
5375 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5376 (LINKER): Don't undef if __NetBSD__ is defined.
5377
5378 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5379
5380 * fileio.c [__NetBSD__]: Define `unix'.
5381
72d19d75
GM
5382 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5383
ed4d0512
GM
53842000-02-29 Gerd Moellmann <gerd@gnu.org>
5385
50b1039f
GM
5386 * atimer.c (start_atimer): Don't abort when timers are stopped.
5387 (append_atimer_lists): New function.
5388 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
5389 arbitrary lists of stopped and running atimers.
5390
ed4d0512
GM
5391 * atimer.c (cancel_atimer): Handle canceling an atimer when
5392 some timers are stopped.
5393
5394 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
5395 after canceling it.
5396
5397 * fns.c (maybe_resize_hash_table): Handle case of new size
5398 coming out as being the same as old size.
5399
387023ee
JR
54002000-02-27 Jason Rumney <jasonr@gnu.org>
5401
5402 * makefile.nt: Add atimer.h to dependencies.
5403 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
5404 * w32console.c: Only disable window system features for dispextern.h
5405 (initialize_w32_display): Build a display info for the console.
5406 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
5407 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
5408 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
5409 as 2 button mice.
5410 * w32gui.h (struct W32FontStruct): Revert last change after change
5411 to xdisp.c.
5412 * w32menu.c (single_submenu): Set up help string.
5413 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
5414 (w32_dialog_show): Set up help string.
5415 * w32term.c (w32_display_info_for_display): Remove unused function.
5416 (w32_draw_bitmap): Use pre-built bitmaps.
5417 (w32_initialize_display_info): New function to initialize parts of
5418 display info that are common to both GUI and console frames.
5419 (w32_term_init): Use w32_initialize_display_info. Do not set
5420 Vw32_num_mouse_buttons here, as it is not called for console
5421 frames. Build bitmaps for indicating truncated lines etc.
5422 (x_delete_display): Destroy pre-built bitmaps.
5423 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
5424 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
5425
4516715a
DL
54262000-02-27 Dave Love <fx@gnu.org>
5427
5428 * lisp.h: Add a bunch of prototypes.
5429
171ca836
KH
54302000-02-26 Kenichi Handa <handa@etl.go.jp>
5431
5432 * keyboard.c (read_char): Set `usec' correctly.
5433
4013921d
KH
54342000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5435
5436 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
5437 `lambda', set reg[RRR] to the map index.
5438 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
5439 reg[RRR] to 0. Otherwise, set it to -1.
5440
9244a058
GM
54412000-02-25 Gerd Moellmann <gerd@gnu.org>
5442
2df636f4 5443 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 5444
18e21ce8 54452000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 5446
f43d79c1
GM
5447 * fileio.c (Ffile_symlink_p): If result starts with a `/'
5448 and contains a `:', prepend `/:'.
5449
5450 * window.c (select_window_1): If selected_window is nil,
5451 don't "swap out" the buffer's point.
5452 (Fset_window_configuration): Set selected_window to nil
5453 before calling Fselect_window.
5454 (unshow_buffer): Don't set point in buffer from window's point
5455 if another more recently selected window also shows the buffer.
5456
bed0c171
GM
54572000-02-25 Gerd Moellmann <gerd@gnu.org>
5458
449c3c52
GM
5459 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
5460
f5b58615
GM
5461 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
5462 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
5463 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
5464 variables.
5465 (DEFAULT_BUSY_CURSOR_DELAY): New define.
5466 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
5467 (hide_busy_cursor): New functions.
5468 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
5469
5470 * minibuf.c (read_minibuf): Cancel busy-cursor.
5471
5472 * keyboard.c (command_loop_1): Call start_busy_cursor before
5473 Fcommand_execute and cancel_busy_cursor after it.
5474 (timer_check): Remove busy-cursor code.
5475 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
5476 cursor timer.
5477
5478 * process.c (wait_reading_process_input): Remove busy-cursor code.
5479
5480 * eval.c (Fsignal): Call cancel_busy_cursor instead of
5481 Fx_hide_busy_cursor.
5482
5483 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
5484 Remove prototyoes.
5485 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
5486
5487 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
5488
5489 * xterm.c (XTread_socket): Remove busy-cursor code.
5490
4eb8436f
GM
5491 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
5492 (build_frame_matrix_from_leaf_window): Put code handling
5493 glyph row's not being a slice of a frame row in #if 0.
5494 (sync_window_with_frame_matrix_rows): New function.
5495 (frame_row_to_window): New function.
5496 (mirror_line_dance): Handle copies between windows.
5497
3cb65b0e
GM
5498 * lread.c (Fload): Use `xfree' instead of `free'.
5499 (init_obarray): Use `xmalloc' instead of `malloc'.
5500
bed0c171
GM
5501 * window.c (Fset_window_buffer): Set WINDOW to the window
5502 after decoding.
2add4349
GM
5503 (coordinates_in_window): Take frame's internal border width
5504 into account.
bed0c171 5505
42088c12
GM
55062000-02-24 Gerd Moellmann <gerd@gnu.org>
5507
5508 * xterm.c (x_display_and_set_cursor): Display cursor of
5509 non-selected windows depending on the setting of
5510 cursor_in_non_selected_windows.
5511
5512 * xdisp.c (cursor_in_non_selected_windows): New variable.
5513 (syms_of_xdisp): DEFVAR_BOOL it.
5514
d1e103b2
GM
55152000-02-23 Gerd Moellmann <gerd@gnu.org>
5516
723e779c
GM
5517 * data.c (Fstring_to_number): If number is greater than what
5518 fits into an integer, return a float.
5519
d1e103b2
GM
5520 * eval.c (specbind): Remove references to
5521 keyword_symbols_constant_flag.
5522
5523 * data.c (keyword_symbols_constant_flag): Removed.
5524 (Fmakunbound, set_internal, syms_of_data): Remove references to
5525 keyword_symbols_constant_flag.
5526
5527 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
5528
214f877f
KH
55292000-02-23 Kenichi Handa <handa@etl.go.jp>
5530
5531 * syntax.c (multibyte_syntax_as_symbol): New variable.
5532 (syms_of_syntax): Declare it as a Lisp variable.
5533 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
5534 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
5535 nonzero, treat all multibyte characters as symbol.
42088c12 5536 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
5537 characters.
5538
130adcb7
EZ
55392000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5540
3cb65b0e 5541 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 5542 a deleted frame.
130adcb7 5543
17cbbf95
GM
55442000-02-21 Gerd Moellmann <gerd@gnu.org>
5545
5546 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
5547
5548 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5549 (x_non_menubar_window_to_frame): Check the busy-cursor window.
5550
beb0bc36
DL
55512000-02-21 Dave Love <fx@gnu.org>
5552
5553 * frame.c (Vmouse_position_function): New variable.
5554 (Fmouse_position): Use it.
5555 (syms_of_frame): Install it.
5556
5557 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
5558
1d92afcd
GM
55592000-02-20 Gerd Moellmann <gerd@gnu.org>
5560
5561 * fileio.c (Finsert_file_contents): Unbind the binding of
5562 standard-output done by temp_output_buffer_setup.
329eed9f
GM
5563
5564 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
5565 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
5566 (specbind, unbind_to): Handle most common case of non-constant
5567 symbol with trivial value specially.
5568
5569 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
5570
18e21ce8 55712000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
5572
5573 * data.c (Fmake_variable_buffer_local): Doc fix.
5574 Init found_for_buffer to 0.
5575 (Fmake_variable_frame_local): If the variable has already
5576 been buffer-local, set the check_frame field.
5577
1d4311c3
EZ
55782000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
5579
5580 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
5581 produced for CODING_MODE_LAST_BLOCK requires.
5582
2dc95ddd
DL
55832000-02-18 Dave Love <fx@gnu.org>
5584
5585 * keyboard.c (echo_keystrokes): Remove declaration.
5586 (Vecho_keystrokes) New variable.
5587 (read_char, record_menu_key, read_key_sequence): Use it to allow
5588 use of float value.
5589 (syms_of_keyboard): Change Vecho_keystrokes declaration.
5590
5591 * lread.c: Undef feature selection macros before defining.
5592
f0930f35
GM
55932000-02-18 Gerd Moellmann <gerd@gnu.org>
5594
5595 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
5596 for symbols other than the symbol in question.
5597
e3d4de90
DL
55982000-02-17 Dave Love <fx@gnu.org>
5599
5600 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
5601
0b378936
GM
56022000-02-17 Gerd Moellmann <gerd@gnu.org>
5603
d621caf7
GM
5604 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
5605
0b378936
GM
5606 * alloc.c (enum mem_type): Compile unconditionally.
5607
3b451f74
EZ
56082000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
5609
5610 * xfaces.c (tty_defined_color): Don't return faulire indication
5611 for unspecified-fg and unspecified-bg pseudo-colors.
5612
10689a01
GM
56132000-02-17 Gerd Moellmann <gerd@gnu.org>
5614
1216f5e4
GM
5615 * alloc.c (mark_object): Don't mark symbol names in pure space.
5616 (gc_sweep): Don't unmark symbol names in pure space.
5617
5618 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
5619 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
5620 [GC_MARK_STACK]: New defines.
427ec082 5621 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
5622 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
5623
5624 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
5625
5626 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
5627 allocate_buffer instead of xmalloc.
5628
5629 * alloc.c (toplevel): Include setjmp.h.
5630 (PURE_POINTER_P): New define.
5631 (enum mem_type) [GC_MARK_STACK]: New enumeration.
5632 (Vdead) [GC_MARK_STACK]: New variable.
5633 (lisp_malloc): Add parameter TYPE, call mem_insert if
5634 GC_MARK_STACK is defined.
5635 (allocate_buffer): New function.
427ec082 5636 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
5637 (free_float) [GC_MARK_STACK]: Set type to Vdead.
5638 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
5639 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
5640 (MEM_NIL) [GC_MARK_STACK]: New define.
5641 (struct mem_node) [GC_MARK_STACK]: New structure.
5642 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
5643 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
5644 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5645 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
5646 (mark_stack) [GC_MARK_STACK]: New functions.
5647 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
5648 (clear_marks): Removed.
5649 (gc_sweep): Set free conses' car, free floats' type, free
5650 symbols' function to Vdead. Use lisp_free to free buffers.
5651 (init_alloc_once): Initialize Vdead.
5652 (survives_gc_p): Return non-zero for pure objects.
5653
5654 * alloc.c: Add comments throughout the file.
5655
2503c8b1
GM
5656 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
5657 that unblocks alarms.
5658
8389e1e2
GM
5659 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
5660 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
5661 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
5662
10689a01 5663 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 5664
bfc17d18
KH
56652000-02-17 Kenichi Handa <handa@etl.go.jp>
5666
4a09dee0
KH
5667 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
5668 avoid infinite error signaling. Allocate sufficient memory for
5669 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 5670
2b927d02
SM
56712000-02-17 Stefan Monnier <monnier@cs.yale.edu>
5672
5673 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
5674 depends on the previous behavior.
5675
b49cb764
GM
56762000-02-16 Gerd Moellmann <gerd@gnu.org>
5677
5678 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
5679
99e95407
GM
56802000-02-15 Gerd Moellmann <gerd@gnu.org>
5681
5682 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
5683
5684 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 5685 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
5686 write(2).
5687
6ffd3cf7
RS
56882000-02-15 Richard M. Stallman <rms@gnu.org>
5689
5690 * data.c (set_internal): Don't make variable buffer-local
5691 if within a let-binding for the same buffer.
5692 (let_shadows_buffer_binding_p): New function.
5693
5694 * eval.c (specbind): For buffer-local value,
5695 record the current buffer also.
5696 (unbind_to): Cope with that change.
5697
cad53475
GM
56982000-02-15 Gerd Moellmann <gerd@gnu.org>
5699
5700 * window.c (Fsave_window_excursion): Doc fix.
5701
1aa963c8
SM
57022000-02-15 Stefan Monnier <monnier@cs.yale.edu>
5703
5704 * syntax.c (back_comment): Make sure we only consider comment-starters
5705 of the relevant style and return -1 in case of a failure to find the
5706 beginning of the comment.
5707 (Fforward_comment): If back_comment fails, go back to the position just
5708 after the comment-end.
5709 (scan_lists): Add comment describing a very minor bug.
5710
b9b84fd3
SM
57112000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5712
5713 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
5714 `completion-regexp-list' in the docstring.
5715
3a28db80
DL
57162000-02-14 Dave Love <fx@gnu.org>
5717
5718 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
5719
fb4a568d
SM
57202000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5721
5722 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
5723 to Emacs' syntax. Also fix the comment about set/not-set meanings
5724 since Emacs syntax is not the value 0 any more.
5725 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
5726 since it's now part of RE_SYNTAX_EMACS.
5727
1063ebb5
DL
57282000-02-12 Dave Love <fx@gnu.org>
5729
5730 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
5731 Alpha.
5732
fb07a302
GM
57332000-02-12 Gerd Moellmann <gerd@gnu.org>
5734
5735 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
5736
aaf2320c
DL
57372000-02-12 Dave Love <fx@gnu.org>
5738
5739 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
5740
5741 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
5742 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
5743 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
5744
5745 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
5746
5747 * s/nextstep.h: Don't define HAVE_ALLOCA.
5748
5749 * config.in: Add vfork bits.
5750
eedf8bde
GM
57512000-02-12 Gerd Moellmann <gerd@gnu.org>
5752
5753 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
5754 unwind function to undo the effect of stopping atimers.
5755
5756 * keyboard.c (bind_polling_period): Stop all timers except
5757 poll_timer.
5758
5759 * atimer.c (stopped_atimers): New variable.
5760 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
5761 New functions.
5762
5763 * atimer.h (stop_other_atimers, run_all_atimers)
5764 (unwind_stop_other_atimers): Add function prototypes.
427ec082 5765
eedf8bde
GM
5766 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
5767
8476c2f8
KR
57682000-02-11 Ken Raeburn <raeburn@gnu.org>
5769
5770 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
5771 library may depend on jpeg.
5772 (atimer.o): Depends on atimer.c.
5773
0e85e4a3
KH
57742000-02-11 Kenichi Handa <handa@etl.go.jp>
5775
5776 * insdel.c (del_range_1): Call update_compositions.
5777 (del_range_both): Call update_compositions just once..
5778
97fa0cc8
DL
57792000-02-10 Dave Love <fx@gnu.org>
5780
5781 * xfns.c (create_frame_xic): Fix initialization of automatic
5782 aggregates for pcc.
5783
25566a3c
KH
57842000-02-09 Kenichi Handa <handa@etl.go.jp>
5785
5786 * ccl.c (CCL_MAKE_CHAR): New macro.
5787 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
5788 registers by CCL_MAKE_CHAR before calling translate_char.
5789 <CCL_TranslateCharacterConstTbl> Likewise.
5790
69da54ba
DL
57912000-02-08 Dave Love <fx@gnu.org>
5792
5793 * lread.c (__EXTENSIONS__): Define.
5794
f7136ee8
GM
57952000-02-08 Gerd Moellmann <gerd@gnu.org>
5796
5797 * puresize.h (BASE_PURESIZE): Increase to 650000.
5798
7768790b
EZ
57992000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5800
5801 * msdos.c (XMenuActivate): Turn off the cursor after displaying
5802 the help message.
5803
38fd211b
EZ
58042000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5805
5806 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
5807 md, mh, mb, mr, and me to the fake termcap entry.
5808
66e4690f
KR
58092000-02-06 Ken Raeburn <raeburn@gnu.org>
5810
5811 * sound.c (sound_cleanup): Don't call device close routine if the
5812 function pointer is null.
5813
a75dfea0
AI
58142000-02-06 Andrew Innes <andrewi@gnu.org>
5815
5816 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
5817 around image definitions and prototypes.
5818 (gamma_correct) [WINDOWSNT]: New prototype.
5819
5820 * w32term.c (x_make_frame_visible): Replace call to
5821 input_poll_signal with poll_for_input.
5822
5823 * window.c [WINDOWSNT]: Include w32term.h.
5824
5825 * xdisp.c [WINDOWSNT]: Include w32term.h.
5826
5827 * makefile.nt: Add dependencies on w32gui.h.
5828 (OBJ1): Include atimer.obj.
5829 ($(BLD)\atimer.obj): New dependency rule.
5830
5831 * w32.c (sigmask): New function (does nothing).
5832 (sigunblock): Ditto.
5833
5834 * frame.c [WINDOWSNT]: Include w32term.h.
5835
5836 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
5837
5838 * lread.c (syms_of_lread): Fix literal newlines.
5839
5840 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
5841 the string constant limit (2048 bytes) in MSVC.
5842 (main): Ditto.
5843
59ddecde
GM
58442000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
5845
5846 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
5847 area.
5848 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
5849 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
5850 dispatch the event.
5851
07590973
DL
58522000-02-04 Dave Love <fx@gnu.org>
5853
5854 * fileio.c: Remove some unused vars.
5855 (_GNU_SOURCE): Define (for euidaccess).
5856
5857 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
5858
5859 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
5860 gcpro1, gcpro2.
5861 (read_minibuf): Deal with allow_props correctly.
5862
649351f9
EZ
58632000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
5864
5865 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
5866
66e4690f 58672000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
5868
5869 * search.c (compile_pattern): If a cache entry has a nil regexp,
5870 fill in that entry instead of clobbering a previously cached
5871 string regexp.
5872
66e4690f 58732000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
5874
5875 * puresize.h (BASE_PURESIZE): Increase to 610000.
5876
d240a249
GM
58772000-02-02 Gerd Moellmann <gerd@gnu.org>
5878
5879 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
5880 can GC.
5881
ca91fb26
KH
58822000-02-02 Kenichi Handa <handa@etl.go.jp>
5883
25660570
KH
5884 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
5885 instead of incrementing ic directly.
5886 <CCL_WriteExprConst> Likewise.
5887 <ccl_set_expr>: Set ic to jump_address.
5888
ca91fb26
KH
5889 * fileio.c (e_write): Fix the handling of
5890 CODING_FINISH_INSUFFICIENT_SRC.
5891
2ede9689
DL
58922000-02-01 Dave Love <fx@gnu.org>
5893
5894 * editfns.c (Fpropertize): Doc fix.
5895
5896 * process.c (Fstart_process): Doc fix.
5897
5898 * eval.c: Fix various doc strings not to duplicate information
5899 from help-manyarg-func-alist.
5900
5901 * window.c (Fset_window_margins): Don't make interactive. Doc
5902 fix.
5903
5904 * doc.c (Vhelp_manyarg_func_alist): New variable.
5905 (Fdocumentation): Use it.
5906 (syms_of_doc): Define it.
5907
b6680a0e
GM
59082000-01-31 Gerd Moellmann <gerd@gnu.org>
5909
2cb750ba
GM
5910 * xterm.c (xim_open_dpy): Remove unused local variable.
5911
74e9213b
GM
5912 * emacs.c (USAGE): Use term `display options' instead of `X
5913 options'.
5914
5915 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
5916 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5917
b6680a0e
GM
5918 * fns.c (sweep_weak_table): New function.
5919 (sweep_weak_hash_tables): Use it. Keep on marking until there
5920 is no more change.
5921
994c5afe
GM
59222000-01-30 Gerd Moellmann <gerd@gnu.org>
5923
5924 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
5925 that XTread_socket does not crash by trying to call XNoOp on a
5926 closed display.
427ec082 5927
f00276e3
JR
59282000-01-30 Jason Rumney <jasonr@gnu.org>
5929
5930 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5931 Change selected_frame to SELECTED_FRAME ().
5932 (w32_console_mouse_position): Remove #ifndef MULE from around
5933 `insist' parameter.
5934
5935 * makefile.nt: Remove dosfns.obj.
5936
5937 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
5938
5939 * w32fns.c (w32_defined_color): Check for valid frame before
5940 applying gamma correction. Eliminate dependency on frame elsewhere.
5941 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
5942 (w32_to_x_font): Use resx and resy not height_in and width_in.
5943 (x_to_w32_font): Doc fix.
5944 (xlfd_strip_height): New function to strip and return font height.
5945 (w32_font_match): Compare height separately from rest of xlfd
5946 spec, using xlfd_strip_height.
5947
5948 * w32term.c (w32_term_init): Swap resx and height_in, resy and
5949 width_in. Use w32_defined_color in place of defined_color.
5950
5951 * w32faces.c: Merge more of DOS and X specifics in preparation for
5952 merge with xfaces.c.
5953 (defined_color): Remove FIXME comment.
5954 (tty_color_name): Provide w32-specific function.
5955 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
5956
5957 * w32console.c (turn_on_face, turn_off_face): Removed.
5958 (w32_face_attributes): New function.
5959 (Global_variables): Reduce scope where possible.
5960 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
5961 fill attribute.
5962 (hl_mode): Don't modify text attributes.
5963 (write_glyphs): Don't do anything if len <= 0. Use
5964 w32_face_attributes to get attributes for drawing. Write
5965 terminating codes using char_attr_normal.
5966 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
5967 (update_begin, update_end): Likewise.
5968 (vga_stdcolor_name): New function.
5969 (initialize_w32_display): Remove char_attr_reverse and char_attr.
5970 (Fset_screen_color): Remove char_attr_reverse.
5971
b08e8bb2
GM
59722000-01-29 Gerd Moellmann <gerd@gnu.org>
5973
5974 * xfns.c (xic_set_preeditarea): Take window parameter and
5975 window-relative pixel-positions.
5976
5977 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
5978 is its frame's selected window.
5979 (xim_instantiate_callback): Likewise.
5980
5981 * xfns.c (x_create_im): Removed.
5982 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
5983 (supported_xim_styles): Renamed from supported_styles.
5984 (best_xim_style): Renamed from best_style.
5985 (create_frame_xic): Renamed from xic_create_frame.
5986 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 5987
b08e8bb2
GM
59882000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
5989
5990 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
5991 our frames, call XFilterEvent with 2nd parameter `None'.
5992 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
5993 returning XBufferOverflow.
5994 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
5995 area.
5996 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
5997 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
5998 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
5999 (xim_initialize, xim_close)
6000 [HAVE_X_I18N && HAVE_X11R6]: New functions.
6001 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
6002 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
6003 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
6004
6005 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
6006 and `xim_styles'.
6007 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
6008 `xic_style' and `xic_xfs'.
6009 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
6010 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
6011 (FRAME_XIM): Removed.
6012
6013 * xfns.c (supported_styles): New variable.
6014 (DEFAULT_STYLE, DEFAULT_FONT): New macros
6015 (xic_create_xfontset, best_style, xic_create_frame)
6016 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
6017 (xic_set_xfontset): New functions.
6018
142e109c
DL
60192000-01-28 Dave Love <fx@gnu.org>
6020
6021 * s/irix6-5.h: Revert last change after change to irix5-0.h.
6022
6023 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
6024
b02786f9
GM
60252000-01-28 Gerd Moellmann <gerd@gnu.org>
6026
d060bc9f
GM
6027 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
6028 for *scratch* if it already existed.
6029
b02786f9
GM
6030 * emacs.c (USAGE): New macro.
6031 (main): Use it to display usage information.
6032
2c52d7e4
EZ
60332000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6034
6035 Support for the menu-help feature:
6036
6037 * msdos.h: Change prototypes of XMenuAddSelection and
6038 XMenuActivate.
6039
6040 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
6041 part of the line to the termscript file.
6042 (IT_clear_to_end): Clear the entire line, not just its beginning.
6043 (menu_help_message, prev_menu_help_message): New variables.
6044 (IT_menu_make_room): Make room for the help_text member.
6045 (IT_menu_display): New argument disp_help; all callers changed.
6046 If disp_help is non-zero, store the help text of the active menu
6047 item in menu_help_message.
6048 (XMenuAddPane): Initialize the help_text member to NULL.
6049 (XMenuAddSelection): New argument help_text. Store it in the
6050 XMenu structure.
6051 (XMenuActivate): New argument help_callback. If the value of
6052 menu_help_message has changed since the last time, display the
6053 menu help message text while waiting for the mouse to move. Clear
6054 the echo area before exiting.
6055 (XMenuDestroy): Free the help_text member.
6056
ffe0bcd1
GM
60572000-01-27 Gerd Moellmann <gerd@gnu.org>
6058
6059 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
6060 XMenuAddSelection. Pass help callback to XMenuActivate.
6061 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
6062
50dbd23f
EZ
60632000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6064
6065 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
6066 and EMACS_SET_USECS.
6067
f5941bf8
GM
60682000-01-26 Dave Love <fx@gnu.org>
6069
6c67ddee
DL
6070 * editfns.c (Fchar_after, Fchar_before): Doc fix.
6071
f5941bf8
GM
6072 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
6073 an error may be signalled.
6074
9e49c990
GM
60752000-01-26 Gerd Moellmann <gerd@gnu.org>
6076
fc3cb460
GM
6077 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
6078 LD_SWITCH_SYSTEM inherited from irix5-0.h.
6079
9e49c990
GM
6080 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
6081
d0c037d8
GM
60822000-01-25 Gerd Moellmann <gerd@gnu.org>
6083
6084 * charset.c (Fstring): If there is a multibyte char among
6085 the args, always return a multibyte string.
6086
e12489f9
GM
60872000-01-25 Gerd Moellmann <gerd@gnu.org>
6088
6089 * sysdep.c (sys_select): Turn atimers off and on instead of
6090 recording and restoring old alarm handler
6091
6092 * process.c (toplevel): Include atimer.h.
6093 (create_process_1): Rewritten.
6094 (create_process): Use atimers instead of alarm.
6095 (wait_reading_process_input) [hpux]: Turn atimers off instead
6096 of turning off SIGALRM.
6097 (wait_reading_process_input): Turn off atimers instead off
6098 calling stop_polling.
6099
6100 * emacs.c (main): Call init_atimer.
6101
6102 * keyboard.c (toplevel): Include systime.h and atimer.h.
6103 (polling_for_input): Removed because unused.
6104 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
6105 (poll_timer): New variable.
6106 (poll_for_input, poll_for_input_1): New functions.
6107 (start_polling, stop_polling): Rewritten.
6108
6109 * keyboard.h (polling_for_input): Removed.
427ec082 6110
e12489f9
GM
6111 * atimer.h, atimer.c: New files.
6112
6113 * Makefile.in (obj): Add atimer.o.
6114 (atimer.o): New target.
6115
6116 * blockinput.h (pending_atimers): Add extern declaration.
6117 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
6118
6119 * lisp.h (popup_activated_flag): Add extern declaration.
6120
6121 * xmenu.c (popup_activated_flag): Make externally visible.
6122 (popup_activate_callback) [USE_MOTIF]: Increment
6123 popup_activated_flag.
6124 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
6125
6126 * xterm.c (toplevel): Include atimer.h.
6127 (toolkit_scroll_bar_interaction): New variable.
6128 (Fxt_process_timeouts): Removed.
6129 (x_process_timeouts): New function.
6130 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
6131 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
6132 (x_make_frame_visible): Call poll_for_input_1 instead of
6133 input_poll_signal. Don't call alarm.
6134 (x_initialize): Install timer calling x_process_timeouts.
427ec082 6135
1e5279b9
DL
61362000-01-24 Dave Love <fx@gnu.org>
6137
6c67ddee 6138 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
6139 Don't use -cckr -- apparently not now necessary.
6140
edf6aeb8
EZ
61412000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6142
6143 * msdos.c (IT_menu_display): Truncate long menu lines at the right
6144 screen boundary.
6145
9badad41
JR
61462000-01-23 Jason Rumney <jasonr@gnu.org>
6147
6148 * w32fns.c (w32_defined_color): Apply gamma correction before
6149 trying to map to the palette.
6150 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
6151 to w32_clear_rect.
6152
6153 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
6154 here. Callers changed to always pass real device context.
6155 (w32_draw_bitmap): Likewise.
6156 (w32_get_glyph_overhangs): Likewise.
6157 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
6158 one.
6159 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
6160 pfnSetScrollInfo and SetScrollRange.
6161 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
6162 back into MULE characters after decoding them.
6163 (x_get_glyph_face_and_encoding): Likewise.
6164 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
6165 GetCharABCWidthsW fails, since this is defined on Windows 9x.
6166 (x_produce_glyphs): Calculate per char metrics for a character
6167 that we know exists in default font when font_not_found_p is true.
6168
63bd786b
JR
61692000-01-22 Jason Rumney <jasonr@gnu.org>
6170
6171 * makefile.nt (intervals.obj, composite.obj): New modules.
6172 (composite.h): Added as dependency where appropriate.
6173
6174 * w32gui.h (XGCValue): New struct for emulating X GCs.
6175
6176 * w32term.h (XCharStruct): New struct for emulating X.
6177
6178 * w32console.c (turn_on_face, turn_off_face): New functions.
6179 (change_line_highlight): New prototype for new redisplay.
6180 (write_glyphs): Support multibyte text. Support faces.
6181
6182 * w32faces.c: Complete rewrite for new redisplay based on new
6183 xfaces.c.
6184
6185 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
6186 throughout. struct frame * in place of FRAME_PTR.
6187 Skeleton support for images, toolbars, tooltips from xfns.c.
6188 (Fx_create_frame): Use system default for default scroll bar
6189 width.
6190 (w32_get_arg): Renamed from x_get_arg.
6191 (Fx_file_dialog): New function.
6192 (w32_list_fonts): Check cache before asking system.
6193 (Vw32_enable_synthesized_fonts): New variable.
6194 (Vw32_enable_italics): Obsolete, removed.
6195
6196 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6197 Use SELECTED_FRAME macro.
6198
6199 * w32menu.c: Add skeleton support for help strings on menus.
6200 (add_menu_item): Native checkbox and radio support added, but not
6201 yet enabled due to bugs.
6202 (push_menu_item): Add parameters type, selection and help.
6203 Callers updated.
6204 Formatting changes to reduce unnecessary diffs with xmenu.c.
6205
6206 * w32select.c (Fw32_set_clipboard_data): Update call to
6207 find_charset_in_str.
6208
6209 * w32term.c: Complete rewrite for new redisplay based on new
6210 xterm.c with necessary sections merged back in from old w32term.c.
6211
6ffd3cf7 62122000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
6213
6214 * data.c (set_internal): Further fix in same criterion.
6215
6ffd3cf7 62162000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
6217
6218 * data.c (set_internal): Fix the criteria for whether
6219 to swap out the old cached binding.
6220
60af03f1
DL
62212000-01-19 Dave Love <fx@gnu.org>
6222
6223 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
6224
f9be074f
KH
62252000-01-18 Kenichi Handa <handa@etl.go.jp>
6226
6227 * regex.c (re_compile_fastmap): While checking a range table for
6228 `charset', skip flag bits for a character class correctly.
6229
52b8dbf9
GM
62302000-01-17 Gerd Moellmann <gerd@gnu.org>
6231
d36100c9
GM
6232 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
6233
52b8dbf9
GM
6234 * xfns.c (x_window): Call lw_create_widget with new parameter
6235 list.
6236
6237 * widget.c (EmacsFrameSetCharSize): Change size of children first
6238 because of problems with main window geometry management under
6239 Lesstif.
6240
6241 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
6242 MENU_ITEMS_ITEM_.*.
6243 (MENU_ITEMS_ITEM_HELP): New enumerator.
6244 (push_menu_item): Add parameter HELP. Record help in menu_items.
6245 (single_menu_item, single_submenu, list_of_items): Call
6246 push_menu_item with new parameter.
6247 (single_submenu): Set help string in widget value.
6248 (menu_highlight_callback): New function.
6249 (set_frame_menubar): Call lw_create_widget with new
6250 parameter list.
6251 (xmenu_show, xdialog_show): Ditto.
6252
3139018f
GM
62532000-01-13 Gerd Moellmann <gerd@gnu.org>
6254
6255 * sound.c (Fplay_sound): Improve doc string.
6256
83c8f461
RS
62572000-01-11 Richard M. Stallman <rms@gnu.org>
6258
6259 * lisp.h (set_internal): Enter the new arg.
6260
6261 * eval.c (specbind): Record buffer-local variables specially,
6262 indicating which buffer's binding was saved.
6263 (unbind_to): Restore buffer-local variables specially
6264 in the proper buffer.
6265
6266 * data.c (set_internal): New arg BUF.
427ec082 6267
83c8f461
RS
6268 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
6269 * data.c (Fset): Pass new arg to set_internal.
6270 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 6271
1fab1775
GM
62722000-01-11 Gerd Moellmann <gerd@gnu.org>
6273
6274 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6275 xprintsym.
6276
83c8f461 62772000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
6278
6279 * minibuf.c (Ftry_completion): Doc fix.
6280
7a85e4df
GM
62812000-01-11 Gerd Moellmann <gerd@gnu.org>
6282
6283 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6284 vector, too.
6285
a970dae4
AS
62862000-01-11 Andreas Schwab <schwab@suse.de>
6287
6288 * coding.c (code_convert_region): Initialize total_skip.
6289
c65d14ee
DL
62902000-01-08 Dave Love <fx@gnu.org>
6291
6292 * eval.c (Fuser_variable_p): Check customizability too.
6293
834938d2
GM
62942000-01-07 Gerd Moellmann <gerd@gnu.org>
6295
6296 * minibuf.c (Fcompleting_read): Doc fix.
6297
e0303cd6
GM
62982000-01-05 Gerd Moellmann <gerd@gnu.org>
6299
8a26744b
GM
6300 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6301 -L /usr/local/lib.
6302
e0303cd6
GM
6303 * xfns.c (x_create_im): New function to set IM and IC of a frame.
6304 Check that input style is supported before trying to create an
6305 IC for it.
6306 (x_window): Call x_create_im.
427ec082 6307
2e471eb5
GM
63082000-01-04 Gerd Moellmann <gerd@gnu.org>
6309
560a7bd2
GM
6310 * xfns.c (current_gif_memory_src): New variable.
6311 (gif_load): Record the address of the current memory source
6312 in current_gif_memory_src.
6313 (gif_read_from_memory): Use current_gif_memory_src.
6314
f9ee84a3
GM
6315 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6316 macros statement form.
6317
d1299cde
GM
6318 * sound.c (struct sound): Renamed from struct sound_file.
6319 (struct sound): Add members `data' and `header_size'.
6320 (enum sound_attr): Add SOUND_DATA.
6321 (current_sound, current_sound_device): Variables renamed from
6322 sound_file and sound_device.
6323 (parse_sound): Parse :data.
6324 (parse_sound): Handle sound data in strings.
6325 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 6326 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
6327 needed header size.
6328 (wav_play, au_play): Play sounds from string data.
6329
2e471eb5
GM
6330 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6331
6332 * lisp.h: Add prototype for allocate_string_data.
6333
6334 * alloc.c (Fgarbage_collect): Return number of live and free
6335 strings.
6336
6337 * alloc.c (mark_buffer): Remove code in #if 0.
6338 (gc_sweep): Ditto.
6339 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
6340 (strings_consed): New variable.
6341 (allocate_string): Set it.
6342 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
6343 (Fmemory_use_counts): Return strings_consed. Use Flist.
6344
6345 * alloc.c: General cleanup in comments etc. Remove conditional
6346 compilation for `standalone'.
6347
6348 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6349
6350 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
6351 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
6352 (DONT_COPY_FLAG): Removed.
6353 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
6354 (struct sdata, struct sblock): New
6355 (struct string_block): Rewritten.
6356 (STRINGS_IN_STRING_BLOCK): New macro.
6357 (oldest_sblock, current_sblock, total_strings, total_free_strings)
6358 (large_sblocks, string_blocks, string_free_list): New variables.
6359 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
6360 (init_strings): Rewritten.
6361 (allocate_string, allocate_string_data, compact_small_strings)
6362 (free_large_strings, sweep_strings): New functions.
6363 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
6364 (struct string_block_head, current_string_block)
6365 (first_string_block, large_string_blocks, STRING_FULLSIZE)
6366 (STRING_PAD): Removed.
6367 (make_uninit_multibyte_string, make_pure_string): Rewritten.
6368 (Fgarbage_collect): Don't set mark bit in large strings.
6369 (mark_object): Mark strings differently. Mark symbol names
6370 differently.
6371 (survives_gc_p): Test marked strings differently.
427ec082 6372 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
6373 symbol names.
6374 (compact_strings): Removed.
6375
42608ba8
EZ
63762000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6377
6378 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6379 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6380
e0a09e1a
KH
63812000-01-04 Kenichi Handa <handa@etl.go.jp>
6382
dd9f0750 6383 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 6384 in a non-empty buffer.
dd9f0750 6385
3c0f3b15 6386 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 6387
44cd3ae5
GM
63882000-01-03 Gerd Moellmann <gerd@gnu.org>
6389
6390 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6391 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
6392
6393 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
6394
c182a70f
EZ
63952000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6396
6397 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
6398 need to test for MSDOS frames.
6399
24480d5b
EZ
64002000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6401
6402 * dosfns.c (unspecified_colors): Remove.
6403 (msdos_stdcolor_idx): Use global variables unspecified_fg and
6404 unspecified_bg.
6405 (msdos_stdcolor_name): Return strings for unspecified fore- and
6406 back-ground colors.
6407
6408 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 6409 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
6410 (tty_color_name): Return Lisp strings for unspecified fore- and
6411 back-ground colors.
6412 (Finternal_set_lisp_face_attribute): Remove the special treatment
6413 for Qunspecified_{f,b}g.
6414 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
6415 string.
6416
047f434a
GM
64172000-01-03 Gerd Moellmann <gerd@gnu.org>
6418
6419 * xdisp.c (reseat_at_next_visible_line_start): Position before
6420 newline only if ending up on a newline.
6421 (next_element_from_ellipsis): Return success. Handle case of
6422 displaying no ellipsis. Fix case of ellipsis defined in display
6423 table.
6424 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
6425 returns 0.
6426
d684c676
EZ
64272000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6428
6429 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
6430 (Fcolor_supported_p): Renamed from face-color-supported-p.
6431
5fe1d139
EZ
64322000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6433
6434 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
6435 list of colors renamed to tty-defined-color-alist.
6436 (tty_color_name): Pass the frame to tty-color-by-index.
6437 (realize_tty_face): tty-color-alist is now a function which
6438 accepts the frame as argument.
6439
6440 * term.c (Ftty_display_color_p): Accept an optional argument
6441 FRAME.
6442
816be8b8
EZ
64432000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6444
6445 * term.c (insert_glyphs): Pass glyph, not &glyph, to
6446 encode_terminal_code.
6447
b635321e
EZ
64482000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6449
6450 * dispnew.c (mode_line_string): Support termcap frames as well.
6451
9b784e96
GM
64522000-01-01 Gerd Moellmann <gerd@gnu.org>
6453
27189709
GM
6454 * syntax.c (Fforward_word): Undo previous change.
6455
6456 * editfns.c (Fconstrain_to_field): Don't constrain if
6457 inhibit-field-text-motion is non-nil.
6458 (Fline_beginning_position): Undo previous change.
6459 (Fline_end_position): Ditto.
6460
6461 * syntax.c (Fforward_word): Notice field boundaries only if
6462 inhibit-field-text-motion is nil.
6463
6464 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
6465
6466 * editfns.c (Vinhibit_field_text_motion): New variable.
6467 (inhibit-field-text-motion): New DEFVAR_LISP.
6468 (Fline_beginning_position, Fline_end_position): Notice field
6469 boundaries only if inhibit-field-text-motion is nil.
6470
45158a91
GM
6471 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
6472 All calls adjusted.
6473 (x_build_heuristic_mask): Likewise.
6474 (xbm_load_image_from_file): Change error output.
6475 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
6476 (gif_load, gs_load, x_kill_gs_process): Ditto.
6477
9b784e96
GM
6478 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
6479 color indices when accessing raster pixels.
63cec32f
GM
6480 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
6481 one of :file or :data.
6482 (enum pbm_keyword_index): Add PBM_DATA.
6483 (pbm_format): Add :data.
6484 (pbm_image_p): Allow either :file or :data.
6485 (pbm_read_file): New function.
6486 (pbm_scan_number): Rewritten to read from string.
6487 (pbm_load): Support :data.
9b784e96 6488
2cb085db 6489See ChangeLog.8 for earlier changes.
6922b018
KH
6490
6491;; Local Variables:
49b3bd82 6492;; coding: iso-2022-7bit
6922b018 6493;; End: