1 2000-09-18 Dave Love <fx@gnu.org>
3 * keyboard.c (menu_bar_items, tool_bar_items)
4 (current_active_maps): Remove redundant get_local_map call.
6 2000-09-18 Gerd Moellmann <gerd@gnu.org>
8 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9 cursor for buffers whose cursor_type is nil.
11 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
12 a feature to implement that is already implemented.
13 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
16 * xfns.c (x_clear_image_1): New function.
17 (x_clear_image): Use it.
18 (x_from_xcolors): Use x_clear_image_1; don't free the image's
21 * dispnew.c (update_window): Move test for invisible lines
22 at the top to update_window_line.
23 (update_window_line): Handle invisible lines here.
25 * xfns.c (clear_image_cache): Clear current matrices of all
26 frames sharing an image cache. Block input while freeing
27 images. Fix timestamp comparison.
28 (x_clear_image): Also free the mask.
30 * xfns.c (lookup_image): Block input while loading the image so
31 that we won't get interrupted in a state where the image isn't yet
33 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
34 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
35 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
36 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
39 2000-09-16 Gerd Moellmann <gerd@gnu.org>
41 * dispnew.c (update_window): Make sure to make desired rows
42 current even if they are completely invisible at the top
45 2000-09-15 Gerd Moellmann <gerd@gnu.org>
47 * xfns.c (lookup_image): Build mask before applying an algorithm.
48 Recognize algorithm `disabled'.
49 (cross_disabled_images): New variable.
50 (COLOR_INTENSITY): New macro.
51 (x_detect_edges): Use COLOR_INTENSITY.
52 (x_disable_image): New function.
53 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
55 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
56 disabled state, don't apply an image transformation algorithm if
57 the user specified an image for the disabled state. Use
58 `:algorithm disabled' for creating a disabled item's image if the
59 user hasn't specified an image.
61 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
62 allocation functions with the XPM lib.
63 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
64 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
65 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
66 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
67 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
69 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
70 functions, if possible, because these handle color allocation
71 failure more gracefully.
72 (Fimage_mask_p): New function.
74 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
75 (Qedge_detection, Qheuristic): New symbols.
76 (syms_of_xfns): Initialize new symbols.
77 (lookup_image): Handle `:mask X', `:algorithm emboss', and
78 `algorithm (edge-detection ...)'.
79 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
80 (tiff_format, gif_format, gs_format): Add `:mask'.
81 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
82 (GIF_MASK, GS_MASK): New enumerators.
83 (x_laplace_read_row, x_laplace_write_row): Functions removed.
84 (emboss_matrix, laplace_matrix): New variables.
85 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
86 (x_edge_detection): New functions.
87 (x_laplace): Rewritten in terms of x_detect_edges.
88 (x_build_heuristic_mask): If image has a mask, free it.
90 2000-09-14 Andrew Innes <andrewi@gnu.org>
92 * makefile.w32-in: Revert to Unix line endings.
94 2000-09-14 Andrew Innes <andrewi@gnu.org>
96 * makefile.w32-in: Standardize indentation somewhat.
97 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
98 cater for differences between shells.
100 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
102 2000-09-14 Gerd Moellmann <gerd@gnu.org>
104 * xterm.c (x_produce_glyphs): If the distance from the current
105 position to the next tab stop is less than a canonical character
106 width, use the tab stop after that.
108 2000-09-14 Dave Love <fx@gnu.org>
110 * buffer.c (alloc_buffer_text): Fix xmalloc call.
112 2000-09-14 Gerd Moellmann <gerd@gnu.org>
114 * xdisp.c (handle_fontified_prop): While running fontification
115 functions, bind `fontification-functions' and
116 `after-change-functions' to nil.
118 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
119 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
121 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
123 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
124 USE_MMAP_FOR_BUFFERS.
126 * insdel.c (make_gap): Use enlarge_buffer_text.
128 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
129 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
130 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
131 from former r_alloc_* functions in ralloc.c.
132 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
134 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
135 (mmap_init) [REL_ALLOC_MMAP]: New function.
136 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
137 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
140 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
141 (enlarge_buffer_text): Add prototype.
143 * ralloc.c: Remove everything having to do with the use of mmap.
145 2000-09-13 Gerd Moellmann <gerd@gnu.org>
147 * sound.c (Fplay_sound): Doc fix.
149 * keyboard.c: Avoid some more compiler warnings.
150 (parse_tool_bar_item): Ignore cached key bindings.
152 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
153 and allocation of Lisp data.
155 2000-09-12 Gerd Moellmann <gerd@gnu.org>
157 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
158 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
161 * lread.c (Fload): Put code checking for recursive loads in #if 0.
163 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
165 * ccl.c: Comment fixed.
166 (MAX_MAP_SET_LEVEL): Increased to 30.
167 (PUSH_MAPPING_STACK): Enclose with do-while block.
168 (POP_MAPPING_STACK): Likewise.
169 (stack_idx_of_map_multiple): New variable.
170 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
171 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
172 call the corresponding CCL program by
173 CCL_CALL_FOR_MAP_INSTRUCTION.
174 (ccl_driver) <CCL_MapSingle>: Likewise.
175 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
176 with the case where looking up process reaches to the end of
177 map-set, and call CCL programs as the above change.
179 2000-09-11 Gerd Moellmann <gerd@gnu.org>
181 * xfns.c (png_load, jpeg_load): Declare some variables volatile
182 that might be clobbered by longjmp.
183 (check_x_display_info, x_decode_color, create_frame_xic)
184 (Fx_display_backing_store, Fx_display_visual_class)
185 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
188 * lread.c (init_lread): Set Vloads_in_progress to nil.
189 (Fload): Show list of recursively loaded files, when signaling an
192 * lread.c (Vloads_in_progress): New variable.
193 (record_load_unwind): New function.
194 (Fload): Check for recursive loads.
195 (syms_of_lread): Initialize Vloads_in_progress.
196 (read_integer, read1): Avoid some compiler warnings.
198 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
201 2000-09-11 Miles Bader <miles@gnu.org>
203 * editfns.c (Fbuffer_string): Doc fix.
205 2000-09-10 Gerd Moellmann <gerd@gnu.org>
207 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
209 2000-09-09 Ken Raeburn <raeburn@gnu.org>
211 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
212 whether to include other header files.
214 2000-09-09 Gerd Moellmann <gerd@gnu.org>
216 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
217 by Fmemq as a boolean.
219 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
221 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
223 2000-09-08 Gerd Moellmann <gerd@gnu.org>
225 * ralloc.c (mmap_fd): Remove initializer which can make it
226 read-only in a dumped Emacs.
227 (mmap_fd_1): New variable.
228 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
229 restore it from there.
230 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
231 unconditionally so that mmap_fd can be initialized there.
232 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
233 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
234 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
236 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
238 * xdisp.c (dump_glyph_row): Fix printf format string.
239 (display_line, move_it_in_display_line_to): Avoid compiler
242 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
244 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
247 * xdisp.c (try_window_id): When trying to locate cursor in
248 unchanged rows at the top, handle the case that we can't find it.
250 * xterm.c (x_draw_glyphs): Handle case START and END are out
251 of bounds more carefully.
253 2000-09-08 Dave Love <fx@gnu.org>
255 * s/sol2.h (REL_ALLOC_MMAP): Define.
256 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
258 * ralloc.c: Don't include string.h (redundant).
259 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
260 [!MAP_ANON]: Include fcntl.h.
261 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
262 (r_alloc, r_re_alloc, r_alloc_free)
263 (mmap_enlarge, mmap_set_vars): Use it.
264 (r_alloc_init_fd): New function.
265 (__morecore) [SYSTEM_MALLOC]: Don't declare.
266 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
269 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
272 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
273 change to __NetBSD__.
275 2000-09-08 Kenichi Handa <handa@etl.go.jp>
277 * search.c (compile_pattern): Check the multibyteness of cached
280 2000-09-08 Miles Bader <miles@gnu.org>
282 * xfaces.c (default_face_vector): Function removed.
283 (Finternal_merge_in_global_face): Restore old global/local
284 attribute override order. Use inline loop instead of calling
287 2000-09-07 Gerd Moellmann <gerd@gnu.org>
289 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
290 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
291 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
292 where necessary, in case POINTER_TYPE is `void'.
294 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
296 * frame.c (make_terminal_frame): Initialize frame foreground and
297 background colors to unspecified, for the initial instance of an
300 2000-09-07 Gerd Moellmann <gerd@gnu.org>
302 * ralloc.c (mmap_find): Fix overlap computation.
303 (mmap_enlarge): Compute nbytes before trying to find an
306 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
309 * lread.c (syms_of_lread): Change value of regexp
310 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
312 * xmenu.c (xdialog_show): When looking up the selection in
313 menu_items, take `quote' boundaries into account; this corresponds
314 to a nil ITEM in x-popup-dialog.
316 2000-09-07 Kenichi Handa <handa@etl.go.jp>
318 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
320 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
322 * coding.c (encode_coding_sjis_big5): Use translation table for
323 encoding, not decoding. Fix the handling of latin-jisx0201.
324 Check for the charset katakana-jisx0201 too.
325 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
326 (detect_coding_sjis): Check the byte sequence more rigidly.
328 2000-09-07 Gerd Moellmann <gerd@gnu.org>
330 * xfaces.c (Vparam_value_alist): New variable.
331 (syms_of_xfaces): Initialize it.
332 (Finternal_set_lisp_face_attribute): Avoid more consing.
334 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
336 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
337 (Qbackground_mode): New variable.
338 (syms_of_frame_1): Initialize Qbackground_mode.
340 * lisp.h (Qdisplay): Declare extern.
342 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
343 change face on all frames, and change the default for new frames.
345 2000-09-07 Dave Love <fx@gnu.org>
347 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
349 2000-09-07 Kenichi Handa <handa@etl.go.jp>
351 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
353 * charset.c: Include composite.h
354 (lisp_string_width): New function.
355 (Fstring_width): Call lisp_string_width instead of strwidth.
357 * Makefile.in (charset.o): Depends on composite.h.
359 * process.c (read_process_output): Before inserting the decoded
360 text in the buffer, adjust the multibyteness.
362 2000-09-06 Gerd Moellmann <gerd@gnu.org>
364 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
365 buffer's text buffer is null, map new memory.
367 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
368 POINTER_TYPE and size_t.
369 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
370 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
371 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
372 [REL_ALLOC_MMAP]: New macros.
373 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
374 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
375 [REL_ALLOC_MMAP]: New functions.
377 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
378 before and after unexec.
380 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
381 text buffers if necessary.
383 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
384 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
387 * config.in (HAVE_MMAP): Add #undef.
389 2000-09-05 Gerd Moellmann <gerd@gnu.org>
391 * frame.c (Qdisplay_type): New variable.
392 (syms_of_frame_1): Initialize it.
393 (Fframe_parameter): New function that avoids consing.
394 (syms_of_frame): Defsubr it.
396 * buffer.c (Fother_buffer): Consider buffers as invisible when
397 they are displayed in a window on an invisible frame.
399 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
400 get-largest-window always return nil.
402 2000-09-04 Gerd Moellmann <gerd@gnu.org>
404 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
405 variable; recognize Emacs 19 elc files.
407 2000-09-04 Miles Bader <miles@gnu.org>
409 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
410 before initially popping up the menu, so the menu doesn't flash
411 when the face settings are significantly different from the
414 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
416 * regex.c (WIDE_CHAR_SUPPORT): New macro.
417 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
418 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
419 (BIT_UNIBYTE): Remove.
420 (re_match_2_internal): Delete corresponding code and streamline the
421 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
422 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
423 (re_wctype_t): New type.
424 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
425 (regex_compile): Use them and fix handling of overly long char classes.
427 2000-09-03 Andrew Innes <andrewi@gnu.org>
429 * makefile.w32-in: Change to DOS line endings.
431 * s/ms-w32.h (ORDINARY_LINK): New define.
433 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
434 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
436 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
437 (distclean): Delete them here instead.
439 * w32proc.c (compare_env): Convert to uppercase for comparison,
440 not lowercase, to match how the native Windows shell works.
442 2000-09-03 Jason Rumney <jasonr@gnu.org>
444 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
445 CVS changes the line-ends when checking in/out on DOS/Windows.
447 * makefile.nt (emacs): Do not change directory to run temacs, as
448 the load-path is set relative to current directory.
450 2000-09-03 Miles Bader <miles@gnu.org>
452 * xterm.c (x_alloc_lighter_color_for_widget): New function.
454 2000-09-02 Gerd Moellmann <gerd@gnu.org>
456 * xdisp.c (redisplay_mode_lines): New function.
457 (display_mode_lines): Return number of mode lines displayed.
458 (echo_area_display): Use redisplay_mode_lines to draw garbaged
459 mode lines. Don't temporarily bind redisplay-dont-pause to t.
461 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
462 string.h and strings.h.
463 (index) [HAVE_INDEX]: Add prototype.
465 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
466 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
468 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
469 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
471 2000-09-01 Gerd Moellmann <gerd@gnu.org>
473 * lread.c (read1): Accept `?' as symbol constituent, for
474 compatiblity with XEmacs.
476 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
478 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
479 (struct re_pattern_buffer): Remove newline_anchor.
480 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
481 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
482 (re_max_failures, fail_stack): Use size_t rather than unsigned.
483 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
484 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
485 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
486 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
487 Get rid of references to newline_anchor.
488 (regcomp): Allocate and precompute a fastmap.
490 2000-08-31 Gerd Moellmann <gerd@gnu.org>
492 * lread.c (openp): GCPRO local variable `filename'.
494 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
496 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
498 * regex.c: Merge some changes from GNU libc. Add prototypes.
499 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
500 Use memcmp and memcpy instead of bcopy and bcmp.
501 (init_syntax_once): Use ISALNUM.
502 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
503 (REG_UNSET_VALUE): Remove. Use NULL instead.
504 (REG_UNSET, re_match_2_internal): Use NULL.
505 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
507 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
508 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
509 (regex_compile): In handle_interval, return an error rather than try to
510 unfetch the interval if we can't find the closing brace.
511 Obey the RE_NO_GNU_OPS syntax bit.
512 (TOLOWER): New macro.
514 (regexec): Allocate regs.start and regs.end as one block.
516 2000-08-30 Gerd Moellmann <gerd@gnu.org>
518 * xdisp.c (echo_area_display): Check display_completed instead
519 of calling detect_input_pending.
521 * dispnew.c (update_frame): Only set display_completed here; move
522 the update_begin and update_end calls here from update_frame_1.
523 (update_frame_1): Don't set display_completed here, don't call
524 update_begin/update_end.
526 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
527 instead of store_frame_param.
529 2000-08-29 Gerd Moellmann <gerd@gnu.org>
531 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
532 desired window matrix hasn't been displayed, use the current row
533 instead. Make sure that only those frame rows are updated for
534 which there exists a corresponding enabled desired row.
536 2000-08-29 Miles Bader <miles@gnu.org>
538 * xfaces.c (default_face_vector): New function.
539 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
541 2000-08-29 Gerd Moellmann <gerd@gnu.org>
543 * lread.c (openp): Prevent temporary string passed to
544 Ffile_readable_p from being garbage collected.
546 2000-08-28 Dave Love <fx@gnu.org>
548 * keymap.c (store_in_keymap): Add `static' to declaration.
550 2000-08-28 Gerd Moellmann <gerd@gnu.org>
552 * emacs.c, callint.c, doc.c, editfns.c
553 (toplevel) [HAVE_STRING_H]: Include string.h.
554 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
555 (index): Remove prototypes which might conflict with non-standard
556 definitions of index/strchr.
558 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
559 (rindex): Define only if !HAVE_RINDEX.
561 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
563 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
565 2000-08-28 Miles Bader <miles@gnu.org>
567 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
568 made inconsistent by a font-related attribute in FROM.
569 (merge_face_inheritance): Add function comment.
571 2000-08-28 Kenichi Handa <handa@etl.go.jp>
573 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
574 the 4th arg (PREV_EVENT) Qt to suppress input method.
576 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
578 * regex.c: Indent cpp directives and remove parens after `defined'.
579 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
580 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
581 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
582 (re_compile_pattern): Use size_t for length.
583 (init_syntax_once): Move to a better place.
584 * regex.h: Merge changes from GNU libc. Indent cpp directives.
585 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
587 * syntax.c (back_comment): Detect cases where a comment-starter is
588 actually inside another comment as in: /* a // b */ c // d \n.
589 Make it clear that `comstart_pos' is unused for nested comments.
591 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
592 (KEYMAPP): New macro.
593 (Fkeymap_parent, Fset_keymap_parent): Use it.
594 (fix_submap_inheritance): Mark it static.
595 (define_as_prefix, describe_buffer_bindings, describe_command)
596 (describe_translation, describe_map): Complete prototypes.
598 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
600 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
601 to better match the key-lookup behavior.
603 2000-08-27 Gerd Moellmann <gerd@gnu.org>
605 * xfaces.c (lface_fully_specified_p): Handle :inherit.
606 (Finternal_set_lisp_face_attribute): Fix typo in error message.
608 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
610 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
611 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
612 (xterm.o): Depend on coding.h
614 2000-08-26 Kenichi Handa <handa@etl.go.jp>
616 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
617 the corresponding '#endif'.
619 2000-08-26 Miles Bader <miles@gnu.org>
621 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
622 * xfaces.c (QCinherit): New variable.
623 (syms_of_xfaces): Initialize it.
624 (LFACE_INHERIT): New macro.
625 (Finternal_get_lisp_face_attribute)
626 (merge_face_vector_with_property)
627 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
628 (check_lface_attrs): Allow new types of face height. Check
630 (CYCLE_CHECK): New macro.
631 (merge_face_inheritance): New function.
632 (merge_face_vectors): Merge inherited faces too. Add F and
633 CYCLE_CHECK arguments.
634 (merge_face_vector_with_property, Finternal_merge_in_global_face)
635 (lookup_named_face, lookup_derived_face, realize_named_face)
636 (face_at_string_position, face_at_buffer_position): Supply
637 new F and CYCLE_CHECK arguments to merge_face_vectors.
638 (merge_face_heights): New function.
639 (merge_face_vectors, merge_face_vector_with_property)
640 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
641 handle relative face heights.
642 (lface_same_font_attributes_p): Compare heights using EQ.
644 2000-08-26 Kenichi Handa <handa@etl.go.jp>
646 * charset.c (char_to_string): Check the character validity.
647 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
650 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
652 * regex.c (PUSH_FAILURE_COUNT): New macro.
653 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
654 Handle popping of a register's or a counter's data.
655 (POP_FAILURE_POINT): Use the new name.
656 (re_match_2_internal): Push counter data on the stack for succeed_n,
657 jump_n and set_number_at and remove misleading dead code in succeed_n.
659 2000-08-25 Gerd Moellmann <gerd@gnu.org>
661 * xdisp.c (redisplay_internal): If considering all windows on all
662 frames, update the display for each frame as soon as possible,
663 instead of first building all desired matrices for all frames, and
664 then updating them all.
665 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
667 2000-08-24 Gerd Moellmann <gerd@gnu.org>
669 * bytecode.c (mark_byte_stack): Add a comment.
671 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
672 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
675 2000-08-24 Kenichi Handa <handa@etl.go.jp>
677 * minibuf.c (do_completion): Always use compare-string, not
678 string-equal because the latter doesn't pay attention to
679 multibyteness of strings.
681 * process.c (create_process): Don't setup raw-text coding here.
682 (Fopen_network_stream): Don't set coding->src_multibyte and
683 coding->dst_multibyte here.
684 (read_process_output): For process filter, return unibyte string
685 if default-enable-multibyte-characters is nil.
686 (send_process): If OBJECT is multibyte text, be sure to encoded it
687 by the specified coding system for the process. Otherwise, setup
689 (init_process): Don't initialize default-process-coding-system
692 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
694 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
695 <scroll-down-aggressively>: Likewise.
697 2000-08-23 Kenichi Handa <handa@etl.go.jp>
699 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
700 zero. Set coding->produced_char correctly.
702 2000-08-22 Andrew Innes <andrewi@gnu.org>
704 * makefile.w32-in: New file.
706 * unexw32.c (unexec): Ignore old_name, and use the actual location
707 of the current executable instead. Base new_name on this.
709 * w32proc.c (create_child): Remove reference to security
710 descriptor, which isn't needed and doesn't compile with mingw32.
712 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
713 up dllimport attributes.
714 (x_update_window_end): Update prototype.
716 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
717 extern, which screws up dllimport attributes.
719 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
720 up dllimport attributes.
722 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
723 screws up dllimport attributes.
725 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
726 up dllimport attributes.
727 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
728 screws up dllimport attributes.
730 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
731 up dllimport attributes.
733 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
734 screws up dllimport attributes.
736 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
737 screws up dllimport attributes.
739 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
740 up dllimport attributes.
742 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
743 unnecessary extern, which screws up dllimport attributes.
746 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
747 up dllimport attributes.
749 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
750 unnecessary extern, which screws up dllimport attributes.
752 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
753 screws up dllimport attributes.
755 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
756 up dllimport attributes.
758 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
760 * w32bdf.c (search_file_line):
764 (w32_BDF_to_x_font): Fix compile warnings.
766 * w32menu.c: Include keyboard.h before frame.h. Fix compile
769 * w32select.c: Include keyboard.h before frame.h.
771 * w32fns.c (max): Define macro.
772 (JOHAB_CHARSET): Define if not known.
773 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
774 (Fx_show_tip): Synch with X version.
776 * w32xfns.c: Include keyboard.h before frame.h.
778 * w32fns.c: Include keyboard.h before frame.h.
780 * w32term.c: Include keyboard.h before frame.h.
782 * fontset.c: Include keyboard.h before frame.h.
784 * w32inevt.c: Include keyboard.h before frame.h.
785 (MOUSE_MOVED): Define if not known.
787 * minibuf.c: Include keyboard.h before frame.h.
789 * keyboard.c: Include keyboard.h before frame.h.
791 * indent.c: Include keyboard.h before frame.h.
793 * dispnew.c: Include keyboard.h before frame.h.
795 * buffer.c: Include keyboard.h before frame.h.
797 * alloc.c: Include keyboard.h before frame.h.
799 * print.c: Include keyboard.h before frame.h.
801 * process.c: Include keyboard.h before frame.h.
803 * scroll.c: Include keyboard.h before frame.h.
805 * sysdep.c: Include keyboard.h before frame.h.
807 * term.c: Include keyboard.h before frame.h.
809 * window.c: Include keyboard.h before frame.h.
811 * xdisp.c: Include keyboard.h before frame.h.
812 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
814 * frame.c: Include keyboard.h before frame.h.
816 * w32heap.h: Undefine min, max.
818 * w32gui.h: Undefine min, max.
820 * unexw32.c: Change PUCHAR to PCHAR.
821 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
824 (copy_executable_and_dump_data): Remove unnecessary static defs.
825 (copy_executable_and_dump_data): Fix compile warnings.
827 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
829 * w32console.c (min): Define macro.
830 (clear_frame, write_glyphs): Fix compile warning.
832 * w32proc.c (compare_env):
833 (find_child_console): Fix compile warning.
835 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
836 sys_errlist instead of _sys_errlist.
837 (get_emacs_configuration_options): New function.
839 * s/ms-w32.h (sys_nerr): Provide default definition.
840 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
841 name with _ prepended.
842 (NSIG): Define if not known.
843 (get_emacs_configuration): Provide extern declaration.
844 (get_emacs_configuration_options): Provide extern declaration.
845 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
847 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
849 (read_unc_volume): Fix compile warning.
851 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
852 definitions from being used.
854 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
856 * w32.c (unc_volume_file_attributes):
857 (open_unc_volume): Make arg const.
859 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
860 (read_input_waiting): Remove excess parameter.
862 * w32.c (init_environment): Call _access.
863 (check_windows_init_file): Call _close.
864 (init_user_info): Call _putenv.
865 (init_environment): Call _putenv and _strdup.
866 (init_ntproc): Reset volume info cache on startup.
868 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
869 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
870 cannot override the CRT malloc.
872 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
873 (LINK_FLAGS): Append to original value of LINK_FLAGS.
875 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
876 unless we are linking with a static CRT.
877 (RVA_TO_PTR): Cast result to unsigned char*.
879 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
880 (add_volume_info): Use xstrdup.
882 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
884 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
885 (do_completion, Fminibuffer_complete_word): Use it.
886 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
887 var so it can take non-boolean values.
889 2000-08-21 Gerd Moellmann <gerd@gnu.org>
891 * editfns.c (find_field): Formatting changes.
892 (toplevel): Some old-style function forward declarations
893 changed to prototypes, some new protypes added, some functions
896 * lisp.h (set_time_zone_rule): Add prototype.
897 (use_dialog_box): External declaration.
899 * keyboard.c (gen_help_event): Add parameter SIZE.
900 (kbd_buffer_events_waiting): Slightly rewritten.
901 (clear_event): New function.
902 (kbd_buffer_get_event): Use it, and clear the input_events of
904 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
905 don't fill the newly created array with nils.
906 (toplevel): Convert some old-style function forward declarations
909 * keyboard.h (gen_help_event): Change prototype.
911 * xterm.c (XTread_socket): Change calls to gen_help_event.
913 * w32term.c (w32_read_socket): Change calls to gen_help_event.
915 * eval.c (Fmacroexpand): Doc fix.
917 2000-08-20 Jason Rumney <jasonr@gnu.org>
919 * w32term.h (x_display_info_for_display): Remove as this function
920 does not exist on W32.
922 * w32term.c (help_echo_window): New variable.
923 (syms_of_w32term): staticpro it.
924 (note_mode_line_highlight): Set it.
925 (XTextExtents16): Removed as there is no equivalent on W32.
926 (x_compute_glyph_string_overhangs): Incomplete body removed, as
927 the X way of doing this will not work for W32.
928 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
929 (x_draw_image_foreground): Avoid drawing outside of the clip area
930 when image doesn't have a mask.
931 (note_mouse_highlight): Process overlays in the right order of
932 priority. Set help_echo_window.
933 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
934 because that's more visible for large images.
936 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
937 name to single_keymap_panes.
938 (w32_menu_show): Set wv->title when dealing with titles.
939 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
941 2000-08-21 Miles Bader <miles@gnu.org>
943 * minibuf.c (do_completion): Try again if we rewrite the input
944 string, but no completion was done, so that any completion message
947 2000-08-20 Gerd Moellmann <gerd@gnu.org>
949 * xfaces.c (lface_equal_p): Compare strings differently.
950 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
951 (realize_tty_face): Use them.
952 (syms_of_xfaces): Initialize new variables.
953 (map_tty_color): New function, extracted from realize_tty_face.
954 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
955 foreground or background color, store the new color name in the
956 realized face; previous code trying to do this had no effect.
957 (realize_tty_face): Use map_tty_color.
958 (Fclear_face_cache): Set face_change_count and ensure thorough
961 2000-08-19 Gerd Moellmann <gerd@gnu.org>
963 * undo.c (record_first_change, record_marker_adjustment): Don't
964 use XBUFFER on last_undo_buffer which might not be a buffer.
966 2000-08-18 Kenichi Handa <handa@etl.go.jp>
968 * coding.c (decode_coding_string): Set members consumed,
969 consumed_char, produced, produced_char of *coding correctly. If
970 decode_coding doesn't consume any byte, don't try anymore.
971 (encode_coding_string): Likewise.
973 2000-08-18 Gerd Moellmann <gerd@gnu.org>
975 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
976 conditional have void type, for Standard C compilers.
978 * xdisp.c (redisplay_internal): Compare windows for equality with
979 EQ, instead of applying XWINDOW to something that might not
982 2000-08-18 Kenichi Handa <handa@etl.go.jp>
984 * fontset.c (Finternal_char_font): Search only the selected frame
985 for a window of the current buffer.
987 2000-08-18 Gerd Moellmann <gerd@gnu.org>
989 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
992 * keyboard.c (kbd_buffer_get_event): Handle the case that the
993 second half of a HELP_EVENT is found at the start of kbd_buffer.
995 2000-08-18 Miles Bader <miles@gnu.org>
997 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
999 * editfns.c (save_restriction_save): Rewrite to use markers.
1000 (save_restriction_restore): Rewrite to understand new form of data
1001 saved by save_restriction_save.
1002 (Fsave_restriction): Remove cautionary note in doc-string.
1004 2000-08-17 Gerd Moellmann <gerd@gnu.org>
1006 * fileio.c (build_annotations): Add a comment explaining the
1007 return value of format-annotate-function. Replace a spurious call
1008 to Flength with a CONSP test. Call format-annotate-function with
1009 a fifth arg specifying how many times the function is been called
1010 in a row, to let it choose temporary buffers appropriately.
1012 2000-08-17 Dave Love <fx@gnu.org>
1014 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
1015 declare make_temp_name twice.
1017 * lread.c: Prototype readevalloop, load_unwind,
1018 load_descriptor_unwind.
1019 (unreadpure): Give it an arg.
1021 * unexalpha.c: Prototype fatal_unexec, mark_x,
1022 update_dynamic_symbols. Declare unexec as void.
1024 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
1025 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
1027 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
1028 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
1031 * alloca.c: Use #error.
1032 [POINTER_TYPE]: Use it.
1034 * eval.c (Fdefvar): Doc fix.
1036 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
1037 INITIALIZE_INTERVAL.
1039 * buffer.h: Avoid DECLARE_INTERVALS.
1041 * config.in: Add size_t.
1043 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
1045 * w16select.c (set_clipboard_data): If there's not enough memory
1046 to put text into clipboard, return 1, as Fw16_set_clipboard_data
1047 expects. In case of other failures, return 3.
1048 (system_error_msg): New error message.
1049 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
1052 2000-08-16 Gerd Moellmann <gerd@gnu.org>
1054 * term.c (write_glyphs): Also turn off inverse video after turning
1055 off other appearances in case TS_exit_attribute_mode is not equal
1056 to TS_end_standout_mode.
1057 (insert_glyphs): Turn inverse video on/off for each run of glyphs
1059 (turn_off_face): Reset standout_mode only if
1060 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
1061 is equal to TS_end_standout_mode.
1063 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1065 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
1066 sequence at the end of the source block.
1068 * ccl.c (Fccl_program_p): Docstring modified.
1069 (Fccl_execute): Likewise.
1070 (Fccl_execute_on_string): Likewise.
1072 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1074 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
1076 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1078 The following changes are mainly to fix bugs of
1079 encode/decode-coding-string failing if encoding/decoding return
1080 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
1081 variable conversion_buffer.
1083 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
1084 decrement dst_end to avoid buffer overflow in the later call of
1087 * coding.h (conversion_buffer_size, conversion_buffer)
1088 (get_conversion_buffer): Extern deleted.
1090 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
1091 (conversion_buffer, conversion_buffer_size): Variables deleted.
1092 (get_conversion_buffer): Function deleted.
1093 (struct conversion_buffer): New structure.
1094 (MAX_ALLOCA): New macro.
1095 (allocate_conversion_buffer): New macro.
1096 (extend_conversion_buffer, free_conversion_buffer): New functions.
1097 (ccl_coding_driver): Set coding->result.
1098 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
1099 this is the last block of source.
1100 (encode_coding): Likewise. Handle the source block as the last
1101 one only when the whole source text is consumed.
1102 (decode_coding_string): Handle the case that the output buffer is
1103 too small to decode the whole source text. Use
1104 allocate_conversion_buffer, extend_conversion_buffer and
1105 free_conversion_buffer, not get_conversion_buffer.
1106 (encode_coding_string): Likewise.
1107 (init_coding): Function deleted.
1108 (init_coding_once): Delete code to initialize
1109 conversion_buffer_size.
1111 * emacs.c (main): Don't call init_coding.
1113 * msdos.c (IT_write_glyphs): Use a locally declared
1116 * term.c (write_glyphs): Use a locally declared conversion_buffer.
1117 (insert_glyphs): Likewise.
1119 * w32console.c (write_glyphs): Use a locally declared
1122 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
1124 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
1125 member of display_info is NULL.
1127 2000-08-15 Gerd Moellmann <gerd@gnu.org>
1129 * alloc.c (compact_small_strings): Use safe_bcopy, add an
1132 * term.c (turn_off_face): Reset standout_mode when resetting
1133 appearances with capability `me'.
1134 (write_glyphs): Switch on inverse video before each face change.
1136 2000-08-14 Dave Love <fx@gnu.org>
1138 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
1139 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
1140 (lisp_free): Declare and make static.
1142 * window.c: Fix embedded comment.
1143 (syms_of_window): Fix doc string.
1145 2000-08-14 Gerd Moellmann <gerd@gnu.org>
1147 * keymap.c (push_key_description): If C without modifiers is < 32,
1148 make sure to print `C-' before `M-', like in the manual.
1150 2000-08-11 Gerd Moellmann <gerd@gnu.org>
1152 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
1153 since they aren't relocated anymore.
1154 (sxhash_string): Make sure returned hash code fits in a Lisp
1157 * xdisp.c (try_cursor_movement): Fix handling of cursor in
1158 partially visible line which is smaller than the window's
1161 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1163 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
1164 the multibyte form of eight-bit-control characters.
1165 (Fccl_execute_on_string): Initialize ccl->multibyte.
1167 * ccl.h (struct ccl_program): New member multibyte.
1169 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
1171 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1173 * regex.c (regex_compile) <normal_char>: Pay attention to
1175 (analyse_first) <exactn>: Setup fastmap correctly for
1176 eight-bit-control characters.
1178 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1180 * termhooks.h (enum event_kind): New member
1181 multibyte_char_keystroke.
1183 * keyboard.c (make_lispy_event): Handle the new event type
1184 multibyte_char_keystroke.
1186 * xterm.c: Include coding.h.
1187 (XTread_socket): Work around a bug of XmbLookupString. If the
1188 input is from XIM, decode it according to the current locale. In
1189 that case, generate multibyte_char_keystroke events.
1191 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1193 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
1194 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
1196 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1198 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
1199 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
1200 (move_it_in_display_line_to): Record iterator's ascent and descent
1201 before producing glyphs, and restore them when we know the glyph
1202 doesn't fit on the line.
1203 (move_it_to): Restructured so that it's easier to debug. If
1204 moving to a vpos, and not moving to an x or character position,
1205 stop as soon as the specified vpos is reached; don't move further
1206 into that line because that might change the computed line height.
1207 (try_cursor_movement): New function, extracted from the cursor
1208 movement branch of redisplay_window. If ending on a partially
1209 visible line, don't try to scroll if the cursor line is taller
1211 (redisplay_window): Use try_cursor_movement.
1213 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
1214 because that function doesn't cope with variable-height lines.
1216 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
1217 box cursor because that's better visible for large images.
1219 2000-08-10 Miles Bader <miles@gnu.org>
1221 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
1223 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1225 * xdisp.c (Vmessages_buffer_name): New variable.
1226 (message_dolog): Use it.
1227 (syms_of_xdisp): Initialize it.
1229 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1231 * msdos.c (IT_note_mouse_highlight): Update the calls to
1233 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
1234 redundant now that keyboard.h is included.
1236 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1238 * keyboard.c (kbd_buffer_events_waiting): New function.
1240 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
1242 * msdos.c: Include keyboard.h.
1243 (XMenuActivate): Empty no_event events from the event buffer. If
1244 no events are left after that, call clear_input_pending.
1245 (mouse_clear_clicks): New function, code moved from mouse_init.
1246 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
1247 mouse driver to ``forget'' any past clicks.
1249 * Makefile.in (msdos.o): Depend on keyboard.h.
1251 2000-08-09 Gerd Moellmann <gerd@gnu.org>
1253 * lisp.h (input_pending): External declaration.
1255 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1257 * xdisp.c (echo_area_display): Display thoroughly if input is
1258 pending. Bind redisplay-dont-pause to t during the redisplay.
1259 in case input is pending.
1261 * dispnew.c (Qredisplay_dont_pause): New variable.
1262 (syms_of_display): Initialize and staticpro it.
1263 (update_frame_1): Don't interrupt the display for pending input if
1264 redisplay_dont_pause is set.
1266 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1268 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1270 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1272 * callproc.c (Fcall_process): Terminate the unwind-protect around
1273 the post-read-conversion of coding system.
1275 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
1276 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
1277 * buffer.h (overlays_at): Update prototype.
1278 * xdisp.c (next_overlay_change): Update call to overlays_at.
1279 * xfaces.c (face_at_buffer_position): Likewise.
1280 * textprop.c (Fget_char_property): Likewise.
1281 * xterm.c (note_mouse_highlight): Likewise.
1283 * minibuf.c (do_completion): Don't consider a simple change of
1284 case as `completion'.
1286 2000-08-08 Ken Raeburn <raeburn@gnu.org>
1288 * keyboard.c (syms_of_keyboard): Initialize
1289 last_point_position_buffer.
1290 * undo.c (record_delete): Make sure last_point_position_buffer is
1291 a buffer before comparing pointers.
1293 * coding.h (decode_coding_string): Declare.
1295 * intervals.h (Fprevious_single_char_property_change): Declare.
1297 * textprop.c (Fprevious_single_char_property_change): Don't do
1298 arithmetic directly on lisp objects.
1300 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
1303 * keyboard.h (menu_item_eval_property): Declare.
1305 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
1306 reuse as buffer name, instead of recreating (and discarding) every
1307 time a message is logged.
1308 (with_echo_area_buffer): Make callback arg A2 a lisp object.
1309 (current_message_1, truncate_message_1, set_message_1)
1310 (display_echo_area_1, resize_mini_window_1): Signatures changed.
1311 (current_message, truncate_echo_area, display_echo_area)
1312 (resize_echo_area_axactly): Changed calls.
1314 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
1316 (Ffind_coding_systems_region_internal): First argument to Fappend
1317 must be an integer, not a Lisp object.
1319 2000-08-08 Kenichi Handa <handa@etl.go.jp>
1321 * charset.c (Fchar_width): Doc fix.
1323 2000-08-08 Gerd Moellmann <gerd@gnu.org>
1325 * charset.c (Fstring_width): Doc fix.
1327 2000-08-07 Gerd Moellmann <gerd@gnu.org>
1329 * xdisp.c (start_display): When starting display on a continuation
1330 line, clear ascent and descent members of the iterator structure;
1331 the height of the continued line does not affect the height of the
1333 (make_cursor_line_fully_visible): Do nothing if cursor is on a
1334 line taller than the window.
1335 (redisplay_window) <forced window start>: Handle case that the
1336 middle of the window is not found in any row.
1337 (dump_glyph_row): Show more information.
1338 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
1339 first text line in a glyph matrix.
1341 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1342 of the clip area when image doesn't have a mask.
1344 * fns.c (sweep_weak_table): Fix survival conditions for
1345 key-or-value and key-and-value weakness.
1347 * .gdbinit (xhashtable): New command.
1349 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1350 tables out of the list of all weak hash tables.
1352 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
1353 a new buffer is created, make sure echo_area_buffer[] references
1356 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1358 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1361 2000-08-07 Kenichi Handa <handa@etl.go.jp>
1363 * syntax.c (skip_chars): Fix previous change. Make the handling
1364 of unibyte string consistent with that of regex search.
1366 2000-08-05 Gerd Moellmann <gerd@gnu.org>
1368 * xmenu.c (popup_get_selection): Use xfree instead of free.
1370 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1372 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1374 * callproc.c (child_setup): Use xfree instead of free.
1376 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1378 (run_mac_command, closedir): Use `xfree' instead of `free'.
1380 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1382 * eval.c (error): Use xfree instead of free.
1384 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1386 * fns.c: Replace `illegal' with `invalid'.
1387 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1389 2000-08-05 Kenichi Handa <handa@etl.go.jp>
1391 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1394 2000-08-04 Noah Friedman <friedman@splode.com>
1396 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1399 2000-08-04 Gerd Moellmann <gerd@gnu.org>
1401 * syntax.c (skip_chars): Fix typo in error message.
1403 2000-08-04 Andreas Schwab <schwab@suse.de>
1405 * m/ia64.h: Moved from s/ia64.h.
1407 2000-08-04 Kenichi Handa <handa@etl.go.jp>
1409 * process.c (read_process_output): Big simplification. Handle
1410 composition and post-read-conversion of coding system correctly.
1411 (send_process): Handle composition correctly.
1413 * callproc.c (Fcall_process): Handle post-read-conversion of
1414 coding system if any.
1416 * coding.c (decode_coding_iso2022): More strict check for handling
1418 (coding_restore_composition): Pay attention to the case that
1419 cmp_data is not set properly (because of invalid code in the
1421 (run_pre_post_conversion_on_str): Include text properties in the
1423 (decode_coding_string): Set members of coding correctly.
1425 2000-08-03 Gerd Moellmann <gerd@gnu.org>
1427 * s/ia64.h: New file.
1429 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
1430 Use NULL instead of 0 at the end of variable argument list of
1431 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
1432 sizeof (int) < sizeof (void *).
1434 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
1435 of variable argument lists of XtVaGetValues and XtVaSetValues.
1437 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
1438 variable argument lists of XtVaGetValues and XtVaSetValues.
1440 2000-08-02 Gerd Moellmann <gerd@gnu.org>
1442 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
1443 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
1445 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
1448 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
1449 in call to Fsingle_key_description.
1451 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
1454 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
1456 * window.c (display_buffer_reuse_frames): New variable.
1457 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
1458 frames displaying BUFFER.
1459 (syms_of_window): Define Lisp variable
1460 display-buffer-reuse-frames.
1462 2000-08-01 Miles Bader <miles@gnu.org>
1464 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
1465 when to constrain NEW_POS (they were pretty screwed up before).
1467 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
1469 * msdos.c (run_msdos_command): Save and restore the master
1470 environment, for the case that child_setup signals an error.
1471 When mirroring slashes in DOS shell commands, don't fail when
1472 argv[2] has embedded blanks.
1473 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
1474 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
1475 (dos_ttraw): Call mouse_setup_buttons.
1477 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
1478 using alloca; free it after run_msdos_command returns.
1480 2000-07-27 Dave Love <fx@gnu.org>
1482 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
1484 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
1487 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
1489 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1491 * editfns.c (lisp_time_argument): Fix last change.
1493 2000-07-27 Gerd Moellmann <gerd@gnu.org>
1495 * fns.c (Fdelete): Make it work on vectors and strings in addition
1498 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
1499 (syms_of_fns): Initialize new variables.
1500 (sweep_weak_table): Handle weakness `key-or-value' and
1502 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
1503 weakness, with t meaning the same as `key-and-value'.
1505 2000-07-27 Kenichi Handa <handa@etl.go.jp>
1507 * coding.h (struct coding_system): Member safe_charset deleted.
1509 * coding.c (Qsafe_charsets): This variable deleted.
1510 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
1512 (coding_safe_chars): New function.
1513 (CODING_SAFE_CHAR_P): New macro.
1514 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
1515 checking safe_charsets member of the coding system. Caller
1517 (detect_coding_iso2022): New local variable safe_chars.
1518 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
1519 safe_charsets member of the coding system.
1520 (decode_coding_iso2022): New local variable safe_chars.
1521 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
1522 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
1523 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
1524 (ENCODE_UNSAFE_CHARACTER): New macro.
1525 (encode_coding_iso2022): New local variable safe_chars. Check
1527 (setup_coding_system): Delete the code to initialize
1528 coding->safe_charses
1529 (intersection, find_safe_codings): New functions.
1530 (Ffind_coding_systems_region_internal): New function.
1531 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
1532 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
1533 variable and initialize it.
1535 * fns.c (char_table_ref_and_index): New function.
1537 * lisp.h (char_table_ref_and_index): Add prototype.
1539 2000-07-26 Sam Steingold <sds@gnu.org>
1541 * editfns.c (lisp_time_argument): Added third argument `usec'.
1542 (Ffloat_time): New built-in Lisp function.
1544 2000-07-26 Gerd Moellmann <gerd@gnu.org>
1546 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
1547 for the character code.
1549 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
1552 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
1553 if called for a popup menu.
1554 (xmenu_show): Store help string in widget values.
1556 2000-07-26 Dave Love <fx@gnu.org>
1558 * syswait.h: Move some definitions.
1559 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
1560 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
1561 perspicuous definitions.
1562 (WTERMSIG): Fix bit pattern used.
1564 2000-07-26 Kenichi Handa <handa@etl.go.jp>
1566 * print.c (print_object): If vector printing is truncated, print
1567 "..." to indicate it as well as the case of list printing.
1569 2000-07-25 Gerd Moellmann <gerd@gnu.org>
1571 * xdisp.c (next_element_from_display_vector): Improve comments.
1573 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
1574 for the character code, and the rest for the face id as in 20.x.
1575 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
1577 * window.c (window_display_table): Cleaned up.
1579 * syntax.c (Fforward_word): Add last arg nil in call of
1580 Fconstrain_to_field.
1582 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1584 * fileio.c (Frename_file) [DOS_NT]: If the file names are
1585 identical but for the letter-case, don't call
1586 barf_or_query_if_file_exists.
1588 2000-07-25 Miles Bader <miles@gnu.org>
1590 * editfns.c (find_field): Honor special `boundary' fields.
1591 (Qboundary): New variables.
1592 (syms_of_editfns): Initialize Qboundary.
1593 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
1594 Use scan_buffer instead of find_before_next_newline, because it
1595 allows us to detect the boundary case where there's a newline at
1597 * lisp.h (Fconstrain_to_field): Update external declaration.
1599 2000-07-24 Gerd Moellmann <gerd@gnu.org>
1601 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
1604 2000-07-24 Dave Love <fx@gnu.org>
1606 * s/sunos4-0.h, s/sol2.h:
1607 (LIBS_TERMCAP): Move from m/sparc.h.
1609 * m/sparc.h (TERMINFO): Moved to system files (probably only
1610 relevant for sunos4 judging by its vintage).
1611 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
1614 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1616 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
1617 name to single_keymap_panes.
1619 2000-07-24 Andreas Schwab <schwab@suse.de>
1621 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
1623 2000-07-24 Gerd Moellmann <gerd@gnu.org>
1625 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
1626 parameters instead of using int parameters. Expect FN to accept
1627 EMACS_INT parameters.
1628 (display_echo_area, resize_echo_area_axactly, current_message)
1629 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
1630 with new argument list.
1631 (resize_mini_window_1): New callback function.
1632 (current_message_1, truncate_message_1, set_message_1): Change
1633 parameter lists to the new format expected by
1634 with_echo_area_buffer.
1636 2000-07-24 Kenichi Handa <handa@etl.go.jp>
1638 * fontset.c (fontset_ref): Remove INLINE declaration.
1639 (fontset_ref_via_base): Likewise.
1640 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
1643 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1645 * msdos.c (IT_note_mouse_highlight): Process overlays in the
1646 correct order of priority. If help echo was found in an overlay,
1647 use that overlay as the object in which the help echo was found.
1649 2000-07-22 Miles Bader <miles@gnu.org>
1651 * textprop.c (Fprevious_single_char_property_change): The initial
1652 property value should be from the position preceding POSITION, not
1655 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
1657 * coding.c (syms_of_coding): Doc fix for
1658 inhibit-iso-escape-detection.
1660 2000-07-21 Gerd Moellmann <gerd@gnu.org>
1662 * xterm.c (note_mouse_highlight): Process overlays in the right
1665 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
1667 * xterm.c (note_mouse_highlight): If help-echo was found in an
1668 overlay, use that overlay as the object in which the help was
1671 * window.c (foreach_window_1): Fix typo reversing an if-condition.
1673 * window.c (foreach_window): Instead of a fake variable argument
1674 list, take one USER_DATA argument.
1675 (foreach_window_1): Likewise, and call callback functions with two
1676 args, the window and USER_DATA.
1677 (struct check_window_data): New struct.
1678 (check_window_containing): Use it.
1679 (window_from_coordinates): Set up a struct check_window_data for
1681 (add_window_to_list, freeze_window_start): Change parameters
1682 according to new calling convention.
1684 * window.h (foreach_window): Change prototype.
1686 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
1688 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
1690 * xmenu.c (menu_help_callback): Call show_help_echo with
1691 additional arguments OBJECT and POS.
1693 2000-07-21 Kenichi Handa <handa@etl.go.jp>
1695 * data.c (Faset): Allow storing any multibyte character in a
1696 string. Convert unibyte string to multibyte if necessary.
1698 * xfns.c (x_encode_text): New function.
1699 (x_set_name): Use x_encode_text.
1700 (x_set_title): Likewise.
1702 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
1704 * xterm.h (x_encode_text): Add prototype.
1706 2000-07-20 Dave Love <fx@gnu.org>
1708 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
1711 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
1713 * msdos.c (help_echo_window): New variable.
1714 (syms_of_msdos): Initialize and staticpro it.
1715 (IT_note_mode_line_highlight): Set help_echo_window.
1716 (IT_note_mouse_highlight): Ditto.
1717 (dos_rawgetc): Store help_echo_window in the second event produced
1720 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
1721 Record the object that generated the help echo and the position of
1722 that object in help_echo_object and help_echo_pos. Record that
1723 some glyphs in a row are displayed in mouse-face.
1724 (IT_update_begin): Don't clear mouse highlight unless one of the
1725 enabled glyph rows is marked as being displayed in mouse-face.
1726 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
1727 and position recorded in help_echo_object and help_echo_pos to the
1729 (IT_menu_display): Accept a new argument PN: the pane number of
1730 the current menu pane. Record the pane number and the item
1731 number of the item which has associated help string.
1732 (XMenuActivate): Update the prototype for help_callback in
1733 function declaration. Call IT_menu_display with the current menu
1734 pane number as an additional argument. Call help_callback with
1735 two additional arguments: the pane number and the item number of
1736 the menu item associated with the help text.
1737 (help_echo_object, help_echo_pos): New variables.
1738 (syms_of_msdos): Initialize them and staticpro help_echo_object.
1740 * msdos.h (XMenuActivate): Update prototype.
1742 2000-07-19 Gerd Moellmann <gerd@gnu.org>
1744 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
1745 Add some more prototypes.
1747 * xterm.c, xterm.h: Add some more prototypes.
1749 * lisp.h (Fnext_single_char_property_change): Add prototype.
1751 * dispnew.c (direct_output_for_insert): Remove confusing
1752 outer local variable mouse_face_overwritten_p.
1753 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
1755 * alloc.c (allocate_string_data): Don't copy old string contents.
1757 2000-07-19 Kenichi Handa <handa@etl.go.jp>
1759 * coding.c (code_convert_region): Delete text properties before
1760 shrinking the conversion region.
1762 2000-07-18 Gerd Moellmann <gerd@gnu.org>
1764 * dispnew.c (update_text_area): Write the whole row if it
1765 has mouse-face in it.
1767 * xfaces.c (face-alternative-font-family-alist): Remove
1768 DEFVAR_LISP; staticpro instead.
1770 * xmenu.c (menu_help_callback): Call show_help_echo with
1773 * keyboard.c (show_help_echo): Add parameter WINDOW.
1774 (read_char): Call show_help_echo with window extracted from Lisp
1776 (gen_help_event): Add parameter WINDOW.
1778 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
1780 * xterm.c (help_echo_window): New variable.
1781 (note_mouse_highlight, note_tool_bar_highlight): Set
1783 (XTread_socket): Pass help_echo_window to gen_help_event.
1784 (syms_of_xterm): Initialize and staticpro help_echo_window.
1786 2000-07-18 Dave Love <fx@gnu.org>
1788 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
1791 2000-07-18 Gerd Moellmann <gerd@gnu.org>
1793 * alloc.c (allocate_string_data): If string had already data
1794 assigned, copy old contents to new string data.
1796 * coding.c (syms_of_coding): Fix typo in spelling of variable
1797 `inhibit-iso-escape-detection'.
1799 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
1801 * Makefile.in: Add dependencies on dispextern.h.
1802 (alloca.o): Don't define malloc and define EMACS_FREE instead of
1803 `free'; both can conflict with system header files.
1805 2000-07-18 Kenichi Handa <handa@etl.go.jp>
1807 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
1810 2000-07-18 Dave Love <fx@gnu.org>
1812 * window.c (Fwindow_list): Declare arg `window'.
1814 2000-07-18 Kenichi Handa <handa@etl.go.jp>
1816 * coding.c (setup_coding_system): Don't override the explicitly
1817 specified designations.
1819 2000-07-15 Miles Bader <miles@gnu.org>
1821 * editfns.c (char_property_eq, char_property_stickiness): Renamed
1822 from `text_property_eq' and `text_property_stickiness', respectively.
1823 (find_field, Fconstrain_to_field, char_property_eq)
1824 (char_property_stickiness): Changed to call char-property functions
1825 instead of text-property-only ones.
1827 * textprop.c (Fnext_single_char_property_change): Made a subr (was
1828 `next_single_char_property_change'). Do more error checking, and
1829 cleanup limit behavior.
1830 (Fprevious_single_char_property_change): New function.
1831 (syms_of_textprop): Initialize new subrs.
1833 * xdisp.c (display_prop_end, invisible_text_between_p):
1834 Call Fnext_single_char_property_change instead of
1835 next_single_char_property_change.
1837 2000-07-15 Jason Rumney <jasonr@gnu.org>
1839 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
1840 after menu is finished with.
1841 (add_menu_item): Only consider wv->title as a menu title.
1842 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
1844 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
1846 (FONT_REGEXP): Remove unused macro, and its sub-components.
1847 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
1849 * w32term.c (help_echo_object, help_echo_pos): New variables.
1850 (note_mode_line_highlight): Store additional information about the
1851 help-echo in help_echo_object and help_echo_pos. Check both
1852 `local-map' and `keymap' properties for changing the cursor
1853 (note_mouse_highlight): Store additional information about the
1854 help-echo in help_echo_object and help_echo_pos.
1855 (note_tool_bar_highlight): Set help_echo_object to nil and
1856 help_echo_pos to -1.
1857 (w32_read_socket): Use gen_help_event instead of filling
1858 input_events manually.
1859 (syms_of_w32term): Staticpro help_echo_object.
1860 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
1861 set, arrange for a mouse-highlight redisplay in
1863 (x_clear_mouse_face): New function.
1864 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
1865 (x_update_window_begin): No need to turn off the mouse
1867 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1868 depending on whether they contain glyphs highlighted in
1870 (x_fill_stretch_glyph_string): Consume runs of stretch
1871 glyphs instead of a single one.
1872 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1873 with new argument list.
1874 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1875 (x_append_glyph, x_append_composite_glyph)
1876 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1877 changes in struct glyph starting 1999-12-27. See comments for
1878 xterm.c on 2000-07-05.
1880 2000-07-14 Sam Steingold <sds@gnu.org>
1882 * xfaces.c (realize_x_face): Fix the last patch:
1883 check `default_face' before dereferencing.
1885 2000-07-14 Dave Love <fx@gnu.org>
1887 * syntax.c (back_comment): Add null default in switch (for pcc).
1889 2000-07-14 Kenichi Handa <handa@etl.go.jp>
1891 * xfaces.c (realize_x_face): Make fontset using the base of the
1892 default_face's fontset, not using the default fontset.
1894 * coding.c (inhibit_iso_escape_detection): New variable.
1895 (syms_of_coding): Make it a Lisp variable.
1896 (detect_coding_iso2022): If inhibit_iso_escape_detection is
1897 nonzero, ignore ISO2022's escape sequence.
1899 2000-07-14 Gerd Moellmann <gerd@gnu.org>
1901 * alloca.c (malloc) [emacs]: Define as xmalloc.
1903 * xfns.c (Fx_show_tip): If frame parameters contain a position,
1904 use that instead of the mouse position. Add parameters DX and DY.
1906 * dispextern.h (Fx_show_tip): Adjust number of parameters
1909 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
1910 if HELP is a function, call it with OBJECT and POS as parameters
1911 to get the help to display.
1912 (gen_help_event, kbd_buffer_store_help_event): New functions.
1913 (kbd_buffer_get_event): Construct the Lisp help-event differently.
1914 (read_char): Call show_help_echo with new parameters.
1916 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
1919 * xterm.c (help_echo_object, help_echo_pos): New variables.
1920 (note_mode_line_highlight): Store additional information about the
1921 help-echo in help_echo_object and help_echo_pos. Check both
1922 `local-map' and `keymap' properties for changing the cursor
1923 (note_mouse_highlight): Store additional information about the
1924 help-echo in help_echo_object and help_echo_pos.
1925 (note_tool_bar_highlight): Set help_echo_object to nil and
1926 help_echo_pos to -1.
1927 (XTread_socket): Use gen_help_event instead of filling
1928 input_events manually.
1929 (syms_of_xterm): Staticpro help_echo_object.
1931 * xmenu.c (menu_highlight_callback): Use
1932 kbd_buffer_store_help_event instead of setting up and input_event
1935 * xdisp.c (eval_form): GCPRO argument sexpr.
1936 (call_function): New function.
1937 (handle_single_display_prop): Use call_function and FUNCTIONP
1938 instead of checking whether if font_height is a symbol and
1941 * eval.c (internal_condition_case_2): New function.
1943 * lisp.h (FUNCTIONP): New macro.
1944 (internal_condition_case_2, call_function): Add prototypes.
1946 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
1947 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
1948 Always set `arg' member of input_events.
1949 (construct_menu_click): Unused function removed.
1951 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
1953 * w32term.c (construct_mouse_click, construct_mouse_wheel)
1954 (construct_drag_n_drop, x_scroll_bar_handle_click)
1955 (w32_read_socket): Always set `arg' member of input_events.
1957 * keyboard.c (show_help_echo): Use eval_form. Add comment.
1959 * lisp.h (eval_form): Add prototype.
1961 * xdisp.c (eval_form): Make it externally visible.
1963 2000-07-13 Gerd Moellmann <gerd@gnu.org>
1965 * xterm.c (x_handle_tool_bar_click): Store the frame in the
1966 frame_or_window slot of TOOL_BAR_EVENT input events instead of
1967 consing. For prefix events, store the frame in the `arg' slot of
1968 the event, otherwise store the key there.
1969 (XTread_socket): Instead of consing, use the frame_or_window slot
1970 of HELP_EVENTs for the frame, and the `arg' slot for the help
1973 * xmenu.c (menu_highlight_callback): Store help string in the
1974 `arg' member of the input event; don't cons.
1975 (menubar_selection_callback): Use the `arg' slot of input events
1976 to queue additional information, instead of consing.
1978 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
1980 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
1982 (w32_read_socket): Adapt to changes in HELP_EVENTs.
1984 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
1985 input events to queue additional information, instead of consing.
1987 * keyboard.c (kbd_buffer_gcpro): Renamed from
1988 kbd_buffer_frame_or_window. Now used for all Lisp objects
1989 referenced from the input queue.
1990 (kbd_buffer_store_event): Always use structure assignment for
1991 copying input events. Record all Lisp objects referenced from
1992 events in kbd_buffer_gcpro.
1993 (kbd_buffer_get_event): Construct Lisp `help-echo' events
1994 differently from input events. Test for prefix menu_bar_events
1995 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
1996 event in kbd_buffer_gcpro to nil.
1997 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
1998 frame_or_window is equal to its arg member as prefix events.
1999 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
2000 used by an input event to nil.
2001 (init_keyboard): Use two times the size of the input queue
2002 for kbd_buffer_gcpro.
2003 (syms_of_keyboard): Likewise.
2005 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
2008 * termhooks.h (struct input_event): Add member `arg'.
2009 (MENU_BAR_EVENT): Renamed from menu_bar_event.
2010 (USER_SIGNAL_EVENT): Renamed from user_signal.
2012 * xfaces.c (ASET): Remove definition.
2014 * lisp.h (AREF, ASET, ASIZE): New macros.
2016 * fontset.c (AREF, ASIZE): Remove definitions.
2018 * fns.c (AREF): Remove definition.
2020 * composite.c (AREF): Remove definition.
2022 2000-07-12 Gerd Moellmann <gerd@gnu.org>
2024 * dispnew.c (redraw_overlapped_rows): Add missing local.
2025 (scrolling_window): Remove debug code.
2027 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
2028 Before scrolling, turn off a mouse-highlight in the window
2031 * xterm.c (x_update_window_end): Add parameter
2032 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
2033 redisplay in XTframe_up_to_date.
2034 (x_clear_mouse_face): New function.
2035 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
2037 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
2039 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
2040 it when any row is written to that contains glyphs highlighted in
2042 (update_window): Call the window update end hook with new
2043 parameter MOUSE_FACE_OVERWRITTEN_P.
2044 (direct_output_for_insert): Give up if row contains mouse-face.
2046 * dispextern.h (struct redisplay_interface): Add parameter
2047 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
2048 (clear_mouse_face): New function pointer member.
2050 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
2052 * syntax.c (back_comment): Use one switch rather than a few `if's.
2053 Obey open_paren_in_column_0_is_defun_start.
2054 When reverting to the `slow' method, try to nicely handle the case
2055 of nested comments by checking that the comment-starter we found
2056 does indeed match the comment-ender.
2057 (scan_sexps_forward, scan_sexps_forward):
2058 Ignore excessive opening parenthesis rather than throwing an error.
2060 2000-07-11 Gerd Moellmann <gerd@gnu.org>
2062 * doc.c (Fsubstitute_command_keys): Handle case that a GC
2063 in Fwhere_is_internal or get_keymap_1 relocates string contents.
2065 * dispnew.c (direct_output_forward_char): Give up if currently
2066 displaying a message instead of the minibuffer contents.
2068 * xterm.c (x_update_window_begin): No need to turn off the mouse
2070 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2071 depending on whether they contain glyphs highlighted in
2074 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
2075 compare the mouse_face_p flags of both rows.
2077 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
2079 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2081 * keyboard.c (show_help_echo): Accept additional parameter
2082 ok_to_overwrite_keystroke_echo.
2083 (read_char): Call show_help_echo with a zero
2084 ok_to_overwrite_keystroke_echo argument.
2085 * keyboard.h (show_help_echo): Update prototype of
2087 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
2088 ok_to_overwrite_keystroke_echo argument.
2089 * w32menu.c (w32_menu_display_help): Call show_help_echo with
2090 non-zero ok_to_overwrite_keystroke_echo argument.
2092 2000-07-10 Gerd Moellmann <gerd@gnu.org>
2094 * xdisp.c (try_window_id): If changes are all below what is
2095 displayed in the window, and point is in the window, we still
2096 might have to find point on the display.
2098 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
2099 glyphs instead of a single one.
2100 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2101 with new argument list.
2102 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2104 * keymap.c (get_keymap_1): Add comment that this function can GC.
2105 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
2106 comment that functions can GC.
2107 (Fset_keymap_parent): GCPRO arg KEYMAP.
2109 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
2111 * msdos.c (XMenuActivate): After exiting the menu, restore the
2112 echo area message and erase it.
2114 2000-07-10 Kenichi Handa <handa@etl.go.jp>
2116 * fontset.c (Ffontset_info): Make the return value more compatible
2117 with that of Emacs 20.
2119 2000-07-07 Gerd Moellmann <gerd@gnu.org>
2121 * eval.c (Fsignal): Handle case that backtrace_list is null.
2123 2000-07-07 Kenichi Handa <handa@etl.go.jp>
2125 * ccl.c (Fccl_execute): Typo fixed.
2127 2000-07-06 Gerd Moellmann <gerd@gnu.org>
2129 * window.c (window_loop): Add missing gcpro1 local variable.
2131 * window.c (Fwindow_list): Reverse list at the end.
2132 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
2133 means allow windows on OWINDOW's frame, only.
2134 (window_loop): Simplified; use Fwindow_list.
2136 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
2138 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2140 * xterm.c (XTread_socket): Increment handling_signal at the start,
2141 decrement it at the end.
2143 * eval.c (handling_signal): New variable.
2144 (Fsignal): Abort if handling_signal is non-zero.
2146 * lisp.h (handling_signal): External declaration.
2148 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
2150 2000-07-05 Ken Raeburn <raeburn@gnu.org>
2152 Sound support for NetBSD through "Linux emulation" support:
2153 * config.in (HAVE_SOUNDCARD_H): Undef.
2154 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
2155 * Makefile.in (LIBSOUND): New variable.
2156 (LIBES): Include it.
2157 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
2159 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
2161 (vox_open): Use DEFAULT_SOUND_DEVICE.
2162 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
2164 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2166 * print.c (print_error_message): If Vsignaling_function is set,
2167 show it in *Messages*.
2169 * lisp.h (Vsignaling_function): External declaration.
2171 * eval.c (Vsignaling_function): New variable.
2172 (Fsignal): Compute it.
2173 (syms_of_eval): Staticpro it.
2175 2000-07-05 Dave Love <fx@gnu.org>
2177 * syswait.h: Use the autoconf recommended approach. Old code
2178 #if'd out in case we need to revert.
2180 * config.in (HAVE_SYS_WAIT_H): Added.
2182 2000-07-05 Andrew Innes <andrewi@gnu.org>
2184 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
2185 when non-NULL instead of __morecore, to take account of buffer
2186 memory. This also solves a problem with spurious memory warnings
2189 * ralloc.c: Make real_morecore non-static.
2191 * eval.c (internal_condition_case): Comment out abort if
2192 interrupt_input_blocked is not zero.
2194 * makefile.nt: Add support for `bootstrap' and related targets.
2195 Include minimal debug info in emacs.exe in release build.
2196 Remove all dependencies on lisp.h, and fixup some others.
2198 * w32.c (init_environment): Install code from 20.7 for providing
2199 default values for environment variables, based on the
2200 executable's own location.
2201 (map_w32_filename): Handle filenames that are longer than
2203 (sys_socket): Install socket inheritance bug fix from 20.7.
2205 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
2206 here via blockinput.h).
2208 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
2210 * w32menu.c (w32_menu_display_help):
2211 * xmenu.c (menu_help_callback): Use show_help_echo.
2213 * keyboard.h (show_help_echo): Declare.
2215 * keyboard.c (show_help_echo): New function, extracted from read_char.
2216 Feval its `msg' argument if it's a cons cell.
2217 (read_char): Use it.
2218 (follow_key): Pass `autoload' to get_keyelt.
2220 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
2221 (note_tool_bar_highlight, XTread_socket):
2222 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
2224 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
2225 (note_tool_bar_highlight, w32_read_socket):
2226 Do not gratuitously ignore non-string `help-echo' properties.
2228 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2230 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
2232 * window.c (delete_all_subwindows): Reset Vwindow_list.
2234 * xterm.c (x_append_glyph, x_append_composite_glyph)
2235 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2236 changes in struct glyph starting 1999-12-27. Some bit-fields of
2237 struct glyph were not set, which made glyphs unequal when compared
2238 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
2239 effects were the result. This also depended on the contents of
2240 memory returned by xmalloc. If flickering happens again, activate
2241 the code in clear_glyph_row that's in #if 0. If the flickering is
2242 gone with that, chances are that it is caused by something
2245 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
2247 * dispextern.h: Add some comments.
2249 * window.c (add_window_to_list): Add parameter LIST.
2250 (window_list): Order list so that, for each frame, windows are
2251 in canonical order, and so that frames appear in the list in
2252 the order given by Vframe_list.
2253 (next_window): Reverse the handling of NEXT_P.
2255 2000-07-04 Gerd Moellmann <gerd@gnu.org>
2257 * window.c (Vwindow_list): New variable.
2258 (make_window, delete_window): Set Vwindow_list to nil.
2259 (check_window_containing): New function.
2260 (window_from_coordinates): Rewritten.
2261 (add_window_to_list, window_list, candidate_window_p)
2262 (decode_next_window_args, next_window): New functions.
2263 (Fnext_window, Fprevious_window): Rewritten in terms of
2265 (Fwindow_list): New function.
2266 (Fother_window): Cleaned up.
2267 (foreach_window): Add a longer "variable argument list". Let
2268 callback function return 0 to indicate that cycling over windows
2270 (foreach_window_1): Likewise.
2271 (freeze_window_start): Return int.
2272 (init_window): New function.
2273 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
2275 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2276 input_event with bzero.
2277 (main): Call init_window.
2279 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2282 2000-07-04 Kenichi Handa <handa@etl.go.jp>
2284 * composite.h (make_composition_value_copy): Extern it.
2286 * composite.c (make_composition_value_copy): New function.
2288 * editfns.c (Fformat): While copying text properties, make each
2289 composition property value a copy.
2291 * fns.c (concat): While copying text properties, make each
2292 composition property value a copy.
2294 2000-07-03 Gerd Moellmann <gerd@gnu.org>
2296 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2298 * fns.c (sweep_weak_table): Mark only objects that are not
2301 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
2302 include those frames as candidates which have their focus
2303 redirected to the minibuffer frame.
2305 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2307 * fns.c (Fputhash): Return `value' rather than nil.
2309 2000-06-30 Gerd Moellmann <gerd@gnu.org>
2311 * frame.c (next_frame): Don't check focus redirection in case
2312 MINIBUF is a window. Doing so excludes frames using MINIBUF
2313 unless their focus is redirected, which contradicts the
2314 specification of next-frame, and leads to infinite loops in
2315 certain situations when cycling through windows with next-window.
2317 2000-06-30 Kenichi Handa <handa@etl.go.jp>
2319 * coding.c (code_convert_region): Even if the length of text is
2320 zero, try to convert it if coding->type is coding_type_ccl.
2321 (decode_coding_string, encode_coding_string): Likewise.
2323 2000-06-28 Gerd Moellmann <gerd@gnu.org>
2325 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
2326 the display if windows_or_buffers_changed.
2328 * dispnew.c (struct row_entry): New structure.
2329 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
2330 (row_table_size, old_lines, new_lines, old_lines_size)
2331 (new_lines_size, run_pool, runs_size, runs): New variables.
2332 (add_row_entry): New function.
2333 (scrolling_window): Use data structures allocated with xmalloc and
2334 held in global variables, instead of allocating them with alloca and
2335 holding them in local variables. Use a larger hash table whose
2336 size depends on glyph matrix sizes. Don't use bzero to clear the
2337 hash table; instead, clear used slots only.
2339 * fns.c (next_almost_prime): Make it externally visible.
2341 * lisp.h (next_almost_prime): Add prototype.
2343 * s/isc4-0.h (sigunblock): Define.
2345 * s/sco5.h (sigunblock): Define.
2347 2000-06-27 Dave Love <fx@gnu.org>
2349 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
2350 (moved to osf5-0.h).
2351 [!NOT_C_CODE]: Protect string.h stuff.
2353 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2354 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2356 2000-06-27 Gerd Moellmann <gerd@gnu.org>
2358 * xdisp.c (resize_mini_window): Subtract the extra line spacing
2359 below the last line from the needed window height.
2361 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2363 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2364 (Fwidget_get): Use it.
2365 (syms_of_fns): Defsubr it.
2367 2000-06-26 Gerd Moellmann <gerd@gnu.org>
2369 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
2370 display info for XIM.
2371 (xim_open_dpy): Likewise.
2372 (xim_close_dpy): Don't free the display info's XIM.
2374 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2376 * config.in (USE_XIM): New define.
2378 * keymap.c (get_keyelt): For menu-items containing a `:filter
2379 FILTER', apply FILTER to the menu-item's definition to get the
2380 real definition to use.
2382 * lisp.h (QCfilter): External declaration.
2384 * xfns.c (Fimage_size): New function.
2385 (syms_of_xfns): Defsubr it.
2387 2000-06-26 Andreas Schwab <schwab@suse.de>
2389 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2392 2000-06-25 Dave Love <fx@gnu.org>
2394 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2397 * Makefile.in (blockinput.h): Depend on atimer.h.
2398 (atimer.h): Depend on systime.h.
2400 * blockinput.h: Protect against multiple inclusion. Include
2403 * atimer.h: Protect against multiple inclusion. Include
2406 * lisp.h (swap_in_global_binding): Declare.
2408 2000-06-24 Ken Raeburn <raeburn@gnu.org>
2410 * process.c (Fopen_network_stream): Turn off atimers for duration
2411 of call to connect. (Patch from Gerd.)
2413 2000-06-23 Dave Love <fx@gnu.org>
2415 * ralloc.c: Maybe include unistd.h
2417 * emacs.c (setgrp): Undefine before defining.
2418 (malloc_warning, set_time_zone_rule, index): Prototype.
2420 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
2421 HAVE_STRUCT_TIMEZONE.
2423 * s/osf1.h: Move string.h hack here from alpha.h and make it
2425 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
2427 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
2428 (SOCKLEN_TYPE): Don't define.
2430 * m/alpha.h: Remove string.h hack.
2432 * s/osf5-0.h: New file.
2434 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
2435 include time.h, done by systime.h.
2436 [__FreeBSD__]: Remove redundant includes.
2438 * callproc.c (setpgrp): Undefine before defining.
2439 (delete_temp_file): Return Qnil to avoid warning.
2441 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
2443 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
2446 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
2448 * composite.h (compose_text): Declare.
2450 * xterm.c: Don't include sys/types.h unconditionally. Don't
2451 protect its inclusion with !USG (following xmenu.c).
2453 2000-06-23 Gerd Moellmann <gerd@gnu.org>
2455 * xfns.c (x_create_tip_frame): Initialize frame's colors like
2458 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2460 * coding.c (decode_eol_post_ccl): Special handling for undecided
2461 and inconsistent EOL types.
2463 2000-06-22 Gerd Moellmann <gerd@gnu.org>
2465 * xrdb.c (x_load_resources): Add default resource for scroll bar's
2466 trough color and main window's background color.
2468 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
2471 * xterm.h (Xt_app_con): External declaration.
2473 * widget.c (EmacsFrameRealize): Fix typo.
2475 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
2477 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
2478 (handle_invisible_prop): Record the start of invisible text in
2479 it->add_overlay_start.
2480 (struct overlay_entry): Add member `overlay'.
2481 (handle_overlay_change): Simplify.
2482 (next_overlay_string): After having processed overlay strings at the
2483 end of the buffer, record that fact in
2484 it->overlay_strings_at_end_processed_p.
2485 (compare_overlay_entries): If before- and after-strings come
2486 from the same overlay, let before-strings come first.
2487 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
2488 (load_overlay_strings): Take it->add_overlay_start into account
2489 when adding overlay strings.
2491 * dispextern.h (struct it): Add member add_overlay_start.
2493 2000-06-22 Dave Love <fx@gnu.org>
2495 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
2497 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
2499 2000-06-22 Kenichi Handa <handa@etl.go.jp>
2501 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
2504 2000-06-21 Dave Love <fx@gnu.org>
2506 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
2508 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
2510 * syntax.c (back_comment): Simplify string-parity counting (with
2511 the added benefit of handling multiple string-styles as long as
2512 they are not intertwined).
2513 Jump to the slow code as soon as a comment starter is found in
2514 a "string_lossage" position. Fixes the case: " /* " /* " */.
2516 2000-06-21 Dave Love <fx@gnu.org>
2518 * Makefile.in: Use GETLOADAVG_LIBS.
2520 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
2521 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
2523 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2525 * syntax.c (describe_syntax): Recognize the `n'estable bit.
2526 (Fforward_comment, scan_lists):
2527 Check the comstyle of single-char comment-starters.
2528 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
2529 we're just at the beginning of the comment (f.ex with (*) ... (*)).
2530 Check the comstyle of single-char comment-starters.
2531 Clarify control-flow around the Scomment case.
2533 2000-06-20 Dave Love <fx@gnu.org>
2535 * fns.c (make_hash_table, maybe_resize_hash_table):
2536 Cast arg of next_almost_prime.
2538 * tparam.c [emacs]: Include lisp.h.
2540 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
2543 2000-06-20 Gerd Moellmann <gerd@gnu.org>
2545 * keyboard.c (adjust_point_for_property): Check if display
2546 property should be treated as intangible by looking at its
2549 * xdisp.c (single_display_prop_intangible_p)
2550 (display_prop_intangible_p): New functions.
2552 * dispextern.h (display_prop_intangible_p): Add prototype.
2554 * xdisp.c (dump_glyph_row): Show type of glyph->object.
2556 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
2557 argument to sigprocmask.
2559 * s/sco5.h (sigblock): Redefined to pass a pointer as second
2560 argument to sigprocmask.
2562 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
2563 sigprocmask_set, and pass a pointer to it to sigprocmask.
2565 * sysdep.c (sigprocmask_set): New variable.
2567 * fileio.c (make_temp_name): Don't use `%s' in string passed to
2570 2000-06-20 Sam Steingold <sds@gnu.org>
2572 * xrdb.c: Don't declare xmalloc, xrealloc.
2574 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2576 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
2577 (re_comp): Cast gettext return value to avoid complaints when
2580 2000-06-20 Dave Love <fx@gnu.org>
2582 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
2585 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
2587 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
2589 * m/alpha.h: Don't declare xmalloc, xrealloc.
2591 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
2593 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
2595 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
2597 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
2600 * keyboard.h (poll_for_input_1): Declare.
2602 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
2604 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
2606 * doprnt.c: Don't declare xmalloc, xrealloc.
2608 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
2609 (getenv, ctime, getwd): Removed.
2610 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
2612 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
2613 x_set_tool_bar_lines.
2615 * config.in: Add HAVE_GETWD. Move some definitions above
2616 machine/system includes.
2618 2000-06-20 Kenichi Handa <handa@etl.go.jp>
2620 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
2622 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
2623 contain information about ENCODING.
2625 * fontset.c (FONTSET_ASCII): Use the first element of char table
2626 for an ASCII font, not defalt slot.
2627 (fontset_ref_via_base): If FONTSET doesn't contain information for
2628 C, try the default fontset.
2629 (make_fontset): Don't copy the default fontset.
2630 (fontset_font_pattern): Likewise.
2631 (accumulate_font_info): If ELT is nil, use the corresponding
2632 element in the default fontset.
2634 2000-06-19 Dave Love <fx@gnu.org>
2636 * syntax.c (Fparse_partial_sexp): Doc fix.
2638 * regex.h: Test PROTOTYPES as well as __STDC__.
2640 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
2641 errno, strerror. Put text after #endif in comment.
2643 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
2646 * xterm.c (x_frame_of_widget): Likewise.
2648 2000-06-19 Gerd Moellmann <gerd@gnu.org>
2650 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
2651 to Vfundamental_mode_abbrev_table.
2653 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
2654 bogus objects are marked. This slows down GC by ~80 percent, but
2655 it might be worth trying when debugging GC-related problems.
2656 This feature requires conservative stack marking to be enabled.
2658 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
2659 returns XLookupChars, reset `modifiers' to zero.
2661 2000-06-19 Dave Love <fx@gnu.org>
2663 * mktime.c: Unprotoized.
2665 2000-06-19 Richard Stallman <rms@gnu.org>
2667 * data.c (set_internal): If variable is frame-local,
2668 store the new value immediately into the frame parameter alist.
2670 2000-06-19 Ken Raeburn <raeburn@gnu.org>
2672 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
2673 in the custom handler pointer.
2675 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
2676 value, or checks for CHAR_META can fail when Lisp_Object is a
2678 * keymap.c (get_keyelt): Likewise.
2680 2000-06-19 Kenichi Handa <handa@etl.go.jp>
2682 * ccl.h (struct ccl_program): New member eol_type.
2683 (struct ccl_spec): New member cr_carryover.
2685 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
2686 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
2688 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
2689 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
2690 (decode_eol_post_ccl): New function.
2691 (decode_coding): Don't detect EOL format here for CCL based coding
2693 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
2694 decode_eol_post_ccl after running the CCL program.
2695 (code_convert_region): Don't detect EOL format here for CCL based
2697 (decode_coding_string): Likewise.
2699 2000-06-18 Ken Raeburn <raeburn@gnu.org>
2701 * charset.c (update_charset_table): Use XINT on "iso_final_char"
2702 when treating it as an integer.
2704 * coding.h (encode_coding_string): Declare.
2706 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
2709 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
2710 "xkeymap" to avoid shadowing the "enum map_type" value that needs
2711 to be passed to get_local_map.
2713 * sound.c (Fplay_sound): Don't call make_number on
2714 Frun_hook_with_args count argument.
2716 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
2717 for lisp objects in X event structure data field, when lisp
2718 objects are represented with unions.
2719 (x_scroll_bar_to_input_event): Ditto.
2721 2000-06-16 Ken Raeburn <raeburn@gnu.org>
2723 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
2724 termination of string. Fix sense of test whether
2725 Vline_number_display_limit is an integer.
2727 2000-06-16 Gerd Moellmann <gerd@gnu.org>
2729 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
2730 only if HAVE_X_WINDOWS.
2732 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
2735 * dispnew.c (update_frame_1): Handle case that cursor vpos is
2738 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2740 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
2743 2000-06-15 Kenichi Handa <handa@etl.go.jp>
2745 * coding.c (decode_coding_emacs_mule): Always set src_base at the
2746 start of the while loop.
2748 2000-06-15 Gerd Moellmann <gerd@gnu.org>
2750 * atimer.c (alarm_signal_handler): Add forward declaration.
2752 * data.c (set_internal): Remove debug code.
2754 2000-06-14 Gerd Moellmann <gerd@gnu.org>
2756 * Makefile.in (bootstrap-temacs): Add `-I../src'.
2758 * unexec.c (toplevel) [COFF]: Include coff.h.
2760 * s/lynxos.h: New file.
2762 * keymap.c (Fsingle_key_description): Enclose function key and
2763 event symbol names in angle brackets.
2765 * xdisp.c (setup_echo_area_for_printing): Call
2766 message_log_maybe_newline if message_buf_print is not set.
2768 * print.c (printchar, strout): Don't check message_buf_print
2769 before calling setup_echo_area_for_printing because that
2770 function does something useful even when message_buf_print is
2773 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
2775 (ensure_echo_area_buffers): Initialize echo buffer's
2776 truncate lines setting to nil.
2777 (with_echo_area_buffer): Don't set the echo buffer's truncate
2779 (set_message_1): Set it here instead, based on the value
2780 of message_truncate_lines.
2781 (resize_mini_window): Handle case that lines are truncated.
2782 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
2783 message-truncate-lines.
2785 * keyboard.c (read_char): Bind message-truncate-lines to t
2786 while displaying a help-echo.
2788 * lisp.h (Qmessage_truncate_lines): External declaration.
2790 2000-06-13 Gerd Moellmann <gerd@gnu.org>
2792 * xdisp.c (Vline_number_display_limit): Renamed from
2793 line_number_display_limit.
2794 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
2795 Extend documentation string. Initialize
2796 Vline_number_display_limit to nil meaning no limit.
2797 (decode_mode_spec): Use Vline_number_display_limit with its new
2800 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
2802 2000-06-13 Richard Stallman <rms@gnu.org>
2804 * frame.c (Fmodify_frame_parameters): Doc fix.
2806 * xfns.c (x_set_frame_parameters): Comment fix.
2808 * frame.c (store_frame_param): Call swap_in_global_binding if the
2809 variable's current binding was chosen based on this frame.
2811 * data.c (swap_in_global_binding): New function.
2813 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2815 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
2816 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
2818 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2820 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
2822 2000-06-12 Jason Rumney <jasonr@gnu.org>
2824 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
2826 * w32.h (EMACS_W32_H): Renamed from _NT_H_
2828 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
2830 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
2832 2000-06-12 Gerd Moellmann <gerd@gnu.org>
2834 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
2835 (syms_of_xfaces): Defsubr Sdump_colors.
2836 (x_free_colors): Don't treat b&w specially on default visual.
2837 (x_free_dpy_colors): New function.
2838 (free_face_colors): Don't check visual class; it's done
2841 * xterm.c (x_frame_of_widget): New function.
2842 (x_alloc_nearest_color_for_widget): Use it.
2843 (x_copy_dpy_color): New function.
2844 (x_destroy_window): Free various colors.
2846 2000-06-12 Kenichi Handa <handa@etl.go.jp>
2848 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
2850 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
2852 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
2854 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
2856 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
2858 2000-06-11 Dave Love <fx@gnu.org>
2860 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
2862 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2864 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
2866 2000-06-11 Gerd Moellmann <gerd@gnu.org>
2868 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
2871 2000-06-10 Kenichi Handa <handa@etl.go.jp>
2873 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
2874 (regex_compile): Fix the code for handling the case of single byte
2875 char and multibyte char being mixed in a range within [...].
2877 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
2878 and dst_multibyte members of coding.
2880 * charset.c (update_charset_table): Update the table
2882 (init_charset_once): Initialize elements of bytes_by_char_head to
2883 1 except for leading codes for private charases.
2885 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
2886 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
2889 2000-06-09 Ken Raeburn <raeburn@gnu.org>
2891 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
2892 access the data it doesn't point to.
2894 2000-06-08 Gerd Moellmann <gerd@gnu.org>
2896 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
2897 will be translated to a switch-frame event when reading the
2898 event queue. This is necessary because Emacs otherwise won't
2899 perform a switch-frame to a new frame until some other event, for
2900 example a keystroke event, forces it to do so. This has various
2901 effects, one visible being that the cursor of a frame created with
2902 C-x 5 2 or switched to with a window manager key binding like
2903 A-TAB stays hollow because selected_window isn't on the newly
2904 focused frame until the switch-frame is performed.
2906 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
2907 generating a switch-frame event if necessary.
2909 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
2911 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
2914 2000-06-08 Kenichi Handa <handa@etl.go.jp>
2916 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
2919 2000-06-07 Gerd Moellmann <gerd@gnu.org>
2921 * window.c (displayed_window_lines): Take empty lines at
2922 the bottom of a window into account.
2924 * window.c (displayed_window_lines): New function.
2925 (Fmove_to_window_line): Use displayed_window_lines to determine
2926 the number of lines to move, instead of using the window's height.
2928 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
2929 to stop reading, even if the form read sets point to a different
2930 value when evaluated.
2932 * xdisp.c (display_line): Fix code deciding in which line to
2935 2000-06-07 Kenichi Handa <handa@etl.go.jp>
2937 * fileio.c (e_write): Free composition data if stored in
2940 2000-06-06 Gerd Moellmann <gerd@gnu.org>
2942 * xdisp.c (display_line): Set row's and iterator's
2943 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
2944 Set cursor even if row ends in the middle of a character.
2945 (dump_glyph_row): Print values of new flags.
2946 (redisplay_window) <cursor movement in unchanged window>: When
2947 point has been moved forward, and PT is at the end of the cursor
2948 row, don't place the cursor in the next row if the cursor row ends
2949 in the middle of a character or at ZV.
2951 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
2952 (struct glyph_row): Add starts_in_middle_of_char_p and
2953 ends_in_middle_of_char_p.
2954 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
2955 ends_in_middle_of_char_p flag.
2956 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
2958 * term.c (append_glyph): Revert change of 2000-06-06.
2960 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
2961 padding glyph not fitting on line as whole character not
2964 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
2965 this isn't true for images with `:ascent 100'.
2967 2000-06-06 Kenichi Handa <handa@etl.go.jp>
2969 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
2970 as modified if it is originally unmodified.
2972 * term.c (encode_terminal_code): Change the way to check if
2973 terminal coding does any conversion.
2974 (append_glyph): Set glyph->pixel_width correctly.
2976 * xdisp.c (display_line): While checking line continuation, pay
2977 attention to a padding glyph.
2979 2000-06-05 Gerd Moellmann <gerd@gnu.org>
2981 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
2983 2000-06-05 Dave Love <fx@gnu.org>
2985 * xdisp.c: Include fontset.h.
2987 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
2989 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2991 * dispnew.c: Conditionally include term.h.
2993 * coding.h: Declare code_convert_string_norecord.
2995 * frame.h (struct frame): Use volatile unconditionally.
2997 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
2999 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
3001 * systime.h: Protect against multiple inclusion.
3002 (timezone) [USG5_4]: Define as time_t.
3004 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3005 (Foptimize_char_table, make_temp_name): Declare.
3007 * Makefile.in (xdisp.o): Depend on fontset.h.
3009 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3011 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3012 (Foptimize_char_table, make_temp_name): Declare.
3016 * s/netbsd.h: Don't define autoconfiscated MATHERR.
3018 2000-06-02 Dave Love <fx@gnu.org>
3020 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
3022 2000-06-02 Gerd Moellmann <gerd@gnu.org>
3024 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
3025 result face, set flags in that face indicating that colors may not
3028 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
3029 glyph, use the ASCII NUL character to determine the face.
3031 2000-06-02 Dave Love <fx@gnu.org>
3033 * sysdep.c: Conditionally include stdlib.h, unistd.h.
3034 (VFORK_RETURN_TYPE): Remove.
3036 * config.in: Add NO_MATHERR.
3038 2000-06-01 Dave Love <fx@gnu.org>
3040 * cmds.c (internal_self_insert): Don't check
3041 Vbefore_change_function, Vafter_change_function.
3043 * insdel.c (signal_before_change, signal_after_change): Likewise.
3045 * buffer.c (Vbefore_change_function, Vafter_change_function):
3046 Variables and their initializations deleted.
3048 * callint.c (Fcall_interactively): Doc fix.
3050 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
3052 2000-05-31 Dave Love <fx@gnu.org>
3054 * textprop.c: Revert last change -- duplicated.
3056 2000-05-31 Gerd Moellmann <gerd@gnu.org>
3058 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
3061 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
3063 2000-05-31 Jason Rumney <jasonr@gnu.org>
3065 * search.c (Fre_search_forward, Fre_search_backward)
3066 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
3068 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
3070 2000-05-30 Jason Rumney <jasonr@gnu.org>
3072 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
3073 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
3075 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
3078 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
3079 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
3080 expand a nil default_filename.
3082 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
3083 pointer to glyph_to_pixel_coords, not a frame.
3085 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
3086 coding.h to dependencies.
3088 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
3090 * w32console.c (glyph_to_pixel_coords): Change first parameter to
3091 window pointer to be consistent with w32term.c and xterm.c.
3093 * w32fns.c: Format and doc changes to bring closer to xfns.c.
3094 (VIETNAMESE_CHARSET): Define if not defined in system headers.
3095 (Qline_spacing, Qcenter): New variables.
3096 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
3097 (x_set_line_spacing): New function.
3098 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
3100 (x_specified_cursor_type): New function.
3101 (x_set_cursor_type): Use it.
3102 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
3104 (validate_x_resource_name, x_get_resource_string): Measure lengths
3105 of external strings in bytes.
3106 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
3107 GetTextExtentPoint32 with NULL title.
3108 (Fx_create_frame): Initialize Qline_spacing.
3109 (w32_load_system_font): Initialize font->double_byte_p.
3110 (x_to_w32_charset): Use Vw32_charset_info_alist.
3111 (Image, busy cursor, tooltip functions): Merged changes from
3112 xfns.c. Not yet functional on Windows.
3114 * w32gui.h (W32FontStruct): Add double_byte_p member.
3116 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
3117 (emacs_button_translation): Use it.
3118 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
3119 in `mask' to be set.
3121 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
3124 * w32term.c: Format and doc changes to bring closer to xterm.c.
3125 (w32_char_font_type): New enum.
3126 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
3127 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
3128 (w32_encode_char): New function.
3129 (x_encode_char): Removed.
3130 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
3131 x_encode_char and w32_font_is_double_byte.
3132 (x_produce_image_glyph): Use image_ascent.
3133 (x_produce_glyphs): Use new version of w32_per_char_metric and
3134 handle NULL return value. Allow extra line spacing.
3135 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
3136 (w32_get_glyph_overhangs): Remove unicode_p param. Use
3137 w32_font_type member of glyph instead.
3138 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
3139 (fast_find_position): Make sure not to consider rows not visible
3141 (w32_read_socket) [WM_MENUSELECT]: Cannot call
3142 w32_menu_display_help with input blocked, as it can abort.
3143 (x_display_and_set_cursor): Choose cursor depending
3144 on buffer-local value of cursor_type.
3145 (x_draw_bar_cursor): Add parameter WIDTH.
3147 * w32term.h (CP_DEFAULT): Define.
3148 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
3150 2000-05-30 Gerd Moellmann <gerd@gnu.org>
3152 * search.c (Fre_search_forward, Fre_search_backward)
3153 (Fposix_search_backward, Fposix_search_forward): Doc fix.
3155 2000-05-30 Kenichi Handa <handa@etl.go.jp>
3157 * coding.c (detect_coding_iso2022): Fix code for checking
3158 CODING_CATEGORY_MASK_ISO_8_2.
3160 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
3162 * regex.c (PREFETCH_NOLIMIT): New function.
3163 (re_match_2_internal): Use it and adjust the end_match_2 logic.
3165 2000-05-29 Gerd Moellmann <gerd@gnu.org>
3167 * syntax.c (find_defun_start): Move test for
3168 open_paren_in_column_0_is_defun_start outside of the loop.
3170 * xdisp.c (redisplay_window): Really switch buffers when
3171 displaying mode lines, and temporarily set selected_frame to the
3172 frame of the window that's redisplayed.
3174 * xfaces.c (free_realized_faces): Block/unblock input.
3175 (free_realized_multibyte_face): Ditto.
3177 2000-05-29 Dave Love <fx@gnu.org>
3179 * textprop.c (Qkeymap): New variable.
3180 (syms_of_textprop): Intern it.
3182 * keymap.c: Include intervals.h.
3183 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
3185 * Makefile.in (keymap.o): Depend on intervals.h.
3187 * keyboard.c (menu_bar_items, tool_bar_items)
3188 (Fexecute_extended_command): Deal with `keymap' property.
3189 (read_key_sequence): Track map from `keymap' property as well as
3192 * intervals.c (get_local_map): Extra arg to allow looking for
3195 * intervals.h (map_property): New enum.
3196 (get_local_map): Extra arg using it.
3199 * lisp.h (get_local_map): Don't declare here.
3201 2000-05-29 Kenichi Handa <handa@etl.go.jp>
3203 * Makefile.in (callproc.o): Depend on composite.h.
3205 * callproc.c: Include composite.h.
3206 (Fcall_process): Handle composition correctly.
3208 * coding.h (coding_allocate_composition_data): Extern it.
3209 (coding_restore_composition): Likewise.
3211 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
3212 yet allocated, finish decoding with result
3213 CODING_FINISH_INSUFFICIENT_CMP.
3214 (coding_allocate_composition_data): Make it non-static.
3215 (coding_restore_composition): Likewise.
3217 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
3219 * charset.c (syms_of_charset): Revert last change.
3221 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3223 * term.c (produce_glyphs): Treat characters from the eight-bit-*
3224 charsets as unibyte, with 1-column screen width. Sent by Kenichi
3227 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3229 * charset.c (syms_of_charset): Set width of character sets
3230 eight-bit-control and eight-bit-graphic to 1 column.
3232 2000-05-26 Gerd Moellmann <gerd@gnu.org>
3234 * config.in (HAVE_SPEED_T): New define.
3236 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
3239 2000-05-26 Dave Love <fx@gnu.org>
3241 * coding.c (shrink_decoding_region): Initialize eol_conversion.
3243 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
3244 (Fsubr_arity): New function.
3245 (syms_of_data): Install them.
3247 2000-05-26 Kenichi Handa <handa@etl.go.jp>
3249 * charset.c (init_charset_once): Set the table bytes_by_char_head
3252 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
3253 the default fontset to what Emacs uses by default.
3254 (check_registry_encoding): This function deleted.
3255 (Fset_fontset_font): Remove the adhoc condition for the default
3256 fontset. Allow cons in FONTNAME.
3258 * fns.c (map_char_table): Ignore char-table entries for
3259 charsets eight-bit-control and eight-bit-graphic.
3261 2000-05-25 Ken Raeburn <raeburn@gnu.org>
3263 * emacs.c (main): Initialize keyboard syms before initializing
3264 window code, so face names are available.
3266 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3268 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3269 of an anchor at the beginning of a shy-group.
3271 2000-05-25 Gerd Moellmann <gerd@gnu.org>
3273 * xdisp.c (handle_invisible_prop): Don't try to skip over
3274 invisible text if end of text is already reached.
3276 2000-05-25 Dave Love <fx@gnu.org>
3278 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3280 * coding.c (encode_eol): Add null statement after label.
3282 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3284 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3287 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3289 * ccl.c (ccl_driver): Fix previous change.
3291 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3293 * coding.c (run_pre_post_conversion_on_str): Set point to the
3294 beginning of buffer before calling coding->post_read_conversion.
3295 (decode_coding_string): Give correct args to
3296 run_pre_post_conversion_on_str.
3297 (encode_coding_string): Likewise.
3299 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3300 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3301 eight-bit-graphic correctly.
3303 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
3305 * fileio.c (Finsert_file_contents): Even if a file is not found,
3306 execute codes for setting up coding system. Call
3307 after-insert-file-functions unconditionally.
3309 2000-05-24 Gerd Moellmann <gerd@gnu.org>
3311 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3312 BSD_PGRPS are not defined.
3314 2000-05-24 Kenichi Handa <handa@etl.go.jp>
3316 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3318 (syms_of_charset): Avoid building same strings.
3320 2000-05-23 Gerd Moellmann <gerd@gnu.org>
3322 * lread.c (Fload): Add a comment about the meaning of
3323 Vuser_init_file being t.
3325 * puresize.h (BASE_PURESIZE): Increase to 675000.
3327 * s/gnu-linux.h (setpgrp): Don't define it here because this
3328 prevents compilation on GNU/Linux systems with glib 2.2.
3330 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3333 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3335 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
3336 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
3338 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3340 2000-05-23 Kenichi Handa <handa@etl.go.jp>
3342 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3345 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3347 * term.c (encode_terminal_code): Set coding->src_multibyte
3350 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3352 2000-05-22 Kenichi Handa <handa@etl.go.jp>
3354 * keyboard.c (read_char): Allow character codes 128..255 to be
3355 handled by input-method-function.
3357 * insdel.c (adjust_markers_for_replace): Fix previous change.
3358 (adjust_after_replace): If PREV_TEXT is nil, call
3359 adjust_markers_for_insert, not adjust_markers_for_replace.
3361 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
3363 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
3364 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
3365 [HAVE_GRANDPT]: Define.
3366 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
3368 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3371 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3373 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3375 2000-05-20 Kenichi Handa <handa@etl.go.jp>
3377 The following changes are to handle 8-bit characters in a
3378 multibyte buffer/string without facing with byte combining
3379 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
3380 eight-bit-graphic (for 0xA0..0xFF) are introduced.
3382 * Makefile.in (fns.o): Depend on charset.h.
3384 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
3385 convert it to unibyte.
3386 (make_string): Use parse_str_as_multibyte, not chars_in_text.
3388 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
3389 apparent char boundary.
3390 (Fset_buffer_multibyte): Convert 8-bit characters in the range
3391 0x80..0x9F to/from multibyte form.
3393 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3396 * callproc.c (Fcall_process): Always encode an argument string if
3397 it is multibyte. Setup src_multibyte and dst_multibyte members of
3398 process_coding properly.
3400 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
3401 SPLIT_NON_ASCII_CHAR.
3403 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
3405 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
3407 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
3409 (SPLIT_CHARACTER_SEQ): This macro deleted.
3410 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
3412 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
3413 and eight-bit-graphic.
3414 (char_to_string): Likewise. Signal an error for too large
3416 (char_printable_p): Return 0 for 8-bit characters.
3417 (update_charset_table): Update iso_charset_table only when a final
3418 character is non-negative.
3419 (find_charset_in_text): Renamed from find_charset_in_str.
3420 Arguments and return value changed. Callers changed.
3421 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
3422 be -1 if CHARSET is used only internally.
3423 (Fmake_char_internal): Handle new charsets; eight-bit-control and
3425 (Fcharset_after): Simplified.
3426 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
3427 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
3428 (multibyte_chars_in_text): Simplified by assuming there's no
3429 invalid multibyte sequence.
3430 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3431 str_as_unibyte): New functions.
3432 (Fstring): Simpified by assuming that byte combining never
3434 (init_charset_once): Initialization for
3435 LEADING_CODE_8_BIT_CONTROL.
3436 (syms_of_charset): Intern and staticpro Qeight_bit_control and
3437 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
3438 eight-bit-control and eight-bit-graphic.
3440 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
3441 CHARSET_8_BIT_GRAPHIC): New macros.
3442 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
3443 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
3444 (CHARSET_REVERSE_CHARSET): Likewise.
3445 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
3447 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
3448 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
3449 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
3450 encounter an invalid multibyte sequence.
3451 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
3452 sequence is always valid.
3453 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
3454 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
3456 (CHAR_STRING): For 8-bit characters, call char_to_string.
3457 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
3458 multibyte sequence is always valid.
3459 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
3460 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3461 str_as_unibyte): Extern them.
3462 (BCOPY_SHORT): Fix a bug.
3463 (CHAR_LEN): This macro deleted. Callers changed to use
3465 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
3466 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
3467 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
3469 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
3470 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
3471 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
3472 EMIT_BYTES): New macros.
3473 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
3474 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
3476 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
3477 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
3478 check the validity of multibyte sequence.
3479 (decode_coding_emacs_mule): New function.
3480 (encode_coding_emacs_mule): New macro.
3481 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
3483 (DECODE_ISO_CHARACTER): Just return a character code.
3484 (DECODE_COMPOSITION_START): Set coding->result instead of result.
3485 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
3486 EMIT_CHAR to produced decoded characters. Exit the loop only by
3487 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
3489 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
3490 only position codes for an invalid character.
3491 (encode_designation_at_bol): Return new destination pointer. 5th
3492 arg DSTP is changed to DST.
3493 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
3494 from the source by ONE_MORE_CHAR. Don't handle the case of last
3496 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
3498 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
3499 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
3500 TWO_MORE_BYTES to fetch a byte from the source.
3501 (encode_eol): Pay attention to coding->src_multibyte.
3502 (detect_coding, detect_eol): Preserve members src_multibyte and
3504 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
3505 (encoding_buffer_size): Set magnification to 3 for all coding
3506 systems that require encoding.
3507 (ccl_coding_driver): For decoding, be sure that the result is
3508 valid multibyte sequence.
3509 (decode_coding): Initialize coding->errors and coding->result.
3510 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
3511 and raw-text, always call decode_eol. Handle the case of last
3512 block here. If not coding->dst_multibyte, convert the resulting
3513 sequence to unibyte.
3514 (encode_coding): Initialize coding->errors and coding->result.
3515 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
3516 and raw-text, always call encode_eol. Handle the case of last
3518 (shrink_decoding_region, shrink_encoding_region): Detect cases
3519 that we can't skip data more rigidly.
3520 (code_convert_region): Setup src_multibyte and dst_multibyte
3521 members of coding. For decoding, if the buffer is multibyte,
3522 convert the source sequence to unibyte in advance. For encoding,
3523 if the buffer is multibyte, convert the resulting sequence to
3524 multibyte afterward.
3525 (run_pre_post_conversion_on_str): New function.
3526 (code_convert_string): Deleted and divided into the following two.
3527 (decode_coding_string, encode_coding_string): New functions.
3528 (code_convert_string1, code_convert_string_norecord): Call one of
3530 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
3531 MAKE_NON_ASCII_CHAR.
3532 (Fset_terminal_coding_system_internal,
3533 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
3534 and dst_multibyte members.
3535 (init_coding_once): Initialize iso_code_class with new enum
3536 ISO_control_0 and ISO_control_1.
3538 * coding.h (enum iso_code_class_type): Member ISO_control_code is
3539 devided into ISO_control_0 and ISO_control_1.
3540 (struct coding_system): New members src_multibyte, dst_multibyte,
3541 errors, and result. Delete member fake_multibyte.
3542 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
3544 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
3547 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
3550 * editfns.c (Fformat): Be sure to convert 8-bit characters to
3552 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
3554 (Ftranspose_region): Delete codes for handling byte combining.
3556 * fileio.c (Finsert_file_contents): Setup src_multibyte and
3557 dst_multibyte members of coding. On handling REPLACE on unibyte
3558 buffer, convert the result of decode_coding to unibyte. On
3559 inserting into a mutibyte buffer, always call code_convert_region.
3560 (e_write): Setup coding->src_multibyte according to the
3561 multibyteness of the source (buffer or string).
3563 * fns.c (concat): Handle 8-bit characters correctly.
3564 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
3565 unibyte in the result.
3566 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
3567 valid multibyte form in the result.
3568 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3569 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
3570 return -1, signal an error.
3571 (base64_encode_1): New arg MULTIBYTE. Get each character by
3572 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
3573 character is found, return -1.
3574 (Fbase64_decode_region): Delete codes for handling byte-combining.
3575 Treat each decoded byte as a unibyte character.
3576 (Fbase64_decode_string): Return unibyte string.
3577 (Fcompare_strings, concat, string_byte_to_char): Use
3578 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
3579 FETCH_STRING_CHAR_ADVANCE.
3580 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3581 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
3583 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
3584 SPLIT_NON_ASCII_CHAR.
3585 (fontset_ref_via_base, fontset_set): Likewise
3587 * insdel.c (adjust_markers_for_record_delete): Deleted.
3588 (adjust_markers_for_insert): Argument changed. Caller changed.
3589 (adjust_markers_for_replace): Likewise.
3590 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
3591 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
3592 (copy_text): Delete unused local varialbe c_save. For converting
3593 to multibyte, be sure to make all 8-bit characters in valid
3595 (count_size_as_multibyte): Handle 8-bit characters correctly.
3596 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3597 adjust_after_replace, replace_range, del_range_2)
3598 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
3599 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3600 adjust_after_replace, replace_range, del_range_2) Delete codes for
3601 handling byte combining.
3602 (adjust_before_replace): Deleted.
3604 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
3605 SPLIT_NON_ASCII_CHAR.
3606 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3607 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
3609 (Fkey_description): Likewise.
3611 * lread.c (read1): On reading multibyte string, be sure to make
3612 all 8-bit chararacters in valid multibyte form.
3613 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3615 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
3618 * process.c (Fstart_process): GCPRO current_dir before calling
3619 Ffind_operation_coding_system. Encode arguments here.
3620 (create_process): Don't encode arguments here. Setup
3621 src_multibyte and dst_multibyte members of struct coding.
3622 (read_process_output): Setup src_multibyte and dst_multibyte
3623 members of struct coding. If the output is to multibyte buffer,
3624 always decode the output of the process. Adjust the
3625 representation of 8-bit characters to the multibyteness of the
3627 (send_process): Setup coding->src_multibyte according to the
3628 multibyteness of the source.
3630 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
3632 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
3633 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
3635 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
3638 * w16select.c (Fw16_set_clipboard_data): Setup members
3639 src_multibyte and dst_multibyte of coding. Adjusted for the
3640 change for find_charset_in_str.
3641 (Fw16_get_clipboard_data): Likewise.
3643 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
3644 dst_multibyte of coding.
3645 (x_to_w32_font): Likewise.
3647 * w32select.c (Fw32_set_clipboard_data): Setup members
3648 src_multibyte and dst_multibyte of coding. Adjusted for the
3649 change for find_charset_in_str.
3650 (Fw32_get_clipboard_data): Likewise.
3652 * xdisp.c (get_next_display_element): Handle 8-bit characters
3654 (next_element_from_display_vector): Use CHAR_BYTES instead of
3656 (disp_char_vector): Use SPLIT_CHAR instead of
3657 SPLIT_NON_ASCII_CHAR.
3659 * xselect.c (selection_data_to_lisp_data): Setup members
3660 src_multibyte and dst_multibyte of coding. Adjusted for the
3661 change for find_charset_in_str.
3662 (lisp_data_to_selection_data): Likewise.
3664 2000-05-19 Gerd Moellmann <gerd@gnu.org>
3666 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
3669 * dispextern.h (Vimage_types): Add extern declaration.
3671 * xdisp.c (Vimage_types): Moved here from xfns.c.
3672 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
3674 * xfns.c (Vimages_types): Moved to xdisp.c.
3675 (syms_of_xfns): Move `image-types' to xdisp.c.
3677 * w32fns.c (Vimage_types): Removed.
3678 (syms_of_w32fns): Remove `image-types'.
3680 2000-05-18 Kenichi Handa <handa@etl.go.jp>
3682 * fns.c (map_char_table): Pay attention to character number of
3683 charset. Check the validity of charset at the first level. For
3684 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
3687 * fontset.c: Include "buffer.h".
3688 (fs_load_font): If the face has fontset, record the face ID in
3690 (Finternal_char_font): New function.
3691 (accumulate_font_info): New function.
3692 (Ffontset_info): Rewritten for the new fontset implementation.
3693 (syms_of_fontset): Register Vdefault_fontset in the first element
3694 of Vfontset_table. Include Vdefault_fontset in
3695 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
3698 2000-05-16 Dave Love <fx@gnu.org>
3700 * m/iris5d.h: Deleted -- unused.
3702 2000-05-16 Gerd Moellmann <gerd@gnu.org>
3704 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
3705 `invalid' instead of `illegal'.
3707 * indent.c (Fmove_to_column): When ending within a tab, insert
3708 spaces first so that markers at the end of the tab get adjusted.
3710 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
3711 buffer list that wasn't selected in that frame.
3713 * filelock.c (get_boot_time): To obtain an 8 char file name, which
3714 is needed on mescaline, use a 2 char prefix, and call
3715 make_temp_name with second arg non-zero.
3717 * fileio.c (make_temp_name): New function, extracted from
3719 (Fmake_temp_name): Use it.
3721 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3723 * window.c (coordinates_in_window): Subtract 1 when computing
3726 2000-05-15 Gerd Moellmann <gerd@gnu.org>
3728 * Makefile.in (lisp): Add env.elc.
3730 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
3732 2000-05-12 Gerd Moellmann <gerd@gnu.org>
3734 * search.c (Freplace_match): Handle case of `\N' in the
3735 replacement when there's no group N.
3737 2000-05-11 Gerd Moellmann <gerd@gnu.org>
3739 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
3740 of the message to message_dolog.
3742 * keyboard.c (read_char): Don't clear current message for help
3743 events; let the code handling help events handle this. Change
3744 code detecting help events that should be ignored.
3746 * xdisp.c (handle_single_display_prop): Don't try to set PT if
3747 we're interating over a string.
3749 2000-05-09 Dave Love <fx@gnu.org>
3751 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
3752 that offset before writing. Move gcpro region past call of
3755 2000-05-04 Dave Love <fx@gnu.org>
3757 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
3759 2000-05-04 Gerd Moellmann <gerd@gnu.org>
3761 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
3762 of inserted characters when BUF equals the current buffer, and PT
3763 is in front of or equal to FROM.
3765 2000-05-03 Gerd Moellmann <gerd@gnu.org>
3767 * xdisp.c (handle_single_display_prop): If display property value
3768 is invalid, or something not supported on the frame, restore
3769 iterator's position to what it was initially. Make sure to return
3770 0 for invalid and unsupported property values.
3772 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
3773 that x_per_char_metric returns null.
3775 2000-05-02 Gerd Moellmann <gerd@gnu.org>
3777 * xterm.h (struct face): Add forward declaration.
3778 (struct image): Ditto.
3779 (image_ascent): Add prototype.
3781 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3782 (x_draw_image_relief, x_draw_image_foreground_1): Call function
3783 image_ascent instead of using IMAGE_ASCENT.
3785 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
3786 (IMAGE_ASCENT): Removed.
3788 * xfns.c (Qcenter): New variable.
3789 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
3790 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
3791 (image_ascent): New function.
3792 (lookup_image): Recognize `:ascent center'.
3793 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3794 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3795 (xbm_load): Don't set image's ascent here.
3796 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
3797 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
3798 check ascent values here.
3799 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
3800 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
3801 (syms_of_xfns): Initialize Qcenter.
3803 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
3804 to the limits, increase the limits.
3806 2000-05-01 Kenichi Handa <handa@etl.go.jp>
3808 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
3809 Check Vfont_encoding_alist against the full name of the opened
3812 2000-04-28 Gerd Moellmann <gerd@gnu.org>
3814 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
3815 taller than the window.
3817 2000-04-28 Kenichi Handa <handa@etl.go.jp>
3819 * xfaces.c (realize_x_face): Fix the argument of the second
3820 xassert. BASE_FACE may not be a face for ASCII.
3822 2000-04-27 Gerd Moellmann <gerd@gnu.org>
3824 * print.c (print_object): Treat print-length < 0 as nil.
3826 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
3828 * s/freebsd.h (TERMCAP_OBJ): Removed.
3829 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
3831 * lread.c (read1): Don't treat period followed by certain
3832 characters as symbol start.
3834 * xfns.c (slurp_file): New function.
3835 (xbm_image_p): Handle case of in-memory XBM files.
3836 (xbm_scan): Rewritten to work on memory buffers instead of files.
3837 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
3838 Work on memory buffers instead of files. If DATA is null test
3839 if buffer looks like an in-memory XBM file.
3840 (xbm_load_image): Renamed from xbm_load_image_file. Work on
3841 memory buffers instead of files.
3842 (xbm_file_p): New function.
3843 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
3845 * lread.c (end_of_file_error): New function.
3846 (read1): Call it instead of signaling `end-of-file' directly.
3848 * print.c (print_error_message): Print data of `end-of-file'
3849 with Fprinc instead of Fprin1.
3851 2000-04-26 Ken Raeburn <raeburn@gnu.org>
3853 * window.c (freeze_window_start): Check that minibuffer scroll
3854 window isn't nil before extracting the window structure pointer
3857 * undo.c (record_delete): If we hit the end of the undo list, stop
3858 picking elements apart.
3860 2000-04-26 Gerd Moellmann <gerd@gnu.org>
3862 * xdisp.c (display_line): If lines are continued, restore
3863 iterator's ascent/descent information to the values before the
3864 first glyph not fitting on the line.
3866 2000-04-25 Gerd Moellmann <gerd@gnu.org>
3868 * xdisp.c (try_window_id) <all changes above window start>: Adjust
3869 positions in glyph matrix. Don't compute new window end
3872 * dispnew.c (increment_matrix_positions): Renamed from
3873 increment_glyph_matrix_buffer_positions.
3874 (increment_row_positions): Renamed from
3875 increment_glyph_row_buffer_positions.
3877 * dispextern.h: Change names of renamed functions from dispnew.c
3880 2000-04-24 Gerd Moellmann <gerd@gnu.org>
3882 * fileio.c (Fdo_auto_save): Create directories for auto-save
3883 list file if necessary.
3885 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
3886 from buffer or frame.
3887 (automatic_hscrolling_p): New variable.
3888 (hscroll_windows): Scroll windows horizontally only if automatic
3889 hscrolling is allowed.
3890 (syms_of_xdisp): New variable `automatic-hscrolling'.
3892 * frame.h (struct frame): Add member extra_line_spacing.
3894 * xfns.c (x_set_line_spacing): New function.
3895 (Fx_create_frame): Set line spacing from resources.
3896 (Qline_spacing): New variable.
3897 (syms_of_xfns): Initialize Qline_spacing.
3899 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
3901 * buffer.c (init_buffer_once): Handle extra_line_spacing.
3902 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
3903 (reset_buffer): Don't initialize extra2 and extra3. Initialize
3904 extra_line_spacing from default value.
3905 (init_buffer_once): Initialize default value of extra_line_spacing.
3907 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
3910 * xterm.c (x_produce_glyphs): Remove reference to struct it's
3911 prompt_width. Add extra line spacing.
3913 * term.c (produce_glyphs): Remove reference to struct it's
3916 * dispextern.h (struct it): Remove member prompt_width, add
3919 2000-04-22 Gerd Moellmann <gerd@gnu.org>
3921 * dispnew.c (update_frame_line): When writing a whole line, make
3922 sure cursor is in the right row afterwards, otherwise a use of
3923 capability `ch' in cmgoto might leave the cursor in the row below.
3925 2000-04-21 Gerd Moellmann <gerd@gnu.org>
3927 * lisp.h (struct Lisp_Buffer_Cons): Remove.
3929 * keyboard.c (timer_check): Fix typo in comment.
3931 2000-04-21 Kenichi Handa <handa@etl.go.jp>
3933 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
3934 name change: ch -> character.
3936 2000-04-20 Gerd Moellmann <gerd@gnu.org>
3938 * keyboard.c (echo_message_buffer): New variable.
3939 (echo_now): Set echo_message_buffer to the echo area buffer used
3940 to display the echo.
3941 (cancel_echoing): Reset echo_message_buffer to nil.
3942 (read_char): Code rewritten that handles canceling an echo or
3943 echoing a dash, respectively.
3945 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
3946 directory doesn't exist.
3948 2000-04-19 Dave Love <fx@gnu.org>
3950 * fns.c (syms_of_fns): Defsubr mapc.
3951 (concat): Don't allow numeric args.
3952 (Fconcat): Doc change.
3954 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
3956 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
3957 instead define end_match(1|2) more carefully.
3958 Use GET_CHAR_BEFORE_2 for `begline'.
3960 2000-04-19 Gerd Moellmann <gerd@gnu.org>
3962 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
3963 on 64-bit systems where NULL is defined as `0'.
3965 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
3966 the `variable argument list' to make it work on Alpha.
3968 * m/alpha.h (_LP64) [!_LP64]: Define.
3969 (ORDINARY_LINK): Define for NetBSD.
3971 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
3973 2000-04-19 Dave Love <fx@gnu.org>
3975 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
3978 * Makefile.in (LIBS): Don't use.
3979 (GETLOADAVG_OBJ): Define again.
3980 (otherobj): Add GETLOADAVG_OBJ.
3982 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
3984 2000-04-18 Gerd Moellmann <gerd@gnu.org>
3986 * lread.c (read_filtered_event): Cancel and start busy cursor.
3988 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
3989 that the per-character metrics may be null.
3991 2000-04-17 Gerd Moellmann <gerd@gnu.org>
3993 * buffer.c (clone_per_buffer_values): New function.
3994 (Fmake_indirect_buffer): Add optional argument CLONE. Call
3995 clone_per_buffer_values if CLONE is not nil.
3997 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
3999 2000-04-16 Dave Love <fx@gnu.org>
4001 * Makefile.in: Remove obsolete localcpp stuff.
4002 (GETLOADAVG_OBJ): Don't define.
4003 (obj): Move LIBOBJS...
4004 (otherobj): ... to here.
4005 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
4006 whitespace-only lines after the continuation (Irix).
4008 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4010 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
4012 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
4014 2000-04-14 Dave Love <fx@gnu.org>
4016 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
4017 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
4018 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
4019 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
4022 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
4023 autoconfiscated HAVE_GETLOADAVG.
4025 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
4028 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4030 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
4031 (fill_in_lock_file_name): Avoid existing files that aren't
4034 2000-04-14 Dave Love <fx@gnu.org>
4036 * Makefile.in (LIBS, LIBOBJS): New variable.
4037 (INTERVAL_SRC): Convert to make variable.
4038 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
4039 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
4040 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
4042 (SOME_MACHINE_OBJECTS): Remove interval stuff.
4043 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
4044 (shortlisp): Add facemenu, float-sup, frame.
4045 (SOME_MACHINE_LISP): Remove them from here.
4046 (LIBES): Change unused LDLIBS to autoconf LIBS.
4048 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
4050 2000-04-14 Kenichi Handa <handa@etl.go.jp>
4052 * composite.c (update_compositions): If FROM and TO are not in a
4053 valid range, do nothing.
4055 2000-04-13 Gerd Moellmann <gerd@gnu.org>
4057 * tparam.c (tparam1): Abort when encountering an unknown
4060 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
4063 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
4066 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4068 * fileio.c (a_write): Remove redundant semi-colons.
4069 (e_write): Return -1 if failed to write all the data.
4070 This fixes the changes made at 1999-12-15.
4072 2000-04-12 Dave Love <fx@gnu.org>
4074 * fns.c (mapcar1): Test for null vals to support mapc.
4075 (Fmapc): New function.
4077 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
4079 * msdos.c (NUM_MOUSE_BUTTONS): Define.
4080 (IT_frame_up_to_date): Support the buffer local value of
4081 cursor-type, if defined.
4083 2000-04-10 Dave Love <fx@gnu.org>
4085 * editfns.c (preceding-char, following-char): Doc fix.
4087 2000-04-10 Ken Raeburn <raeburn@gnu.org>
4089 * Makefile.in (temacs): Revert 2000-03-12 change.
4091 2000-04-10 Jason Rumney <jasonr@gnu.org>
4093 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
4095 2000-04-10 Gerd Moellmann <gerd@gnu.org>
4097 * xdisp.c (setup_echo_area_for_printing): Choose an echo
4098 area buffer, if it's not set up yet.
4100 * indent.c (compute_motion): Set immediate_quit.
4102 2000-04-09 Gerd Moellmann <gerd@gnu.org>
4104 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
4106 (realize_tty_face): Suppress boldness if colors are the inverse of
4107 the default colors, and tty_suppress_bold_inverse_default_colors_p
4109 (Ftty_suppress_bold_inverse_default_colors): New function.
4110 (syms_of_xfaces): Defsubr it.
4112 * buffer.c (Frestore_buffer_modified_p): New function.
4113 (syms_of_buffer): Defsubr it.
4115 2000-04-08 Ken Raeburn <raeburn@gnu.org>
4117 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
4118 charset id (int) argument, not a charset (Lisp_Object).
4120 * coding.h (code_convert_string): Declare.
4121 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
4122 object, as the fourth argument to code_convert_string.
4124 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
4126 (Fset_fontset_font): Use EQ to compare lisp objects.
4128 2000-04-05 Ken Raeburn <raeburn@gnu.org>
4130 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
4131 a pointer that looks like a lisp object.
4132 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
4133 zero, instead see whether it's an integer object, since they can't
4135 (GET_INTERVAL_OBJECT): Simply assign to the destination.
4137 * dispnew.c (allocate_matrices_for_frame_redisplay,
4138 direct_output_forward_char): Use X(U)INT and make_number as needed
4139 to convert between (unsigned) int values and lisp integers.
4140 * keyboard.c (read_key_sequence): Likewise.
4141 * lread.c (substitute_object_recurse): Likewise.
4142 * fns.c (concat, hash_lookup, hash_remove): Likewise.
4143 * minibuf.c (do_completion, Fminibuffer_complete_word,
4144 Fminibuffer_completion_help): Likewise.
4145 * term.c (produce_special_glyphs): Likewise.
4147 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
4148 * print.c (print_preprocess, print_object): Likewise.
4150 * search.c (compile_pattern): Use NILP when checking for nil.
4152 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
4153 __OPTIMIZE__]: Provide a GNU C macro version that handles
4155 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
4156 field, to better cope with ENABLE_CHECKING and calls that modify a
4157 Lisp_Object using its old value.
4159 2000-04-04 Gerd Moellmann <gerd@gnu.org>
4161 * window.c (compare_window_configurations): Signal an error
4162 if parameters C1 or C2 aren't window configurations.
4164 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
4165 AFTER_POTENTIAL_GC calls around calls to functions that can
4166 signal an error and thus invoke the debugger.
4168 2000-04-03 Gerd Moellmann <gerd@gnu.org>
4170 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
4171 an error if decoding fails.
4173 * keyboard.c (lispy_mouse_names): Variable removed.
4174 (Vlispy_mouse_stem): New variable.
4175 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
4176 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
4177 for any mouse button number. Increase size of mouse_syms and
4178 button_down_location as needed. Call modify_event_symbol with
4179 different arguments.
4180 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
4181 Call modify_event_symbol with different arguments.
4182 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
4183 for any button number. Call modify_event_symbol with different
4185 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
4186 Accept a string for NAME_ALIST_OR_STEM.
4188 * lisp.h (larger_vector): Add prototype.
4190 * fns.c (larger_vector): Make externally visible.
4192 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
4194 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
4196 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
4197 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
4198 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
4199 we are between str1 and str2.
4200 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
4201 (PATFETCH): Use `TRANSLATE'.
4202 (PATFETCH_RAW): Fetch multibyte char if applicable.
4203 (PATUNFETCH): Remove.
4204 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
4205 When writing a char, write it directly into the pattern buffer rather
4206 than going needlessly through a temp char-array.
4207 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
4208 multibyte magic and remove the useless `#ifdef emacs'.
4209 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
4212 * regex.h (struct re_pattern_buffer): Make field `multibyte'
4213 conditional on `emacs'.
4215 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
4217 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4219 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
4220 non-union-type versions of XMARK and friends here, because XMARK
4221 and friends won't work on an integer field if NO_UNION_TYPE is not
4223 (make_number): Define as a function if it's not defined as a
4226 * composite.c (run_composite_function): Use NILP when checking for
4228 (syms_of_composite): Delete local var NARGS, pass an int as first
4229 argument to Fmake_hash_table.
4231 * editfns.c (text_property_stickiness): Use NILP to test
4232 Lisp_Object boolean value.
4233 (Fmessage_or_box): Don't use NILP to test int variable.
4234 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
4235 problems reading from and changing the same lisp value in an
4238 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4240 * term.c (TN_no_color_video): New variable.
4241 (term_init): Intitialize TN_no_color_video.
4242 (enum no_color_bit): New enumeration.
4243 (MAY_USE_WITH_COLORS_P): New macro.
4244 (turn_on_face): Use it to determine if attributes may be used
4245 combined with colors.
4247 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4249 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
4250 with int lvalues via casts; instead, just yield lisp object
4252 (enlarge_window): Variable sizep now points to Lisp_Object. Use
4253 proper accessor macros.
4254 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
4255 (grow_mini_window): Fix typo getting int value of root->height.
4257 * xdisp.c (compute_string_pos): Fix order of arguments to
4258 string_pos_nchars_ahead.
4259 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
4260 count arg to variable-arg routines like Frun_hook_with_args and
4262 (back_to_previous_visible_line_start)
4263 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
4264 fixed-arg routines like Fget_char_property and Fmake_string.
4265 (reconsider_clip_changes): Use XINT when comparing integer lisp
4266 objects, or passing them as int arguments.
4267 (mark_window_display_accurate, insert_left_trunc_glyphs)
4268 (append_space, extend_face_to_end_of_line): Use make_number when
4269 storing or passing integer values as lisp objects.
4270 (set_cursor_from_row, highlight_trailing_whitespace): Use
4271 INTEGERP, not implicit test against zero, for glyph object.
4272 (try_window_id): Don't use make_number when we want an int value.
4274 * xfaces.c (xlfd_symbolic_value): Make last argument a
4275 Lisp_Object, to be consistent with callers.
4276 (Fbitmap_spec_p): Use XINT to get numeric value of height.
4277 (lface_hash): Apply XFASTINT to lisp values before folding in.
4279 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
4280 fill in window width and height. Pass an int, not a lisp object,
4281 as first arg to Finsert.
4283 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4285 * xfaces.c (realize_basic_faces): Block input while realizing
4288 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4290 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4292 2000-03-31 Gerd Moellmann <gerd@gnu.org>
4294 * xterm.c (x_produce_glyphs): When displaying unibyte text
4295 or ASCII, handle case that per-char metric is null.
4297 2000-03-30 Ken Raeburn <raeburn@gnu.org>
4299 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4301 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
4302 XSUBR, XBUFFER): Verify correct object type before returning
4303 pointer, using eassert.
4304 * frame.h (XFRAME): Likewise.
4306 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
4307 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
4308 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
4310 * data.c (set_internal): Likewise.
4311 * dispextern.h (WINDOW_WANTS_MODELINE_P,
4312 WINDOW_WANTS_HEADER_LINE_P): Likewise.
4313 * fileio.c (auto_save_1): Likewise.
4314 * insdel.c (check_markers): Likewise.
4315 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
4316 * undo.c (record_insert): Likewise.
4317 * vmsproc.c (child_sig): Likewise.
4318 * window.c (unshow_buffer, window_loop): Likewise.
4319 * xterm.c (x_erase_phys_cursor): Likewise.
4321 2000-03-30 Gerd Moellmann <gerd@gnu.org>
4323 * xfns.c (free_image_cache): Free the cache structure itself
4324 last, after all its members have been freed.
4326 * lisp.h (xstrdup): Add prototype.
4328 * alloc.c (xstrdup): Moved here from xfaces.c.
4329 (allocating_for_lisp): Variable removed.
4330 (lisp_malloc): Block input around the calls to malloc and
4333 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4335 (xstrdup): Moved to alloc.c.
4337 2000-03-29 Ken Raeburn <raeburn@gnu.org>
4339 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4341 * emacs.c (main): Fix sense of no-loadup test.
4343 * config.in (ENABLE_CHECKING): Undef.
4345 * lisp.h (struct interval): Replace "parent" field with a union of
4346 interval pointer and Lisp_Object; add new bitfield to use as
4347 discriminant. Change other flag fields to bitfields.
4348 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
4349 is defined and the supplied test fails, print a message and
4351 (eassert): New macro. Use CHECK to provide an assert-like
4354 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
4355 pointers; abort if the value looks like a lisp object.
4356 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
4357 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
4358 Modify for new interval parent definition.
4360 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
4361 UNMARK_BALANCE_INTERVALS): Update references that need an
4362 addressable lisp object in the interval structure.
4363 (die): New function.
4364 (suppress_checking): New variable.
4366 * intervals.c (interval_start_pos): Just return 0 if there's no
4369 2000-03-29 Gerd Moellmann <gerd@gnu.org>
4371 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4372 and earlier Emacs versions.
4374 * keyboard.c (Ftop_level): Cancel busy-cursor.
4376 * eval.c (call_debugger): Cancel busy-cursor.
4378 2000-03-29 Kenichi Handa <handa@etl.go.jp>
4380 * search.c (Freplace_match): Adjust multibyteness of the current
4381 buffer and NEWTEXT. Free allocated memory before signaling an
4384 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4386 * regex.c (analyse_first): New function obtained by ripping out most
4387 of re_compile_fastmap and generalizing it a little bit so that it
4388 can also just return whether a given (sub)pattern can match the empty
4390 (regex_compile): Use `analyse_first' to decide whether the loop-check
4391 needs to be done or not for *, +, *? and +? (the loop check is costly
4392 for non-greedy repetition).
4393 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
4395 2000-03-28 Dave Love <fx@gnu.org>
4397 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4400 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4402 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
4404 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
4406 (enum re_opcode_t): Update description of succeed_n.
4407 (PATFETCH): Always define.
4408 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
4409 operators, char classes, shy-groups and intervals).
4410 Optimize special cases of intervals so as to only use succeed_n and
4411 jump_n when really needed.
4412 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
4413 that we don't have to handle the special cases any more.
4414 Simplify on_failure_jump handling as well.
4416 2000-03-28 Jason Rumney <jasonr@gnu.org>
4418 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
4420 2000-03-27 Gerd Moellmann <gerd@gnu.org>
4422 * s/freebsd.h (GC_SETJMP_WORKS): Define.
4424 * s/msdos.h (GC_SETJMP_WORKS): Define.
4426 * alloc.c (mark_maybe_object): New function.
4427 (mark_memory): Use it.
4428 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
4429 (setjmp_tested_p, longjmp_done): New variables.
4430 (test_setjmp): New function.
4431 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
4432 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
4434 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4435 to DEC_TEXT_POS and INC_TEXT_POS.
4437 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
4438 with parameter MULTIBYTE_P.
4440 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
4443 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
4444 buffers because it looks for multibyte character byte sequences
4445 which don't exist in unibyte text.
4447 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
4449 * xfaces.c (register_color, unregister_color, unregister_colors)
4450 [DEBUG_X_COLORS]: New functions.
4451 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
4453 * xfns.c (x_set_cursor_color): Get color reference counts right.
4455 * xterm.c (x_copy_color): New function.
4456 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
4458 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
4459 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
4460 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
4461 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
4462 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
4463 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
4464 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
4465 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
4466 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
4467 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
4469 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
4470 names for handling per-buffer variables.
4472 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
4473 instead of MAX_BUFFER_LOCAL_VARS.
4474 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
4476 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
4478 * xfns.c (x_specified_cursor_type): New function.
4479 (x_set_cursor_type): Use it.
4481 * buffer.h (struct buffer): Add cursor_type.
4483 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
4485 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
4486 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
4488 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
4489 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
4490 executing it as well as when popping it off the stack to find infinite
4491 loops in non-greedy repetition operators.
4493 2000-03-26 Gerd Moellmann <gerd@gnu.org>
4495 * doc.c (Qfunction_documentation): New variable.
4496 (syms_of_doc): Initialize Qfunction_documentation.
4497 (Fdocumentation): If FUNCTION is a symbol with non-nil
4498 `function-documentation' property, return a documentation derived
4501 * buffer.c (syms_of_buffer): Add default-cursor-type.
4502 (init_buffer_once): Don't let cursor_type have a local value
4505 * xterm.c (x_display_and_set_cursor): Choose cursor depending
4506 on buffer-local value of cursor_type.
4507 (x_draw_bar_cursor): Add parameter WIDTH.
4509 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
4510 (init_buffer_once): Set default cursor_type value to t.
4511 Mark cursor_type as local everywhere.
4512 (syms_of_buffer): New per-buffer variable cursor-type.
4514 * buffer.h (struct buffer): Remove member local_var_flags,
4516 (MAX_BUFFER_LOCAL_VARS): New macro.
4517 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
4518 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
4519 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
4520 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
4522 * print.c (print_object): Use new macros for per-buffer
4525 * category.c (Fset_category_table): Use new macros for per-buffer
4528 * buffer.c (buffer_permanent_local_flags): Make a char array.
4529 (max_buffer_local_idx): New variable.
4530 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
4531 for new handling of per-buffer variables.
4532 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
4533 (init_buffer_once): Initialize per-buffer vars differently.
4534 Set max_buffer_local_idx.
4536 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
4539 * lread.c (defvar_per_buffer): Use new macros for per-buffer
4542 * data.c (do_symval_forwarding, store_symval_forwarding)
4543 (find_symbol_value, set_internal, default_value, Fset_default)
4544 (Fkill_local_variable, Flocal_variable_p): Use new macros for
4545 per-buffer variables.
4547 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
4549 2000-03-24 Gerd Moellmann <gerd@gnu.org>
4551 * xterm.c (x_term_init): Unblock input around call1 of
4552 Qvendor_specific_keysyms.
4554 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
4555 (find_defun_start): Consider an open parenthesis in column 0
4556 a defun start only if open_paren_in_column_0_is_defun_start is set.
4557 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
4559 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
4561 * eval.c (Fautoload): Add entry in load-history (if after dump).
4562 * lread.c (load-history): Update docstring.
4564 2000-03-24 Gerd Moellmann <gerd@gnu.org>
4566 * indent.c (Fvertical_motion): Always use the current buffer.
4567 Temporarily change the window's buffer, if necessary.
4569 2000-03-23 Gerd Moellmann <gerd@gnu.org>
4571 * xterm.c (fast_find_position): Make sure not to consider rows
4572 not visible in the window.
4574 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
4576 * regex.c (enum syntaxcode): Provide default for non-Emacs.
4577 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
4579 2000-03-22 Jason Rumney <jasonr@gnu.org>
4581 * w32menu.c (single_submenu): Set help string to NULL if none.
4582 (w32_menu_show): Set help string correctly.
4583 (add-menu-item): Set help string in MIIM_DATA for menu item.
4584 Load SetMenuItemInfoA explicitly.
4585 (w32_menu_display_help): New function.
4587 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
4588 (QCdata): Moved to xdisp.c.
4590 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
4591 (Vw32_charset_to_codepage_alist): Removed.
4592 (Vw32_charset_info_alist): New variable.
4593 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
4594 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
4595 greek, hebrew, thai, johab, mac, unicode]): New symbols.
4596 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
4598 (w32_codepage_for_font): Use Vw32_charset_info_alist.
4599 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
4600 Define Vw32_charset_info_alist and w32_charset symbols.
4602 2000-03-22 Jason Rumney <jasonr@gnu.org>
4604 * makefile.nt (w32bdf.obj): Update dependencies.
4606 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
4608 * w32fns.c: Include fontset.h after dispextern.h.
4609 (Fx_create_frame): Do not create fontset.
4610 (w32_load_system_font): Doc fix.
4611 (Fx_close_connection): Free full_name if it is not shared.
4613 * w32term.c: Include fontset.h after dispextern.h.
4614 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
4616 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
4617 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
4618 (w32_font_is_double_byte): New function, needs body.
4619 (x_append_glyph): Set glyph->glyph_not_available_p.
4620 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4621 it->charset. If it->multibyte_p is zero and it->c is a multibyte
4622 character, convert it to a unibyte character.
4623 (struct glyph_string): Delete member `charset'.
4624 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
4625 calculating it is found.
4626 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4627 the case that per char metric is not available correctly.
4628 (x_fill_glyph_string): Handle the case that the specific glyph is
4629 not available correctly.
4630 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4631 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4632 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4633 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4634 fontset. Don't call FS_LOAD_FONT.
4636 2000-03-22 Ken Raeburn <raeburn@gnu.org>
4638 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
4639 (INT_LISPLIKE): New macro.
4640 (NULL_INTERVAL_P): Use it.
4641 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
4642 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
4643 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
4645 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
4646 explicit references to "parent" field of struct interval and
4647 associated unclean type conversions.
4648 * intervals.c (create_root_interval, root_interval, rotate_right,
4649 rotate_left, balance_possible_root_interval, split_interval_right,
4650 split_interval_left, interval_start_pos, find_interval,
4651 next_interval, previous_interval, update_interval,
4652 adjust_intervals_for_insertion, delete_node, delete_interval,
4653 adjust_intervals_for_deletion, merge_interval_right,
4654 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
4655 copy_intervals_to_string): Likewise.
4656 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
4658 * syntax.c (update_syntax_table): Likewise.
4660 * intervals.c (reproduce_tree_obj): New function, like
4661 reproduce_tree but takes a Lisp_Object for the parent. Declare
4663 (graft_intervals_into_buffer): Use it when appropriate.
4664 (reproduce_tree): Declare with prototype.
4665 (balance_possible_root_interval): Check that the parent is a lisp
4666 object before trying to examine its type.
4668 2000-03-22 Gerd Moellmann <gerd@gnu.org>
4670 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
4671 as strings only if both are known to be strings.
4673 * s/openbsd.h (LIBS_TERMCAP): Undef.
4675 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
4677 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
4678 definitions for non-Emacs compilation.
4679 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
4680 outside of `#ifdef emacs'.
4681 (print_partial_compiled_pattern): Update.
4682 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
4683 (re_compile_fastmap): Merge handling of charset and charset_not (for
4684 emacs and non-emacs compilation as well).
4685 Similarly for (not)categoryspec and (not)syntaxspec.
4686 Don't use the fastmap when reaching `anychar' since the added
4687 complexity is not justified.
4688 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
4689 and (not)syntaxspec. Merge (not)categoryspec.
4691 2000-03-22 Kenichi Handa <handa@etl.go.jp>
4693 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4694 FACE_FOR_CHAR): Define them differently for the configuration of
4697 2000-03-21 Dave Love <fx@gnu.org>
4699 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
4702 2000-03-21 Gerd Moellmann <gerd@gnu.org>
4704 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
4705 (lface_fully_specified_p): Don't check contents of
4706 LFACE_FONT_INDEX because that attribute is optional.
4707 (realize_x_face): Remove now unwarranted xassert.
4709 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
4711 The following changes are to make font selection based on
4712 characters, not charset. In addition, they recover fontset
4713 facilities while utilizing the new font selection mechanism.
4715 * Makefile.in (fontset.o): Depend on dispextern.h.
4717 * alloc.c (mark_face_cache): Don't mark face->registry.
4719 * dispextern.h (struct glyph): New member glyph_not_available_p.
4720 Use 22 bits for face_id.
4721 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
4722 (struct face): Delete member registry, new member ascii_face.
4723 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
4724 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
4725 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
4726 (struct it): Delete member charset, new member
4727 glyph_not_available_p.
4729 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
4730 (struct fontset_info, struct fontset_data): Structs removed.
4731 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
4732 Vglobale_fontset_alist, font_idx_temp): Externs removed.
4733 (fs_load_font, fs_query_fontset): Adjusted for new argument.
4734 (fs_free_face_fontset, fontset_font_pattern,
4735 face_suitable_for_char_p, face_for_char,
4736 make_fontset_for_ascii_face): Extern them.
4737 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
4738 (FS_LOAD_FACE_FONT): New macro.
4740 * fontset.c: All codes rewritten or adjusted for the change of
4741 fontset implementation. Now fontset is represented by char table.
4742 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
4744 (my_strcasecmp): Function removed.
4745 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
4747 (AREF, ASIZE): New macros.
4748 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
4749 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
4750 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
4751 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
4752 fontset_id_valid_p, font_family_registry, fontset_name,
4753 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
4754 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
4756 (fs_load_font): New arg FACE. Caller changed.
4757 (fs_query_fontset): Argument changed. Caller changed.
4758 (Fquery_fontset): call fs_query_fontset.
4759 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
4761 (clear_fontset_elements, check_registry_encoding,
4762 check_fontset_name): New functions.
4763 (syms_of_fontset): Set char-table-extra-slots property of fontset
4764 to 3. Staticpro and initialize Vfontset_table and
4765 Vdefault_fontset. Defsubr fontset_font and fontset_list.
4767 * frame.h (struct frame): Member `fontset_data' removed.
4768 (FRAME_FONTSET_DATA): Macro removed.
4770 * frame.c (make_frame): Don't allocate f->fontset_data.
4771 (Fdelete_frame): Don't free f->fontset_data.
4773 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
4775 * xdisp.c (charset_at_position): Function removed.
4776 (init_iterator): Don't set member charset of struct `it'.
4777 (handle_face_prop, reseat_to_string, set_iterator_to_next,
4778 next_element_from_display_vector, insert_left_trunc_glyphs):
4780 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
4782 (get_next_display_element, append_space,
4783 extend_face_to_end_of_line): Likewise.
4785 * xfaces.c (Qx_charset_registry, Vface_default_registry):
4787 (clear_font_table, frame_update_line_height, load_face_font):
4788 Adjusted for the change of fontset implementation.
4789 (load_face_fontset_font): Function removed.
4790 (pixel_point_size): New function.
4791 (font_list): Argument type changed. Caller changed.
4792 (LFACE_FONT): New macro.
4793 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
4794 (set_lface_from_font_name): Type of arg FONTNAME is changed to
4795 Lisp_Object. Determine the font name by actually loading a font
4796 by the specified pattern. Set LFACE_FONT (lface) to the specified
4797 pattern. Even if a font is not found, don't try alternatives.
4798 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
4799 (set_font_frame_param): If `font' is specified in lface, use it.
4800 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
4801 (lface_same_font_attributes_p): Likewise.
4802 (make_realized_face): Arguent changed. Caller changed. Set
4803 face->ascii_face to face itself.
4804 (free_realized_face): Free face->fontset if face is for ASCII.
4805 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
4806 deduce_unibyte_registry, x_charset_registry): Functions removed.
4807 (free_realized_multibyte_face): New function.
4808 (lookup_face, lookup_named_face, lookup_derived_face): Argument
4809 changed. Caller changed.
4810 (try_font_list): Argument type changed.
4811 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
4812 (choose_face_font): Argument changed. Handle fontset properly.
4813 (choose_face_fontset_font): Function removed.
4814 (realize_default_face, realize_named_face): Don't remove the
4816 (realize_face): Argument changed. Caller changed. Remove face
4817 with the arg former_face_id in advance. Load font for the new
4819 (realize_x_face): Argument changed. Caller changed. For a
4820 multibyte character, share fontset with base_face. For a single
4821 byte character, make a new realized fontset. Don't load a font
4823 (realize_tty_face): Argument changed. Caller changed.
4824 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
4825 (face_at_buffer_position): Don't check multibyte_p for returning
4827 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
4828 FACE_SUITABLE_FOR_CHARSET_P.
4829 (syms_of_xfaces): Remove code for Qx_charset_registry and
4830 Vface_default_registry.
4832 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
4833 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
4834 (x_per_char_metric): Don't try FONT->default_char. Even if
4835 pcm->width is zero, glyph bits may exist.
4836 (x_encode_char): Always initialize char2b->byte1.
4837 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
4838 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
4840 (x_append_glyph): Set glyph->glyph_not_available_p.
4841 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4842 it->charset. Handle the case that per char metric is not
4843 available. If it->multibyte_p is zero and it->c is a multibyte
4844 character, convert it to a unibyte character.
4845 (struct glyph_string): Delete member `charset'.
4846 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4847 the case that per char metric is not available correctly.
4848 (x_fill_glyph_string): Handle the case that the specific glyph is
4849 not available correctly.
4850 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4851 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4852 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4853 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4854 fontset. Don't call FS_LOAD_FONT.
4856 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
4857 (x_create_tip_frame): Likewise.
4858 (Fx_close_connection): Free full_name of font_info.
4860 * fns.c (optimize_sub_char_table): New function.
4861 (Foptimize_char_table): New function.
4862 (syms_of_fns): Defsubr Soptimize_char_table.
4864 2000-03-20 Gerd Moellmann <gerd@gnu.org>
4866 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
4867 only if buffer is displayed in some window.
4869 * xdisp.c (handle_single_display_prop): Initialize local `value'.
4870 (try_window_reusing_current_matrix): Don't call scroll run
4871 function if run's current and desired position are the same;
4872 this prevents cursor flickering.
4874 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
4876 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
4878 * regex.c (RE_STRING_CHAR): New macro.
4879 (GET_CHAR_AFER_2): Remove.
4880 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
4881 (enum re_opcode_t): Remove on_failure_jump_exclusive.
4882 (print_partial_compiled_pattern, re_compile_fastmap)
4883 (re_match_2_internal): Remove on_failure_jump_exclusive.
4884 (regex_compile): Turn optimizable P+ loops into PP*, so that the
4885 optimization only need to work for * (ie. can use of_keep_string_jump).
4886 Remove the special case for .*\n since it is now covered by the general
4888 (re_search_2): Don't bother with `room'.
4889 (skip_one_char): New function.
4890 (skip_noops): Simplify since `memory' is not needed any more.
4891 (mutually_exclusive_p): Restructure slightly to use `switch' and
4892 add handling for "all" remaining cases.
4893 (re_match_2_internal): Change on_failure_jump_smart to use
4894 on_failure_keep_string_jump (and redirect the end-of-loop jump)
4895 rather than on_failure_jump_exclusive.
4897 2000-03-19 Gerd Moellmann <gerd@gnu.org>
4899 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
4900 number of bits per RGB because it's everywhere used as the depth
4903 * term.c (calculate_costs): Remove code dealing with X frames.
4905 2000-03-19 Richard M. Stallman <rms@gnu.org>
4907 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
4909 2000-03-18 Gerd Moellmann <gerd@gnu.org>
4911 * lread.c (read_integer): Unread the last char not consumed.
4913 2000-03-17 Gerd Moellmann <gerd@gnu.org>
4915 * xterm.c (x_update_window_cursor): Don't update in frames
4916 which are in the process of being deleted.
4918 2000-03-16 Gerd Moellmann <gerd@gnu.org>
4920 * Makefile.in (mostlyclean): Add `*.core'.
4921 (clean): Add `bootstrap-emacs'.
4923 * lread.c (read_integer): New function.
4924 (read1): Support read syntax #o, #x, #b, #r.
4926 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
4928 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
4929 make sure POINTER_TO_OFFSET gives the same value before and after
4930 PREFETCH. Use `dfail' to guarantee "atomic" matching.
4931 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
4932 (debug): Now only active if > 0 rather than if != 0.
4933 (DEBUG_*): Update for the new meaning of `debug'.
4934 (print_partial_compiled_pattern): Add missing `succeed' case. Use
4935 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
4936 in `succeed_n', `jump_n' and `set_number_at'.
4937 (store_op1, store_op2, insert_op1, insert_op2)
4938 (at_begline_loc_p, at_endline_loc_p): Add prototype.
4939 (group_in_compile_stack): Move to after its arg's types are
4940 declared and add a prototype.
4941 (PATFETCH): Define in terms of PATFETCH_RAW.
4942 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
4944 (QUIT): Redefine as a nop except for NTemacs.
4945 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
4946 indentation of the greedy-op and shy-group code.
4947 (at_(beg|end)line_loc_p): Fix argument's types.
4948 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
4949 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
4950 (MATCHING_IN_FIRST_STRING): Remove.
4951 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
4952 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
4953 QUIT unconditionally.
4955 2000-03-15 Gerd Moellmann <gerd@gnu.org>
4957 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
4960 * process.c (send_process): Add a hint that the function
4961 can call Lisp code to its comment.
4963 * lread.c (load_dangerous_libraries): New variable.
4964 (Vbytecomp_version_regexp): New variable.
4965 (safe_to_load_p): New function.
4966 (Fload): Handle files not compiled with Emacs specially.
4967 (syms_of_lread): New Lisp variable load-dangerous-libraries.
4969 2000-03-14 Gerd Moellmann <gerd@gnu.org>
4971 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
4973 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
4974 support functions only if HAVE_X11R6_XIM is defined.
4975 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
4977 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
4979 * xfns.c (X_I18N_INHIBITED): Don't define.
4980 (create_frame_xic): Remove conditional compilation on
4982 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
4984 * config.in (HAVE_X_I18N): Moved here from xterm.h.
4985 (HAVE_X11R6_XIM): Define.
4987 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
4989 * xterm.c (x_term_init): Add support for X resource `synchronous'.
4990 If set, call XSynchronize.
4992 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
4994 * regex.c: Declare a new type `re_char' used throughout the code
4995 for the string char type. It's `const unsigned char' to match the
4996 rest of Emacs. Consistently make sure all pointers to strings use
4997 it and make sure all pointers into the pattern use `unsigned
4999 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
5000 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
5003 * charset.h (GET_CHAR_AFTER_2): Remove.
5004 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
5006 2000-03-12 Ken Raeburn <raeburn@gnu.org>
5008 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
5009 variable before the invocation of YMF_PASS_LDFLAGS, in case both
5010 of them try to use backquotes.
5012 2000-03-12 Dave Love <fx@gnu.org>
5014 * unexelf.c: Restore changes of 1999-10-19.
5015 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
5016 fix its type and alignment; copy it from current process.
5018 2000-03-12 Gerd Moellmann <gerd@gnu.org>
5020 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
5021 has been found. Fix bug not computing timer's predecessor.
5023 * fileio.c (Fread_file_name): Handle case that DIR contains a
5026 * window.c (Fsave_window_excursion): Doc fix.
5028 * xfns.c (x_defined_color): Rewritten to use
5029 x_allocate_nearest_color.
5031 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5033 * msdos.c (vga_installed): New function, code moved from
5034 dos_set_window_size.
5035 (Qbar, Qcursor_type, outside_cursor): New variables.
5036 (syms_of_msdos): Intern and staticpro them.
5037 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
5038 shape used outside Emacs when called for the first time.
5039 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
5040 cursor shape used outside Emacs.
5041 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
5042 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
5044 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
5045 parameters specify the cursor. Make qreverse a global
5046 variable (renamed to Qreverse).
5048 2000-03-09 Gerd Moellmann <gerd@gnu.org>
5050 * fns.c (Fy_or_n_p): Cancel busy-cursor.
5052 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
5054 This is a big redesign of failure-stack and register handling, prompted
5055 by bugs revealed when trying to add shy-groups. Overall, what happened
5056 is that loops are now structured a little differently, groups can be
5057 shy and the code is a little simpler.
5059 * regex.h: Update the copyright.
5060 (RE_SHY_GROUPS): New value.
5061 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
5062 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
5064 * regex.c (enum re_opcode_t): Remove jump_past_alt,
5065 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
5066 on_failure_jump_(exclusive, loop and smart). Also fix the comment
5067 for (start|stop)_memory since they now only take one argument (the
5068 second has becomes unnecessary).
5069 (print_partial_compiled_pattern): Adjust for changes in
5071 (print_compiled_pattern): Use %ld to printf long ints and flush to
5072 make debugging a little easier.
5073 (union fail_stack_elt): Make the integer unsigned.
5074 (struct fail_stack_type): Add a `frame' element.
5075 (INIT_FAIL_STACK): Init `frame' as well.
5076 (POP_PATTERN_OP): New macro for re_compile_fastmap.
5077 (DEBUG_PUSH, DEBUG_POP): Remove.
5078 (NUM_REG_ITEMS): Remove.
5079 (NUM_NONREG_ITEMS): Adjust.
5080 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
5081 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
5082 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
5083 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
5085 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
5086 address pushed is not the destination of the jump but the source
5088 (NUM_FAILURE_ITEMS): Remove.
5089 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
5090 registers before the actual failure point). Don't hardcode any
5091 meaning for str==NULL anymore.
5092 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
5093 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
5095 (REG_UNSET_VALUE): Use NULL (why not?).
5096 (compile_range): Remove declaration since it doesn't exist.
5097 (struct compile_stack_elt_t): Remove inner_group_offset.
5098 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
5099 (regex_grow_registers): Remove dead code.
5100 (FIXUP_ALT_JUMP): New macro.
5101 (regex_compile): Add shy-groups Change loops to use
5102 on_failure_jump_smart&jump instead of
5103 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
5104 initial (dummy_failure_)jump. Remove c1_base (looks like unused
5105 variable to me). Use `jump' instead of `jump_past_alt' and don't
5106 bother with push_dummy_failure in alternatives since it is now
5107 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
5108 emacs' for (re)allocating the stack.
5109 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
5110 from loop when bufp->can_be_null rather than jumping to `done'.
5111 Avoid jumping backwards so as to ensure termination. Use
5112 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
5113 backreferences. Remove dead code in handling of `anychar'.
5114 (skip_noops, mutually_exclusive_p): New functions taken from the
5115 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
5116 improve mutually_exclusive_p to handle ".+\n".
5117 (lowest_active_reg, highest_active_reg,
5118 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
5119 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
5120 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
5121 variables. Push register (in `start_memory') on the stack rather
5122 than storing it in old_reg(start|end). Remove the cycle detection
5123 from `stop_memory', replaced by the use of on_failure_jump_loop
5124 for greedy loops. Add code for the new on_failure_jump_<foo>.
5125 Remove ad-hoc code in `on_failure_jump' to push more registers in
5126 the case of a loop. Take out code from `maybe_pop_jump' into
5127 separate functions and adapt it to the semantics of
5128 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
5129 and push_dummy_failure. Remove dummy_failure handling and
5130 handling of `failures to jump to on_failure_jump' (this last one
5131 was already dead code, it seems).
5132 (group_match_null_string_p, alt_match_null_string_p)
5133 (common_op_match_null_string_p): Remove.
5135 2000-03-08 Dave Love <fx@gnu.org>
5137 * config.in: Don't depend on __STDC__ for volatile.
5138 Add POINTER_TYPE, PTR, PROTOTYPES.
5140 * hftctl.c, strftime.c: Use PROTOTYPES.
5141 * eval.c (find_handler_clause): Likewise.
5143 * mem-limits.h: Use POINTER_TYPE.
5145 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
5146 (memory_warnings): Declare using POINTER_TYPE.
5148 2000-03-08 Gerd Moellmann <gerd@gnu.org>
5150 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
5152 * xdisp.c (display_echo_area): Temporarily inhibit garbage
5155 * xfns.c: Remove obsolete code in #if 0.
5156 (Fx_focus_frame): New function.
5158 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5160 * coding.c (coding_category_name): Add coding-category-utf-8,
5161 coding-category-utf-16-be, coding-category-utf-16-le.
5162 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
5163 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
5164 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
5165 (detect_coding_utf_8): New function.
5166 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
5167 UTF_16_LOW_SURROGATE_P): New macros.
5168 (detect_coding_utf_16): New function
5169 (detect_coding_mask): When priorities are specified, skip any
5170 categories that have `nil' coding-system. Fix bug of returning
5171 wrong mask when PRIORITIES is specified and detect_coding_XXX()
5172 returns a mask not set in PRIORITIES.
5173 (detect_eol_type_in_2_octet_form): New function.
5174 (detect_eol): selects detect_eol_type_XXX to call according to
5175 cooding->category_idx.
5176 (detect_coding_system): Remove `nil' coding-system in the result.
5177 (Fupdate_coding_systems_internal): Update all coding-categories.
5179 * coding.h (CODING_CATEGORY_IDX_UTF_8,
5180 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
5182 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
5183 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
5184 CODING_CATEGORY_IDX_UTF_16_LE.
5185 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
5186 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
5187 (CODING_CATEGORY_MASK_ANY): Include the above macros.
5188 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
5190 2000-03-07 Gerd Moellmann <gerd@gnu.org>
5192 * doc.c (Fdocumentation_property): If value is not a string,
5193 and doesn't refer to etc/DOC, evaluate it to obtain a string.
5195 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
5196 close the display with XtCloseDisplay. This caused a bus error
5199 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
5200 complete but not unique.
5202 2000-03-06 Gerd Moellmann <gerd@gnu.org>
5204 * process.c (send_process): Remove local variable `procname' that
5205 might become invalid when a GC happens. Instead, access the
5206 process name slot directly.
5208 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
5211 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
5214 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5216 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
5217 glyph matrices have been freed.
5219 2000-03-05 Gerd Moellmann <gerd@gnu.org>
5221 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
5222 (bootstrap-temacs): Set LC_ALL to C like for temacs.
5224 * xfns.c (QCdata): Moved to xdisp.c.
5226 * xdisp.c (QCdata): Moved here from xfns.c.
5227 (syms_of_xdisp): Initialize QCdata.
5229 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
5231 * window.c (coordinates_in_window): Use
5232 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
5233 FRAME_INTERNAL_BORDER_WIDTH.
5235 * xdisp.c (try_window_id): Recompute unchanged information if
5236 it is obviously invalid.
5238 * xterm.c (x_term_init): Create a colormap if not using the
5241 * xterm.h (select_visual): Change prototype.
5243 * xfns.c (select_visual): Rewritten. Recognize user-specified
5245 (visual_classes): New variable.
5247 2000-03-04 Gerd Moellmann <gerd@gnu.org>
5249 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
5250 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
5251 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
5252 (x_decode_color): Don't handle allocation of white and black
5254 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
5255 XtNcolormap resources.
5256 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
5257 (Fx_create_frame): Initialize color members of x_output structure.
5258 (xpm_load): Pass colormap to XPM lib.
5260 * xfaces.c (x_free_colors): Access colormap of frame using
5261 FRAME_X_COLORMAP. Be paranoid about freeing black and white
5262 when default colormap is used.
5264 * xterm.c (x_term_init): Set Colormap member of x_display_info
5265 structure. Copy colormap if resource `privateColormap' is
5266 specified (PseudoColor only).
5267 (x_setup_relief_color): Access colormap of frame using
5270 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5271 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5273 2000-03-04 Jason Rumney <jasonr@gnu.org>
5275 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
5276 other non-platform-specific equivalents.
5277 [WINDOWSNT]: Include w32term.h, fontset.h and define X
5278 specific functions and macros as their w32 equivalents where
5279 non-platform-specifics are not available.
5280 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
5281 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
5282 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
5283 (frame_update_line_height): Use macros to access f->output_data.
5284 (defined_color): Remove FIXME comments; fixed.
5285 (x_face_list_fonts, prepare_face_for_display): Put X specifics
5286 into #ifdef blocks. Add WINDOWSNT blocks.
5287 (Fx_list_fonts): Use macros for accessing font data.
5288 (set_lface_from_font_name): Different default fonts for X and
5290 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
5291 scalable for backward compatibility.
5292 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
5293 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
5295 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
5298 * makefile.nt (w32faces.obj): Remove.
5301 2000-03-03 Jason Rumney <jasonr@gnu.org>
5303 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5306 2000-03-03 Ken Raeburn <raeburn@gnu.org>
5308 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5309 standard ELF definitions here if the system header does not.
5311 2000-03-03 Gerd Moellmann <gerd@gnu.org>
5313 * xterm.c (PER_CHAR_METRIC): Removed.
5314 (x_per_char_metric_1, x_default_char): New functions.
5315 (x_per_char_metric): If font's default char is invalid, return
5316 metrics of a suitably chosen usable default char.
5317 (x_draw_glyph_string_foreground): If font has an invalid default
5318 char, replace occurrences of unprintable chars with a suitably
5319 chosen usable default char.
5321 2000-03-02 Gerd Moellmann <gerd@gnu.org>
5323 * xterm.c (note_mouse_highlight): Return quickly if frame's
5324 glyph matrices have been freed.
5326 * dispnew.c (free_glyphs): Block input while freeing matrices.
5328 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5330 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5333 * dispextern.h (x_free_colors): Add prototype.
5335 * xfaces.c (x_free_colors): New function.
5336 (unload_color, free_face_colors): Use it.
5338 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5340 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5342 * window.c [MSDOS]: Include msdos.h.
5344 2000-03-02 Dave Love <fx@gnu.org>
5346 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5348 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
5349 set C_OPTIMIZE_SWITCH for gcc.
5351 2000-03-02 Kenichi Handa <handa@etl.go.jp>
5353 * coding.c (coding_save_composition): Be sure to allocate
5354 composition data area in coding even if there's no composition in
5357 2000-03-01 Jason Rumney <jasonr@gnu.org>
5359 * w32term.c: Equivalent changes to those made to xterm.c on
5360 2000-02-25 and 2000-02-24.
5362 * w32fns.c: Equivalent changes to those made to xfns.c on
5363 2000-02-25 and 2000-02-21.
5365 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5366 correct line-end convention is followed.
5368 * w32menu.c [HAVE_BOXES]: Remove #undef.
5369 (single_keymap_panes): Remove code for simulating checkmarks.
5370 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
5371 Remove code for drawing simulated checkmarks.
5372 (w32_menu_show): make unibyte help string correctly.
5373 (add_menu_item): draw standard Windows checkmarks. Draw radio
5374 buttons as radio buttons if possible.
5376 2000-03-01 Gerd Moellmann <gerd@gnu.org>
5378 * sysdep.c (start_of_text): Don't define this function for NetBSD
5381 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
5383 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5384 (LINKER): Don't undef if __NetBSD__ is defined.
5386 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5388 * fileio.c [__NetBSD__]: Define `unix'.
5390 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5392 2000-02-29 Gerd Moellmann <gerd@gnu.org>
5394 * atimer.c (start_atimer): Don't abort when timers are stopped.
5395 (append_atimer_lists): New function.
5396 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
5397 arbitrary lists of stopped and running atimers.
5399 * atimer.c (cancel_atimer): Handle canceling an atimer when
5400 some timers are stopped.
5402 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
5405 * fns.c (maybe_resize_hash_table): Handle case of new size
5406 coming out as being the same as old size.
5408 2000-02-27 Jason Rumney <jasonr@gnu.org>
5410 * makefile.nt: Add atimer.h to dependencies.
5411 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
5412 * w32console.c: Only disable window system features for dispextern.h
5413 (initialize_w32_display): Build a display info for the console.
5414 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
5415 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
5416 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
5418 * w32gui.h (struct W32FontStruct): Revert last change after change
5420 * w32menu.c (single_submenu): Set up help string.
5421 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
5422 (w32_dialog_show): Set up help string.
5423 * w32term.c (w32_display_info_for_display): Remove unused function.
5424 (w32_draw_bitmap): Use pre-built bitmaps.
5425 (w32_initialize_display_info): New function to initialize parts of
5426 display info that are common to both GUI and console frames.
5427 (w32_term_init): Use w32_initialize_display_info. Do not set
5428 Vw32_num_mouse_buttons here, as it is not called for console
5429 frames. Build bitmaps for indicating truncated lines etc.
5430 (x_delete_display): Destroy pre-built bitmaps.
5431 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
5432 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
5434 2000-02-27 Dave Love <fx@gnu.org>
5436 * lisp.h: Add a bunch of prototypes.
5438 2000-02-26 Kenichi Handa <handa@etl.go.jp>
5440 * keyboard.c (read_char): Set `usec' correctly.
5442 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5444 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
5445 `lambda', set reg[RRR] to the map index.
5446 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
5447 reg[RRR] to 0. Otherwise, set it to -1.
5449 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5451 * emacs.c (main): Remove code snippet commented out with `//'.
5453 2000-02-25 Richard M. Stallman <rms@gnu.org>
5455 * fileio.c (Ffile_symlink_p): If result starts with a `/'
5456 and contains a `:', prepend `/:'.
5458 * window.c (select_window_1): If selected_window is nil,
5459 don't "swap out" the buffer's point.
5460 (Fset_window_configuration): Set selected_window to nil
5461 before calling Fselect_window.
5462 (unshow_buffer): Don't set point in buffer from window's point
5463 if another more recently selected window also shows the buffer.
5465 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5467 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
5469 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
5470 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
5471 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
5473 (DEFAULT_BUSY_CURSOR_DELAY): New define.
5474 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
5475 (hide_busy_cursor): New functions.
5476 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
5478 * minibuf.c (read_minibuf): Cancel busy-cursor.
5480 * keyboard.c (command_loop_1): Call start_busy_cursor before
5481 Fcommand_execute and cancel_busy_cursor after it.
5482 (timer_check): Remove busy-cursor code.
5483 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
5486 * process.c (wait_reading_process_input): Remove busy-cursor code.
5488 * eval.c (Fsignal): Call cancel_busy_cursor instead of
5489 Fx_hide_busy_cursor.
5491 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
5493 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
5495 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
5497 * xterm.c (XTread_socket): Remove busy-cursor code.
5499 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
5500 (build_frame_matrix_from_leaf_window): Put code handling
5501 glyph row's not being a slice of a frame row in #if 0.
5502 (sync_window_with_frame_matrix_rows): New function.
5503 (frame_row_to_window): New function.
5504 (mirror_line_dance): Handle copies between windows.
5506 * lread.c (Fload): Use `xfree' instead of `free'.
5507 (init_obarray): Use `xmalloc' instead of `malloc'.
5509 * window.c (Fset_window_buffer): Set WINDOW to the window
5511 (coordinates_in_window): Take frame's internal border width
5514 2000-02-24 Gerd Moellmann <gerd@gnu.org>
5516 * xterm.c (x_display_and_set_cursor): Display cursor of
5517 non-selected windows depending on the setting of
5518 cursor_in_non_selected_windows.
5520 * xdisp.c (cursor_in_non_selected_windows): New variable.
5521 (syms_of_xdisp): DEFVAR_BOOL it.
5523 2000-02-23 Gerd Moellmann <gerd@gnu.org>
5525 * data.c (Fstring_to_number): If number is greater than what
5526 fits into an integer, return a float.
5528 * eval.c (specbind): Remove references to
5529 keyword_symbols_constant_flag.
5531 * data.c (keyword_symbols_constant_flag): Removed.
5532 (Fmakunbound, set_internal, syms_of_data): Remove references to
5533 keyword_symbols_constant_flag.
5535 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
5537 2000-02-23 Kenichi Handa <handa@etl.go.jp>
5539 * syntax.c (multibyte_syntax_as_symbol): New variable.
5540 (syms_of_syntax): Declare it as a Lisp variable.
5541 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
5542 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
5543 nonzero, treat all multibyte characters as symbol.
5544 (init_syntax_once): Give syntax `word' to all multibyte
5547 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5549 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
5552 2000-02-21 Gerd Moellmann <gerd@gnu.org>
5554 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
5556 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5557 (x_non_menubar_window_to_frame): Check the busy-cursor window.
5559 2000-02-21 Dave Love <fx@gnu.org>
5561 * frame.c (Vmouse_position_function): New variable.
5562 (Fmouse_position): Use it.
5563 (syms_of_frame): Install it.
5565 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
5567 2000-02-20 Gerd Moellmann <gerd@gnu.org>
5569 * fileio.c (Finsert_file_contents): Unbind the binding of
5570 standard-output done by temp_output_buffer_setup.
5572 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
5573 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
5574 (specbind, unbind_to): Handle most common case of non-constant
5575 symbol with trivial value specially.
5577 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
5579 2000-02-20 Richard M. Stallman <rms@gnu.org>
5581 * data.c (Fmake_variable_buffer_local): Doc fix.
5582 Init found_for_buffer to 0.
5583 (Fmake_variable_frame_local): If the variable has already
5584 been buffer-local, set the check_frame field.
5586 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
5588 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
5589 produced for CODING_MODE_LAST_BLOCK requires.
5591 2000-02-18 Dave Love <fx@gnu.org>
5593 * keyboard.c (echo_keystrokes): Remove declaration.
5594 (Vecho_keystrokes) New variable.
5595 (read_char, record_menu_key, read_key_sequence): Use it to allow
5597 (syms_of_keyboard): Change Vecho_keystrokes declaration.
5599 * lread.c: Undef feature selection macros before defining.
5601 2000-02-18 Gerd Moellmann <gerd@gnu.org>
5603 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
5604 for symbols other than the symbol in question.
5606 2000-02-17 Dave Love <fx@gnu.org>
5608 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
5610 2000-02-17 Gerd Moellmann <gerd@gnu.org>
5612 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
5614 * alloc.c (enum mem_type): Compile unconditionally.
5616 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
5618 * xfaces.c (tty_defined_color): Don't return faulire indication
5619 for unspecified-fg and unspecified-bg pseudo-colors.
5621 2000-02-17 Gerd Moellmann <gerd@gnu.org>
5623 * alloc.c (mark_object): Don't mark symbol names in pure space.
5624 (gc_sweep): Don't unmark symbol names in pure space.
5626 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
5627 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
5628 [GC_MARK_STACK]: New defines.
5629 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
5630 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
5632 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
5634 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
5635 allocate_buffer instead of xmalloc.
5637 * alloc.c (toplevel): Include setjmp.h.
5638 (PURE_POINTER_P): New define.
5639 (enum mem_type) [GC_MARK_STACK]: New enumeration.
5640 (Vdead) [GC_MARK_STACK]: New variable.
5641 (lisp_malloc): Add parameter TYPE, call mem_insert if
5642 GC_MARK_STACK is defined.
5643 (allocate_buffer): New function.
5644 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
5645 (free_float) [GC_MARK_STACK]: Set type to Vdead.
5646 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
5647 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
5648 (MEM_NIL) [GC_MARK_STACK]: New define.
5649 (struct mem_node) [GC_MARK_STACK]: New structure.
5650 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
5651 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
5652 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5653 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
5654 (mark_stack) [GC_MARK_STACK]: New functions.
5655 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
5656 (clear_marks): Removed.
5657 (gc_sweep): Set free conses' car, free floats' type, free
5658 symbols' function to Vdead. Use lisp_free to free buffers.
5659 (init_alloc_once): Initialize Vdead.
5660 (survives_gc_p): Return non-zero for pure objects.
5662 * alloc.c: Add comments throughout the file.
5664 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
5665 that unblocks alarms.
5667 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
5668 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
5669 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
5671 * frame.c (make_frame): Set frame initiallly to `garbaged'.
5673 2000-02-17 Kenichi Handa <handa@etl.go.jp>
5675 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
5676 avoid infinite error signaling. Allocate sufficient memory for
5677 eol_str in the case that eoltype is Lisp_Int.
5679 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
5681 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
5682 depends on the previous behavior.
5684 2000-02-16 Gerd Moellmann <gerd@gnu.org>
5686 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
5688 2000-02-15 Gerd Moellmann <gerd@gnu.org>
5690 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
5692 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
5693 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
5696 2000-02-15 Richard M. Stallman <rms@gnu.org>
5698 * data.c (set_internal): Don't make variable buffer-local
5699 if within a let-binding for the same buffer.
5700 (let_shadows_buffer_binding_p): New function.
5702 * eval.c (specbind): For buffer-local value,
5703 record the current buffer also.
5704 (unbind_to): Cope with that change.
5706 2000-02-15 Gerd Moellmann <gerd@gnu.org>
5708 * window.c (Fsave_window_excursion): Doc fix.
5710 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
5712 * syntax.c (back_comment): Make sure we only consider comment-starters
5713 of the relevant style and return -1 in case of a failure to find the
5714 beginning of the comment.
5715 (Fforward_comment): If back_comment fails, go back to the position just
5716 after the comment-end.
5717 (scan_lists): Add comment describing a very minor bug.
5719 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5721 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
5722 `completion-regexp-list' in the docstring.
5724 2000-02-14 Dave Love <fx@gnu.org>
5726 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
5728 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5730 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
5731 to Emacs' syntax. Also fix the comment about set/not-set meanings
5732 since Emacs syntax is not the value 0 any more.
5733 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
5734 since it's now part of RE_SYNTAX_EMACS.
5736 2000-02-12 Dave Love <fx@gnu.org>
5738 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
5741 2000-02-12 Gerd Moellmann <gerd@gnu.org>
5743 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
5745 2000-02-12 Dave Love <fx@gnu.org>
5747 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
5749 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
5750 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
5751 * s/hpux.h: Don't define HAVE_VFORK.
5753 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
5755 * s/nextstep.h: Don't define HAVE_ALLOCA.
5757 * config.in: Add vfork bits.
5759 2000-02-12 Gerd Moellmann <gerd@gnu.org>
5761 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
5762 unwind function to undo the effect of stopping atimers.
5764 * keyboard.c (bind_polling_period): Stop all timers except
5767 * atimer.c (stopped_atimers): New variable.
5768 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
5771 * atimer.h (stop_other_atimers, run_all_atimers)
5772 (unwind_stop_other_atimers): Add function prototypes.
5774 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
5776 2000-02-11 Ken Raeburn <raeburn@gnu.org>
5778 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
5779 library may depend on jpeg.
5780 (atimer.o): Depends on atimer.c.
5782 2000-02-11 Kenichi Handa <handa@etl.go.jp>
5784 * insdel.c (del_range_1): Call update_compositions.
5785 (del_range_both): Call update_compositions just once..
5787 2000-02-10 Dave Love <fx@gnu.org>
5789 * xfns.c (create_frame_xic): Fix initialization of automatic
5792 2000-02-09 Kenichi Handa <handa@etl.go.jp>
5794 * ccl.c (CCL_MAKE_CHAR): New macro.
5795 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
5796 registers by CCL_MAKE_CHAR before calling translate_char.
5797 <CCL_TranslateCharacterConstTbl> Likewise.
5799 2000-02-08 Dave Love <fx@gnu.org>
5801 * lread.c (__EXTENSIONS__): Define.
5803 2000-02-08 Gerd Moellmann <gerd@gnu.org>
5805 * puresize.h (BASE_PURESIZE): Increase to 650000.
5807 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5809 * msdos.c (XMenuActivate): Turn off the cursor after displaying
5812 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5814 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
5815 md, mh, mb, mr, and me to the fake termcap entry.
5817 2000-02-06 Ken Raeburn <raeburn@gnu.org>
5819 * sound.c (sound_cleanup): Don't call device close routine if the
5820 function pointer is null.
5822 2000-02-06 Andrew Innes <andrewi@gnu.org>
5824 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
5825 around image definitions and prototypes.
5826 (gamma_correct) [WINDOWSNT]: New prototype.
5828 * w32term.c (x_make_frame_visible): Replace call to
5829 input_poll_signal with poll_for_input.
5831 * window.c [WINDOWSNT]: Include w32term.h.
5833 * xdisp.c [WINDOWSNT]: Include w32term.h.
5835 * makefile.nt: Add dependencies on w32gui.h.
5836 (OBJ1): Include atimer.obj.
5837 ($(BLD)\atimer.obj): New dependency rule.
5839 * w32.c (sigmask): New function (does nothing).
5840 (sigunblock): Ditto.
5842 * frame.c [WINDOWSNT]: Include w32term.h.
5844 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
5846 * lread.c (syms_of_lread): Fix literal newlines.
5848 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
5849 the string constant limit (2048 bytes) in MSVC.
5852 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
5854 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
5856 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
5857 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
5860 2000-02-04 Dave Love <fx@gnu.org>
5862 * fileio.c: Remove some unused vars.
5863 (_GNU_SOURCE): Define (for euidaccess).
5865 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
5867 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
5869 (read_minibuf): Deal with allow_props correctly.
5871 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
5873 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
5875 2000-02-03 Ken Raeburn <raeburn@gnu.org>
5877 * search.c (compile_pattern): If a cache entry has a nil regexp,
5878 fill in that entry instead of clobbering a previously cached
5881 2000-02-02 Ken Raeburn <raeburn@gnu.org>
5883 * puresize.h (BASE_PURESIZE): Increase to 610000.
5885 2000-02-02 Gerd Moellmann <gerd@gnu.org>
5887 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
5890 2000-02-02 Kenichi Handa <handa@etl.go.jp>
5892 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
5893 instead of incrementing ic directly.
5894 <CCL_WriteExprConst> Likewise.
5895 <ccl_set_expr>: Set ic to jump_address.
5897 * fileio.c (e_write): Fix the handling of
5898 CODING_FINISH_INSUFFICIENT_SRC.
5900 2000-02-01 Dave Love <fx@gnu.org>
5902 * editfns.c (Fpropertize): Doc fix.
5904 * process.c (Fstart_process): Doc fix.
5906 * eval.c: Fix various doc strings not to duplicate information
5907 from help-manyarg-func-alist.
5909 * window.c (Fset_window_margins): Don't make interactive. Doc
5912 * doc.c (Vhelp_manyarg_func_alist): New variable.
5913 (Fdocumentation): Use it.
5914 (syms_of_doc): Define it.
5916 2000-01-31 Gerd Moellmann <gerd@gnu.org>
5918 * xterm.c (xim_open_dpy): Remove unused local variable.
5920 * emacs.c (USAGE): Use term `display options' instead of `X
5923 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
5924 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5926 * fns.c (sweep_weak_table): New function.
5927 (sweep_weak_hash_tables): Use it. Keep on marking until there
5930 2000-01-30 Gerd Moellmann <gerd@gnu.org>
5932 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
5933 that XTread_socket does not crash by trying to call XNoOp on a
5936 2000-01-30 Jason Rumney <jasonr@gnu.org>
5938 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5939 Change selected_frame to SELECTED_FRAME ().
5940 (w32_console_mouse_position): Remove #ifndef MULE from around
5943 * makefile.nt: Remove dosfns.obj.
5945 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
5947 * w32fns.c (w32_defined_color): Check for valid frame before
5948 applying gamma correction. Eliminate dependency on frame elsewhere.
5949 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
5950 (w32_to_x_font): Use resx and resy not height_in and width_in.
5951 (x_to_w32_font): Doc fix.
5952 (xlfd_strip_height): New function to strip and return font height.
5953 (w32_font_match): Compare height separately from rest of xlfd
5954 spec, using xlfd_strip_height.
5956 * w32term.c (w32_term_init): Swap resx and height_in, resy and
5957 width_in. Use w32_defined_color in place of defined_color.
5959 * w32faces.c: Merge more of DOS and X specifics in preparation for
5960 merge with xfaces.c.
5961 (defined_color): Remove FIXME comment.
5962 (tty_color_name): Provide w32-specific function.
5963 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
5965 * w32console.c (turn_on_face, turn_off_face): Removed.
5966 (w32_face_attributes): New function.
5967 (Global_variables): Reduce scope where possible.
5968 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
5970 (hl_mode): Don't modify text attributes.
5971 (write_glyphs): Don't do anything if len <= 0. Use
5972 w32_face_attributes to get attributes for drawing. Write
5973 terminating codes using char_attr_normal.
5974 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
5975 (update_begin, update_end): Likewise.
5976 (vga_stdcolor_name): New function.
5977 (initialize_w32_display): Remove char_attr_reverse and char_attr.
5978 (Fset_screen_color): Remove char_attr_reverse.
5980 2000-01-29 Gerd Moellmann <gerd@gnu.org>
5982 * xfns.c (xic_set_preeditarea): Take window parameter and
5983 window-relative pixel-positions.
5985 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
5986 is its frame's selected window.
5987 (xim_instantiate_callback): Likewise.
5989 * xfns.c (x_create_im): Removed.
5990 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
5991 (supported_xim_styles): Renamed from supported_styles.
5992 (best_xim_style): Renamed from best_style.
5993 (create_frame_xic): Renamed from xic_create_frame.
5994 (free_frame_xic): Renamed from xic_destroy_frame.
5996 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
5998 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
5999 our frames, call XFilterEvent with 2nd parameter `None'.
6000 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
6001 returning XBufferOverflow.
6002 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
6004 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
6005 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
6006 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
6007 (xim_initialize, xim_close)
6008 [HAVE_X_I18N && HAVE_X11R6]: New functions.
6009 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
6010 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
6011 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
6013 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
6015 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
6016 `xic_style' and `xic_xfs'.
6017 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
6018 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
6019 (FRAME_XIM): Removed.
6021 * xfns.c (supported_styles): New variable.
6022 (DEFAULT_STYLE, DEFAULT_FONT): New macros
6023 (xic_create_xfontset, best_style, xic_create_frame)
6024 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
6025 (xic_set_xfontset): New functions.
6027 2000-01-28 Dave Love <fx@gnu.org>
6029 * s/irix6-5.h: Revert last change after change to irix5-0.h.
6031 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
6033 2000-01-28 Gerd Moellmann <gerd@gnu.org>
6035 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
6036 for *scratch* if it already existed.
6038 * emacs.c (USAGE): New macro.
6039 (main): Use it to display usage information.
6041 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6043 Support for the menu-help feature:
6045 * msdos.h: Change prototypes of XMenuAddSelection and
6048 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
6049 part of the line to the termscript file.
6050 (IT_clear_to_end): Clear the entire line, not just its beginning.
6051 (menu_help_message, prev_menu_help_message): New variables.
6052 (IT_menu_make_room): Make room for the help_text member.
6053 (IT_menu_display): New argument disp_help; all callers changed.
6054 If disp_help is non-zero, store the help text of the active menu
6055 item in menu_help_message.
6056 (XMenuAddPane): Initialize the help_text member to NULL.
6057 (XMenuAddSelection): New argument help_text. Store it in the
6059 (XMenuActivate): New argument help_callback. If the value of
6060 menu_help_message has changed since the last time, display the
6061 menu help message text while waiting for the mouse to move. Clear
6062 the echo area before exiting.
6063 (XMenuDestroy): Free the help_text member.
6065 2000-01-27 Gerd Moellmann <gerd@gnu.org>
6067 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
6068 XMenuAddSelection. Pass help callback to XMenuActivate.
6069 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
6071 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6073 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
6074 and EMACS_SET_USECS.
6076 2000-01-26 Dave Love <fx@gnu.org>
6078 * editfns.c (Fchar_after, Fchar_before): Doc fix.
6080 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
6081 an error may be signalled.
6083 2000-01-26 Gerd Moellmann <gerd@gnu.org>
6085 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
6086 LD_SWITCH_SYSTEM inherited from irix5-0.h.
6088 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
6090 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6092 * charset.c (Fstring): If there is a multibyte char among
6093 the args, always return a multibyte string.
6095 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6097 * sysdep.c (sys_select): Turn atimers off and on instead of
6098 recording and restoring old alarm handler
6100 * process.c (toplevel): Include atimer.h.
6101 (create_process_1): Rewritten.
6102 (create_process): Use atimers instead of alarm.
6103 (wait_reading_process_input) [hpux]: Turn atimers off instead
6104 of turning off SIGALRM.
6105 (wait_reading_process_input): Turn off atimers instead off
6106 calling stop_polling.
6108 * emacs.c (main): Call init_atimer.
6110 * keyboard.c (toplevel): Include systime.h and atimer.h.
6111 (polling_for_input): Removed because unused.
6112 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
6113 (poll_timer): New variable.
6114 (poll_for_input, poll_for_input_1): New functions.
6115 (start_polling, stop_polling): Rewritten.
6117 * keyboard.h (polling_for_input): Removed.
6119 * atimer.h, atimer.c: New files.
6121 * Makefile.in (obj): Add atimer.o.
6122 (atimer.o): New target.
6124 * blockinput.h (pending_atimers): Add extern declaration.
6125 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
6127 * lisp.h (popup_activated_flag): Add extern declaration.
6129 * xmenu.c (popup_activated_flag): Make externally visible.
6130 (popup_activate_callback) [USE_MOTIF]: Increment
6131 popup_activated_flag.
6132 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
6134 * xterm.c (toplevel): Include atimer.h.
6135 (toolkit_scroll_bar_interaction): New variable.
6136 (Fxt_process_timeouts): Removed.
6137 (x_process_timeouts): New function.
6138 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
6139 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
6140 (x_make_frame_visible): Call poll_for_input_1 instead of
6141 input_poll_signal. Don't call alarm.
6142 (x_initialize): Install timer calling x_process_timeouts.
6144 2000-01-24 Dave Love <fx@gnu.org>
6146 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
6147 Don't use -cckr -- apparently not now necessary.
6149 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6151 * msdos.c (IT_menu_display): Truncate long menu lines at the right
6154 2000-01-23 Jason Rumney <jasonr@gnu.org>
6156 * w32fns.c (w32_defined_color): Apply gamma correction before
6157 trying to map to the palette.
6158 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
6161 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
6162 here. Callers changed to always pass real device context.
6163 (w32_draw_bitmap): Likewise.
6164 (w32_get_glyph_overhangs): Likewise.
6165 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
6167 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
6168 pfnSetScrollInfo and SetScrollRange.
6169 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
6170 back into MULE characters after decoding them.
6171 (x_get_glyph_face_and_encoding): Likewise.
6172 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
6173 GetCharABCWidthsW fails, since this is defined on Windows 9x.
6174 (x_produce_glyphs): Calculate per char metrics for a character
6175 that we know exists in default font when font_not_found_p is true.
6177 2000-01-22 Jason Rumney <jasonr@gnu.org>
6179 * makefile.nt (intervals.obj, composite.obj): New modules.
6180 (composite.h): Added as dependency where appropriate.
6182 * w32gui.h (XGCValue): New struct for emulating X GCs.
6184 * w32term.h (XCharStruct): New struct for emulating X.
6186 * w32console.c (turn_on_face, turn_off_face): New functions.
6187 (change_line_highlight): New prototype for new redisplay.
6188 (write_glyphs): Support multibyte text. Support faces.
6190 * w32faces.c: Complete rewrite for new redisplay based on new
6193 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
6194 throughout. struct frame * in place of FRAME_PTR.
6195 Skeleton support for images, toolbars, tooltips from xfns.c.
6196 (Fx_create_frame): Use system default for default scroll bar
6198 (w32_get_arg): Renamed from x_get_arg.
6199 (Fx_file_dialog): New function.
6200 (w32_list_fonts): Check cache before asking system.
6201 (Vw32_enable_synthesized_fonts): New variable.
6202 (Vw32_enable_italics): Obsolete, removed.
6204 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6205 Use SELECTED_FRAME macro.
6207 * w32menu.c: Add skeleton support for help strings on menus.
6208 (add_menu_item): Native checkbox and radio support added, but not
6209 yet enabled due to bugs.
6210 (push_menu_item): Add parameters type, selection and help.
6212 Formatting changes to reduce unnecessary diffs with xmenu.c.
6214 * w32select.c (Fw32_set_clipboard_data): Update call to
6215 find_charset_in_str.
6217 * w32term.c: Complete rewrite for new redisplay based on new
6218 xterm.c with necessary sections merged back in from old w32term.c.
6220 2000-01-21 Richard M. Stallman <rms@gnu.org>
6222 * data.c (set_internal): Further fix in same criterion.
6224 2000-01-20 Richard M. Stallman <rms@gnu.org>
6226 * data.c (set_internal): Fix the criteria for whether
6227 to swap out the old cached binding.
6229 2000-01-19 Dave Love <fx@gnu.org>
6231 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
6233 2000-01-18 Kenichi Handa <handa@etl.go.jp>
6235 * regex.c (re_compile_fastmap): While checking a range table for
6236 `charset', skip flag bits for a character class correctly.
6238 2000-01-17 Gerd Moellmann <gerd@gnu.org>
6240 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
6242 * xfns.c (x_window): Call lw_create_widget with new parameter
6245 * widget.c (EmacsFrameSetCharSize): Change size of children first
6246 because of problems with main window geometry management under
6249 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
6251 (MENU_ITEMS_ITEM_HELP): New enumerator.
6252 (push_menu_item): Add parameter HELP. Record help in menu_items.
6253 (single_menu_item, single_submenu, list_of_items): Call
6254 push_menu_item with new parameter.
6255 (single_submenu): Set help string in widget value.
6256 (menu_highlight_callback): New function.
6257 (set_frame_menubar): Call lw_create_widget with new
6259 (xmenu_show, xdialog_show): Ditto.
6261 2000-01-13 Gerd Moellmann <gerd@gnu.org>
6263 * sound.c (Fplay_sound): Improve doc string.
6265 2000-01-11 Richard M. Stallman <rms@gnu.org>
6267 * lisp.h (set_internal): Enter the new arg.
6269 * eval.c (specbind): Record buffer-local variables specially,
6270 indicating which buffer's binding was saved.
6271 (unbind_to): Restore buffer-local variables specially
6272 in the proper buffer.
6274 * data.c (set_internal): New arg BUF.
6276 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
6277 * data.c (Fset): Pass new arg to set_internal.
6278 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
6280 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6282 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6285 2000-01-11 Richard M. Stallman <rms@gnu.org>
6287 * minibuf.c (Ftry_completion): Doc fix.
6289 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6291 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6294 2000-01-11 Andreas Schwab <schwab@suse.de>
6296 * coding.c (code_convert_region): Initialize total_skip.
6298 2000-01-08 Dave Love <fx@gnu.org>
6300 * eval.c (Fuser_variable_p): Check customizability too.
6302 2000-01-07 Gerd Moellmann <gerd@gnu.org>
6304 * minibuf.c (Fcompleting_read): Doc fix.
6306 2000-01-05 Gerd Moellmann <gerd@gnu.org>
6308 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6311 * xfns.c (x_create_im): New function to set IM and IC of a frame.
6312 Check that input style is supported before trying to create an
6314 (x_window): Call x_create_im.
6316 2000-01-04 Gerd Moellmann <gerd@gnu.org>
6318 * xfns.c (current_gif_memory_src): New variable.
6319 (gif_load): Record the address of the current memory source
6320 in current_gif_memory_src.
6321 (gif_read_from_memory): Use current_gif_memory_src.
6323 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6324 macros statement form.
6326 * sound.c (struct sound): Renamed from struct sound_file.
6327 (struct sound): Add members `data' and `header_size'.
6328 (enum sound_attr): Add SOUND_DATA.
6329 (current_sound, current_sound_device): Variables renamed from
6330 sound_file and sound_device.
6331 (parse_sound): Parse :data.
6332 (parse_sound): Handle sound data in strings.
6333 (find_sound_type): Function renamed from find_sound_file_type.
6334 (wav_init, au_init): Fail if sound's header_size is smaller than
6336 (wav_play, au_play): Play sounds from string data.
6338 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6340 * lisp.h: Add prototype for allocate_string_data.
6342 * alloc.c (Fgarbage_collect): Return number of live and free
6345 * alloc.c (mark_buffer): Remove code in #if 0.
6347 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
6348 (strings_consed): New variable.
6349 (allocate_string): Set it.
6350 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
6351 (Fmemory_use_counts): Return strings_consed. Use Flist.
6353 * alloc.c: General cleanup in comments etc. Remove conditional
6354 compilation for `standalone'.
6356 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6358 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
6359 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
6360 (DONT_COPY_FLAG): Removed.
6361 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
6362 (struct sdata, struct sblock): New
6363 (struct string_block): Rewritten.
6364 (STRINGS_IN_STRING_BLOCK): New macro.
6365 (oldest_sblock, current_sblock, total_strings, total_free_strings)
6366 (large_sblocks, string_blocks, string_free_list): New variables.
6367 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
6368 (init_strings): Rewritten.
6369 (allocate_string, allocate_string_data, compact_small_strings)
6370 (free_large_strings, sweep_strings): New functions.
6371 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
6372 (struct string_block_head, current_string_block)
6373 (first_string_block, large_string_blocks, STRING_FULLSIZE)
6374 (STRING_PAD): Removed.
6375 (make_uninit_multibyte_string, make_pure_string): Rewritten.
6376 (Fgarbage_collect): Don't set mark bit in large strings.
6377 (mark_object): Mark strings differently. Mark symbol names
6379 (survives_gc_p): Test marked strings differently.
6380 (gc_sweep): Sweep strings differently, unmark strings in
6382 (compact_strings): Removed.
6384 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6386 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6387 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6389 2000-01-04 Kenichi Handa <handa@etl.go.jp>
6391 * fileio.c (Finsert_file_contents): Signal error if visiting file
6392 in a non-empty buffer.
6394 * term.c (encode_terminal_code): Fix the previous change.
6396 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6398 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6399 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
6401 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
6403 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6405 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
6406 need to test for MSDOS frames.
6408 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6410 * dosfns.c (unspecified_colors): Remove.
6411 (msdos_stdcolor_idx): Use global variables unspecified_fg and
6413 (msdos_stdcolor_name): Return strings for unspecified fore- and
6416 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
6417 (syms_of_xfaces): Remove their staticpro's.
6418 (tty_color_name): Return Lisp strings for unspecified fore- and
6420 (Finternal_set_lisp_face_attribute): Remove the special treatment
6421 for Qunspecified_{f,b}g.
6422 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
6425 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6427 * xdisp.c (reseat_at_next_visible_line_start): Position before
6428 newline only if ending up on a newline.
6429 (next_element_from_ellipsis): Return success. Handle case of
6430 displaying no ellipsis. Fix case of ellipsis defined in display
6432 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
6435 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6437 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
6438 (Fcolor_supported_p): Renamed from face-color-supported-p.
6440 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6442 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
6443 list of colors renamed to tty-defined-color-alist.
6444 (tty_color_name): Pass the frame to tty-color-by-index.
6445 (realize_tty_face): tty-color-alist is now a function which
6446 accepts the frame as argument.
6448 * term.c (Ftty_display_color_p): Accept an optional argument
6451 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6453 * term.c (insert_glyphs): Pass glyph, not &glyph, to
6454 encode_terminal_code.
6456 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6458 * dispnew.c (mode_line_string): Support termcap frames as well.
6460 2000-01-01 Gerd Moellmann <gerd@gnu.org>
6462 * syntax.c (Fforward_word): Undo previous change.
6464 * editfns.c (Fconstrain_to_field): Don't constrain if
6465 inhibit-field-text-motion is non-nil.
6466 (Fline_beginning_position): Undo previous change.
6467 (Fline_end_position): Ditto.
6469 * syntax.c (Fforward_word): Notice field boundaries only if
6470 inhibit-field-text-motion is nil.
6472 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
6474 * editfns.c (Vinhibit_field_text_motion): New variable.
6475 (inhibit-field-text-motion): New DEFVAR_LISP.
6476 (Fline_beginning_position, Fline_end_position): Notice field
6477 boundaries only if inhibit-field-text-motion is nil.
6479 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
6481 (x_build_heuristic_mask): Likewise.
6482 (xbm_load_image_from_file): Change error output.
6483 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
6484 (gif_load, gs_load, x_kill_gs_process): Ditto.
6486 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
6487 color indices when accessing raster pixels.
6488 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
6489 one of :file or :data.
6490 (enum pbm_keyword_index): Add PBM_DATA.
6491 (pbm_format): Add :data.
6492 (pbm_image_p): Allow either :file or :data.
6493 (pbm_read_file): New function.
6494 (pbm_scan_number): Rewritten to read from string.
6495 (pbm_load): Support :data.
6497 See ChangeLog.8 for earlier changes.
6500 ;; coding: iso-2022-7bit