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