(x_display_and_set_cursor): Don't show a hollow box
[bpt/emacs.git] / src / ChangeLog
1 2000-09-18 Dave Love <fx@gnu.org>
2
3 * keyboard.c (menu_bar_items, tool_bar_items)
4 (current_active_maps): Remove redundant get_local_map call.
5
6 2000-09-18 Gerd Moellmann <gerd@gnu.org>
7
8 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9 cursor for buffers whose cursor_type is nil.
10
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
14 warnings.
15
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
19 mask.
20
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.
24
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.
29
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
32 set up completely.
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
37 input.
38
39 2000-09-16 Gerd Moellmann <gerd@gnu.org>
40
41 * dispnew.c (update_window): Make sure to make desired rows
42 current even if they are completely invisible at the top
43 of a window.
44
45 2000-09-15 Gerd Moellmann <gerd@gnu.org>
46
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.
54
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.
60
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
68 functions.
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.
73
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.
89
90 2000-09-14 Andrew Innes <andrewi@gnu.org>
91
92 * makefile.w32-in: Revert to Unix line endings.
93
94 2000-09-14 Andrew Innes <andrewi@gnu.org>
95
96 * makefile.w32-in: Standardize indentation somewhat.
97 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
98 cater for differences between shells.
99
100 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
101
102 2000-09-14 Gerd Moellmann <gerd@gnu.org>
103
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.
107
108 2000-09-14 Dave Love <fx@gnu.org>
109
110 * buffer.c (alloc_buffer_text): Fix xmalloc call.
111
112 2000-09-14 Gerd Moellmann <gerd@gnu.org>
113
114 * xdisp.c (handle_fontified_prop): While running fontification
115 functions, bind `fontification-functions' and
116 `after-change-functions' to nil.
117
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.
120
121 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
122
123 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
124 USE_MMAP_FOR_BUFFERS.
125
126 * insdel.c (make_gap): Use enlarge_buffer_text.
127
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
133 variables.
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
138 BUFFER_FREE.
139
140 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
141 (enlarge_buffer_text): Add prototype.
142
143 * ralloc.c: Remove everything having to do with the use of mmap.
144
145 2000-09-13 Gerd Moellmann <gerd@gnu.org>
146
147 * sound.c (Fplay_sound): Doc fix.
148
149 * keyboard.c: Avoid some more compiler warnings.
150 (parse_tool_bar_item): Ignore cached key bindings.
151
152 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
153 and allocation of Lisp data.
154
155 2000-09-12 Gerd Moellmann <gerd@gnu.org>
156
157 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
158 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
159 defaults first.
160
161 * lread.c (Fload): Put code checking for recursive loads in #if 0.
162
163 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
164
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.
178
179 2000-09-11 Gerd Moellmann <gerd@gnu.org>
180
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
186 warnings.
187
188 * lread.c (init_lread): Set Vloads_in_progress to nil.
189 (Fload): Show list of recursively loaded files, when signaling an
190 error.
191
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.
197
198 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
199 compiler warnings.
200
201 2000-09-11 Miles Bader <miles@gnu.org>
202
203 * editfns.c (Fbuffer_string): Doc fix.
204
205 2000-09-10 Gerd Moellmann <gerd@gnu.org>
206
207 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
208
209 2000-09-09 Ken Raeburn <raeburn@gnu.org>
210
211 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
212 whether to include other header files.
213
214 2000-09-09 Gerd Moellmann <gerd@gnu.org>
215
216 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
217 by Fmemq as a boolean.
218
219 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
220
221 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
222
223 2000-09-08 Gerd Moellmann <gerd@gnu.org>
224
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.
235
236 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
237
238 * xdisp.c (dump_glyph_row): Fix printf format string.
239 (display_line, move_it_in_display_line_to): Avoid compiler
240 warnings.
241
242 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
243
244 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
245 inheritance.
246
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.
249
250 * xterm.c (x_draw_glyphs): Handle case START and END are out
251 of bounds more carefully.
252
253 2000-09-08 Dave Love <fx@gnu.org>
254
255 * s/sol2.h (REL_ALLOC_MMAP): Define.
256 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
257
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
267 malloc type.
268
269 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
270 Remove vm-limit.o.
271
272 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
273 change to __NetBSD__.
274
275 2000-09-08 Kenichi Handa <handa@etl.go.jp>
276
277 * search.c (compile_pattern): Check the multibyteness of cached
278 string and PATTERN.
279
280 2000-09-08 Miles Bader <miles@gnu.org>
281
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
285 default_face_vector.
286
287 2000-09-07 Gerd Moellmann <gerd@gnu.org>
288
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'.
293
294 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
295
296 * frame.c (make_terminal_frame): Initialize frame foreground and
297 background colors to unspecified, for the initial instance of an
298 MSDOS frame.
299
300 2000-09-07 Gerd Moellmann <gerd@gnu.org>
301
302 * ralloc.c (mmap_find): Fix overlap computation.
303 (mmap_enlarge): Compute nbytes before trying to find an
304 overlapping region.
305
306 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
307 instead of `!='.
308
309 * lread.c (syms_of_lread): Change value of regexp
310 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
311
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.
315
316 2000-09-07 Kenichi Handa <handa@etl.go.jp>
317
318 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
319 not 0x81.
320 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
321
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.
327
328 2000-09-07 Gerd Moellmann <gerd@gnu.org>
329
330 * xfaces.c (Vparam_value_alist): New variable.
331 (syms_of_xfaces): Initialize it.
332 (Finternal_set_lisp_face_attribute): Avoid more consing.
333
334 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
335 specially.
336 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
337 (Qbackground_mode): New variable.
338 (syms_of_frame_1): Initialize Qbackground_mode.
339
340 * lisp.h (Qdisplay): Declare extern.
341
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.
344
345 2000-09-07 Dave Love <fx@gnu.org>
346
347 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
348
349 2000-09-07 Kenichi Handa <handa@etl.go.jp>
350
351 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
352
353 * charset.c: Include composite.h
354 (lisp_string_width): New function.
355 (Fstring_width): Call lisp_string_width instead of strwidth.
356
357 * Makefile.in (charset.o): Depends on composite.h.
358
359 * process.c (read_process_output): Before inserting the decoded
360 text in the buffer, adjust the multibyteness.
361
362 2000-09-06 Gerd Moellmann <gerd@gnu.org>
363
364 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
365 buffer's text buffer is null, map new memory.
366
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.
376
377 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
378 before and after unexec.
379
380 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
381 text buffers if necessary.
382
383 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
384 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
385 in prototypes.
386
387 * config.in (HAVE_MMAP): Add #undef.
388
389 2000-09-05 Gerd Moellmann <gerd@gnu.org>
390
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.
395
396 * buffer.c (Fother_buffer): Consider buffers as invisible when
397 they are displayed in a window on an invisible frame.
398
399 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
400 get-largest-window always return nil.
401
402 2000-09-04 Gerd Moellmann <gerd@gnu.org>
403
404 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
405 variable; recognize Emacs 19 elc files.
406
407 2000-09-04 Miles Bader <miles@gnu.org>
408
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
412 defaults.
413
414 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
415
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.
426
427 2000-09-03 Andrew Innes <andrewi@gnu.org>
428
429 * makefile.w32-in: Change to DOS line endings.
430
431 * s/ms-w32.h (ORDINARY_LINK): New define.
432
433 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
434 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
435
436 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
437 (distclean): Delete them here instead.
438
439 * w32proc.c (compare_env): Convert to uppercase for comparison,
440 not lowercase, to match how the native Windows shell works.
441
442 2000-09-03 Jason Rumney <jasonr@gnu.org>
443
444 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
445 CVS changes the line-ends when checking in/out on DOS/Windows.
446
447 * makefile.nt (emacs): Do not change directory to run temacs, as
448 the load-path is set relative to current directory.
449
450 2000-09-03 Miles Bader <miles@gnu.org>
451
452 * xterm.c (x_alloc_lighter_color_for_widget): New function.
453
454 2000-09-02 Gerd Moellmann <gerd@gnu.org>
455
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.
460
461 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
462 string.h and strings.h.
463 (index) [HAVE_INDEX]: Add prototype.
464
465 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
466 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
467
468 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
469 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
470
471 2000-09-01 Gerd Moellmann <gerd@gnu.org>
472
473 * lread.c (read1): Accept `?' as symbol constituent, for
474 compatiblity with XEmacs.
475
476 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
477
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.
489
490 2000-08-31 Gerd Moellmann <gerd@gnu.org>
491
492 * lread.c (openp): GCPRO local variable `filename'.
493
494 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
495
496 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
497
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):
506 New macros.
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.
513 (regcomp): Use it.
514 (regexec): Allocate regs.start and regs.end as one block.
515
516 2000-08-30 Gerd Moellmann <gerd@gnu.org>
517
518 * xdisp.c (echo_area_display): Check display_completed instead
519 of calling detect_input_pending.
520
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.
525
526 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
527 instead of store_frame_param.
528
529 2000-08-29 Gerd Moellmann <gerd@gnu.org>
530
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.
535
536 2000-08-29 Miles Bader <miles@gnu.org>
537
538 * xfaces.c (default_face_vector): New function.
539 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
540
541 2000-08-29 Gerd Moellmann <gerd@gnu.org>
542
543 * lread.c (openp): Prevent temporary string passed to
544 Ffile_readable_p from being garbage collected.
545
546 2000-08-28 Dave Love <fx@gnu.org>
547
548 * keymap.c (store_in_keymap): Add `static' to declaration.
549
550 2000-08-28 Gerd Moellmann <gerd@gnu.org>
551
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.
557
558 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
559 (rindex): Define only if !HAVE_RINDEX.
560
561 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
562
563 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
564
565 2000-08-28 Miles Bader <miles@gnu.org>
566
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.
570
571 2000-08-28 Kenichi Handa <handa@etl.go.jp>
572
573 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
574 the 4th arg (PREV_EVENT) Qt to suppress input method.
575
576 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
577
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).
586
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.
590
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.
597
598 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
599
600 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
601 to better match the key-lookup behavior.
602
603 2000-08-27 Gerd Moellmann <gerd@gnu.org>
604
605 * xfaces.c (lface_fully_specified_p): Handle :inherit.
606 (Finternal_set_lisp_face_attribute): Fix typo in error message.
607
608 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
609
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
613
614 2000-08-26 Kenichi Handa <handa@etl.go.jp>
615
616 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
617 the corresponding '#endif'.
618
619 2000-08-26 Miles Bader <miles@gnu.org>
620
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
629 inherit attribute.
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.
643
644 2000-08-26 Kenichi Handa <handa@etl.go.jp>
645
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
648 0.
649
650 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
651
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.
658
659 2000-08-25 Gerd Moellmann <gerd@gnu.org>
660
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.
666
667 2000-08-24 Gerd Moellmann <gerd@gnu.org>
668
669 * bytecode.c (mark_byte_stack): Add a comment.
670
671 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
672 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
673 a graphical frame.
674
675 2000-08-24 Kenichi Handa <handa@etl.go.jp>
676
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.
680
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
688 raw-text coding.
689 (init_process): Don't initialize default-process-coding-system
690 here.
691
692 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
693
694 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
695 <scroll-down-aggressively>: Likewise.
696
697 2000-08-23 Kenichi Handa <handa@etl.go.jp>
698
699 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
700 zero. Set coding->produced_char correctly.
701
702 2000-08-22 Andrew Innes <andrewi@gnu.org>
703
704 * makefile.w32-in: New file.
705
706 * unexw32.c (unexec): Ignore old_name, and use the actual location
707 of the current executable instead. Base new_name on this.
708
709 * w32proc.c (create_child): Remove reference to security
710 descriptor, which isn't needed and doesn't compile with mingw32.
711
712 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
713 up dllimport attributes.
714 (x_update_window_end): Update prototype.
715
716 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
717 extern, which screws up dllimport attributes.
718
719 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
720 up dllimport attributes.
721
722 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
723 screws up dllimport attributes.
724
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.
729
730 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
731 up dllimport attributes.
732
733 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
734 screws up dllimport attributes.
735
736 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
737 screws up dllimport attributes.
738
739 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
740 up dllimport attributes.
741
742 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
743 unnecessary extern, which screws up dllimport attributes.
744 (main): Ditto.
745
746 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
747 up dllimport attributes.
748
749 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
750 unnecessary extern, which screws up dllimport attributes.
751
752 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
753 screws up dllimport attributes.
754
755 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
756 up dllimport attributes.
757
758 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
759
760 * w32bdf.c (search_file_line):
761 (set_bdf_font_info):
762 (seek_char):
763 (w32_get_bdf_glyph):
764 (w32_BDF_to_x_font): Fix compile warnings.
765
766 * w32menu.c: Include keyboard.h before frame.h. Fix compile
767 warnings.
768
769 * w32select.c: Include keyboard.h before frame.h.
770
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.
775
776 * w32xfns.c: Include keyboard.h before frame.h.
777
778 * w32fns.c: Include keyboard.h before frame.h.
779
780 * w32term.c: Include keyboard.h before frame.h.
781
782 * fontset.c: Include keyboard.h before frame.h.
783
784 * w32inevt.c: Include keyboard.h before frame.h.
785 (MOUSE_MOVED): Define if not known.
786
787 * minibuf.c: Include keyboard.h before frame.h.
788
789 * keyboard.c: Include keyboard.h before frame.h.
790
791 * indent.c: Include keyboard.h before frame.h.
792
793 * dispnew.c: Include keyboard.h before frame.h.
794
795 * buffer.c: Include keyboard.h before frame.h.
796
797 * alloc.c: Include keyboard.h before frame.h.
798
799 * print.c: Include keyboard.h before frame.h.
800
801 * process.c: Include keyboard.h before frame.h.
802
803 * scroll.c: Include keyboard.h before frame.h.
804
805 * sysdep.c: Include keyboard.h before frame.h.
806
807 * term.c: Include keyboard.h before frame.h.
808
809 * window.c: Include keyboard.h before frame.h.
810
811 * xdisp.c: Include keyboard.h before frame.h.
812 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
813
814 * frame.c: Include keyboard.h before frame.h.
815
816 * w32heap.h: Undefine min, max.
817
818 * w32gui.h: Undefine min, max.
819
820 * unexw32.c: Change PUCHAR to PCHAR.
821 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
822 (relocate_offset):
823 (get_section_info):
824 (copy_executable_and_dump_data): Remove unnecessary static defs.
825 (copy_executable_and_dump_data): Fix compile warnings.
826
827 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
828
829 * w32console.c (min): Define macro.
830 (clear_frame, write_glyphs): Fix compile warning.
831
832 * w32proc.c (compare_env):
833 (find_child_console): Fix compile warning.
834
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.
838
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.
846
847 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
848 (map_w32_filename):
849 (read_unc_volume): Fix compile warning.
850
851 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
852 definitions from being used.
853
854 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
855
856 * w32.c (unc_volume_file_attributes):
857 (open_unc_volume): Make arg const.
858
859 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
860 (read_input_waiting): Remove excess parameter.
861
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.
867
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.
871
872 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
873 (LINK_FLAGS): Append to original value of LINK_FLAGS.
874
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*.
878
879 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
880 (add_volume_info): Use xstrdup.
881
882 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
883
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.
888
889 2000-08-21 Gerd Moellmann <gerd@gnu.org>
890
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
894 made static.
895
896 * lisp.h (set_time_zone_rule): Add prototype.
897 (use_dialog_box): External declaration.
898
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
903 HELP_EVENTs.
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
907 to prototypes.
908
909 * keyboard.h (gen_help_event): Change prototype.
910
911 * xterm.c (XTread_socket): Change calls to gen_help_event.
912
913 * w32term.c (w32_read_socket): Change calls to gen_help_event.
914
915 * eval.c (Fmacroexpand): Doc fix.
916
917 2000-08-20 Jason Rumney <jasonr@gnu.org>
918
919 * w32term.h (x_display_info_for_display): Remove as this function
920 does not exist on W32.
921
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.
935
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.
940
941 2000-08-21 Miles Bader <miles@gnu.org>
942
943 * minibuf.c (do_completion): Try again if we rewrite the input
944 string, but no completion was done, so that any completion message
945 will be correct.
946
947 2000-08-20 Gerd Moellmann <gerd@gnu.org>
948
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
959 redisplay.
960
961 2000-08-19 Gerd Moellmann <gerd@gnu.org>
962
963 * undo.c (record_first_change, record_marker_adjustment): Don't
964 use XBUFFER on last_undo_buffer which might not be a buffer.
965
966 2000-08-18 Kenichi Handa <handa@etl.go.jp>
967
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.
972
973 2000-08-18 Gerd Moellmann <gerd@gnu.org>
974
975 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
976 conditional have void type, for Standard C compilers.
977
978 * xdisp.c (redisplay_internal): Compare windows for equality with
979 EQ, instead of applying XWINDOW to something that might not
980 be a window.
981
982 2000-08-18 Kenichi Handa <handa@etl.go.jp>
983
984 * fontset.c (Finternal_char_font): Search only the selected frame
985 for a window of the current buffer.
986
987 2000-08-18 Gerd Moellmann <gerd@gnu.org>
988
989 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
990 Lisp_Objects.
991
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.
994
995 2000-08-18 Miles Bader <miles@gnu.org>
996
997 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
998
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.
1003
1004 2000-08-17 Gerd Moellmann <gerd@gnu.org>
1005
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.
1011
1012 2000-08-17 Dave Love <fx@gnu.org>
1013
1014 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
1015 declare make_temp_name twice.
1016
1017 * lread.c: Prototype readevalloop, load_unwind,
1018 load_descriptor_unwind.
1019 (unreadpure): Give it an arg.
1020
1021 * unexalpha.c: Prototype fatal_unexec, mark_x,
1022 update_dynamic_symbols. Declare unexec as void.
1023
1024 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
1025 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
1026
1027 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
1028 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
1029 DOUG_LEA_MALLOC.
1030
1031 * alloca.c: Use #error.
1032 [POINTER_TYPE]: Use it.
1033
1034 * eval.c (Fdefvar): Doc fix.
1035
1036 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
1037 INITIALIZE_INTERVAL.
1038
1039 * buffer.h: Avoid DECLARE_INTERVALS.
1040
1041 * config.in: Add size_t.
1042
1043 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
1044
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
1050 system_error_msg.
1051
1052 2000-08-16 Gerd Moellmann <gerd@gnu.org>
1053
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
1058 with the same face.
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.
1062
1063 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1064
1065 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
1066 sequence at the end of the source block.
1067
1068 * ccl.c (Fccl_program_p): Docstring modified.
1069 (Fccl_execute): Likewise.
1070 (Fccl_execute_on_string): Likewise.
1071
1072 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1073
1074 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
1075
1076 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1077
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.
1082
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
1085 string_as_multibyte
1086
1087 * coding.h (conversion_buffer_size, conversion_buffer)
1088 (get_conversion_buffer): Extern deleted.
1089
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.
1110
1111 * emacs.c (main): Don't call init_coding.
1112
1113 * msdos.c (IT_write_glyphs): Use a locally declared
1114 conversion_buffer.
1115
1116 * term.c (write_glyphs): Use a locally declared conversion_buffer.
1117 (insert_glyphs): Likewise.
1118
1119 * w32console.c (write_glyphs): Use a locally declared
1120 conversion_buffer.
1121
1122 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
1123
1124 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
1125 member of display_info is NULL.
1126
1127 2000-08-15 Gerd Moellmann <gerd@gnu.org>
1128
1129 * alloc.c (compact_small_strings): Use safe_bcopy, add an
1130 assertion.
1131
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.
1135
1136 2000-08-14 Dave Love <fx@gnu.org>
1137
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.
1141
1142 * window.c: Fix embedded comment.
1143 (syms_of_window): Fix doc string.
1144
1145 2000-08-14 Gerd Moellmann <gerd@gnu.org>
1146
1147 * keymap.c (push_key_description): If C without modifiers is < 32,
1148 make sure to print `C-' before `M-', like in the manual.
1149
1150 2000-08-11 Gerd Moellmann <gerd@gnu.org>
1151
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
1155 integer.
1156
1157 * xdisp.c (try_cursor_movement): Fix handling of cursor in
1158 partially visible line which is smaller than the window's
1159 height.
1160
1161 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1162
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.
1166
1167 * ccl.h (struct ccl_program): New member multibyte.
1168
1169 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
1170
1171 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1172
1173 * regex.c (regex_compile) <normal_char>: Pay attention to
1174 multibyteness.
1175 (analyse_first) <exactn>: Setup fastmap correctly for
1176 eight-bit-control characters.
1177
1178 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1179
1180 * termhooks.h (enum event_kind): New member
1181 multibyte_char_keystroke.
1182
1183 * keyboard.c (make_lispy_event): Handle the new event type
1184 multibyte_char_keystroke.
1185
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.
1190
1191 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1192
1193 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
1194 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
1195
1196 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1197
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
1210 than the window.
1211 (redisplay_window): Use try_cursor_movement.
1212
1213 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
1214 because that function doesn't cope with variable-height lines.
1215
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.
1218
1219 2000-08-10 Miles Bader <miles@gnu.org>
1220
1221 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
1222
1223 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1224
1225 * xdisp.c (Vmessages_buffer_name): New variable.
1226 (message_dolog): Use it.
1227 (syms_of_xdisp): Initialize it.
1228
1229 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1230
1231 * msdos.c (IT_note_mouse_highlight): Update the calls to
1232 overlays_at.
1233 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
1234 redundant now that keyboard.h is included.
1235
1236 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1237
1238 * keyboard.c (kbd_buffer_events_waiting): New function.
1239
1240 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
1241
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.
1248
1249 * Makefile.in (msdos.o): Depend on keyboard.h.
1250
1251 2000-08-09 Gerd Moellmann <gerd@gnu.org>
1252
1253 * lisp.h (input_pending): External declaration.
1254
1255 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1256
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.
1260
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.
1265
1266 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1267
1268 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1269
1270 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1271
1272 * callproc.c (Fcall_process): Terminate the unwind-protect around
1273 the post-read-conversion of coding system.
1274
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.
1282
1283 * minibuf.c (do_completion): Don't consider a simple change of
1284 case as `completion'.
1285
1286 2000-08-08 Ken Raeburn <raeburn@gnu.org>
1287
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.
1292
1293 * coding.h (decode_coding_string): Declare.
1294
1295 * intervals.h (Fprevious_single_char_property_change): Declare.
1296
1297 * textprop.c (Fprevious_single_char_property_change): Don't do
1298 arithmetic directly on lisp objects.
1299
1300 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
1301 objects.
1302
1303 * keyboard.h (menu_item_eval_property): Declare.
1304
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.
1313
1314 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
1315 Lisp object.
1316 (Ffind_coding_systems_region_internal): First argument to Fappend
1317 must be an integer, not a Lisp object.
1318
1319 2000-08-08 Kenichi Handa <handa@etl.go.jp>
1320
1321 * charset.c (Fchar_width): Doc fix.
1322
1323 2000-08-08 Gerd Moellmann <gerd@gnu.org>
1324
1325 * charset.c (Fstring_width): Doc fix.
1326
1327 2000-08-07 Gerd Moellmann <gerd@gnu.org>
1328
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
1332 continuation line.
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.
1340
1341 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1342 of the clip area when image doesn't have a mask.
1343
1344 * fns.c (sweep_weak_table): Fix survival conditions for
1345 key-or-value and key-and-value weakness.
1346
1347 * .gdbinit (xhashtable): New command.
1348
1349 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1350 tables out of the list of all weak hash tables.
1351
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
1354 the new buffer.
1355
1356 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1357
1358 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1359 the doc string.
1360
1361 2000-08-07 Kenichi Handa <handa@etl.go.jp>
1362
1363 * syntax.c (skip_chars): Fix previous change. Make the handling
1364 of unibyte string consistent with that of regex search.
1365
1366 2000-08-05 Gerd Moellmann <gerd@gnu.org>
1367
1368 * xmenu.c (popup_get_selection): Use xfree instead of free.
1369
1370 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1371
1372 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1373
1374 * callproc.c (child_setup): Use xfree instead of free.
1375
1376 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1377 instead of malloc.
1378 (run_mac_command, closedir): Use `xfree' instead of `free'.
1379
1380 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1381
1382 * eval.c (error): Use xfree instead of free.
1383
1384 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1385
1386 * fns.c: Replace `illegal' with `invalid'.
1387 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1388
1389 2000-08-05 Kenichi Handa <handa@etl.go.jp>
1390
1391 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1392 conversion.
1393
1394 2000-08-04 Noah Friedman <friedman@splode.com>
1395
1396 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1397 docstring.
1398
1399 2000-08-04 Gerd Moellmann <gerd@gnu.org>
1400
1401 * syntax.c (skip_chars): Fix typo in error message.
1402
1403 2000-08-04 Andreas Schwab <schwab@suse.de>
1404
1405 * m/ia64.h: Moved from s/ia64.h.
1406
1407 2000-08-04 Kenichi Handa <handa@etl.go.jp>
1408
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.
1412
1413 * callproc.c (Fcall_process): Handle post-read-conversion of
1414 coding system if any.
1415
1416 * coding.c (decode_coding_iso2022): More strict check for handling
1417 single shifting.
1418 (coding_restore_composition): Pay attention to the case that
1419 cmp_data is not set properly (because of invalid code in the
1420 source text).
1421 (run_pre_post_conversion_on_str): Include text properties in the
1422 resulting string.
1423 (decode_coding_string): Set members of coding correctly.
1424
1425 2000-08-03 Gerd Moellmann <gerd@gnu.org>
1426
1427 * s/ia64.h: New file.
1428
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 *).
1433
1434 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
1435 of variable argument lists of XtVaGetValues and XtVaSetValues.
1436
1437 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
1438 variable argument lists of XtVaGetValues and XtVaSetValues.
1439
1440 2000-08-02 Gerd Moellmann <gerd@gnu.org>
1441
1442 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
1443 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
1444
1445 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
1446 prototype.
1447
1448 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
1449 in call to Fsingle_key_description.
1450
1451 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
1452 Callers changed.
1453
1454 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
1455
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.
1461
1462 2000-08-01 Miles Bader <miles@gnu.org>
1463
1464 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
1465 when to constrain NEW_POS (they were pretty screwed up before).
1466
1467 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
1468
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.
1476
1477 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
1478 using alloca; free it after run_msdos_command returns.
1479
1480 2000-07-27 Dave Love <fx@gnu.org>
1481
1482 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
1483 define.
1484 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
1485 working.
1486
1487 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
1488
1489 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1490
1491 * editfns.c (lisp_time_argument): Fix last change.
1492
1493 2000-07-27 Gerd Moellmann <gerd@gnu.org>
1494
1495 * fns.c (Fdelete): Make it work on vectors and strings in addition
1496 to lists.
1497
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
1501 `key-and-value'.
1502 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
1503 weakness, with t meaning the same as `key-and-value'.
1504
1505 2000-07-27 Kenichi Handa <handa@etl.go.jp>
1506
1507 * coding.h (struct coding_system): Member safe_charset deleted.
1508
1509 * coding.c (Qsafe_charsets): This variable deleted.
1510 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
1511 variables.
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
1516 changed.
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
1526 unsafe chars.
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.
1534
1535 * fns.c (char_table_ref_and_index): New function.
1536
1537 * lisp.h (char_table_ref_and_index): Add prototype.
1538
1539 2000-07-26 Sam Steingold <sds@gnu.org>
1540
1541 * editfns.c (lisp_time_argument): Added third argument `usec'.
1542 (Ffloat_time): New built-in Lisp function.
1543
1544 2000-07-26 Gerd Moellmann <gerd@gnu.org>
1545
1546 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
1547 for the character code.
1548
1549 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
1550 GNU/Linux.
1551
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.
1555
1556 2000-07-26 Dave Love <fx@gnu.org>
1557
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.
1563
1564 2000-07-26 Kenichi Handa <handa@etl.go.jp>
1565
1566 * print.c (print_object): If vector printing is truncated, print
1567 "..." to indicate it as well as the case of list printing.
1568
1569 2000-07-25 Gerd Moellmann <gerd@gnu.org>
1570
1571 * xdisp.c (next_element_from_display_vector): Improve comments.
1572
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.
1576
1577 * window.c (window_display_table): Cleaned up.
1578
1579 * syntax.c (Fforward_word): Add last arg nil in call of
1580 Fconstrain_to_field.
1581
1582 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1583
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.
1587
1588 2000-07-25 Miles Bader <miles@gnu.org>
1589
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
1596 the search limit.
1597 * lisp.h (Fconstrain_to_field): Update external declaration.
1598
1599 2000-07-24 Gerd Moellmann <gerd@gnu.org>
1600
1601 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
1602 if that is nil.
1603
1604 2000-07-24 Dave Love <fx@gnu.org>
1605
1606 * s/sunos4-0.h, s/sol2.h:
1607 (LIBS_TERMCAP): Move from m/sparc.h.
1608
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
1612 __arch64__.
1613
1614 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1615
1616 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
1617 name to single_keymap_panes.
1618
1619 2000-07-24 Andreas Schwab <schwab@suse.de>
1620
1621 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
1622
1623 2000-07-24 Gerd Moellmann <gerd@gnu.org>
1624
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.
1635
1636 2000-07-24 Kenichi Handa <handa@etl.go.jp>
1637
1638 * fontset.c (fontset_ref): Remove INLINE declaration.
1639 (fontset_ref_via_base): Likewise.
1640 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
1641 to downcase.
1642
1643 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1644
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.
1648
1649 2000-07-22 Miles Bader <miles@gnu.org>
1650
1651 * textprop.c (Fprevious_single_char_property_change): The initial
1652 property value should be from the position preceding POSITION, not
1653 following it.
1654
1655 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
1656
1657 * coding.c (syms_of_coding): Doc fix for
1658 inhibit-iso-escape-detection.
1659
1660 2000-07-21 Gerd Moellmann <gerd@gnu.org>
1661
1662 * xterm.c (note_mouse_highlight): Process overlays in the right
1663 order of priority.
1664
1665 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
1666
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
1669 found.
1670
1671 * window.c (foreach_window_1): Fix typo reversing an if-condition.
1672
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
1680 foreach_window.
1681 (add_window_to_list, freeze_window_start): Change parameters
1682 according to new calling convention.
1683
1684 * window.h (foreach_window): Change prototype.
1685
1686 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
1687
1688 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
1689
1690 * xmenu.c (menu_help_callback): Call show_help_echo with
1691 additional arguments OBJECT and POS.
1692
1693 2000-07-21 Kenichi Handa <handa@etl.go.jp>
1694
1695 * data.c (Faset): Allow storing any multibyte character in a
1696 string. Convert unibyte string to multibyte if necessary.
1697
1698 * xfns.c (x_encode_text): New function.
1699 (x_set_name): Use x_encode_text.
1700 (x_set_title): Likewise.
1701
1702 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
1703
1704 * xterm.h (x_encode_text): Add prototype.
1705
1706 2000-07-20 Dave Love <fx@gnu.org>
1707
1708 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
1709 xfree, not free.
1710
1711 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
1712
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
1718 for HELP_EVENTs.
1719
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
1728 event queue.
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.
1739
1740 * msdos.h (XMenuActivate): Update prototype.
1741
1742 2000-07-19 Gerd Moellmann <gerd@gnu.org>
1743
1744 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
1745 Add some more prototypes.
1746
1747 * xterm.c, xterm.h: Add some more prototypes.
1748
1749 * lisp.h (Fnext_single_char_property_change): Add prototype.
1750
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.
1754
1755 * alloc.c (allocate_string_data): Don't copy old string contents.
1756
1757 2000-07-19 Kenichi Handa <handa@etl.go.jp>
1758
1759 * coding.c (code_convert_region): Delete text properties before
1760 shrinking the conversion region.
1761
1762 2000-07-18 Gerd Moellmann <gerd@gnu.org>
1763
1764 * dispnew.c (update_text_area): Write the whole row if it
1765 has mouse-face in it.
1766
1767 * xfaces.c (face-alternative-font-family-alist): Remove
1768 DEFVAR_LISP; staticpro instead.
1769
1770 * xmenu.c (menu_help_callback): Call show_help_echo with
1771 new arguments.
1772
1773 * keyboard.c (show_help_echo): Add parameter WINDOW.
1774 (read_char): Call show_help_echo with window extracted from Lisp
1775 help event.
1776 (gen_help_event): Add parameter WINDOW.
1777
1778 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
1779
1780 * xterm.c (help_echo_window): New variable.
1781 (note_mouse_highlight, note_tool_bar_highlight): Set
1782 help_echo_window.
1783 (XTread_socket): Pass help_echo_window to gen_help_event.
1784 (syms_of_xterm): Initialize and staticpro help_echo_window.
1785
1786 2000-07-18 Dave Love <fx@gnu.org>
1787
1788 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
1789 systime.h.
1790
1791 2000-07-18 Gerd Moellmann <gerd@gnu.org>
1792
1793 * alloc.c (allocate_string_data): If string had already data
1794 assigned, copy old contents to new string data.
1795
1796 * coding.c (syms_of_coding): Fix typo in spelling of variable
1797 `inhibit-iso-escape-detection'.
1798
1799 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
1800
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.
1804
1805 2000-07-18 Kenichi Handa <handa@etl.go.jp>
1806
1807 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
1808 undefined.
1809
1810 2000-07-18 Dave Love <fx@gnu.org>
1811
1812 * window.c (Fwindow_list): Declare arg `window'.
1813
1814 2000-07-18 Kenichi Handa <handa@etl.go.jp>
1815
1816 * coding.c (setup_coding_system): Don't override the explicitly
1817 specified designations.
1818
1819 2000-07-15 Miles Bader <miles@gnu.org>
1820
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.
1826
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.
1832
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.
1836
1837 2000-07-15 Jason Rumney <jasonr@gnu.org>
1838
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.
1843
1844 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
1845 null title.
1846 (FONT_REGEXP): Remove unused macro, and its sub-components.
1847 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
1848
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
1862 XTframe_up_to_date.
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
1866 highlight here.
1867 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1868 depending on whether they contain glyphs highlighted in
1869 mouse-face.
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.
1879
1880 2000-07-14 Sam Steingold <sds@gnu.org>
1881
1882 * xfaces.c (realize_x_face): Fix the last patch:
1883 check `default_face' before dereferencing.
1884
1885 2000-07-14 Dave Love <fx@gnu.org>
1886
1887 * syntax.c (back_comment): Add null default in switch (for pcc).
1888
1889 2000-07-14 Kenichi Handa <handa@etl.go.jp>
1890
1891 * xfaces.c (realize_x_face): Make fontset using the base of the
1892 default_face's fontset, not using the default fontset.
1893
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.
1898
1899 2000-07-14 Gerd Moellmann <gerd@gnu.org>
1900
1901 * alloca.c (malloc) [emacs]: Define as xmalloc.
1902
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.
1905
1906 * dispextern.h (Fx_show_tip): Adjust number of parameters
1907 in prototype.
1908
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.
1915
1916 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
1917 Add prototypes.
1918
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.
1930
1931 * xmenu.c (menu_highlight_callback): Use
1932 kbd_buffer_store_help_event instead of setting up and input_event
1933 structure manually.
1934
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
1939 using eval_form.
1940
1941 * eval.c (internal_condition_case_2): New function.
1942
1943 * lisp.h (FUNCTIONP): New macro.
1944 (internal_condition_case_2, call_function): Add prototypes.
1945
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.
1950
1951 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
1952
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.
1956
1957 * keyboard.c (show_help_echo): Use eval_form. Add comment.
1958
1959 * lisp.h (eval_form): Add prototype.
1960
1961 * xdisp.c (eval_form): Make it externally visible.
1962
1963 2000-07-13 Gerd Moellmann <gerd@gnu.org>
1964
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
1971 string.
1972
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.
1977
1978 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
1979
1980 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
1981 TOOL_BAR_EVENTs.
1982 (w32_read_socket): Adapt to changes in HELP_EVENTs.
1983
1984 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
1985 input events to queue additional information, instead of consing.
1986
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.
2004
2005 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
2006 USER_SIGNAL_EVENT.
2007
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.
2011
2012 * xfaces.c (ASET): Remove definition.
2013
2014 * lisp.h (AREF, ASET, ASIZE): New macros.
2015
2016 * fontset.c (AREF, ASIZE): Remove definitions.
2017
2018 * fns.c (AREF): Remove definition.
2019
2020 * composite.c (AREF): Remove definition.
2021
2022 2000-07-12 Gerd Moellmann <gerd@gnu.org>
2023
2024 * dispnew.c (redraw_overlapped_rows): Add missing local.
2025 (scrolling_window): Remove debug code.
2026
2027 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
2028 Before scrolling, turn off a mouse-highlight in the window
2029 being scrolled.
2030
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.
2036
2037 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
2038 current glyph row.
2039 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
2040 it when any row is written to that contains glyphs highlighted in
2041 mouse-face.
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.
2045
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.
2049
2050 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
2051
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.
2059
2060 2000-07-11 Gerd Moellmann <gerd@gnu.org>
2061
2062 * doc.c (Fsubstitute_command_keys): Handle case that a GC
2063 in Fwhere_is_internal or get_keymap_1 relocates string contents.
2064
2065 * dispnew.c (direct_output_forward_char): Give up if currently
2066 displaying a message instead of the minibuffer contents.
2067
2068 * xterm.c (x_update_window_begin): No need to turn off the mouse
2069 highlight here.
2070 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2071 depending on whether they contain glyphs highlighted in
2072 mouse-face.
2073
2074 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
2075 compare the mouse_face_p flags of both rows.
2076
2077 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
2078
2079 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2080
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
2086 show_help_echo.
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.
2091
2092 2000-07-10 Gerd Moellmann <gerd@gnu.org>
2093
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.
2097
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.
2103
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.
2108
2109 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
2110
2111 * msdos.c (XMenuActivate): After exiting the menu, restore the
2112 echo area message and erase it.
2113
2114 2000-07-10 Kenichi Handa <handa@etl.go.jp>
2115
2116 * fontset.c (Ffontset_info): Make the return value more compatible
2117 with that of Emacs 20.
2118
2119 2000-07-07 Gerd Moellmann <gerd@gnu.org>
2120
2121 * eval.c (Fsignal): Handle case that backtrace_list is null.
2122
2123 2000-07-07 Kenichi Handa <handa@etl.go.jp>
2124
2125 * ccl.c (Fccl_execute): Typo fixed.
2126
2127 2000-07-06 Gerd Moellmann <gerd@gnu.org>
2128
2129 * window.c (window_loop): Add missing gcpro1 local variable.
2130
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.
2135
2136 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
2137
2138 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2139
2140 * xterm.c (XTread_socket): Increment handling_signal at the start,
2141 decrement it at the end.
2142
2143 * eval.c (handling_signal): New variable.
2144 (Fsignal): Abort if handling_signal is non-zero.
2145
2146 * lisp.h (handling_signal): External declaration.
2147
2148 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
2149
2150 2000-07-05 Ken Raeburn <raeburn@gnu.org>
2151
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
2158 <soundcard.h>.
2159 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
2160 elsewhere.
2161 (vox_open): Use DEFAULT_SOUND_DEVICE.
2162 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
2163
2164 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2165
2166 * print.c (print_error_message): If Vsignaling_function is set,
2167 show it in *Messages*.
2168
2169 * lisp.h (Vsignaling_function): External declaration.
2170
2171 * eval.c (Vsignaling_function): New variable.
2172 (Fsignal): Compute it.
2173 (syms_of_eval): Staticpro it.
2174
2175 2000-07-05 Dave Love <fx@gnu.org>
2176
2177 * syswait.h: Use the autoconf recommended approach. Old code
2178 #if'd out in case we need to revert.
2179
2180 * config.in (HAVE_SYS_WAIT_H): Added.
2181
2182 2000-07-05 Andrew Innes <andrewi@gnu.org>
2183
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
2187 on Windows.
2188
2189 * ralloc.c: Make real_morecore non-static.
2190
2191 * eval.c (internal_condition_case): Comment out abort if
2192 interrupt_input_blocked is not zero.
2193
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.
2197
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
2202 MAX_PATH.
2203 (sys_socket): Install socket inheritance bug fix from 20.7.
2204
2205 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
2206 here via blockinput.h).
2207
2208 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
2209
2210 * w32menu.c (w32_menu_display_help):
2211 * xmenu.c (menu_help_callback): Use show_help_echo.
2212
2213 * keyboard.h (show_help_echo): Declare.
2214
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.
2219
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)
2223 (dos_rawgetc):
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.
2227
2228 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2229
2230 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
2231
2232 * window.c (delete_all_subwindows): Reset Vwindow_list.
2233
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
2243 similar.
2244
2245 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
2246
2247 * dispextern.h: Add some comments.
2248
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.
2254
2255 2000-07-04 Gerd Moellmann <gerd@gnu.org>
2256
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
2264 next_window.
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
2269 should stop.
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.
2274
2275 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2276 input_event with bzero.
2277 (main): Call init_window.
2278
2279 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2280 a menu filter.
2281
2282 2000-07-04 Kenichi Handa <handa@etl.go.jp>
2283
2284 * composite.h (make_composition_value_copy): Extern it.
2285
2286 * composite.c (make_composition_value_copy): New function.
2287
2288 * editfns.c (Fformat): While copying text properties, make each
2289 composition property value a copy.
2290
2291 * fns.c (concat): While copying text properties, make each
2292 composition property value a copy.
2293
2294 2000-07-03 Gerd Moellmann <gerd@gnu.org>
2295
2296 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2297
2298 * fns.c (sweep_weak_table): Mark only objects that are not
2299 marked already.
2300
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.
2304
2305 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2306
2307 * fns.c (Fputhash): Return `value' rather than nil.
2308
2309 2000-06-30 Gerd Moellmann <gerd@gnu.org>
2310
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.
2316
2317 2000-06-30 Kenichi Handa <handa@etl.go.jp>
2318
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.
2322
2323 2000-06-28 Gerd Moellmann <gerd@gnu.org>
2324
2325 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
2326 the display if windows_or_buffers_changed.
2327
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.
2338
2339 * fns.c (next_almost_prime): Make it externally visible.
2340
2341 * lisp.h (next_almost_prime): Add prototype.
2342
2343 * s/isc4-0.h (sigunblock): Define.
2344
2345 * s/sco5.h (sigunblock): Define.
2346
2347 2000-06-27 Dave Love <fx@gnu.org>
2348
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.
2352
2353 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2354 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2355
2356 2000-06-27 Gerd Moellmann <gerd@gnu.org>
2357
2358 * xdisp.c (resize_mini_window): Subtract the extra line spacing
2359 below the last line from the needed window height.
2360
2361 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2362
2363 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2364 (Fwidget_get): Use it.
2365 (syms_of_fns): Defsubr it.
2366
2367 2000-06-26 Gerd Moellmann <gerd@gnu.org>
2368
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.
2373
2374 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2375
2376 * config.in (USE_XIM): New define.
2377
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.
2381
2382 * lisp.h (QCfilter): External declaration.
2383
2384 * xfns.c (Fimage_size): New function.
2385 (syms_of_xfns): Defsubr it.
2386
2387 2000-06-26 Andreas Schwab <schwab@suse.de>
2388
2389 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2390 Fstring_as_unibyte.
2391
2392 2000-06-25 Dave Love <fx@gnu.org>
2393
2394 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2395 tgetnum.
2396
2397 * Makefile.in (blockinput.h): Depend on atimer.h.
2398 (atimer.h): Depend on systime.h.
2399
2400 * blockinput.h: Protect against multiple inclusion. Include
2401 atimer.h.
2402
2403 * atimer.h: Protect against multiple inclusion. Include
2404 systime.h.
2405
2406 * lisp.h (swap_in_global_binding): Declare.
2407
2408 2000-06-24 Ken Raeburn <raeburn@gnu.org>
2409
2410 * process.c (Fopen_network_stream): Turn off atimers for duration
2411 of call to connect. (Patch from Gerd.)
2412
2413 2000-06-23 Dave Love <fx@gnu.org>
2414
2415 * ralloc.c: Maybe include unistd.h
2416
2417 * emacs.c (setgrp): Undefine before defining.
2418 (malloc_warning, set_time_zone_rule, index): Prototype.
2419
2420 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
2421 HAVE_STRUCT_TIMEZONE.
2422
2423 * s/osf1.h: Move string.h hack here from alpha.h and make it
2424 conditional.
2425 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
2426 _XOPEN_SOURCE.
2427 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
2428 (SOCKLEN_TYPE): Don't define.
2429
2430 * m/alpha.h: Remove string.h hack.
2431
2432 * s/osf5-0.h: New file.
2433
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.
2437
2438 * callproc.c (setpgrp): Undefine before defining.
2439 (delete_temp_file): Return Qnil to avoid warning.
2440
2441 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
2442
2443 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
2444 HAVE_X_WINDOWS.
2445
2446 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
2447
2448 * composite.h (compose_text): Declare.
2449
2450 * xterm.c: Don't include sys/types.h unconditionally. Don't
2451 protect its inclusion with !USG (following xmenu.c).
2452
2453 2000-06-23 Gerd Moellmann <gerd@gnu.org>
2454
2455 * xfns.c (x_create_tip_frame): Initialize frame's colors like
2456 in x_create_frame.
2457
2458 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2459
2460 * coding.c (decode_eol_post_ccl): Special handling for undecided
2461 and inconsistent EOL types.
2462
2463 2000-06-22 Gerd Moellmann <gerd@gnu.org>
2464
2465 * xrdb.c (x_load_resources): Add default resource for scroll bar's
2466 trough color and main window's background color.
2467
2468 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
2469 differently.
2470
2471 * xterm.h (Xt_app_con): External declaration.
2472
2473 * widget.c (EmacsFrameRealize): Fix typo.
2474
2475 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
2476
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.
2490
2491 * dispextern.h (struct it): Add member add_overlay_start.
2492
2493 2000-06-22 Dave Love <fx@gnu.org>
2494
2495 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
2496
2497 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
2498
2499 2000-06-22 Kenichi Handa <handa@etl.go.jp>
2500
2501 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
2502 is greater than 0.
2503
2504 2000-06-21 Dave Love <fx@gnu.org>
2505
2506 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
2507
2508 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
2509
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: " /* " /* " */.
2515
2516 2000-06-21 Dave Love <fx@gnu.org>
2517
2518 * Makefile.in: Use GETLOADAVG_LIBS.
2519
2520 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
2521 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
2522
2523 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2524
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.
2532
2533 2000-06-20 Dave Love <fx@gnu.org>
2534
2535 * fns.c (make_hash_table, maybe_resize_hash_table):
2536 Cast arg of next_almost_prime.
2537
2538 * tparam.c [emacs]: Include lisp.h.
2539
2540 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
2541 and unistd.h.
2542
2543 2000-06-20 Gerd Moellmann <gerd@gnu.org>
2544
2545 * keyboard.c (adjust_point_for_property): Check if display
2546 property should be treated as intangible by looking at its
2547 value.
2548
2549 * xdisp.c (single_display_prop_intangible_p)
2550 (display_prop_intangible_p): New functions.
2551
2552 * dispextern.h (display_prop_intangible_p): Add prototype.
2553
2554 * xdisp.c (dump_glyph_row): Show type of glyph->object.
2555
2556 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
2557 argument to sigprocmask.
2558
2559 * s/sco5.h (sigblock): Redefined to pass a pointer as second
2560 argument to sigprocmask.
2561
2562 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
2563 sigprocmask_set, and pass a pointer to it to sigprocmask.
2564
2565 * sysdep.c (sigprocmask_set): New variable.
2566
2567 * fileio.c (make_temp_name): Don't use `%s' in string passed to
2568 report_file_error.
2569
2570 2000-06-20 Sam Steingold <sds@gnu.org>
2571
2572 * xrdb.c: Don't declare xmalloc, xrealloc.
2573
2574 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2575
2576 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
2577 (re_comp): Cast gettext return value to avoid complaints when
2578 !HAVE_LIBINTL.
2579
2580 2000-06-20 Dave Love <fx@gnu.org>
2581
2582 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
2583 HAVE_GETTIMEOFDAY.
2584
2585 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
2586
2587 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
2588
2589 * m/alpha.h: Don't declare xmalloc, xrealloc.
2590
2591 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
2592
2593 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
2594
2595 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
2596
2597 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
2598 HAVE_GETWD.
2599
2600 * keyboard.h (poll_for_input_1): Declare.
2601
2602 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
2603
2604 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
2605
2606 * doprnt.c: Don't declare xmalloc, xrealloc.
2607
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.
2611
2612 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
2613 x_set_tool_bar_lines.
2614
2615 * config.in: Add HAVE_GETWD. Move some definitions above
2616 machine/system includes.
2617
2618 2000-06-20 Kenichi Handa <handa@etl.go.jp>
2619
2620 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
2621
2622 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
2623 contain information about ENCODING.
2624
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.
2633
2634 2000-06-19 Dave Love <fx@gnu.org>
2635
2636 * syntax.c (Fparse_partial_sexp): Doc fix.
2637
2638 * regex.h: Test PROTOTYPES as well as __STDC__.
2639
2640 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
2641 errno, strerror. Put text after #endif in comment.
2642
2643 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
2644 pcc).
2645
2646 * xterm.c (x_frame_of_widget): Likewise.
2647
2648 2000-06-19 Gerd Moellmann <gerd@gnu.org>
2649
2650 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
2651 to Vfundamental_mode_abbrev_table.
2652
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.
2657
2658 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
2659 returns XLookupChars, reset `modifiers' to zero.
2660
2661 2000-06-19 Dave Love <fx@gnu.org>
2662
2663 * mktime.c: Unprotoized.
2664
2665 2000-06-19 Richard Stallman <rms@gnu.org>
2666
2667 * data.c (set_internal): If variable is frame-local,
2668 store the new value immediately into the frame parameter alist.
2669
2670 2000-06-19 Ken Raeburn <raeburn@gnu.org>
2671
2672 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
2673 in the custom handler pointer.
2674
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
2677 union type.
2678 * keymap.c (get_keyelt): Likewise.
2679
2680 2000-06-19 Kenichi Handa <handa@etl.go.jp>
2681
2682 * ccl.h (struct ccl_program): New member eol_type.
2683 (struct ccl_spec): New member cr_carryover.
2684
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.
2687
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
2692 systems.
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
2696 coding systems.
2697 (decode_coding_string): Likewise.
2698
2699 2000-06-18 Ken Raeburn <raeburn@gnu.org>
2700
2701 * charset.c (update_charset_table): Use XINT on "iso_final_char"
2702 when treating it as an integer.
2703
2704 * coding.h (encode_coding_string): Declare.
2705
2706 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
2707 it as an integer.
2708
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.
2712
2713 * sound.c (Fplay_sound): Don't call make_number on
2714 Frun_hook_with_args count argument.
2715
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.
2720
2721 2000-06-16 Ken Raeburn <raeburn@gnu.org>
2722
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.
2726
2727 2000-06-16 Gerd Moellmann <gerd@gnu.org>
2728
2729 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
2730 only if HAVE_X_WINDOWS.
2731
2732 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
2733 of titles.
2734
2735 * dispnew.c (update_frame_1): Handle case that cursor vpos is
2736 out of bounds.
2737
2738 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2739
2740 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
2741 of its headers.
2742
2743 2000-06-15 Kenichi Handa <handa@etl.go.jp>
2744
2745 * coding.c (decode_coding_emacs_mule): Always set src_base at the
2746 start of the while loop.
2747
2748 2000-06-15 Gerd Moellmann <gerd@gnu.org>
2749
2750 * atimer.c (alarm_signal_handler): Add forward declaration.
2751
2752 * data.c (set_internal): Remove debug code.
2753
2754 2000-06-14 Gerd Moellmann <gerd@gnu.org>
2755
2756 * Makefile.in (bootstrap-temacs): Add `-I../src'.
2757
2758 * unexec.c (toplevel) [COFF]: Include coff.h.
2759
2760 * s/lynxos.h: New file.
2761
2762 * keymap.c (Fsingle_key_description): Enclose function key and
2763 event symbol names in angle brackets.
2764
2765 * xdisp.c (setup_echo_area_for_printing): Call
2766 message_log_maybe_newline if message_buf_print is not set.
2767
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
2771 already set.
2772
2773 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
2774 variables.
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
2778 lines setting here.
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.
2784
2785 * keyboard.c (read_char): Bind message-truncate-lines to t
2786 while displaying a help-echo.
2787
2788 * lisp.h (Qmessage_truncate_lines): External declaration.
2789
2790 2000-06-13 Gerd Moellmann <gerd@gnu.org>
2791
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
2798 meaning.
2799
2800 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
2801
2802 2000-06-13 Richard Stallman <rms@gnu.org>
2803
2804 * frame.c (Fmodify_frame_parameters): Doc fix.
2805
2806 * xfns.c (x_set_frame_parameters): Comment fix.
2807
2808 * frame.c (store_frame_param): Call swap_in_global_binding if the
2809 variable's current binding was chosen based on this frame.
2810
2811 * data.c (swap_in_global_binding): New function.
2812
2813 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2814
2815 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
2816 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
2817
2818 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2819
2820 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
2821
2822 2000-06-12 Jason Rumney <jasonr@gnu.org>
2823
2824 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
2825
2826 * w32.h (EMACS_W32_H): Renamed from _NT_H_
2827
2828 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
2829
2830 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
2831
2832 2000-06-12 Gerd Moellmann <gerd@gnu.org>
2833
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
2839 in x_free_colors.
2840
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.
2845
2846 2000-06-12 Kenichi Handa <handa@etl.go.jp>
2847
2848 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
2849
2850 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
2851
2852 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
2853
2854 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
2855
2856 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
2857
2858 2000-06-11 Dave Love <fx@gnu.org>
2859
2860 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
2861
2862 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2863
2864 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
2865
2866 2000-06-11 Gerd Moellmann <gerd@gnu.org>
2867
2868 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
2869 to `XEvent *'.
2870
2871 2000-06-10 Kenichi Handa <handa@etl.go.jp>
2872
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 [...].
2876
2877 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
2878 and dst_multibyte members of coding.
2879
2880 * charset.c (update_charset_table): Update the table
2881 bytes_by_char_head.
2882 (init_charset_once): Initialize elements of bytes_by_char_head to
2883 1 except for leading codes for private charases.
2884
2885 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
2886 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
2887 sequence.
2888
2889 2000-06-09 Ken Raeburn <raeburn@gnu.org>
2890
2891 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
2892 access the data it doesn't point to.
2893
2894 2000-06-08 Gerd Moellmann <gerd@gnu.org>
2895
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.
2905
2906 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
2907 generating a switch-frame event if necessary.
2908
2909 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
2910
2911 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
2912 it's an integer.
2913
2914 2000-06-08 Kenichi Handa <handa@etl.go.jp>
2915
2916 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
2917 charset.
2918
2919 2000-06-07 Gerd Moellmann <gerd@gnu.org>
2920
2921 * window.c (displayed_window_lines): Take empty lines at
2922 the bottom of a window into account.
2923
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.
2927
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.
2931
2932 * xdisp.c (display_line): Fix code deciding in which line to
2933 put the cursor.
2934
2935 2000-06-07 Kenichi Handa <handa@etl.go.jp>
2936
2937 * fileio.c (e_write): Free composition data if stored in
2938 coding->cmp_data.
2939
2940 2000-06-06 Gerd Moellmann <gerd@gnu.org>
2941
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.
2950
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.
2957
2958 * term.c (append_glyph): Revert change of 2000-06-06.
2959
2960 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
2961 padding glyph not fitting on line as whole character not
2962 fitting on line.
2963
2964 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
2965 this isn't true for images with `:ascent 100'.
2966
2967 2000-06-06 Kenichi Handa <handa@etl.go.jp>
2968
2969 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
2970 as modified if it is originally unmodified.
2971
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.
2975
2976 * xdisp.c (display_line): While checking line continuation, pay
2977 attention to a padding glyph.
2978
2979 2000-06-05 Gerd Moellmann <gerd@gnu.org>
2980
2981 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
2982
2983 2000-06-05 Dave Love <fx@gnu.org>
2984
2985 * xdisp.c: Include fontset.h.
2986
2987 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
2988
2989 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2990
2991 * dispnew.c: Conditionally include term.h.
2992
2993 * coding.h: Declare code_convert_string_norecord.
2994
2995 * frame.h (struct frame): Use volatile unconditionally.
2996
2997 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
2998
2999 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
3000
3001 * systime.h: Protect against multiple inclusion.
3002 (timezone) [USG5_4]: Define as time_t.
3003
3004 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3005 (Foptimize_char_table, make_temp_name): Declare.
3006
3007 * Makefile.in (xdisp.o): Depend on fontset.h.
3008
3009 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3010
3011 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3012 (Foptimize_char_table, make_temp_name): Declare.
3013
3014 * s/irix4-0.h:
3015 * s/irix5-0.h:
3016 * s/netbsd.h: Don't define autoconfiscated MATHERR.
3017
3018 2000-06-02 Dave Love <fx@gnu.org>
3019
3020 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
3021
3022 2000-06-02 Gerd Moellmann <gerd@gnu.org>
3023
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
3026 be freed.
3027
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.
3030
3031 2000-06-02 Dave Love <fx@gnu.org>
3032
3033 * sysdep.c: Conditionally include stdlib.h, unistd.h.
3034 (VFORK_RETURN_TYPE): Remove.
3035
3036 * config.in: Add NO_MATHERR.
3037
3038 2000-06-01 Dave Love <fx@gnu.org>
3039
3040 * cmds.c (internal_self_insert): Don't check
3041 Vbefore_change_function, Vafter_change_function.
3042
3043 * insdel.c (signal_before_change, signal_after_change): Likewise.
3044
3045 * buffer.c (Vbefore_change_function, Vafter_change_function):
3046 Variables and their initializations deleted.
3047
3048 * callint.c (Fcall_interactively): Doc fix.
3049
3050 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
3051
3052 2000-05-31 Dave Love <fx@gnu.org>
3053
3054 * textprop.c: Revert last change -- duplicated.
3055
3056 2000-05-31 Gerd Moellmann <gerd@gnu.org>
3057
3058 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
3059 in #if 0.
3060
3061 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
3062
3063 2000-05-31 Jason Rumney <jasonr@gnu.org>
3064
3065 * search.c (Fre_search_forward, Fre_search_backward)
3066 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
3067
3068 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
3069
3070 2000-05-30 Jason Rumney <jasonr@gnu.org>
3071
3072 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
3073 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
3074
3075 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
3076 member.
3077
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.
3081
3082 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
3083 pointer to glyph_to_pixel_coords, not a frame.
3084
3085 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
3086 coding.h to dependencies.
3087
3088 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
3089
3090 * w32console.c (glyph_to_pixel_coords): Change first parameter to
3091 window pointer to be consistent with w32term.c and xterm.c.
3092
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
3099 macros.
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
3103 and icon strings.
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.
3113
3114 * w32gui.h (W32FontStruct): Add double_byte_p member.
3115
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.
3120
3121 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
3122 menu strings.
3123
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
3140 in the window.
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.
3146
3147 * w32term.h (CP_DEFAULT): Define.
3148 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
3149
3150 2000-05-30 Gerd Moellmann <gerd@gnu.org>
3151
3152 * search.c (Fre_search_forward, Fre_search_backward)
3153 (Fposix_search_backward, Fposix_search_forward): Doc fix.
3154
3155 2000-05-30 Kenichi Handa <handa@etl.go.jp>
3156
3157 * coding.c (detect_coding_iso2022): Fix code for checking
3158 CODING_CATEGORY_MASK_ISO_8_2.
3159
3160 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
3161
3162 * regex.c (PREFETCH_NOLIMIT): New function.
3163 (re_match_2_internal): Use it and adjust the end_match_2 logic.
3164
3165 2000-05-29 Gerd Moellmann <gerd@gnu.org>
3166
3167 * syntax.c (find_defun_start): Move test for
3168 open_paren_in_column_0_is_defun_start outside of the loop.
3169
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.
3173
3174 * xfaces.c (free_realized_faces): Block/unblock input.
3175 (free_realized_multibyte_face): Ditto.
3176
3177 2000-05-29 Dave Love <fx@gnu.org>
3178
3179 * textprop.c (Qkeymap): New variable.
3180 (syms_of_textprop): Intern it.
3181
3182 * keymap.c: Include intervals.h.
3183 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
3184
3185 * Makefile.in (keymap.o): Depend on intervals.h.
3186
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
3190 `local_map'.
3191
3192 * intervals.c (get_local_map): Extra arg to allow looking for
3193 `keymap' too.
3194
3195 * intervals.h (map_property): New enum.
3196 (get_local_map): Extra arg using it.
3197 (Qkeymap): Declare.
3198
3199 * lisp.h (get_local_map): Don't declare here.
3200
3201 2000-05-29 Kenichi Handa <handa@etl.go.jp>
3202
3203 * Makefile.in (callproc.o): Depend on composite.h.
3204
3205 * callproc.c: Include composite.h.
3206 (Fcall_process): Handle composition correctly.
3207
3208 * coding.h (coding_allocate_composition_data): Extern it.
3209 (coding_restore_composition): Likewise.
3210
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.
3216
3217 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
3218
3219 * charset.c (syms_of_charset): Revert last change.
3220
3221 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3222
3223 * term.c (produce_glyphs): Treat characters from the eight-bit-*
3224 charsets as unibyte, with 1-column screen width. Sent by Kenichi
3225 Handa.
3226
3227 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3228
3229 * charset.c (syms_of_charset): Set width of character sets
3230 eight-bit-control and eight-bit-graphic to 1 column.
3231
3232 2000-05-26 Gerd Moellmann <gerd@gnu.org>
3233
3234 * config.in (HAVE_SPEED_T): New define.
3235
3236 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
3237 `extern speed_t'.
3238
3239 2000-05-26 Dave Love <fx@gnu.org>
3240
3241 * coding.c (shrink_decoding_region): Initialize eol_conversion.
3242
3243 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
3244 (Fsubr_arity): New function.
3245 (syms_of_data): Install them.
3246
3247 2000-05-26 Kenichi Handa <handa@etl.go.jp>
3248
3249 * charset.c (init_charset_once): Set the table bytes_by_char_head
3250 correctly.
3251
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.
3257
3258 * fns.c (map_char_table): Ignore char-table entries for
3259 charsets eight-bit-control and eight-bit-graphic.
3260
3261 2000-05-25 Ken Raeburn <raeburn@gnu.org>
3262
3263 * emacs.c (main): Initialize keyboard syms before initializing
3264 window code, so face names are available.
3265
3266 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3267
3268 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3269 of an anchor at the beginning of a shy-group.
3270
3271 2000-05-25 Gerd Moellmann <gerd@gnu.org>
3272
3273 * xdisp.c (handle_invisible_prop): Don't try to skip over
3274 invisible text if end of text is already reached.
3275
3276 2000-05-25 Dave Love <fx@gnu.org>
3277
3278 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3279
3280 * coding.c (encode_eol): Add null statement after label.
3281
3282 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3283
3284 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3285 2000-05-20.
3286
3287 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3288
3289 * ccl.c (ccl_driver): Fix previous change.
3290
3291 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3292
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.
3298
3299 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3300 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3301 eight-bit-graphic correctly.
3302
3303 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
3304
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.
3308
3309 2000-05-24 Gerd Moellmann <gerd@gnu.org>
3310
3311 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3312 BSD_PGRPS are not defined.
3313
3314 2000-05-24 Kenichi Handa <handa@etl.go.jp>
3315
3316 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3317 DESCRIPTION.
3318 (syms_of_charset): Avoid building same strings.
3319
3320 2000-05-23 Gerd Moellmann <gerd@gnu.org>
3321
3322 * lread.c (Fload): Add a comment about the meaning of
3323 Vuser_init_file being t.
3324
3325 * puresize.h (BASE_PURESIZE): Increase to 675000.
3326
3327 * s/gnu-linux.h (setpgrp): Don't define it here because this
3328 prevents compilation on GNU/Linux systems with glib 2.2.
3329
3330 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3331 as setpgid.
3332
3333 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3334
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
3337 version.
3338 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3339
3340 2000-05-23 Kenichi Handa <handa@etl.go.jp>
3341
3342 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3343 unconditionally.
3344
3345 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3346
3347 * term.c (encode_terminal_code): Set coding->src_multibyte
3348 properly.
3349
3350 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3351
3352 2000-05-22 Kenichi Handa <handa@etl.go.jp>
3353
3354 * keyboard.c (read_char): Allow character codes 128..255 to be
3355 handled by input-method-function.
3356
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.
3360
3361 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
3362
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.
3367
3368 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3369 like SYSV_PTYS.
3370
3371 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3372
3373 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3374
3375 2000-05-20 Kenichi Handa <handa@etl.go.jp>
3376
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.
3381
3382 * Makefile.in (fns.o): Depend on charset.h.
3383
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.
3387
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.
3392
3393 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3394 to unibyte.
3395
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.
3399
3400 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
3401 SPLIT_NON_ASCII_CHAR.
3402
3403 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
3404 as is.
3405 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
3406
3407 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
3408 variables.
3409 (SPLIT_CHARACTER_SEQ): This macro deleted.
3410 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
3411 valid.
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
3415 character code.
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
3424 eight-bit-graphic.
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
3433 happens.
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.
3439
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
3446 eight-bit-graphic.
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
3455 macros.
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
3464 CHAR_BYTES.
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.
3468
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
3475 macros deleted.
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
3482 the source.
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
3488 block here.
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
3495 block here.
3496 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
3497 macros deleted.
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
3503 dst_multibyte.
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
3517 block here.
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
3529 above.
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.
3537
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
3543 nonzero.
3544 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
3545 nonzero.
3546
3547 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
3548 (Faset): Likewise.
3549
3550 * editfns.c (Fformat): Be sure to convert 8-bit characters to
3551 multibyte form.
3552 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
3553 combining occurs.
3554 (Ftranspose_region): Delete codes for handling byte combining.
3555
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).
3562
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.
3582
3583 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
3584 SPLIT_NON_ASCII_CHAR.
3585 (fontset_ref_via_base, fontset_set): Likewise
3586
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
3594 multibyte form.
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.
3603
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
3608 unconditionally.
3609 (Fkey_description): Likewise.
3610
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.
3614
3615 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
3616 unconditionally.
3617
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
3626 output.
3627 (send_process): Setup coding->src_multibyte according to the
3628 multibyteness of the source.
3629
3630 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
3631 unconditionally.
3632 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
3633 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
3634
3635 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
3636 CHAR_LEN.
3637
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.
3642
3643 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
3644 dst_multibyte of coding.
3645 (x_to_w32_font): Likewise.
3646
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.
3651
3652 * xdisp.c (get_next_display_element): Handle 8-bit characters
3653 correctly.
3654 (next_element_from_display_vector): Use CHAR_BYTES instead of
3655 CHAR_LEN.
3656 (disp_char_vector): Use SPLIT_CHAR instead of
3657 SPLIT_NON_ASCII_CHAR.
3658
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.
3663
3664 2000-05-19 Gerd Moellmann <gerd@gnu.org>
3665
3666 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
3667 buffer.
3668
3669 * dispextern.h (Vimage_types): Add extern declaration.
3670
3671 * xdisp.c (Vimage_types): Moved here from xfns.c.
3672 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
3673
3674 * xfns.c (Vimages_types): Moved to xdisp.c.
3675 (syms_of_xfns): Move `image-types' to xdisp.c.
3676
3677 * w32fns.c (Vimage_types): Removed.
3678 (syms_of_w32fns): Remove `image-types'.
3679
3680 2000-05-18 Kenichi Handa <handa@etl.go.jp>
3681
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
3685 the default value.
3686
3687 * fontset.c: Include "buffer.h".
3688 (fs_load_font): If the face has fontset, record the face ID in
3689 that fontset.
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
3696 function.
3697
3698 2000-05-16 Dave Love <fx@gnu.org>
3699
3700 * m/iris5d.h: Deleted -- unused.
3701
3702 2000-05-16 Gerd Moellmann <gerd@gnu.org>
3703
3704 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
3705 `invalid' instead of `illegal'.
3706
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.
3709
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.
3712
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.
3716
3717 * fileio.c (make_temp_name): New function, extracted from
3718 Fmake_temp_name.
3719 (Fmake_temp_name): Use it.
3720
3721 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3722
3723 * window.c (coordinates_in_window): Subtract 1 when computing
3724 right_x.
3725
3726 2000-05-15 Gerd Moellmann <gerd@gnu.org>
3727
3728 * Makefile.in (lisp): Add env.elc.
3729
3730 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
3731
3732 2000-05-12 Gerd Moellmann <gerd@gnu.org>
3733
3734 * search.c (Freplace_match): Handle case of `\N' in the
3735 replacement when there's no group N.
3736
3737 2000-05-11 Gerd Moellmann <gerd@gnu.org>
3738
3739 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
3740 of the message to message_dolog.
3741
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.
3745
3746 * xdisp.c (handle_single_display_prop): Don't try to set PT if
3747 we're interating over a string.
3748
3749 2000-05-09 Dave Love <fx@gnu.org>
3750
3751 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
3752 that offset before writing. Move gcpro region past call of
3753 Ffile_regular_p.
3754
3755 2000-05-04 Dave Love <fx@gnu.org>
3756
3757 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
3758
3759 2000-05-04 Gerd Moellmann <gerd@gnu.org>
3760
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.
3764
3765 2000-05-03 Gerd Moellmann <gerd@gnu.org>
3766
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.
3771
3772 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
3773 that x_per_char_metric returns null.
3774
3775 2000-05-02 Gerd Moellmann <gerd@gnu.org>
3776
3777 * xterm.h (struct face): Add forward declaration.
3778 (struct image): Ditto.
3779 (image_ascent): Add prototype.
3780
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.
3784
3785 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
3786 (IMAGE_ASCENT): Removed.
3787
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.
3802
3803 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
3804 to the limits, increase the limits.
3805
3806 2000-05-01 Kenichi Handa <handa@etl.go.jp>
3807
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
3810 font.
3811
3812 2000-04-28 Gerd Moellmann <gerd@gnu.org>
3813
3814 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
3815 taller than the window.
3816
3817 2000-04-28 Kenichi Handa <handa@etl.go.jp>
3818
3819 * xfaces.c (realize_x_face): Fix the argument of the second
3820 xassert. BASE_FACE may not be a face for ASCII.
3821
3822 2000-04-27 Gerd Moellmann <gerd@gnu.org>
3823
3824 * print.c (print_object): Treat print-length < 0 as nil.
3825
3826 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
3827
3828 * s/freebsd.h (TERMCAP_OBJ): Removed.
3829 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
3830
3831 * lread.c (read1): Don't treat period followed by certain
3832 characters as symbol start.
3833
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.
3844
3845 * lread.c (end_of_file_error): New function.
3846 (read1): Call it instead of signaling `end-of-file' directly.
3847
3848 * print.c (print_error_message): Print data of `end-of-file'
3849 with Fprinc instead of Fprin1.
3850
3851 2000-04-26 Ken Raeburn <raeburn@gnu.org>
3852
3853 * window.c (freeze_window_start): Check that minibuffer scroll
3854 window isn't nil before extracting the window structure pointer
3855 from it.
3856
3857 * undo.c (record_delete): If we hit the end of the undo list, stop
3858 picking elements apart.
3859
3860 2000-04-26 Gerd Moellmann <gerd@gnu.org>
3861
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.
3865
3866 2000-04-25 Gerd Moellmann <gerd@gnu.org>
3867
3868 * xdisp.c (try_window_id) <all changes above window start>: Adjust
3869 positions in glyph matrix. Don't compute new window end
3870 positions.
3871
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.
3876
3877 * dispextern.h: Change names of renamed functions from dispnew.c
3878 in prototypes.
3879
3880 2000-04-24 Gerd Moellmann <gerd@gnu.org>
3881
3882 * fileio.c (Fdo_auto_save): Create directories for auto-save
3883 list file if necessary.
3884
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'.
3891
3892 * frame.h (struct frame): Add member extra_line_spacing.
3893
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.
3898
3899 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
3900
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.
3906
3907 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
3908 and extra3.
3909
3910 * xterm.c (x_produce_glyphs): Remove reference to struct it's
3911 prompt_width. Add extra line spacing.
3912
3913 * term.c (produce_glyphs): Remove reference to struct it's
3914 prompt_width.
3915
3916 * dispextern.h (struct it): Remove member prompt_width, add
3917 extra_line_spacing.
3918
3919 2000-04-22 Gerd Moellmann <gerd@gnu.org>
3920
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.
3924
3925 2000-04-21 Gerd Moellmann <gerd@gnu.org>
3926
3927 * lisp.h (struct Lisp_Buffer_Cons): Remove.
3928
3929 * keyboard.c (timer_check): Fix typo in comment.
3930
3931 2000-04-21 Kenichi Handa <handa@etl.go.jp>
3932
3933 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
3934 name change: ch -> character.
3935
3936 2000-04-20 Gerd Moellmann <gerd@gnu.org>
3937
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.
3944
3945 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
3946 directory doesn't exist.
3947
3948 2000-04-19 Dave Love <fx@gnu.org>
3949
3950 * fns.c (syms_of_fns): Defsubr mapc.
3951 (concat): Don't allow numeric args.
3952 (Fconcat): Doc change.
3953
3954 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
3955
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'.
3959
3960 2000-04-19 Gerd Moellmann <gerd@gnu.org>
3961
3962 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
3963 on 64-bit systems where NULL is defined as `0'.
3964
3965 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
3966 the `variable argument list' to make it work on Alpha.
3967
3968 * m/alpha.h (_LP64) [!_LP64]: Define.
3969 (ORDINARY_LINK): Define for NetBSD.
3970
3971 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
3972
3973 2000-04-19 Dave Love <fx@gnu.org>
3974
3975 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
3976 change.
3977
3978 * Makefile.in (LIBS): Don't use.
3979 (GETLOADAVG_OBJ): Define again.
3980 (otherobj): Add GETLOADAVG_OBJ.
3981
3982 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
3983
3984 2000-04-18 Gerd Moellmann <gerd@gnu.org>
3985
3986 * lread.c (read_filtered_event): Cancel and start busy cursor.
3987
3988 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
3989 that the per-character metrics may be null.
3990
3991 2000-04-17 Gerd Moellmann <gerd@gnu.org>
3992
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.
3996
3997 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
3998
3999 2000-04-16 Dave Love <fx@gnu.org>
4000
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).
4007
4008 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4009
4010 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
4011
4012 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
4013
4014 2000-04-14 Dave Love <fx@gnu.org>
4015
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
4020 NLIST_STRUCT.
4021
4022 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
4023 autoconfiscated HAVE_GETLOADAVG.
4024
4025 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
4026 BROKEN_MKTIME.
4027
4028 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4029
4030 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
4031 (fill_in_lock_file_name): Avoid existing files that aren't
4032 links.
4033
4034 2000-04-14 Dave Love <fx@gnu.org>
4035
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
4041 add LIBOBJS.
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.
4047
4048 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
4049
4050 2000-04-14 Kenichi Handa <handa@etl.go.jp>
4051
4052 * composite.c (update_compositions): If FROM and TO are not in a
4053 valid range, do nothing.
4054
4055 2000-04-13 Gerd Moellmann <gerd@gnu.org>
4056
4057 * tparam.c (tparam1): Abort when encountering an unknown
4058 `%'-specifier.
4059
4060 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
4061 terminfo.o.
4062
4063 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
4064 as TERMCAP_OBJ.
4065
4066 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4067
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.
4071
4072 2000-04-12 Dave Love <fx@gnu.org>
4073
4074 * fns.c (mapcar1): Test for null vals to support mapc.
4075 (Fmapc): New function.
4076
4077 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
4078
4079 * msdos.c (NUM_MOUSE_BUTTONS): Define.
4080 (IT_frame_up_to_date): Support the buffer local value of
4081 cursor-type, if defined.
4082
4083 2000-04-10 Dave Love <fx@gnu.org>
4084
4085 * editfns.c (preceding-char, following-char): Doc fix.
4086
4087 2000-04-10 Ken Raeburn <raeburn@gnu.org>
4088
4089 * Makefile.in (temacs): Revert 2000-03-12 change.
4090
4091 2000-04-10 Jason Rumney <jasonr@gnu.org>
4092
4093 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
4094
4095 2000-04-10 Gerd Moellmann <gerd@gnu.org>
4096
4097 * xdisp.c (setup_echo_area_for_printing): Choose an echo
4098 area buffer, if it's not set up yet.
4099
4100 * indent.c (compute_motion): Set immediate_quit.
4101
4102 2000-04-09 Gerd Moellmann <gerd@gnu.org>
4103
4104 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
4105 variable.
4106 (realize_tty_face): Suppress boldness if colors are the inverse of
4107 the default colors, and tty_suppress_bold_inverse_default_colors_p
4108 is set.
4109 (Ftty_suppress_bold_inverse_default_colors): New function.
4110 (syms_of_xfaces): Defsubr it.
4111
4112 * buffer.c (Frestore_buffer_modified_p): New function.
4113 (syms_of_buffer): Defsubr it.
4114
4115 2000-04-08 Ken Raeburn <raeburn@gnu.org>
4116
4117 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
4118 charset id (int) argument, not a charset (Lisp_Object).
4119
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.
4123
4124 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
4125 value.
4126 (Fset_fontset_font): Use EQ to compare lisp objects.
4127
4128 2000-04-05 Ken Raeburn <raeburn@gnu.org>
4129
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
4134 have intervals.
4135 (GET_INTERVAL_OBJECT): Simply assign to the destination.
4136
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.
4146
4147 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
4148 * print.c (print_preprocess, print_object): Likewise.
4149
4150 * search.c (compile_pattern): Use NILP when checking for nil.
4151
4152 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
4153 __OPTIMIZE__]: Provide a GNU C macro version that handles
4154 lisp-object unions.
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.
4158
4159 2000-04-04 Gerd Moellmann <gerd@gnu.org>
4160
4161 * window.c (compare_window_configurations): Signal an error
4162 if parameters C1 or C2 aren't window configurations.
4163
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.
4167
4168 2000-04-03 Gerd Moellmann <gerd@gnu.org>
4169
4170 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
4171 an error if decoding fails.
4172
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
4184 arguments.
4185 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
4186 Accept a string for NAME_ALIST_OR_STEM.
4187
4188 * lisp.h (larger_vector): Add prototype.
4189
4190 * fns.c (larger_vector): Make externally visible.
4191
4192 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
4193
4194 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
4195
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
4210 buffer.
4211
4212 * regex.h (struct re_pattern_buffer): Make field `multibyte'
4213 conditional on `emacs'.
4214
4215 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
4216
4217 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4218
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
4222 defined.
4223 (make_number): Define as a function if it's not defined as a
4224 macro.
4225
4226 * composite.c (run_composite_function): Use NILP when checking for
4227 nil.
4228 (syms_of_composite): Delete local var NARGS, pass an int as first
4229 argument to Fmake_hash_table.
4230
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
4236 XSETSTRING call.
4237
4238 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4239
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.
4246
4247 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4248
4249 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
4250 with int lvalues via casts; instead, just yield lisp object
4251 lvalues.
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.
4256
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
4261 Fformat.
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.
4273
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.
4278
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.
4282
4283 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4284
4285 * xfaces.c (realize_basic_faces): Block input while realizing
4286 the faces.
4287
4288 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4289
4290 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4291
4292 2000-03-31 Gerd Moellmann <gerd@gnu.org>
4293
4294 * xterm.c (x_produce_glyphs): When displaying unibyte text
4295 or ASCII, handle case that per-char metric is null.
4296
4297 2000-03-30 Ken Raeburn <raeburn@gnu.org>
4298
4299 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4300
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.
4305
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
4309 type.
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.
4320
4321 2000-03-30 Gerd Moellmann <gerd@gnu.org>
4322
4323 * xfns.c (free_image_cache): Free the cache structure itself
4324 last, after all its members have been freed.
4325
4326 * lisp.h (xstrdup): Add prototype.
4327
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
4331 mem_insert.
4332
4333 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4334 of Fsymbol_value.
4335 (xstrdup): Moved to alloc.c.
4336
4337 2000-03-29 Ken Raeburn <raeburn@gnu.org>
4338
4339 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4340
4341 * emacs.c (main): Fix sense of no-loadup test.
4342
4343 * config.in (ENABLE_CHECKING): Undef.
4344
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
4350 abort.
4351 (eassert): New macro. Use CHECK to provide an assert-like
4352 facility.
4353
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.
4359
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.
4365
4366 * intervals.c (interval_start_pos): Just return 0 if there's no
4367 parent object.
4368
4369 2000-03-29 Gerd Moellmann <gerd@gnu.org>
4370
4371 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4372 and earlier Emacs versions.
4373
4374 * keyboard.c (Ftop_level): Cancel busy-cursor.
4375
4376 * eval.c (call_debugger): Cancel busy-cursor.
4377
4378 2000-03-29 Kenichi Handa <handa@etl.go.jp>
4379
4380 * search.c (Freplace_match): Adjust multibyteness of the current
4381 buffer and NEWTEXT. Free allocated memory before signaling an
4382 error.
4383
4384 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4385
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
4389 string or not.
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'.
4394
4395 2000-03-28 Dave Love <fx@gnu.org>
4396
4397 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4398 alpha.
4399
4400 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4401
4402 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
4403
4404 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
4405 an expression.
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.
4415
4416 2000-03-28 Jason Rumney <jasonr@gnu.org>
4417
4418 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
4419
4420 2000-03-27 Gerd Moellmann <gerd@gnu.org>
4421
4422 * s/freebsd.h (GC_SETJMP_WORKS): Define.
4423
4424 * s/msdos.h (GC_SETJMP_WORKS): Define.
4425
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.
4433
4434 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4435 to DEC_TEXT_POS and INC_TEXT_POS.
4436
4437 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
4438 with parameter MULTIBYTE_P.
4439
4440 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
4441 MULTIBYTE_P.
4442
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.
4446
4447 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
4448
4449 * xfaces.c (register_color, unregister_color, unregister_colors)
4450 [DEBUG_X_COLORS]: New functions.
4451 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
4452
4453 * xfns.c (x_set_cursor_color): Get color reference counts right.
4454
4455 * xterm.c (x_copy_color): New function.
4456 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
4457
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.
4468
4469 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
4470 names for handling per-buffer variables.
4471
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.
4475
4476 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
4477
4478 * xfns.c (x_specified_cursor_type): New function.
4479 (x_set_cursor_type): Use it.
4480
4481 * buffer.h (struct buffer): Add cursor_type.
4482
4483 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
4484
4485 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
4486 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
4487 opcode.
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.
4492
4493 2000-03-26 Gerd Moellmann <gerd@gnu.org>
4494
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
4499 from that.
4500
4501 * buffer.c (syms_of_buffer): Add default-cursor-type.
4502 (init_buffer_once): Don't let cursor_type have a local value
4503 in every buffer.
4504
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.
4508
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.
4513
4514 * buffer.h (struct buffer): Remove member local_var_flags,
4515 add local_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.
4521
4522 * print.c (print_object): Use new macros for per-buffer
4523 variables.
4524
4525 * category.c (Fset_category_table): Use new macros for per-buffer
4526 variables.
4527
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.
4535
4536 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
4537 variables.
4538
4539 * lread.c (defvar_per_buffer): Use new macros for per-buffer
4540 variables.
4541
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.
4546
4547 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
4548
4549 2000-03-24 Gerd Moellmann <gerd@gnu.org>
4550
4551 * xterm.c (x_term_init): Unblock input around call1 of
4552 Qvendor_specific_keysyms.
4553
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.
4558
4559 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
4560
4561 * eval.c (Fautoload): Add entry in load-history (if after dump).
4562 * lread.c (load-history): Update docstring.
4563
4564 2000-03-24 Gerd Moellmann <gerd@gnu.org>
4565
4566 * indent.c (Fvertical_motion): Always use the current buffer.
4567 Temporarily change the window's buffer, if necessary.
4568
4569 2000-03-23 Gerd Moellmann <gerd@gnu.org>
4570
4571 * xterm.c (fast_find_position): Make sure not to consider rows
4572 not visible in the window.
4573
4574 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
4575
4576 * regex.c (enum syntaxcode): Provide default for non-Emacs.
4577 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
4578
4579 2000-03-22 Jason Rumney <jasonr@gnu.org>
4580
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.
4586
4587 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
4588 (QCdata): Moved to xdisp.c.
4589
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
4597 with TODO comment.
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.
4601
4602 2000-03-22 Jason Rumney <jasonr@gnu.org>
4603
4604 * makefile.nt (w32bdf.obj): Update dependencies.
4605
4606 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
4607
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.
4612
4613 * w32term.c: Include fontset.h after dispextern.h.
4614 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
4615 updated.
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.
4635
4636 2000-03-22 Ken Raeburn <raeburn@gnu.org>
4637
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.
4644
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):
4657 Likewise.
4658 * syntax.c (update_syntax_table): Likewise.
4659
4660 * intervals.c (reproduce_tree_obj): New function, like
4661 reproduce_tree but takes a Lisp_Object for the parent. Declare
4662 with prototype.
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.
4667
4668 2000-03-22 Gerd Moellmann <gerd@gnu.org>
4669
4670 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
4671 as strings only if both are known to be strings.
4672
4673 * s/openbsd.h (LIBS_TERMCAP): Undef.
4674
4675 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
4676
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.
4690
4691 2000-03-22 Kenichi Handa <handa@etl.go.jp>
4692
4693 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4694 FACE_FOR_CHAR): Define them differently for the configuration of
4695 --without-x.
4696
4697 2000-03-21 Dave Love <fx@gnu.org>
4698
4699 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
4700 doc string.
4701
4702 2000-03-21 Gerd Moellmann <gerd@gnu.org>
4703
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.
4708
4709 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
4710
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.
4714
4715 * Makefile.in (fontset.o): Depend on dispextern.h.
4716
4717 * alloc.c (mark_face_cache): Don't mark face->registry.
4718
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.
4728
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.
4739
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
4743 removed.
4744 (my_strcasecmp): Function removed.
4745 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
4746 variables.
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):
4755 New functions.
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):
4760 Functions removed.
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.
4766
4767 * frame.h (struct frame): Member `fontset_data' removed.
4768 (FRAME_FONTSET_DATA): Macro removed.
4769
4770 * frame.c (make_frame): Don't allocate f->fontset_data.
4771 (Fdelete_frame): Don't free f->fontset_data.
4772
4773 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
4774
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):
4779 Likewise.
4780 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
4781 FACE_FOR_CHARSET.
4782 (get_next_display_element, append_space,
4783 extend_face_to_end_of_line): Likewise.
4784
4785 * xfaces.c (Qx_charset_registry, Vface_default_registry):
4786 Variables removed.
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
4815 former face here.
4816 (realize_face): Argument changed. Caller changed. Remove face
4817 with the arg former_face_id in advance. Load font for the new
4818 face.
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
4822 here.
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
4826 DEFAULT_FACE_ID.
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.
4831
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
4839 changed.
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.
4855
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.
4859
4860 * fns.c (optimize_sub_char_table): New function.
4861 (Foptimize_char_table): New function.
4862 (syms_of_fns): Defsubr Soptimize_char_table.
4863
4864 2000-03-20 Gerd Moellmann <gerd@gnu.org>
4865
4866 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
4867 only if buffer is displayed in some window.
4868
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.
4873
4874 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
4875
4876 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
4877
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
4887 optimization.
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.
4896
4897 2000-03-19 Gerd Moellmann <gerd@gnu.org>
4898
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
4901 of the visual.
4902
4903 * term.c (calculate_costs): Remove code dealing with X frames.
4904
4905 2000-03-19 Richard M. Stallman <rms@gnu.org>
4906
4907 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
4908
4909 2000-03-18 Gerd Moellmann <gerd@gnu.org>
4910
4911 * lread.c (read_integer): Unread the last char not consumed.
4912
4913 2000-03-17 Gerd Moellmann <gerd@gnu.org>
4914
4915 * xterm.c (x_update_window_cursor): Don't update in frames
4916 which are in the process of being deleted.
4917
4918 2000-03-16 Gerd Moellmann <gerd@gnu.org>
4919
4920 * Makefile.in (mostlyclean): Add `*.core'.
4921 (clean): Add `bootstrap-emacs'.
4922
4923 * lread.c (read_integer): New function.
4924 (read1): Support read syntax #o, #x, #b, #r.
4925
4926 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
4927
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)'
4943 wrapper.
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.
4954
4955 2000-03-15 Gerd Moellmann <gerd@gnu.org>
4956
4957 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
4958 a sole completion.
4959
4960 * process.c (send_process): Add a hint that the function
4961 can call Lisp code to its comment.
4962
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.
4968
4969 2000-03-14 Gerd Moellmann <gerd@gnu.org>
4970
4971 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
4972
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.
4976
4977 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
4978
4979 * xfns.c (X_I18N_INHIBITED): Don't define.
4980 (create_frame_xic): Remove conditional compilation on
4981 X_I18N_INHIBITED.
4982 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
4983
4984 * config.in (HAVE_X_I18N): Moved here from xterm.h.
4985 (HAVE_X11R6_XIM): Define.
4986
4987 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
4988
4989 * xterm.c (x_term_init): Add support for X resource `synchronous'.
4990 If set, call XSynchronize.
4991
4992 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
4993
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
4998 char'.
4999 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
5000 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
5001 code duplication.
5002
5003 * charset.h (GET_CHAR_AFTER_2): Remove.
5004 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
5005
5006 2000-03-12 Ken Raeburn <raeburn@gnu.org>
5007
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.
5011
5012 2000-03-12 Dave Love <fx@gnu.org>
5013
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.
5017
5018 2000-03-12 Gerd Moellmann <gerd@gnu.org>
5019
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.
5022
5023 * fileio.c (Fread_file_name): Handle case that DIR contains a
5024 file name.
5025
5026 * window.c (Fsave_window_excursion): Doc fix.
5027
5028 * xfns.c (x_defined_color): Rewritten to use
5029 x_allocate_nearest_color.
5030
5031 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5032
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
5043 type has changed.
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).
5047
5048 2000-03-09 Gerd Moellmann <gerd@gnu.org>
5049
5050 * fns.c (Fy_or_n_p): Cancel busy-cursor.
5051
5052 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
5053
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.
5058
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.
5063
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
5070 re_opcode_t.
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
5084 macros.
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
5087 of it instead.
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):
5094 Remove.
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.
5134
5135 2000-03-08 Dave Love <fx@gnu.org>
5136
5137 * config.in: Don't depend on __STDC__ for volatile.
5138 Add POINTER_TYPE, PTR, PROTOTYPES.
5139
5140 * hftctl.c, strftime.c: Use PROTOTYPES.
5141 * eval.c (find_handler_clause): Likewise.
5142
5143 * mem-limits.h: Use POINTER_TYPE.
5144
5145 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
5146 (memory_warnings): Declare using POINTER_TYPE.
5147
5148 2000-03-08 Gerd Moellmann <gerd@gnu.org>
5149
5150 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
5151
5152 * xdisp.c (display_echo_area): Temporarily inhibit garbage
5153 collection.
5154
5155 * xfns.c: Remove obsolete code in #if 0.
5156 (Fx_focus_frame): New function.
5157
5158 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5159
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.
5178
5179 * coding.h (CODING_CATEGORY_IDX_UTF_8,
5180 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
5181 macros.
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.
5189
5190 2000-03-07 Gerd Moellmann <gerd@gnu.org>
5191
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.
5194
5195 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
5196 close the display with XtCloseDisplay. This caused a bus error
5197 on OpenWindows.
5198
5199 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
5200 complete but not unique.
5201
5202 2000-03-06 Gerd Moellmann <gerd@gnu.org>
5203
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.
5207
5208 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
5209 orig_height if set.
5210
5211 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
5212 orig_height if set.
5213
5214 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5215
5216 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
5217 glyph matrices have been freed.
5218
5219 2000-03-05 Gerd Moellmann <gerd@gnu.org>
5220
5221 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
5222 (bootstrap-temacs): Set LC_ALL to C like for temacs.
5223
5224 * xfns.c (QCdata): Moved to xdisp.c.
5225
5226 * xdisp.c (QCdata): Moved here from xfns.c.
5227 (syms_of_xdisp): Initialize QCdata.
5228
5229 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
5230
5231 * window.c (coordinates_in_window): Use
5232 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
5233 FRAME_INTERNAL_BORDER_WIDTH.
5234
5235 * xdisp.c (try_window_id): Recompute unchanged information if
5236 it is obviously invalid.
5237
5238 * xterm.c (x_term_init): Create a colormap if not using the
5239 default visual.
5240
5241 * xterm.h (select_visual): Change prototype.
5242
5243 * xfns.c (select_visual): Rewritten. Recognize user-specified
5244 visual classes.
5245 (visual_classes): New variable.
5246
5247 2000-03-04 Gerd Moellmann <gerd@gnu.org>
5248
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
5253 specially.
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.
5259
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.
5263
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
5268 FRAME_X_COLORMAP.
5269
5270 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5271 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5272
5273 2000-03-04 Jason Rumney <jasonr@gnu.org>
5274
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
5289 WINDOWSNT.
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.
5294
5295 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
5296 syms_of_w32faces.
5297
5298 * makefile.nt (w32faces.obj): Remove.
5299 (xfaces.obj): Add.
5300
5301 2000-03-03 Jason Rumney <jasonr@gnu.org>
5302
5303 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5304 correct parameters.
5305
5306 2000-03-03 Ken Raeburn <raeburn@gnu.org>
5307
5308 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5309 standard ELF definitions here if the system header does not.
5310
5311 2000-03-03 Gerd Moellmann <gerd@gnu.org>
5312
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.
5320
5321 2000-03-02 Gerd Moellmann <gerd@gnu.org>
5322
5323 * xterm.c (note_mouse_highlight): Return quickly if frame's
5324 glyph matrices have been freed.
5325
5326 * dispnew.c (free_glyphs): Block input while freeing matrices.
5327
5328 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5329
5330 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5331 x_free_colors.
5332
5333 * dispextern.h (x_free_colors): Add prototype.
5334
5335 * xfaces.c (x_free_colors): New function.
5336 (unload_color, free_face_colors): Use it.
5337
5338 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5339
5340 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5341
5342 * window.c [MSDOS]: Include msdos.h.
5343
5344 2000-03-02 Dave Love <fx@gnu.org>
5345
5346 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5347
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.
5350
5351 2000-03-02 Kenichi Handa <handa@etl.go.jp>
5352
5353 * coding.c (coding_save_composition): Be sure to allocate
5354 composition data area in coding even if there's no composition in
5355 the current run.
5356
5357 2000-03-01 Jason Rumney <jasonr@gnu.org>
5358
5359 * w32term.c: Equivalent changes to those made to xterm.c on
5360 2000-02-25 and 2000-02-24.
5361
5362 * w32fns.c: Equivalent changes to those made to xfns.c on
5363 2000-02-25 and 2000-02-21.
5364
5365 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5366 correct line-end convention is followed.
5367
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.
5375
5376 2000-03-01 Gerd Moellmann <gerd@gnu.org>
5377
5378 * sysdep.c (start_of_text): Don't define this function for NetBSD
5379 with ELF.
5380
5381 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
5382 Don't define.
5383 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5384 (LINKER): Don't undef if __NetBSD__ is defined.
5385
5386 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5387
5388 * fileio.c [__NetBSD__]: Define `unix'.
5389
5390 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5391
5392 2000-02-29 Gerd Moellmann <gerd@gnu.org>
5393
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.
5398
5399 * atimer.c (cancel_atimer): Handle canceling an atimer when
5400 some timers are stopped.
5401
5402 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
5403 after canceling it.
5404
5405 * fns.c (maybe_resize_hash_table): Handle case of new size
5406 coming out as being the same as old size.
5407
5408 2000-02-27 Jason Rumney <jasonr@gnu.org>
5409
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
5417 as 2 button mice.
5418 * w32gui.h (struct W32FontStruct): Revert last change after change
5419 to xdisp.c.
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.
5433
5434 2000-02-27 Dave Love <fx@gnu.org>
5435
5436 * lisp.h: Add a bunch of prototypes.
5437
5438 2000-02-26 Kenichi Handa <handa@etl.go.jp>
5439
5440 * keyboard.c (read_char): Set `usec' correctly.
5441
5442 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5443
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.
5448
5449 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5450
5451 * emacs.c (main): Remove code snippet commented out with `//'.
5452
5453 2000-02-25 Richard M. Stallman <rms@gnu.org>
5454
5455 * fileio.c (Ffile_symlink_p): If result starts with a `/'
5456 and contains a `:', prepend `/:'.
5457
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.
5464
5465 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5466
5467 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
5468
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
5472 variables.
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.
5477
5478 * minibuf.c (read_minibuf): Cancel busy-cursor.
5479
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
5484 cursor timer.
5485
5486 * process.c (wait_reading_process_input): Remove busy-cursor code.
5487
5488 * eval.c (Fsignal): Call cancel_busy_cursor instead of
5489 Fx_hide_busy_cursor.
5490
5491 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
5492 Remove prototyoes.
5493 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
5494
5495 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
5496
5497 * xterm.c (XTread_socket): Remove busy-cursor code.
5498
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.
5505
5506 * lread.c (Fload): Use `xfree' instead of `free'.
5507 (init_obarray): Use `xmalloc' instead of `malloc'.
5508
5509 * window.c (Fset_window_buffer): Set WINDOW to the window
5510 after decoding.
5511 (coordinates_in_window): Take frame's internal border width
5512 into account.
5513
5514 2000-02-24 Gerd Moellmann <gerd@gnu.org>
5515
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.
5519
5520 * xdisp.c (cursor_in_non_selected_windows): New variable.
5521 (syms_of_xdisp): DEFVAR_BOOL it.
5522
5523 2000-02-23 Gerd Moellmann <gerd@gnu.org>
5524
5525 * data.c (Fstring_to_number): If number is greater than what
5526 fits into an integer, return a float.
5527
5528 * eval.c (specbind): Remove references to
5529 keyword_symbols_constant_flag.
5530
5531 * data.c (keyword_symbols_constant_flag): Removed.
5532 (Fmakunbound, set_internal, syms_of_data): Remove references to
5533 keyword_symbols_constant_flag.
5534
5535 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
5536
5537 2000-02-23 Kenichi Handa <handa@etl.go.jp>
5538
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
5545 characters.
5546
5547 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5548
5549 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
5550 a deleted frame.
5551
5552 2000-02-21 Gerd Moellmann <gerd@gnu.org>
5553
5554 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
5555
5556 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5557 (x_non_menubar_window_to_frame): Check the busy-cursor window.
5558
5559 2000-02-21 Dave Love <fx@gnu.org>
5560
5561 * frame.c (Vmouse_position_function): New variable.
5562 (Fmouse_position): Use it.
5563 (syms_of_frame): Install it.
5564
5565 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
5566
5567 2000-02-20 Gerd Moellmann <gerd@gnu.org>
5568
5569 * fileio.c (Finsert_file_contents): Unbind the binding of
5570 standard-output done by temp_output_buffer_setup.
5571
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.
5576
5577 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
5578
5579 2000-02-20 Richard M. Stallman <rms@gnu.org>
5580
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.
5585
5586 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
5587
5588 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
5589 produced for CODING_MODE_LAST_BLOCK requires.
5590
5591 2000-02-18 Dave Love <fx@gnu.org>
5592
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
5596 use of float value.
5597 (syms_of_keyboard): Change Vecho_keystrokes declaration.
5598
5599 * lread.c: Undef feature selection macros before defining.
5600
5601 2000-02-18 Gerd Moellmann <gerd@gnu.org>
5602
5603 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
5604 for symbols other than the symbol in question.
5605
5606 2000-02-17 Dave Love <fx@gnu.org>
5607
5608 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
5609
5610 2000-02-17 Gerd Moellmann <gerd@gnu.org>
5611
5612 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
5613
5614 * alloc.c (enum mem_type): Compile unconditionally.
5615
5616 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
5617
5618 * xfaces.c (tty_defined_color): Don't return faulire indication
5619 for unspecified-fg and unspecified-bg pseudo-colors.
5620
5621 2000-02-17 Gerd Moellmann <gerd@gnu.org>
5622
5623 * alloc.c (mark_object): Don't mark symbol names in pure space.
5624 (gc_sweep): Don't unmark symbol names in pure space.
5625
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.
5631
5632 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
5633
5634 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
5635 allocate_buffer instead of xmalloc.
5636
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.
5661
5662 * alloc.c: Add comments throughout the file.
5663
5664 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
5665 that unblocks alarms.
5666
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'.
5670
5671 * frame.c (make_frame): Set frame initiallly to `garbaged'.
5672
5673 2000-02-17 Kenichi Handa <handa@etl.go.jp>
5674
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.
5678
5679 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
5680
5681 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
5682 depends on the previous behavior.
5683
5684 2000-02-16 Gerd Moellmann <gerd@gnu.org>
5685
5686 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
5687
5688 2000-02-15 Gerd Moellmann <gerd@gnu.org>
5689
5690 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
5691
5692 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
5693 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
5694 write(2).
5695
5696 2000-02-15 Richard M. Stallman <rms@gnu.org>
5697
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.
5701
5702 * eval.c (specbind): For buffer-local value,
5703 record the current buffer also.
5704 (unbind_to): Cope with that change.
5705
5706 2000-02-15 Gerd Moellmann <gerd@gnu.org>
5707
5708 * window.c (Fsave_window_excursion): Doc fix.
5709
5710 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
5711
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.
5718
5719 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5720
5721 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
5722 `completion-regexp-list' in the docstring.
5723
5724 2000-02-14 Dave Love <fx@gnu.org>
5725
5726 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
5727
5728 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5729
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.
5735
5736 2000-02-12 Dave Love <fx@gnu.org>
5737
5738 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
5739 Alpha.
5740
5741 2000-02-12 Gerd Moellmann <gerd@gnu.org>
5742
5743 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
5744
5745 2000-02-12 Dave Love <fx@gnu.org>
5746
5747 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
5748
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.
5752
5753 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
5754
5755 * s/nextstep.h: Don't define HAVE_ALLOCA.
5756
5757 * config.in: Add vfork bits.
5758
5759 2000-02-12 Gerd Moellmann <gerd@gnu.org>
5760
5761 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
5762 unwind function to undo the effect of stopping atimers.
5763
5764 * keyboard.c (bind_polling_period): Stop all timers except
5765 poll_timer.
5766
5767 * atimer.c (stopped_atimers): New variable.
5768 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
5769 New functions.
5770
5771 * atimer.h (stop_other_atimers, run_all_atimers)
5772 (unwind_stop_other_atimers): Add function prototypes.
5773
5774 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
5775
5776 2000-02-11 Ken Raeburn <raeburn@gnu.org>
5777
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.
5781
5782 2000-02-11 Kenichi Handa <handa@etl.go.jp>
5783
5784 * insdel.c (del_range_1): Call update_compositions.
5785 (del_range_both): Call update_compositions just once..
5786
5787 2000-02-10 Dave Love <fx@gnu.org>
5788
5789 * xfns.c (create_frame_xic): Fix initialization of automatic
5790 aggregates for pcc.
5791
5792 2000-02-09 Kenichi Handa <handa@etl.go.jp>
5793
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.
5798
5799 2000-02-08 Dave Love <fx@gnu.org>
5800
5801 * lread.c (__EXTENSIONS__): Define.
5802
5803 2000-02-08 Gerd Moellmann <gerd@gnu.org>
5804
5805 * puresize.h (BASE_PURESIZE): Increase to 650000.
5806
5807 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5808
5809 * msdos.c (XMenuActivate): Turn off the cursor after displaying
5810 the help message.
5811
5812 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5813
5814 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
5815 md, mh, mb, mr, and me to the fake termcap entry.
5816
5817 2000-02-06 Ken Raeburn <raeburn@gnu.org>
5818
5819 * sound.c (sound_cleanup): Don't call device close routine if the
5820 function pointer is null.
5821
5822 2000-02-06 Andrew Innes <andrewi@gnu.org>
5823
5824 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
5825 around image definitions and prototypes.
5826 (gamma_correct) [WINDOWSNT]: New prototype.
5827
5828 * w32term.c (x_make_frame_visible): Replace call to
5829 input_poll_signal with poll_for_input.
5830
5831 * window.c [WINDOWSNT]: Include w32term.h.
5832
5833 * xdisp.c [WINDOWSNT]: Include w32term.h.
5834
5835 * makefile.nt: Add dependencies on w32gui.h.
5836 (OBJ1): Include atimer.obj.
5837 ($(BLD)\atimer.obj): New dependency rule.
5838
5839 * w32.c (sigmask): New function (does nothing).
5840 (sigunblock): Ditto.
5841
5842 * frame.c [WINDOWSNT]: Include w32term.h.
5843
5844 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
5845
5846 * lread.c (syms_of_lread): Fix literal newlines.
5847
5848 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
5849 the string constant limit (2048 bytes) in MSVC.
5850 (main): Ditto.
5851
5852 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
5853
5854 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
5855 area.
5856 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
5857 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
5858 dispatch the event.
5859
5860 2000-02-04 Dave Love <fx@gnu.org>
5861
5862 * fileio.c: Remove some unused vars.
5863 (_GNU_SOURCE): Define (for euidaccess).
5864
5865 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
5866
5867 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
5868 gcpro1, gcpro2.
5869 (read_minibuf): Deal with allow_props correctly.
5870
5871 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
5872
5873 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
5874
5875 2000-02-03 Ken Raeburn <raeburn@gnu.org>
5876
5877 * search.c (compile_pattern): If a cache entry has a nil regexp,
5878 fill in that entry instead of clobbering a previously cached
5879 string regexp.
5880
5881 2000-02-02 Ken Raeburn <raeburn@gnu.org>
5882
5883 * puresize.h (BASE_PURESIZE): Increase to 610000.
5884
5885 2000-02-02 Gerd Moellmann <gerd@gnu.org>
5886
5887 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
5888 can GC.
5889
5890 2000-02-02 Kenichi Handa <handa@etl.go.jp>
5891
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.
5896
5897 * fileio.c (e_write): Fix the handling of
5898 CODING_FINISH_INSUFFICIENT_SRC.
5899
5900 2000-02-01 Dave Love <fx@gnu.org>
5901
5902 * editfns.c (Fpropertize): Doc fix.
5903
5904 * process.c (Fstart_process): Doc fix.
5905
5906 * eval.c: Fix various doc strings not to duplicate information
5907 from help-manyarg-func-alist.
5908
5909 * window.c (Fset_window_margins): Don't make interactive. Doc
5910 fix.
5911
5912 * doc.c (Vhelp_manyarg_func_alist): New variable.
5913 (Fdocumentation): Use it.
5914 (syms_of_doc): Define it.
5915
5916 2000-01-31 Gerd Moellmann <gerd@gnu.org>
5917
5918 * xterm.c (xim_open_dpy): Remove unused local variable.
5919
5920 * emacs.c (USAGE): Use term `display options' instead of `X
5921 options'.
5922
5923 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
5924 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5925
5926 * fns.c (sweep_weak_table): New function.
5927 (sweep_weak_hash_tables): Use it. Keep on marking until there
5928 is no more change.
5929
5930 2000-01-30 Gerd Moellmann <gerd@gnu.org>
5931
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
5934 closed display.
5935
5936 2000-01-30 Jason Rumney <jasonr@gnu.org>
5937
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
5941 `insist' parameter.
5942
5943 * makefile.nt: Remove dosfns.obj.
5944
5945 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
5946
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.
5955
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.
5958
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.
5964
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
5969 fill attribute.
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.
5979
5980 2000-01-29 Gerd Moellmann <gerd@gnu.org>
5981
5982 * xfns.c (xic_set_preeditarea): Take window parameter and
5983 window-relative pixel-positions.
5984
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.
5988
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.
5995
5996 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
5997
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
6003 area.
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.
6012
6013 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
6014 and `xim_styles'.
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.
6020
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.
6026
6027 2000-01-28 Dave Love <fx@gnu.org>
6028
6029 * s/irix6-5.h: Revert last change after change to irix5-0.h.
6030
6031 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
6032
6033 2000-01-28 Gerd Moellmann <gerd@gnu.org>
6034
6035 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
6036 for *scratch* if it already existed.
6037
6038 * emacs.c (USAGE): New macro.
6039 (main): Use it to display usage information.
6040
6041 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6042
6043 Support for the menu-help feature:
6044
6045 * msdos.h: Change prototypes of XMenuAddSelection and
6046 XMenuActivate.
6047
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
6058 XMenu structure.
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.
6064
6065 2000-01-27 Gerd Moellmann <gerd@gnu.org>
6066
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.
6070
6071 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6072
6073 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
6074 and EMACS_SET_USECS.
6075
6076 2000-01-26 Dave Love <fx@gnu.org>
6077
6078 * editfns.c (Fchar_after, Fchar_before): Doc fix.
6079
6080 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
6081 an error may be signalled.
6082
6083 2000-01-26 Gerd Moellmann <gerd@gnu.org>
6084
6085 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
6086 LD_SWITCH_SYSTEM inherited from irix5-0.h.
6087
6088 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
6089
6090 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6091
6092 * charset.c (Fstring): If there is a multibyte char among
6093 the args, always return a multibyte string.
6094
6095 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6096
6097 * sysdep.c (sys_select): Turn atimers off and on instead of
6098 recording and restoring old alarm handler
6099
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.
6107
6108 * emacs.c (main): Call init_atimer.
6109
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.
6116
6117 * keyboard.h (polling_for_input): Removed.
6118
6119 * atimer.h, atimer.c: New files.
6120
6121 * Makefile.in (obj): Add atimer.o.
6122 (atimer.o): New target.
6123
6124 * blockinput.h (pending_atimers): Add extern declaration.
6125 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
6126
6127 * lisp.h (popup_activated_flag): Add extern declaration.
6128
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.
6133
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.
6143
6144 2000-01-24 Dave Love <fx@gnu.org>
6145
6146 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
6147 Don't use -cckr -- apparently not now necessary.
6148
6149 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6150
6151 * msdos.c (IT_menu_display): Truncate long menu lines at the right
6152 screen boundary.
6153
6154 2000-01-23 Jason Rumney <jasonr@gnu.org>
6155
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
6159 to w32_clear_rect.
6160
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
6166 one.
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.
6176
6177 2000-01-22 Jason Rumney <jasonr@gnu.org>
6178
6179 * makefile.nt (intervals.obj, composite.obj): New modules.
6180 (composite.h): Added as dependency where appropriate.
6181
6182 * w32gui.h (XGCValue): New struct for emulating X GCs.
6183
6184 * w32term.h (XCharStruct): New struct for emulating X.
6185
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.
6189
6190 * w32faces.c: Complete rewrite for new redisplay based on new
6191 xfaces.c.
6192
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
6197 width.
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.
6203
6204 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6205 Use SELECTED_FRAME macro.
6206
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.
6211 Callers updated.
6212 Formatting changes to reduce unnecessary diffs with xmenu.c.
6213
6214 * w32select.c (Fw32_set_clipboard_data): Update call to
6215 find_charset_in_str.
6216
6217 * w32term.c: Complete rewrite for new redisplay based on new
6218 xterm.c with necessary sections merged back in from old w32term.c.
6219
6220 2000-01-21 Richard M. Stallman <rms@gnu.org>
6221
6222 * data.c (set_internal): Further fix in same criterion.
6223
6224 2000-01-20 Richard M. Stallman <rms@gnu.org>
6225
6226 * data.c (set_internal): Fix the criteria for whether
6227 to swap out the old cached binding.
6228
6229 2000-01-19 Dave Love <fx@gnu.org>
6230
6231 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
6232
6233 2000-01-18 Kenichi Handa <handa@etl.go.jp>
6234
6235 * regex.c (re_compile_fastmap): While checking a range table for
6236 `charset', skip flag bits for a character class correctly.
6237
6238 2000-01-17 Gerd Moellmann <gerd@gnu.org>
6239
6240 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
6241
6242 * xfns.c (x_window): Call lw_create_widget with new parameter
6243 list.
6244
6245 * widget.c (EmacsFrameSetCharSize): Change size of children first
6246 because of problems with main window geometry management under
6247 Lesstif.
6248
6249 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
6250 MENU_ITEMS_ITEM_.*.
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
6258 parameter list.
6259 (xmenu_show, xdialog_show): Ditto.
6260
6261 2000-01-13 Gerd Moellmann <gerd@gnu.org>
6262
6263 * sound.c (Fplay_sound): Improve doc string.
6264
6265 2000-01-11 Richard M. Stallman <rms@gnu.org>
6266
6267 * lisp.h (set_internal): Enter the new arg.
6268
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.
6273
6274 * data.c (set_internal): New arg BUF.
6275
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.
6279
6280 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6281
6282 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6283 xprintsym.
6284
6285 2000-01-11 Richard M. Stallman <rms@gnu.org>
6286
6287 * minibuf.c (Ftry_completion): Doc fix.
6288
6289 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6290
6291 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6292 vector, too.
6293
6294 2000-01-11 Andreas Schwab <schwab@suse.de>
6295
6296 * coding.c (code_convert_region): Initialize total_skip.
6297
6298 2000-01-08 Dave Love <fx@gnu.org>
6299
6300 * eval.c (Fuser_variable_p): Check customizability too.
6301
6302 2000-01-07 Gerd Moellmann <gerd@gnu.org>
6303
6304 * minibuf.c (Fcompleting_read): Doc fix.
6305
6306 2000-01-05 Gerd Moellmann <gerd@gnu.org>
6307
6308 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6309 -L /usr/local/lib.
6310
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
6313 IC for it.
6314 (x_window): Call x_create_im.
6315
6316 2000-01-04 Gerd Moellmann <gerd@gnu.org>
6317
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.
6322
6323 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6324 macros statement form.
6325
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
6335 needed header size.
6336 (wav_play, au_play): Play sounds from string data.
6337
6338 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6339
6340 * lisp.h: Add prototype for allocate_string_data.
6341
6342 * alloc.c (Fgarbage_collect): Return number of live and free
6343 strings.
6344
6345 * alloc.c (mark_buffer): Remove code in #if 0.
6346 (gc_sweep): Ditto.
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.
6352
6353 * alloc.c: General cleanup in comments etc. Remove conditional
6354 compilation for `standalone'.
6355
6356 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6357
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
6378 differently.
6379 (survives_gc_p): Test marked strings differently.
6380 (gc_sweep): Sweep strings differently, unmark strings in
6381 symbol names.
6382 (compact_strings): Removed.
6383
6384 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6385
6386 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6387 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6388
6389 2000-01-04 Kenichi Handa <handa@etl.go.jp>
6390
6391 * fileio.c (Finsert_file_contents): Signal error if visiting file
6392 in a non-empty buffer.
6393
6394 * term.c (encode_terminal_code): Fix the previous change.
6395
6396 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6397
6398 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6399 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
6400
6401 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
6402
6403 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6404
6405 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
6406 need to test for MSDOS frames.
6407
6408 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6409
6410 * dosfns.c (unspecified_colors): Remove.
6411 (msdos_stdcolor_idx): Use global variables unspecified_fg and
6412 unspecified_bg.
6413 (msdos_stdcolor_name): Return strings for unspecified fore- and
6414 back-ground colors.
6415
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
6419 back-ground colors.
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
6423 string.
6424
6425 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6426
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
6431 table.
6432 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
6433 returns 0.
6434
6435 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6436
6437 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
6438 (Fcolor_supported_p): Renamed from face-color-supported-p.
6439
6440 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6441
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.
6447
6448 * term.c (Ftty_display_color_p): Accept an optional argument
6449 FRAME.
6450
6451 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6452
6453 * term.c (insert_glyphs): Pass glyph, not &glyph, to
6454 encode_terminal_code.
6455
6456 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6457
6458 * dispnew.c (mode_line_string): Support termcap frames as well.
6459
6460 2000-01-01 Gerd Moellmann <gerd@gnu.org>
6461
6462 * syntax.c (Fforward_word): Undo previous change.
6463
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.
6468
6469 * syntax.c (Fforward_word): Notice field boundaries only if
6470 inhibit-field-text-motion is nil.
6471
6472 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
6473
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.
6478
6479 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
6480 All calls adjusted.
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.
6485
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.
6496
6497 See ChangeLog.8 for earlier changes.
6498
6499 ;; Local Variables:
6500 ;; coding: iso-2022-7bit
6501 ;; End: