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