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