(char_to_string): Check the character validity.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dc1e502d
SM
12000-08-25 Stefan Monnier <monnier@cs.yale.edu>
2
3 * regex.c (PUSH_FAILURE_COUNT): New macro.
4 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5 Handle popping of a register's or a counter's data.
6 (POP_FAILURE_POINT): Use the new name.
7 (re_match_2_internal): Push counter data on the stack for succeed_n,
8 jump_n and set_number_at and remove misleading dead code in succeed_n.
9
bd9d0f3f
GM
102000-08-25 Gerd Moellmann <gerd@gnu.org>
11
12 * xdisp.c (redisplay_internal): If considering all windows on all
13 frames, update the display for each frame as soon as possible,
14 instead of first building all desired matrices for all frames, and
15 then updating them all.
16 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
17
aa5b8e15
GM
182000-08-24 Gerd Moellmann <gerd@gnu.org>
19
17494071
GM
20 * bytecode.c (mark_byte_stack): Add a comment.
21
aa5b8e15
GM
22 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
23 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
24 a graphical frame.
25
c543db81
KH
262000-08-24 Kenichi Handa <handa@etl.go.jp>
27
d246d5f5
KH
28 * minibuf.c (do_completion): Always use compare-string, not
29 string-equal because the latter doesn't pay attention to
30 multibyteness of strings.
31
c543db81
KH
32 * process.c (create_process): Don't setup raw-text coding here.
33 (Fopen_network_stream): Don't set coding->src_multibyte and
34 coding->dst_multibyte here.
35 (read_process_output): For process filter, return unibyte string
36 if default-enable-multibyte-characters is nil.
37 (send_process): If OBJECT is multibyte text, be sure to encoded it
38 by the specified coding system for the process. Otherwise, setup
39 raw-text coding.
40 (init_process): Don't initialize default-process-coding-system
41 here.
42
9b47cfe0
EZ
432000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
44
45 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
46 <scroll-down-aggressively>: Likewise.
47
f5a36960
KH
482000-08-23 Kenichi Handa <handa@etl.go.jp>
49
50 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
51 zero. Set coding->produced_char correctly.
52
69a7ffa7
AI
532000-08-22 Andrew Innes <andrewi@gnu.org>
54
55 * makefile.w32-in: New file.
56
57 * unexw32.c (unexec): Ignore old_name, and use the actual location
58 of the current executable instead. Base new_name on this.
59
60 * w32proc.c (create_child): Remove reference to security
61 descriptor, which isn't needed and doesn't compile with mingw32.
62
63 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
64 up dllimport attributes.
65 (x_update_window_end): Update prototype.
66
67 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
68 extern, which screws up dllimport attributes.
69
70 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
71 up dllimport attributes.
72
73 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
74 screws up dllimport attributes.
75
76 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
77 up dllimport attributes.
78 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
79 screws up dllimport attributes.
80
81 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
82 up dllimport attributes.
83
84 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
85 screws up dllimport attributes.
86
87 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
88 screws up dllimport attributes.
89
90 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
91 up dllimport attributes.
92
93 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
94 unnecessary extern, which screws up dllimport attributes.
95 (main): Ditto.
96
97 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
98 up dllimport attributes.
99
100 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
101 unnecessary extern, which screws up dllimport attributes.
102
103 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
104 screws up dllimport attributes.
105
106 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
107 up dllimport attributes.
108
109 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
110
111 * w32bdf.c (search_file_line):
112 (set_bdf_font_info):
113 (seek_char):
114 (w32_get_bdf_glyph):
115 (w32_BDF_to_x_font): Fix compile warnings.
116
117 * w32menu.c: Include keyboard.h before frame.h. Fix compile
118 warnings.
119
120 * w32select.c: Include keyboard.h before frame.h.
121
122 * w32fns.c (max): Define macro.
123 (JOHAB_CHARSET): Define if not known.
124 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
125 (Fx_show_tip): Synch with X version.
126
127 * w32xfns.c: Include keyboard.h before frame.h.
128
129 * w32fns.c: Include keyboard.h before frame.h.
130
131 * w32term.c: Include keyboard.h before frame.h.
132
133 * fontset.c: Include keyboard.h before frame.h.
134
135 * w32inevt.c: Include keyboard.h before frame.h.
136 (MOUSE_MOVED): Define if not known.
137
138 * minibuf.c: Include keyboard.h before frame.h.
139
140 * keyboard.c: Include keyboard.h before frame.h.
141
142 * indent.c: Include keyboard.h before frame.h.
143
144 * dispnew.c: Include keyboard.h before frame.h.
145
146 * buffer.c: Include keyboard.h before frame.h.
147
148 * alloc.c: Include keyboard.h before frame.h.
149
150 * print.c: Include keyboard.h before frame.h.
151
152 * process.c: Include keyboard.h before frame.h.
153
154 * scroll.c: Include keyboard.h before frame.h.
155
156 * sysdep.c: Include keyboard.h before frame.h.
157
158 * term.c: Include keyboard.h before frame.h.
159
160 * window.c: Include keyboard.h before frame.h.
161
162 * xdisp.c: Include keyboard.h before frame.h.
163 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
164
165 * frame.c: Include keyboard.h before frame.h.
166
167 * w32heap.h: Undefine min, max.
168
169 * w32gui.h: Undefine min, max.
170
171 * unexw32.c: Change PUCHAR to PCHAR.
172 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
173 (relocate_offset):
174 (get_section_info):
175 (copy_executable_and_dump_data): Remove unnecessary static defs.
176 (copy_executable_and_dump_data): Fix compile warnings.
177
178 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
179
180 * w32console.c (min): Define macro.
181 (clear_frame, write_glyphs): Fix compile warning.
182
183 * w32proc.c (compare_env):
184 (find_child_console): Fix compile warning.
185
186 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
187 sys_errlist instead of _sys_errlist.
188 (get_emacs_configuration_options): New function.
189
190 * s/ms-w32.h (sys_nerr): Provide default definition.
191 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
192 name with _ prepended.
193 (NSIG): Define if not known.
194 (get_emacs_configuration): Provide extern declaration.
195 (get_emacs_configuration_options): Provide extern declaration.
196 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
197
198 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
199 (map_w32_filename):
200 (read_unc_volume): Fix compile warning.
201
202 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
203 definitions from being used.
204
205 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
206
207 * w32.c (unc_volume_file_attributes):
208 (open_unc_volume): Make arg const.
209
210 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
211 (read_input_waiting): Remove excess parameter.
212
213 * w32.c (init_environment): Call _access.
214 (check_windows_init_file): Call _close.
215 (init_user_info): Call _putenv.
216 (init_environment): Call _putenv and _strdup.
217 (init_ntproc): Reset volume info cache on startup.
218
219 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
220 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
221 cannot override the CRT malloc.
222
223 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
224 (LINK_FLAGS): Append to original value of LINK_FLAGS.
225
226 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
227 unless we are linking with a static CRT.
228 (RVA_TO_PTR): Cast result to unsigned char*.
229
230 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
231 (add_volume_info): Use xstrdup.
232
25060080
SM
2332000-08-22 Stefan Monnier <monnier@cs.yale.edu>
234
235 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
236 (do_completion, Fminibuffer_complete_word): Use it.
237 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
238 var so it can take non-boolean values.
239
6917e6bb
GM
2402000-08-21 Gerd Moellmann <gerd@gnu.org>
241
acb7cc89
GM
242 * editfns.c (find_field): Formatting changes.
243 (toplevel): Some old-style function forward declarations
244 changed to prototypes, some new protypes added, some functions
245 made static.
246
247 * lisp.h (set_time_zone_rule): Add prototype.
248 (use_dialog_box): External declaration.
249
0bbfdc25
GM
250 * keyboard.c (gen_help_event): Add parameter SIZE.
251 (kbd_buffer_events_waiting): Slightly rewritten.
252 (clear_event): New function.
253 (kbd_buffer_get_event): Use it, and clear the input_events of
254 HELP_EVENTs.
255 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
256 don't fill the newly created array with nils.
257 (toplevel): Convert some old-style function forward declarations
258 to prototypes.
259
260 * keyboard.h (gen_help_event): Change prototype.
261
262 * xterm.c (XTread_socket): Change calls to gen_help_event.
263
264 * w32term.c (w32_read_socket): Change calls to gen_help_event.
265
6917e6bb
GM
266 * eval.c (Fmacroexpand): Doc fix.
267
e5cd3d11
JR
2682000-08-20 Jason Rumney <jasonr@gnu.org>
269
270 * w32term.h (x_display_info_for_display): Remove as this function
271 does not exist on W32.
272
273 * w32term.c (help_echo_window): New variable.
274 (syms_of_w32term): staticpro it.
275 (note_mode_line_highlight): Set it.
276 (XTextExtents16): Removed as there is no equivalent on W32.
277 (x_compute_glyph_string_overhangs): Incomplete body removed, as
278 the X way of doing this will not work for W32.
279 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
280 (x_draw_image_foreground): Avoid drawing outside of the clip area
281 when image doesn't have a mask.
282 (note_mouse_highlight): Process overlays in the right order of
283 priority. Set help_echo_window.
284 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
285 because that's more visible for large images.
286
287 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
288 name to single_keymap_panes.
289 (w32_menu_show): Set wv->title when dealing with titles.
290 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
291
6e69ab8c
MB
2922000-08-21 Miles Bader <miles@gnu.org>
293
294 * minibuf.c (do_completion): Try again if we rewrite the input
295 string, but no completion was done, so that any completion message
296 will be correct.
297
511bd4eb
GM
2982000-08-20 Gerd Moellmann <gerd@gnu.org>
299
300 * xfaces.c (lface_equal_p): Compare strings differently.
301 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
302 (realize_tty_face): Use them.
303 (syms_of_xfaces): Initialize new variables.
304 (map_tty_color): New function, extracted from realize_tty_face.
305 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
306 foreground or background color, store the new color name in the
307 realized face; previous code trying to do this had no effect.
308 (realize_tty_face): Use map_tty_color.
309 (Fclear_face_cache): Set face_change_count and ensure thorough
310 redisplay.
311
1433385f
GM
3122000-08-19 Gerd Moellmann <gerd@gnu.org>
313
511bd4eb
GM
314 * undo.c (record_first_change, record_marker_adjustment): Don't
315 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 316
419ac0a2
KH
3172000-08-18 Kenichi Handa <handa@etl.go.jp>
318
319 * coding.c (decode_coding_string): Set members consumed,
320 consumed_char, produced, produced_char of *coding correctly. If
321 decode_coding doesn't consume any byte, don't try anymore.
322 (encode_coding_string): Likewise.
323
7eb9e30d
GM
3242000-08-18 Gerd Moellmann <gerd@gnu.org>
325
511bd4eb
GM
326 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
327 conditional have void type, for Standard C compilers.
7eb9e30d
GM
328
329 * xdisp.c (redisplay_internal): Compare windows for equality with
330 EQ, instead of applying XWINDOW to something that might not
331 be a window.
332
dd34a735
KH
3332000-08-18 Kenichi Handa <handa@etl.go.jp>
334
335 * fontset.c (Finternal_char_font): Search only the selected frame
336 for a window of the current buffer.
337
385ff9e3
GM
3382000-08-18 Gerd Moellmann <gerd@gnu.org>
339
511bd4eb 340 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
341 Lisp_Objects.
342
385ff9e3
GM
343 * keyboard.c (kbd_buffer_get_event): Handle the case that the
344 second half of a HELP_EVENT is found at the start of kbd_buffer.
345
d6abb4c7
MB
3462000-08-18 Miles Bader <miles@gnu.org>
347
4618074a
MB
348 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
349
d6abb4c7
MB
350 * editfns.c (save_restriction_save): Rewrite to use markers.
351 (save_restriction_restore): Rewrite to understand new form of data
352 saved by save_restriction_save.
353 (Fsave_restriction): Remove cautionary note in doc-string.
354
a7b28523
GM
3552000-08-17 Gerd Moellmann <gerd@gnu.org>
356
357 * fileio.c (build_annotations): Add a comment explaining the
358 return value of format-annotate-function. Replace a spurious call
359 to Flength with a CONSP test. Call format-annotate-function with
360 a fifth arg specifying how many times the function is been called
361 in a row, to let it choose temporary buffers appropriately.
362
03c9ed77
DL
3632000-08-17 Dave Love <fx@gnu.org>
364
365 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
366 declare make_temp_name twice.
367
368 * lread.c: Prototype readevalloop, load_unwind,
369 load_descriptor_unwind.
370 (unreadpure): Give it an arg.
371
372 * unexalpha.c: Prototype fatal_unexec, mark_x,
373 update_dynamic_symbols. Declare unexec as void.
374
375 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
376 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
377
378 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
379 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
380 DOUG_LEA_MALLOC.
381
382 * alloca.c: Use #error.
383 [POINTER_TYPE]: Use it.
384
385 * eval.c (Fdefvar): Doc fix.
386
387 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
388 INITIALIZE_INTERVAL.
389
390 * buffer.h: Avoid DECLARE_INTERVALS.
391
392 * config.in: Add size_t.
393
aae41d97
EZ
3942000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
395
396 * w16select.c (set_clipboard_data): If there's not enough memory
397 to put text into clipboard, return 1, as Fw16_set_clipboard_data
398 expects. In case of other failures, return 3.
399 (system_error_msg): New error message.
400 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
401 system_error_msg.
402
65aa5e85
GM
4032000-08-16 Gerd Moellmann <gerd@gnu.org>
404
405 * term.c (write_glyphs): Also turn off inverse video after turning
406 off other appearances in case TS_exit_attribute_mode is not equal
407 to TS_end_standout_mode.
408 (insert_glyphs): Turn inverse video on/off for each run of glyphs
409 with the same face.
410 (turn_off_face): Reset standout_mode only if
411 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
412 is equal to TS_end_standout_mode.
413
ece23901
KH
4142000-08-16 Kenichi Handa <handa@etl.go.jp>
415
9d7bcb2e
KH
416 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
417 sequence at the end of the source block.
418
ece23901
KH
419 * ccl.c (Fccl_program_p): Docstring modified.
420 (Fccl_execute): Likewise.
421 (Fccl_execute_on_string): Likewise.
422
5e30eaa2
EZ
4232000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
424
425 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
426
290602fd
KH
4272000-08-16 Kenichi Handa <handa@etl.go.jp>
428
429 The following changes are mainly to fix bugs of
430 encode/decode-coding-string failing if encoding/decoding return
431 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
432 variable conversion_buffer.
433
434 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
435 decrement dst_end to avoid buffer overflow in the later call of
436 string_as_multibyte
437
438 * coding.h (conversion_buffer_size, conversion_buffer)
439 (get_conversion_buffer): Extern deleted.
440
441 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
442 (conversion_buffer, conversion_buffer_size): Variables deleted.
443 (get_conversion_buffer): Function deleted.
444 (struct conversion_buffer): New structure.
445 (MAX_ALLOCA): New macro.
446 (allocate_conversion_buffer): New macro.
447 (extend_conversion_buffer, free_conversion_buffer): New functions.
448 (ccl_coding_driver): Set coding->result.
449 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
450 this is the last block of source.
451 (encode_coding): Likewise. Handle the source block as the last
452 one only when the whole source text is consumed.
453 (decode_coding_string): Handle the case that the output buffer is
454 too small to decode the whole source text. Use
455 allocate_conversion_buffer, extend_conversion_buffer and
456 free_conversion_buffer, not get_conversion_buffer.
457 (encode_coding_string): Likewise.
458 (init_coding): Function deleted.
459 (init_coding_once): Delete code to initialize
460 conversion_buffer_size.
461
462 * emacs.c (main): Don't call init_coding.
463
464 * msdos.c (IT_write_glyphs): Use a locally declared
465 conversion_buffer.
466
467 * term.c (write_glyphs): Use a locally declared conversion_buffer.
468 (insert_glyphs): Likewise.
469
470 * w32console.c (write_glyphs): Use a locally declared
471 conversion_buffer.
472
b9f80d41
EZ
4732000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
474
475 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
476 member of display_info is NULL.
477
32dc52f7
GM
4782000-08-15 Gerd Moellmann <gerd@gnu.org>
479
58ed0d3b
GM
480 * alloc.c (compact_small_strings): Use safe_bcopy, add an
481 assertion.
482
32dc52f7 483 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 484 appearances with capability `me'.
32dc52f7
GM
485 (write_glyphs): Switch on inverse video before each face change.
486
4eb22d33
DL
4872000-08-14 Dave Love <fx@gnu.org>
488
489 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
490 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
491 (lisp_free): Declare and make static.
492
493 * window.c: Fix embedded comment.
494 (syms_of_window): Fix doc string.
495
90cbf47e
GM
4962000-08-14 Gerd Moellmann <gerd@gnu.org>
497
498 * keymap.c (push_key_description): If C without modifiers is < 32,
499 make sure to print `C-' before `M-', like in the manual.
500
440fc135
GM
5012000-08-11 Gerd Moellmann <gerd@gnu.org>
502
503 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
504 since they aren't relocated anymore.
505 (sxhash_string): Make sure returned hash code fits in a Lisp
506 integer.
507
508 * xdisp.c (try_cursor_movement): Fix handling of cursor in
509 partially visible line which is smaller than the window's
510 height.
511
6e264fad
KH
5122000-08-11 Kenichi Handa <handa@etl.go.jp>
513
514 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
515 the multibyte form of eight-bit-control characters.
516 (Fccl_execute_on_string): Initialize ccl->multibyte.
517
518 * ccl.h (struct ccl_program): New member multibyte.
519
520 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
521
c371f69a
KH
5222000-08-11 Kenichi Handa <handa@etl.go.jp>
523
524 * regex.c (regex_compile) <normal_char>: Pay attention to
525 multibyteness.
526 (analyse_first) <exactn>: Setup fastmap correctly for
527 eight-bit-control characters.
528
5292000-08-11 Kenichi Handa <handa@etl.go.jp>
530
531 * termhooks.h (enum event_kind): New member
532 multibyte_char_keystroke.
533
534 * keyboard.c (make_lispy_event): Handle the new event type
535 multibyte_char_keystroke.
536
537 * xterm.c: Include coding.h.
538 (XTread_socket): Work around a bug of XmbLookupString. If the
539 input is from XIM, decode it according to the current locale. In
540 that case, generate multibyte_char_keystroke events.
541
b8ddbe71
KH
5422000-08-11 Kenichi Handa <handa@etl.go.jp>
543
544 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
545 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
546
47589c8c
GM
5472000-08-10 Gerd Moellmann <gerd@gnu.org>
548
549 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
550 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
551 (move_it_in_display_line_to): Record iterator's ascent and descent
552 before producing glyphs, and restore them when we know the glyph
553 doesn't fit on the line.
554 (move_it_to): Restructured so that it's easier to debug. If
555 moving to a vpos, and not moving to an x or character position,
556 stop as soon as the specified vpos is reached; don't move further
557 into that line because that might change the computed line height.
558 (try_cursor_movement): New function, extracted from the cursor
559 movement branch of redisplay_window. If ending on a partially
560 visible line, don't try to scroll if the cursor line is taller
561 than the window.
562 (redisplay_window): Use try_cursor_movement.
563
564 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
565 because that function doesn't cope with variable-height lines.
566
567 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
568 box cursor because that's better visible for large images.
569
c51bacd6
MB
5702000-08-10 Miles Bader <miles@gnu.org>
571
572 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
573
bea56df7
GM
5742000-08-10 Gerd Moellmann <gerd@gnu.org>
575
576 * xdisp.c (Vmessages_buffer_name): New variable.
577 (message_dolog): Use it.
578 (syms_of_xdisp): Initialize it.
579
99cd7364
EZ
5802000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
581
582 * msdos.c (IT_note_mouse_highlight): Update the calls to
583 overlays_at.
584 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
585 redundant now that keyboard.h is included.
586
7d093d56
EZ
5872000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
588
589 * keyboard.c (kbd_buffer_events_waiting): New function.
590
591 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
592
593 * msdos.c: Include keyboard.h.
594 (XMenuActivate): Empty no_event events from the event buffer. If
595 no events are left after that, call clear_input_pending.
596 (mouse_clear_clicks): New function, code moved from mouse_init.
597 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
598 mouse driver to ``forget'' any past clicks.
599
600 * Makefile.in (msdos.o): Depend on keyboard.h.
601
41e757a6
GM
6022000-08-09 Gerd Moellmann <gerd@gnu.org>
603
8e7bd231
GM
604 * lisp.h (input_pending): External declaration.
605
606 * dispextern.h (Qredisplay_dont_pause): Declare extern.
607
608 * xdisp.c (echo_area_display): Display thoroughly if input is
609 pending. Bind redisplay-dont-pause to t during the redisplay.
610 in case input is pending.
611
612 * dispnew.c (Qredisplay_dont_pause): New variable.
613 (syms_of_display): Initialize and staticpro it.
614 (update_frame_1): Don't interrupt the display for pending input if
615 redisplay_dont_pause is set.
616
43028b7e
GM
617 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
618
41e757a6
GM
619 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
620
2f2174fa
KH
6212000-08-09 Miles Bader <miles@lsi.nec.co.jp>
622
623 * callproc.c (Fcall_process): Terminate the unwind-protect around
624 the post-read-conversion of coding system.
625
0a6fd67e
MB
626 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
627 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
628 * buffer.h (overlays_at): Update prototype.
629 * xdisp.c (next_overlay_change): Update call to overlays_at.
630 * xfaces.c (face_at_buffer_position): Likewise.
631 * textprop.c (Fget_char_property): Likewise.
632 * xterm.c (note_mouse_highlight): Likewise.
633
0c80756e
MB
634 * minibuf.c (do_completion): Don't consider a simple change of
635 case as `completion'.
636
975f250a
KR
6372000-08-08 Ken Raeburn <raeburn@gnu.org>
638
b347b3fd
KR
639 * keyboard.c (syms_of_keyboard): Initialize
640 last_point_position_buffer.
641 * undo.c (record_delete): Make sure last_point_position_buffer is
642 a buffer before comparing pointers.
643
644 * coding.h (decode_coding_string): Declare.
645
646 * intervals.h (Fprevious_single_char_property_change): Declare.
647
648 * textprop.c (Fprevious_single_char_property_change): Don't do
649 arithmetic directly on lisp objects.
650
25ad1371 651 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
652 objects.
653
654 * keyboard.h (menu_item_eval_property): Declare.
655
656 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
657 reuse as buffer name, instead of recreating (and discarding) every
658 time a message is logged.
659 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
660 (current_message_1, truncate_message_1, set_message_1)
661 (display_echo_area_1, resize_mini_window_1): Signatures changed.
662 (current_message, truncate_echo_area, display_echo_area)
663 (resize_echo_area_axactly): Changed calls.
b347b3fd 664
975f250a 665 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 666 Lisp object.
975f250a 667 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 668 must be an integer, not a Lisp object.
975f250a 669
46dc9912
KH
6702000-08-08 Kenichi Handa <handa@etl.go.jp>
671
672 * charset.c (Fchar_width): Doc fix.
673
9f6d1a6c
GM
6742000-08-08 Gerd Moellmann <gerd@gnu.org>
675
676 * charset.c (Fstring_width): Doc fix.
677
ff3d9573
GM
6782000-08-07 Gerd Moellmann <gerd@gnu.org>
679
41e757a6 680 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
681 line, clear ascent and descent members of the iterator structure;
682 the height of the continued line does not affect the height of the
683 continuation line.
684 (make_cursor_line_fully_visible): Do nothing if cursor is on a
685 line taller than the window.
686 (redisplay_window) <forced window start>: Handle case that the
687 middle of the window is not found in any row.
688 (dump_glyph_row): Show more information.
689 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
690 first text line in a glyph matrix.
691
692 * xterm.c (x_draw_image_foreground): Avoid drawing outside
693 of the clip area when image doesn't have a mask.
694
70fc58b3
GM
695 * fns.c (sweep_weak_table): Fix survival conditions for
696 key-or-value and key-and-value weakness.
697
698 * .gdbinit (xhashtable): New command.
699
ac0e96ee
GM
700 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
701 tables out of the list of all weak hash tables.
702
ff3d9573
GM
703 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
704 a new buffer is created, make sure echo_area_buffer[] references
705 the new buffer.
706
e0d8827b
EZ
7072000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
708
709 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
710 the doc string.
711
c6f35378
KH
7122000-08-07 Kenichi Handa <handa@etl.go.jp>
713
714 * syntax.c (skip_chars): Fix previous change. Make the handling
715 of unibyte string consistent with that of regex search.
716
1fd4c450
GM
7172000-08-05 Gerd Moellmann <gerd@gnu.org>
718
e49aa397
GM
719 * xmenu.c (popup_get_selection): Use xfree instead of free.
720
721 * fileio.c (Finsert_file_contents): Use xfree instead of free.
722
723 * editfns.c (Ftranspose_regions): Use xfree instead of free.
724
725 * callproc.c (child_setup): Use xfree instead of free.
726
727 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
728 instead of malloc.
729 (run_mac_command, closedir): Use `xfree' instead of `free'.
730
731 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
732
733 * eval.c (error): Use xfree instead of free.
734
1fd4c450
GM
735 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
736
737 * fns.c: Replace `illegal' with `invalid'.
e49aa397 738 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 739
82d497fc
KH
7402000-08-05 Kenichi Handa <handa@etl.go.jp>
741
742 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
743 conversion.
744
59f953a2
NF
7452000-08-04 Noah Friedman <friedman@splode.com>
746
747 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
748 docstring.
749
688351f2
GM
7502000-08-04 Gerd Moellmann <gerd@gnu.org>
751
752 * syntax.c (skip_chars): Fix typo in error message.
753
2dad51cc
AS
7542000-08-04 Andreas Schwab <schwab@suse.de>
755
756 * m/ia64.h: Moved from s/ia64.h.
757
99bb2c60
KH
7582000-08-04 Kenichi Handa <handa@etl.go.jp>
759
082a1df2
KH
760 * process.c (read_process_output): Big simplification. Handle
761 composition and post-read-conversion of coding system correctly.
762 (send_process): Handle composition correctly.
763
764 * callproc.c (Fcall_process): Handle post-read-conversion of
765 coding system if any.
766
99bb2c60
KH
767 * coding.c (decode_coding_iso2022): More strict check for handling
768 single shifting.
082a1df2
KH
769 (coding_restore_composition): Pay attention to the case that
770 cmp_data is not set properly (because of invalid code in the
771 source text).
772 (run_pre_post_conversion_on_str): Include text properties in the
773 resulting string.
774 (decode_coding_string): Set members of coding correctly.
99bb2c60 775
f4988be7
GM
7762000-08-03 Gerd Moellmann <gerd@gnu.org>
777
778 * s/ia64.h: New file.
779
780 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
781 Use NULL instead of 0 at the end of variable argument list of
782 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
783 sizeof (int) < sizeof (void *).
784
785 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
786 of variable argument lists of XtVaGetValues and XtVaSetValues.
787
788 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
789 variable argument lists of XtVaGetValues and XtVaSetValues.
790
ead53494
GM
7912000-08-02 Gerd Moellmann <gerd@gnu.org>
792
793 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
794 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
795
796 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
797 prototype.
798
799 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
800 in call to Fsingle_key_description.
801
802 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
803 Callers changed.
804
8052000-08-02 Colin Walters <walters@cis.ohio-state.edu>
806
807 * window.c (display_buffer_reuse_frames): New variable.
808 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
809 frames displaying BUFFER.
810 (syms_of_window): Define Lisp variable
811 display-buffer-reuse-frames.
812
10b0f752
MB
8132000-08-01 Miles Bader <miles@gnu.org>
814
815 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
816 when to constrain NEW_POS (they were pretty screwed up before).
817
16425c4a
EZ
8182000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
819
820 * msdos.c (run_msdos_command): Save and restore the master
821 environment, for the case that child_setup signals an error.
822 When mirroring slashes in DOS shell commands, don't fail when
823 argv[2] has embedded blanks.
da288c14
EZ
824 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
825 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
826 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
827
828 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
829 using alloca; free it after run_msdos_command returns.
830
27f73852
DL
8312000-07-27 Dave Love <fx@gnu.org>
832
833 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
834 define.
835 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
836 working.
837
838 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
839
c0261b5e
EZ
8402000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
841
842 * editfns.c (lisp_time_argument): Fix last change.
843
b548072f
GM
8442000-07-27 Gerd Moellmann <gerd@gnu.org>
845
3ab82477
GM
846 * fns.c (Fdelete): Make it work on vectors and strings in addition
847 to lists.
848
b548072f
GM
849 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
850 (syms_of_fns): Initialize new variables.
851 (sweep_weak_table): Handle weakness `key-or-value' and
852 `key-and-value'.
853 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
854 weakness, with t meaning the same as `key-and-value'.
855
91ae8751
KH
8562000-07-27 Kenichi Handa <handa@etl.go.jp>
857
858 * coding.h (struct coding_system): Member safe_charset deleted.
859
860 * coding.c (Qsafe_charsets): This variable deleted.
861 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
862 variables.
863 (coding_safe_chars): New function.
864 (CODING_SAFE_CHAR_P): New macro.
865 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
866 checking safe_charsets member of the coding system. Caller
867 changed.
868 (detect_coding_iso2022): New local variable safe_chars.
869 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
870 safe_charsets member of the coding system.
871 (decode_coding_iso2022): New local variable safe_chars.
872 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
873 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
874 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
875 (ENCODE_UNSAFE_CHARACTER): New macro.
876 (encode_coding_iso2022): New local variable safe_chars. Check
877 unsafe chars.
878 (setup_coding_system): Delete the code to initialize
879 coding->safe_charses
880 (intersection, find_safe_codings): New functions.
881 (Ffind_coding_systems_region_internal): New function.
882 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
883 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
884 variable and initialize it.
885
886 * fns.c (char_table_ref_and_index): New function.
887
888 * lisp.h (char_table_ref_and_index): Add prototype.
889
34a7a267
SS
8902000-07-26 Sam Steingold <sds@gnu.org>
891
892 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 893 (Ffloat_time): New built-in Lisp function.
34a7a267 894
a95cb10a
GM
8952000-07-26 Gerd Moellmann <gerd@gnu.org>
896
3353ef5a
GM
897 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
898 for the character code.
899
900 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
901 GNU/Linux.
902
a95cb10a
GM
903 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
904 if called for a popup menu.
905 (xmenu_show): Store help string in widget values.
906
b4a12321
DL
9072000-07-26 Dave Love <fx@gnu.org>
908
909 * syswait.h: Move some definitions.
910 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
911 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
912 perspicuous definitions.
913 (WTERMSIG): Fix bit pattern used.
914
13f5ad37
KH
9152000-07-26 Kenichi Handa <handa@etl.go.jp>
916
917 * print.c (print_object): If vector printing is truncated, print
918 "..." to indicate it as well as the case of list printing.
919
070fe99c
GM
9202000-07-25 Gerd Moellmann <gerd@gnu.org>
921
969065c3
GM
922 * xdisp.c (next_element_from_display_vector): Improve comments.
923
924 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
925 for the character code, and the rest for the face id as in 20.x.
926 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
927
928 * window.c (window_display_table): Cleaned up.
929
070fe99c
GM
930 * syntax.c (Fforward_word): Add last arg nil in call of
931 Fconstrain_to_field.
932
bad77ef7
EZ
9332000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
934
969065c3 935 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
936 identical but for the letter-case, don't call
937 barf_or_query_if_file_exists.
938
c28da489
MB
9392000-07-25 Miles Bader <miles@gnu.org>
940
941 * editfns.c (find_field): Honor special `boundary' fields.
942 (Qboundary): New variables.
943 (syms_of_editfns): Initialize Qboundary.
944 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
945 Use scan_buffer instead of find_before_next_newline, because it
946 allows us to detect the boundary case where there's a newline at
947 the search limit.
948 * lisp.h (Fconstrain_to_field): Update external declaration.
949
e3c31fd5
GM
9502000-07-24 Gerd Moellmann <gerd@gnu.org>
951
952 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
953 if that is nil.
c28da489 954
c66c29a2
DL
9552000-07-24 Dave Love <fx@gnu.org>
956
957 * s/sunos4-0.h, s/sol2.h:
958 (LIBS_TERMCAP): Move from m/sparc.h.
959
960 * m/sparc.h (TERMINFO): Moved to system files (probably only
961 relevant for sunos4 judging by its vintage).
962 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
963 __arch64__.
964
fbe0a958
EZ
9652000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
966
967 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
968 name to single_keymap_panes.
969
7d88e5c9
AS
9702000-07-24 Andreas Schwab <schwab@suse.de>
971
972 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
973
e024b101
GM
9742000-07-24 Gerd Moellmann <gerd@gnu.org>
975
976 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
977 parameters instead of using int parameters. Expect FN to accept
978 EMACS_INT parameters.
979 (display_echo_area, resize_echo_area_axactly, current_message)
980 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
981 with new argument list.
982 (resize_mini_window_1): New callback function.
983 (current_message_1, truncate_message_1, set_message_1): Change
984 parameter lists to the new format expected by
985 with_echo_area_buffer.
986
25c1a9ce
KH
9872000-07-24 Kenichi Handa <handa@etl.go.jp>
988
989 * fontset.c (fontset_ref): Remove INLINE declaration.
990 (fontset_ref_via_base): Likewise.
991 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
992 to downcase.
993
7f987ac0
EZ
9942000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
995
996 * msdos.c (IT_note_mouse_highlight): Process overlays in the
997 correct order of priority. If help echo was found in an overlay,
998 use that overlay as the object in which the help echo was found.
999
e2db3069
MB
10002000-07-22 Miles Bader <miles@gnu.org>
1001
1002 * textprop.c (Fprevious_single_char_property_change): The initial
1003 property value should be from the position preceding POSITION, not
1004 following it.
1005
5e3203e4
EZ
10062000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
1007
1008 * coding.c (syms_of_coding): Doc fix for
1009 inhibit-iso-escape-detection.
1010
62145073
GM
10112000-07-21 Gerd Moellmann <gerd@gnu.org>
1012
c20aeb83
GM
1013 * xterm.c (note_mouse_highlight): Process overlays in the right
1014 order of priority.
34a7a267 1015
743934db
GM
1016 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
1017
1018 * xterm.c (note_mouse_highlight): If help-echo was found in an
1019 overlay, use that overlay as the object in which the help was
1020 found.
1021
d1dc7e43 1022 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 1023
62145073
GM
1024 * window.c (foreach_window): Instead of a fake variable argument
1025 list, take one USER_DATA argument.
1026 (foreach_window_1): Likewise, and call callback functions with two
1027 args, the window and USER_DATA.
1028 (struct check_window_data): New struct.
1029 (check_window_containing): Use it.
1030 (window_from_coordinates): Set up a struct check_window_data for
1031 foreach_window.
1032 (add_window_to_list, freeze_window_start): Change parameters
1033 according to new calling convention.
1034
1035 * window.h (foreach_window): Change prototype.
1036
1037 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
1038
10392000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
1040
1041 * xmenu.c (menu_help_callback): Call show_help_echo with
1042 additional arguments OBJECT and POS.
1043
11270583
KH
10442000-07-21 Kenichi Handa <handa@etl.go.jp>
1045
07b14857
KH
1046 * data.c (Faset): Allow storing any multibyte character in a
1047 string. Convert unibyte string to multibyte if necessary.
1048
11270583
KH
1049 * xfns.c (x_encode_text): New function.
1050 (x_set_name): Use x_encode_text.
1051 (x_set_title): Likewise.
1052
1053 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
1054
1055 * xterm.h (x_encode_text): Add prototype.
1056
bc75b4fd
DL
10572000-07-20 Dave Love <fx@gnu.org>
1058
1059 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
1060 xfree, not free.
1061
48c14970
EZ
10622000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
1063
1064 * msdos.c (help_echo_window): New variable.
1065 (syms_of_msdos): Initialize and staticpro it.
1066 (IT_note_mode_line_highlight): Set help_echo_window.
1067 (IT_note_mouse_highlight): Ditto.
1068 (dos_rawgetc): Store help_echo_window in the second event produced
1069 for HELP_EVENTs.
1070
1071 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
1072 Record the object that generated the help echo and the position of
1073 that object in help_echo_object and help_echo_pos. Record that
1074 some glyphs in a row are displayed in mouse-face.
1075 (IT_update_begin): Don't clear mouse highlight unless one of the
1076 enabled glyph rows is marked as being displayed in mouse-face.
1077 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
1078 and position recorded in help_echo_object and help_echo_pos to the
1079 event queue.
1080 (IT_menu_display): Accept a new argument PN: the pane number of
1081 the current menu pane. Record the pane number and the item
1082 number of the item which has associated help string.
1083 (XMenuActivate): Update the prototype for help_callback in
1084 function declaration. Call IT_menu_display with the current menu
1085 pane number as an additional argument. Call help_callback with
1086 two additional arguments: the pane number and the item number of
1087 the menu item associated with the help text.
1088 (help_echo_object, help_echo_pos): New variables.
1089 (syms_of_msdos): Initialize them and staticpro help_echo_object.
1090
1091 * msdos.h (XMenuActivate): Update prototype.
1092
4279296d
GM
10932000-07-19 Gerd Moellmann <gerd@gnu.org>
1094
47db06aa
GM
1095 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
1096 Add some more prototypes.
1097
1098 * xterm.c, xterm.h: Add some more prototypes.
1099
1100 * lisp.h (Fnext_single_char_property_change): Add prototype.
1101
1102 * dispnew.c (direct_output_for_insert): Remove confusing
1103 outer local variable mouse_face_overwritten_p.
1104 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
1105
4279296d
GM
1106 * alloc.c (allocate_string_data): Don't copy old string contents.
1107
670acd62
KH
11082000-07-19 Kenichi Handa <handa@etl.go.jp>
1109
1110 * coding.c (code_convert_region): Delete text properties before
1111 shrinking the conversion region.
1112
7cea38bc
GM
11132000-07-18 Gerd Moellmann <gerd@gnu.org>
1114
dc1cac59
GM
1115 * dispnew.c (update_text_area): Write the whole row if it
1116 has mouse-face in it.
1117
85a8aca9
GM
1118 * xfaces.c (face-alternative-font-family-alist): Remove
1119 DEFVAR_LISP; staticpro instead.
1120
34a7a267 1121 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
1122 new arguments.
1123
1124 * keyboard.c (show_help_echo): Add parameter WINDOW.
1125 (read_char): Call show_help_echo with window extracted from Lisp
1126 help event.
1127 (gen_help_event): Add parameter WINDOW.
1128
1129 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
1130
1131 * xterm.c (help_echo_window): New variable.
1132 (note_mouse_highlight, note_tool_bar_highlight): Set
1133 help_echo_window.
1134 (XTread_socket): Pass help_echo_window to gen_help_event.
1135 (syms_of_xterm): Initialize and staticpro help_echo_window.
1136
f8276b77
DL
11372000-07-18 Dave Love <fx@gnu.org>
1138
1139 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
1140 systime.h.
1141
088831a6
GM
11422000-07-18 Gerd Moellmann <gerd@gnu.org>
1143
3d6cd763
GM
1144 * alloc.c (allocate_string_data): If string had already data
1145 assigned, copy old contents to new string data.
1146
1147 * coding.c (syms_of_coding): Fix typo in spelling of variable
1148 `inhibit-iso-escape-detection'.
1149
088831a6
GM
1150 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
1151
1152 * Makefile.in: Add dependencies on dispextern.h.
1153 (alloca.o): Don't define malloc and define EMACS_FREE instead of
1154 `free'; both can conflict with system header files.
1155
bc8a8d55
KH
11562000-07-18 Kenichi Handa <handa@etl.go.jp>
1157
1158 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
1159 undefined.
1160
069f5950
DL
11612000-07-18 Dave Love <fx@gnu.org>
1162
1163 * window.c (Fwindow_list): Declare arg `window'.
1164
aa96c820
KH
11652000-07-18 Kenichi Handa <handa@etl.go.jp>
1166
1167 * coding.c (setup_coding_system): Don't override the explicitly
1168 specified designations.
1169
06be8d32
MB
11702000-07-15 Miles Bader <miles@gnu.org>
1171
1172 * editfns.c (char_property_eq, char_property_stickiness): Renamed
1173 from `text_property_eq' and `text_property_stickiness', respectively.
1174 (find_field, Fconstrain_to_field, char_property_eq)
1175 (char_property_stickiness): Changed to call char-property functions
1176 instead of text-property-only ones.
1177
1178 * textprop.c (Fnext_single_char_property_change): Made a subr (was
1179 `next_single_char_property_change'). Do more error checking, and
1180 cleanup limit behavior.
1181 (Fprevious_single_char_property_change): New function.
1182 (syms_of_textprop): Initialize new subrs.
1183
1184 * xdisp.c (display_prop_end, invisible_text_between_p):
1185 Call Fnext_single_char_property_change instead of
1186 next_single_char_property_change.
1187
3fddcdc3
JR
11882000-07-15 Jason Rumney <jasonr@gnu.org>
1189
1190 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
1191 after menu is finished with.
1192 (add_menu_item): Only consider wv->title as a menu title.
1193 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
1194
1195 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
1196 null title.
1197 (FONT_REGEXP): Remove unused macro, and its sub-components.
1198 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
1199
1200 * w32term.c (help_echo_object, help_echo_pos): New variables.
1201 (note_mode_line_highlight): Store additional information about the
1202 help-echo in help_echo_object and help_echo_pos. Check both
1203 `local-map' and `keymap' properties for changing the cursor
1204 (note_mouse_highlight): Store additional information about the
1205 help-echo in help_echo_object and help_echo_pos.
1206 (note_tool_bar_highlight): Set help_echo_object to nil and
1207 help_echo_pos to -1.
1208 (w32_read_socket): Use gen_help_event instead of filling
1209 input_events manually.
1210 (syms_of_w32term): Staticpro help_echo_object.
1211 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
1212 set, arrange for a mouse-highlight redisplay in
1213 XTframe_up_to_date.
1214 (x_clear_mouse_face): New function.
1215 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
1216 (x_update_window_begin): No need to turn off the mouse
1217 highlight here.
1218 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1219 depending on whether they contain glyphs highlighted in
1220 mouse-face.
1221 (x_fill_stretch_glyph_string): Consume runs of stretch
1222 glyphs instead of a single one.
1223 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1224 with new argument list.
1225 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1226 (x_append_glyph, x_append_composite_glyph)
1227 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1228 changes in struct glyph starting 1999-12-27. See comments for
1229 xterm.c on 2000-07-05.
1230
178c5d9c
SS
12312000-07-14 Sam Steingold <sds@gnu.org>
1232
1233 * xfaces.c (realize_x_face): Fix the last patch:
1234 check `default_face' before dereferencing.
1235
6fe533f6
DL
12362000-07-14 Dave Love <fx@gnu.org>
1237
069f5950 1238 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 1239
dd7b81cf
KH
12402000-07-14 Kenichi Handa <handa@etl.go.jp>
1241
0693904a 1242 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 1243 default_face's fontset, not using the default fontset.
0693904a 1244
dd7b81cf
KH
1245 * coding.c (inhibit_iso_escape_detection): New variable.
1246 (syms_of_coding): Make it a Lisp variable.
1247 (detect_coding_iso2022): If inhibit_iso_escape_detection is
1248 nonzero, ignore ISO2022's escape sequence.
1249
d5aa31d8
GM
12502000-07-14 Gerd Moellmann <gerd@gnu.org>
1251
e5acf0ca
GM
1252 * alloca.c (malloc) [emacs]: Define as xmalloc.
1253
bd23a692
GM
1254 * xfns.c (Fx_show_tip): If frame parameters contain a position,
1255 use that instead of the mouse position. Add parameters DX and DY.
1256
1257 * dispextern.h (Fx_show_tip): Adjust number of parameters
1258 in prototype.
1259
9662da0b
GM
1260 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
1261 if HELP is a function, call it with OBJECT and POS as parameters
1262 to get the help to display.
1263 (gen_help_event, kbd_buffer_store_help_event): New functions.
1264 (kbd_buffer_get_event): Construct the Lisp help-event differently.
1265 (read_char): Call show_help_echo with new parameters.
1266
178c5d9c 1267 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
1268 Add prototypes.
1269
1270 * xterm.c (help_echo_object, help_echo_pos): New variables.
1271 (note_mode_line_highlight): Store additional information about the
1272 help-echo in help_echo_object and help_echo_pos. Check both
1273 `local-map' and `keymap' properties for changing the cursor
1274 (note_mouse_highlight): Store additional information about the
1275 help-echo in help_echo_object and help_echo_pos.
1276 (note_tool_bar_highlight): Set help_echo_object to nil and
1277 help_echo_pos to -1.
1278 (XTread_socket): Use gen_help_event instead of filling
1279 input_events manually.
1280 (syms_of_xterm): Staticpro help_echo_object.
1281
1282 * xmenu.c (menu_highlight_callback): Use
1283 kbd_buffer_store_help_event instead of setting up and input_event
1284 structure manually.
1285
1286 * xdisp.c (eval_form): GCPRO argument sexpr.
1287 (call_function): New function.
1288 (handle_single_display_prop): Use call_function and FUNCTIONP
1289 instead of checking whether if font_height is a symbol and
1290 using eval_form.
1291
1292 * eval.c (internal_condition_case_2): New function.
1293
1294 * lisp.h (FUNCTIONP): New macro.
1295 (internal_condition_case_2, call_function): Add prototypes.
1296
d5aa31d8
GM
1297 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
1298 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
1299 Always set `arg' member of input_events.
1300 (construct_menu_click): Unused function removed.
1301
1302 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
1303
1304 * w32term.c (construct_mouse_click, construct_mouse_wheel)
1305 (construct_drag_n_drop, x_scroll_bar_handle_click)
1306 (w32_read_socket): Always set `arg' member of input_events.
1307
1308 * keyboard.c (show_help_echo): Use eval_form. Add comment.
1309
1310 * lisp.h (eval_form): Add prototype.
1311
1312 * xdisp.c (eval_form): Make it externally visible.
1313
0f1a9b23
GM
13142000-07-13 Gerd Moellmann <gerd@gnu.org>
1315
1316 * xterm.c (x_handle_tool_bar_click): Store the frame in the
1317 frame_or_window slot of TOOL_BAR_EVENT input events instead of
1318 consing. For prefix events, store the frame in the `arg' slot of
1319 the event, otherwise store the key there.
1320 (XTread_socket): Instead of consing, use the frame_or_window slot
1321 of HELP_EVENTs for the frame, and the `arg' slot for the help
1322 string.
1323
1324 * xmenu.c (menu_highlight_callback): Store help string in the
1325 `arg' member of the input event; don't cons.
1326 (menubar_selection_callback): Use the `arg' slot of input events
1327 to queue additional information, instead of consing.
1328
1329 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
1330
1331 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
1332 TOOL_BAR_EVENTs.
1333 (w32_read_socket): Adapt to changes in HELP_EVENTs.
1334
1335 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
1336 input events to queue additional information, instead of consing.
1337
1338 * keyboard.c (kbd_buffer_gcpro): Renamed from
1339 kbd_buffer_frame_or_window. Now used for all Lisp objects
1340 referenced from the input queue.
1341 (kbd_buffer_store_event): Always use structure assignment for
1342 copying input events. Record all Lisp objects referenced from
1343 events in kbd_buffer_gcpro.
1344 (kbd_buffer_get_event): Construct Lisp `help-echo' events
1345 differently from input events. Test for prefix menu_bar_events
1346 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
1347 event in kbd_buffer_gcpro to nil.
1348 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
1349 frame_or_window is equal to its arg member as prefix events.
1350 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
1351 used by an input event to nil.
1352 (init_keyboard): Use two times the size of the input queue
1353 for kbd_buffer_gcpro.
1354 (syms_of_keyboard): Likewise.
1355
1356 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
1357 USER_SIGNAL_EVENT.
1358
1359 * termhooks.h (struct input_event): Add member `arg'.
1360 (MENU_BAR_EVENT): Renamed from menu_bar_event.
1361 (USER_SIGNAL_EVENT): Renamed from user_signal.
1362
1363 * xfaces.c (ASET): Remove definition.
1364
1365 * lisp.h (AREF, ASET, ASIZE): New macros.
1366
1367 * fontset.c (AREF, ASIZE): Remove definitions.
1368
1369 * fns.c (AREF): Remove definition.
178c5d9c 1370
0f1a9b23
GM
1371 * composite.c (AREF): Remove definition.
1372
712eaef2
GM
13732000-07-12 Gerd Moellmann <gerd@gnu.org>
1374
d8ee7803
GM
1375 * dispnew.c (redraw_overlapped_rows): Add missing local.
1376 (scrolling_window): Remove debug code.
1377
712eaef2
GM
1378 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
1379 Before scrolling, turn off a mouse-highlight in the window
1380 being scrolled.
1381
1382 * xterm.c (x_update_window_end): Add parameter
1383 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
1384 redisplay in XTframe_up_to_date.
1385 (x_clear_mouse_face): New function.
1386 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
1387
1388 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
1389 current glyph row.
1390 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
1391 it when any row is written to that contains glyphs highlighted in
1392 mouse-face.
1393 (update_window): Call the window update end hook with new
1394 parameter MOUSE_FACE_OVERWRITTEN_P.
1395 (direct_output_for_insert): Give up if row contains mouse-face.
1396
1397 * dispextern.h (struct redisplay_interface): Add parameter
1398 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
1399 (clear_mouse_face): New function pointer member.
1400
02010917
SM
14012000-07-11 Stefan Monnier <monnier@cs.yale.edu>
1402
1403 * syntax.c (back_comment): Use one switch rather than a few `if's.
1404 Obey open_paren_in_column_0_is_defun_start.
1405 When reverting to the `slow' method, try to nicely handle the case
1406 of nested comments by checking that the comment-starter we found
1407 does indeed match the comment-ender.
1408 (scan_sexps_forward, scan_sexps_forward):
1409 Ignore excessive opening parenthesis rather than throwing an error.
1410
d76c03ea
GM
14112000-07-11 Gerd Moellmann <gerd@gnu.org>
1412
1413 * doc.c (Fsubstitute_command_keys): Handle case that a GC
1414 in Fwhere_is_internal or get_keymap_1 relocates string contents.
1415
1416 * dispnew.c (direct_output_forward_char): Give up if currently
1417 displaying a message instead of the minibuffer contents.
1418
1419 * xterm.c (x_update_window_begin): No need to turn off the mouse
1420 highlight here.
1421 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1422 depending on whether they contain glyphs highlighted in
1423 mouse-face.
1424
1425 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
1426 compare the mouse_face_p flags of both rows.
1427
1428 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
1429
d55ead18
EZ
14302000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
1431
1432 * keyboard.c (show_help_echo): Accept additional parameter
1433 ok_to_overwrite_keystroke_echo.
1434 (read_char): Call show_help_echo with a zero
1435 ok_to_overwrite_keystroke_echo argument.
1436 * keyboard.h (show_help_echo): Update prototype of
1437 show_help_echo.
1438 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
1439 ok_to_overwrite_keystroke_echo argument.
1440 * w32menu.c (w32_menu_display_help): Call show_help_echo with
1441 non-zero ok_to_overwrite_keystroke_echo argument.
1442
df75b1a3
GM
14432000-07-10 Gerd Moellmann <gerd@gnu.org>
1444
4b92c49a
GM
1445 * xdisp.c (try_window_id): If changes are all below what is
1446 displayed in the window, and point is in the window, we still
1447 might have to find point on the display.
1448
1449 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
1450 glyphs instead of a single one.
1451 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1452 with new argument list.
1453 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1454
df75b1a3
GM
1455 * keymap.c (get_keymap_1): Add comment that this function can GC.
1456 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
1457 comment that functions can GC.
1458 (Fset_keymap_parent): GCPRO arg KEYMAP.
1459
4314cf3e
EZ
14602000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
1461
1462 * msdos.c (XMenuActivate): After exiting the menu, restore the
1463 echo area message and erase it.
1464
ab49ce15
KH
14652000-07-10 Kenichi Handa <handa@etl.go.jp>
1466
1467 * fontset.c (Ffontset_info): Make the return value more compatible
1468 with that of Emacs 20.
1469
090a072f
GM
14702000-07-07 Gerd Moellmann <gerd@gnu.org>
1471
1472 * eval.c (Fsignal): Handle case that backtrace_list is null.
1473
f92de4a6
KH
14742000-07-07 Kenichi Handa <handa@etl.go.jp>
1475
1476 * ccl.c (Fccl_execute): Typo fixed.
1477
dd8888a1
GM
14782000-07-06 Gerd Moellmann <gerd@gnu.org>
1479
e5c81191 1480 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 1481
dd8888a1
GM
1482 * window.c (Fwindow_list): Reverse list at the end.
1483 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
1484 means allow windows on OWINDOW's frame, only.
1485 (window_loop): Simplified; use Fwindow_list.
1486
1487 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
1488
485266d0
GM
14892000-07-05 Gerd Moellmann <gerd@gnu.org>
1490
1491 * xterm.c (XTread_socket): Increment handling_signal at the start,
1492 decrement it at the end.
1493
1494 * eval.c (handling_signal): New variable.
1495 (Fsignal): Abort if handling_signal is non-zero.
1496
1497 * lisp.h (handling_signal): External declaration.
178c5d9c 1498
485266d0
GM
1499 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
1500
80fcd514
KR
15012000-07-05 Ken Raeburn <raeburn@gnu.org>
1502
1503 Sound support for NetBSD through "Linux emulation" support:
1504 * config.in (HAVE_SOUNDCARD_H): Undef.
1505 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
1506 * Makefile.in (LIBSOUND): New variable.
1507 (LIBES): Include it.
1508 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
1509 <soundcard.h>.
1510 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
1511 elsewhere.
1512 (vox_open): Use DEFAULT_SOUND_DEVICE.
1513 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
1514
d5c5cddd
GM
15152000-07-05 Gerd Moellmann <gerd@gnu.org>
1516
1517 * print.c (print_error_message): If Vsignaling_function is set,
1518 show it in *Messages*.
1519
1520 * lisp.h (Vsignaling_function): External declaration.
1521
1522 * eval.c (Vsignaling_function): New variable.
1523 (Fsignal): Compute it.
1524 (syms_of_eval): Staticpro it.
1525
65171e3a
DL
15262000-07-05 Dave Love <fx@gnu.org>
1527
1528 * syswait.h: Use the autoconf recommended approach. Old code
1529 #if'd out in case we need to revert.
1530
178c5d9c 1531 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 1532
e2c46326
AI
15332000-07-05 Andrew Innes <andrewi@gnu.org>
1534
1535 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
1536 when non-NULL instead of __morecore, to take account of buffer
1537 memory. This also solves a problem with spurious memory warnings
1538 on Windows.
1539
1540 * ralloc.c: Make real_morecore non-static.
1541
1542 * eval.c (internal_condition_case): Comment out abort if
1543 interrupt_input_blocked is not zero.
1544
1545 * makefile.nt: Add support for `bootstrap' and related targets.
1546 Include minimal debug info in emacs.exe in release build.
1547 Remove all dependencies on lisp.h, and fixup some others.
1548
1549 * w32.c (init_environment): Install code from 20.7 for providing
1550 default values for environment variables, based on the
1551 executable's own location.
1552 (map_w32_filename): Handle filenames that are longer than
1553 MAX_PATH.
1554 (sys_socket): Install socket inheritance bug fix from 20.7.
1555
1556 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
1557 here via blockinput.h).
1558
a027a91b
SM
15592000-07-05 Stefan Monnier <monnier@cs.yale.edu>
1560
e4b31601
SM
1561 * w32menu.c (w32_menu_display_help):
1562 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
1563
1564 * keyboard.h (show_help_echo): Declare.
1565
1566 * keyboard.c (show_help_echo): New function, extracted from read_char.
1567 Feval its `msg' argument if it's a cons cell.
1568 (read_char): Use it.
4cf8d9d5 1569 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 1570
178c5d9c 1571 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 1572 (note_tool_bar_highlight, XTread_socket):
178c5d9c 1573 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
1574 (dos_rawgetc):
1575 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
1576 (note_tool_bar_highlight, w32_read_socket):
1577 Do not gratuitously ignore non-string `help-echo' properties.
1578
88d75730
GM
15792000-07-05 Gerd Moellmann <gerd@gnu.org>
1580
969f7e79
GM
1581 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
1582
71201b00
GM
1583 * window.c (delete_all_subwindows): Reset Vwindow_list.
1584
88d75730
GM
1585 * xterm.c (x_append_glyph, x_append_composite_glyph)
1586 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1587 changes in struct glyph starting 1999-12-27. Some bit-fields of
1588 struct glyph were not set, which made glyphs unequal when compared
1589 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
1590 effects were the result. This also depended on the contents of
1591 memory returned by xmalloc. If flickering happens again, activate
1592 the code in clear_glyph_row that's in #if 0. If the flickering is
1593 gone with that, chances are that it is caused by something
1594 similar.
1595
1596 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 1597
88d75730
GM
1598 * dispextern.h: Add some comments.
1599
1600 * window.c (add_window_to_list): Add parameter LIST.
1601 (window_list): Order list so that, for each frame, windows are
1602 in canonical order, and so that frames appear in the list in
1603 the order given by Vframe_list.
1604 (next_window): Reverse the handling of NEXT_P.
1605
53654733
GM
16062000-07-04 Gerd Moellmann <gerd@gnu.org>
1607
87efd256
GM
1608 * window.c (Vwindow_list): New variable.
1609 (make_window, delete_window): Set Vwindow_list to nil.
1610 (check_window_containing): New function.
1611 (window_from_coordinates): Rewritten.
1612 (add_window_to_list, window_list, candidate_window_p)
1613 (decode_next_window_args, next_window): New functions.
1614 (Fnext_window, Fprevious_window): Rewritten in terms of
1615 next_window.
1616 (Fwindow_list): New function.
1617 (Fother_window): Cleaned up.
1618 (foreach_window): Add a longer "variable argument list". Let
1619 callback function return 0 to indicate that cycling over windows
1620 should stop.
1621 (foreach_window_1): Likewise.
1622 (freeze_window_start): Return int.
1623 (init_window): New function.
1624 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
1625
1626 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
1627 input_event with bzero.
1628 (main): Call init_window.
1629
53654733
GM
1630 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
1631 a menu filter.
1632
4a8c194f
KH
16332000-07-04 Kenichi Handa <handa@etl.go.jp>
1634
1635 * composite.h (make_composition_value_copy): Extern it.
1636
1637 * composite.c (make_composition_value_copy): New function.
1638
1639 * editfns.c (Fformat): While copying text properties, make each
1640 composition property value a copy.
1641
1642 * fns.c (concat): While copying text properties, make each
1643 composition property value a copy.
1644
831a6cb0
GM
16452000-07-03 Gerd Moellmann <gerd@gnu.org>
1646
2f516940
GM
1647 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
1648
178c5d9c 1649 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
1650 marked already.
1651
831a6cb0
GM
1652 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
1653 include those frames as candidates which have their focus
1654 redirected to the minibuffer frame.
1655
d9c4f922
SM
16562000-07-03 Stefan Monnier <monnier@cs.yale.edu>
1657
1658 * fns.c (Fputhash): Return `value' rather than nil.
1659
3780bc22
GM
16602000-06-30 Gerd Moellmann <gerd@gnu.org>
1661
97d176db
GM
1662 * frame.c (next_frame): Don't check focus redirection in case
1663 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
1664 unless their focus is redirected, which contradicts the
1665 specification of next-frame, and leads to infinite loops in
1666 certain situations when cycling through windows with next-window.
1667
dca9961d
KH
16682000-06-30 Kenichi Handa <handa@etl.go.jp>
1669
1670 * coding.c (code_convert_region): Even if the length of text is
1671 zero, try to convert it if coding->type is coding_type_ccl.
1672 (decode_coding_string, encode_coding_string): Likewise.
1673
d5483ab1
GM
16742000-06-28 Gerd Moellmann <gerd@gnu.org>
1675
af5c25e1 1676 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 1677 the display if windows_or_buffers_changed.
af5c25e1
GM
1678
1679 * dispnew.c (struct row_entry): New structure.
1680 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
1681 (row_table_size, old_lines, new_lines, old_lines_size)
1682 (new_lines_size, run_pool, runs_size, runs): New variables.
1683 (add_row_entry): New function.
1684 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 1685 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
1686 holding them in local variables. Use a larger hash table whose
1687 size depends on glyph matrix sizes. Don't use bzero to clear the
1688 hash table; instead, clear used slots only.
1689
1690 * fns.c (next_almost_prime): Make it externally visible.
1691
1692 * lisp.h (next_almost_prime): Add prototype.
1693
d5483ab1
GM
1694 * s/isc4-0.h (sigunblock): Define.
1695
1696 * s/sco5.h (sigunblock): Define.
1697
93e40f40
DL
16982000-06-27 Dave Love <fx@gnu.org>
1699
1700 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
1701 (moved to osf5-0.h).
1702 [!NOT_C_CODE]: Protect string.h stuff.
1703
1704 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
1705 (sys_siglist, NSIG): Definitions moved here from osf1.h.
1706
3c4b7685
GM
17072000-06-27 Gerd Moellmann <gerd@gnu.org>
1708
97d176db 1709 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
1710 below the last line from the needed window height.
1711
32cad0aa
SM
17122000-06-26 Stefan Monnier <monnier@cs.yale.edu>
1713
1714 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
1715 (Fwidget_get): Use it.
1716 (syms_of_fns): Defsubr it.
1717
2c69ced2
GM
17182000-06-26 Gerd Moellmann <gerd@gnu.org>
1719
178c5d9c 1720 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
1721 display info for XIM.
1722 (xim_open_dpy): Likewise.
1723 (xim_close_dpy): Don't free the display info's XIM.
1724
1725 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
1726
1727 * config.in (USE_XIM): New define.
1728
3fc720e4
GM
1729 * keymap.c (get_keyelt): For menu-items containing a `:filter
1730 FILTER', apply FILTER to the menu-item's definition to get the
1731 real definition to use.
1732
1733 * lisp.h (QCfilter): External declaration.
1734
2c69ced2
GM
1735 * xfns.c (Fimage_size): New function.
1736 (syms_of_xfns): Defsubr it.
1737
f978b2a2
AS
17382000-06-26 Andreas Schwab <schwab@suse.de>
1739
1740 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
1741 Fstring_as_unibyte.
1742
94cc7892
DL
17432000-06-25 Dave Love <fx@gnu.org>
1744
1745 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
1746 tgetnum.
1747
1748 * Makefile.in (blockinput.h): Depend on atimer.h.
1749 (atimer.h): Depend on systime.h.
1750
1751 * blockinput.h: Protect against multiple inclusion. Include
1752 atimer.h.
1753
1754 * atimer.h: Protect against multiple inclusion. Include
1755 systime.h.
1756
1757 * lisp.h (swap_in_global_binding): Declare.
1758
b8c24556
KR
17592000-06-24 Ken Raeburn <raeburn@gnu.org>
1760
1761 * process.c (Fopen_network_stream): Turn off atimers for duration
1762 of call to connect. (Patch from Gerd.)
1763
8cf8560b
DL
17642000-06-23 Dave Love <fx@gnu.org>
1765
511c7541
DL
1766 * ralloc.c: Maybe include unistd.h
1767
8cf8560b
DL
1768 * emacs.c (setgrp): Undefine before defining.
1769 (malloc_warning, set_time_zone_rule, index): Prototype.
1770
1771 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
1772 HAVE_STRUCT_TIMEZONE.
1773
1774 * s/osf1.h: Move string.h hack here from alpha.h and make it
1775 conditional.
1776 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
1777 _XOPEN_SOURCE.
1778 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
1779 (SOCKLEN_TYPE): Don't define.
1780
1781 * m/alpha.h: Remove string.h hack.
1782
1783 * s/osf5-0.h: New file.
1784
1785 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
1786 include time.h, done by systime.h.
1787 [__FreeBSD__]: Remove redundant includes.
1788
3fc720e4 1789 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
1790 (delete_temp_file): Return Qnil to avoid warning.
1791
1792 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
1793
1794 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
1795 HAVE_X_WINDOWS.
1796
1797 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
1798
1799 * composite.h (compose_text): Declare.
1800
1801 * xterm.c: Don't include sys/types.h unconditionally. Don't
1802 protect its inclusion with !USG (following xmenu.c).
1803
ea055732
GM
18042000-06-23 Gerd Moellmann <gerd@gnu.org>
1805
1806 * xfns.c (x_create_tip_frame): Initialize frame's colors like
1807 in x_create_frame.
1808
74b01b80
EZ
18092000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
1810
1811 * coding.c (decode_eol_post_ccl): Special handling for undecided
1812 and inconsistent EOL types.
1813
64f3a166
GM
18142000-06-22 Gerd Moellmann <gerd@gnu.org>
1815
16cf31f7
GM
1816 * xrdb.c (x_load_resources): Add default resource for scroll bar's
1817 trough color and main window's background color.
1818
178c5d9c 1819 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
1820 differently.
1821
1822 * xterm.h (Xt_app_con): External declaration.
1823
1824 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 1825
486a103d
GM
1826 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
1827
64f3a166
GM
1828 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
1829 (handle_invisible_prop): Record the start of invisible text in
1830 it->add_overlay_start.
1831 (struct overlay_entry): Add member `overlay'.
1832 (handle_overlay_change): Simplify.
1833 (next_overlay_string): After having processed overlay strings at the
1834 end of the buffer, record that fact in
1835 it->overlay_strings_at_end_processed_p.
1836 (compare_overlay_entries): If before- and after-strings come
1837 from the same overlay, let before-strings come first.
1838 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
1839 (load_overlay_strings): Take it->add_overlay_start into account
1840 when adding overlay strings.
1841
1842 * dispextern.h (struct it): Add member add_overlay_start.
1843
bb746ea6
DL
18442000-06-22 Dave Love <fx@gnu.org>
1845
1846 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
1847
1848 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
1849
a8f573f3
KH
18502000-06-22 Kenichi Handa <handa@etl.go.jp>
1851
1852 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
1853 is greater than 0.
1854
9f2bbc92
DL
18552000-06-21 Dave Love <fx@gnu.org>
1856
178c5d9c 1857 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 1858
3ee5041c
SM
18592000-06-21 Stefan Monnier <monnier@cs.yale.edu>
1860
1861 * syntax.c (back_comment): Simplify string-parity counting (with
1862 the added benefit of handling multiple string-styles as long as
1863 they are not intertwined).
1864 Jump to the slow code as soon as a comment starter is found in
1865 a "string_lossage" position. Fixes the case: " /* " /* " */.
1866
4c343001
DL
18672000-06-21 Dave Love <fx@gnu.org>
1868
1869 * Makefile.in: Use GETLOADAVG_LIBS.
1870
1871 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
1872 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
1873
e6365855
SM
18742000-06-20 Stefan Monnier <monnier@cs.yale.edu>
1875
1876 * syntax.c (describe_syntax): Recognize the `n'estable bit.
1877 (Fforward_comment, scan_lists):
1878 Check the comstyle of single-char comment-starters.
1879 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
1880 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
1881 Check the comstyle of single-char comment-starters.
1882 Clarify control-flow around the Scomment case.
e6365855 1883
5700d2cc
DL
18842000-06-20 Dave Love <fx@gnu.org>
1885
d355bd8a
SM
1886 * fns.c (make_hash_table, maybe_resize_hash_table):
1887 Cast arg of next_almost_prime.
5700d2cc 1888
178c5d9c 1889 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
1890
1891 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
1892 and unistd.h.
1893
4a27bdfb
GM
18942000-06-20 Gerd Moellmann <gerd@gnu.org>
1895
a61d762c
GM
1896 * keyboard.c (adjust_point_for_property): Check if display
1897 property should be treated as intangible by looking at its
1898 value.
1899
178c5d9c 1900 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
1901 (display_prop_intangible_p): New functions.
1902
1903 * dispextern.h (display_prop_intangible_p): Add prototype.
1904
1905 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 1906
4a27bdfb
GM
1907 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
1908 argument to sigprocmask.
1909
1910 * s/sco5.h (sigblock): Redefined to pass a pointer as second
1911 argument to sigprocmask.
1912
1913 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
1914 sigprocmask_set, and pass a pointer to it to sigprocmask.
1915
1916 * sysdep.c (sigprocmask_set): New variable.
1917
1918 * fileio.c (make_temp_name): Don't use `%s' in string passed to
1919 report_file_error.
1920
427ec082
SS
19212000-06-20 Sam Steingold <sds@gnu.org>
1922
1923 * xrdb.c: Don't declare xmalloc, xrealloc.
1924
8972fe79 19252000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
1926
1927 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
1928 (re_comp): Cast gettext return value to avoid complaints when
1929 !HAVE_LIBINTL.
1930
074b6efe
DL
19312000-06-20 Dave Love <fx@gnu.org>
1932
f85c008a
DL
1933 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
1934 HAVE_GETTIMEOFDAY.
1935
5700d2cc 1936 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 1937
d355bd8a 1938 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
1939
1940 * m/alpha.h: Don't declare xmalloc, xrealloc.
1941
0af4f205
DL
1942 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
1943
1944 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
1945
1946 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
1947
1948 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
1949 HAVE_GETWD.
1950
074b6efe
DL
1951 * keyboard.h (poll_for_input_1): Declare.
1952
1953 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
1954
1955 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
1956
1957 * doprnt.c: Don't declare xmalloc, xrealloc.
1958
1959 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
1960 (getenv, ctime, getwd): Removed.
1961 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
1962
1963 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
1964 x_set_tool_bar_lines.
1965
1966 * config.in: Add HAVE_GETWD. Move some definitions above
1967 machine/system includes.
1968
68a5e97b
KH
19692000-06-20 Kenichi Handa <handa@etl.go.jp>
1970
95417e1e
KH
1971 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
1972
68a5e97b
KH
1973 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
1974 contain information about ENCODING.
1975
1976 * fontset.c (FONTSET_ASCII): Use the first element of char table
1977 for an ASCII font, not defalt slot.
1978 (fontset_ref_via_base): If FONTSET doesn't contain information for
1979 C, try the default fontset.
1980 (make_fontset): Don't copy the default fontset.
1981 (fontset_font_pattern): Likewise.
1982 (accumulate_font_info): If ELT is nil, use the corresponding
1983 element in the default fontset.
1984
3b4fa1b2
DL
19852000-06-19 Dave Love <fx@gnu.org>
1986
943e731c
DL
1987 * syntax.c (Fparse_partial_sexp): Doc fix.
1988
1989 * regex.h: Test PROTOTYPES as well as __STDC__.
1990
3b4fa1b2
DL
1991 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
1992 errno, strerror. Put text after #endif in comment.
1993
1994 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
1995 pcc).
1996
1997 * xterm.c (x_frame_of_widget): Likewise.
1998
cdf0357b
GM
19992000-06-19 Gerd Moellmann <gerd@gnu.org>
2000
2001 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
2002 to Vfundamental_mode_abbrev_table.
2003
2004 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
2005 bogus objects are marked. This slows down GC by ~80 percent, but
2006 it might be worth trying when debugging GC-related problems.
2007 This feature requires conservative stack marking to be enabled.
2008
2009 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
2010 returns XLookupChars, reset `modifiers' to zero.
2011
998e9f8c
DL
20122000-06-19 Dave Love <fx@gnu.org>
2013
2014 * mktime.c: Unprotoized.
2015
18e21ce8 20162000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
2017
2018 * data.c (set_internal): If variable is frame-local,
2019 store the new value immediately into the frame parameter alist.
2020
140c4ac6
KR
20212000-06-19 Ken Raeburn <raeburn@gnu.org>
2022
14358466
KR
2023 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
2024 in the custom handler pointer.
2025
140c4ac6
KR
2026 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
2027 value, or checks for CHAR_META can fail when Lisp_Object is a
2028 union type.
2029 * keymap.c (get_keyelt): Likewise.
2030
10d7bf84
KH
20312000-06-19 Kenichi Handa <handa@etl.go.jp>
2032
2033 * ccl.h (struct ccl_program): New member eol_type.
2034 (struct ccl_spec): New member cr_carryover.
2035
2036 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
2037 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
2038
2039 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
2040 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
2041 (decode_eol_post_ccl): New function.
2042 (decode_coding): Don't detect EOL format here for CCL based coding
2043 systems.
2044 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
2045 decode_eol_post_ccl after running the CCL program.
2046 (code_convert_region): Don't detect EOL format here for CCL based
2047 coding systems.
2048 (decode_coding_string): Likewise.
2049
52e386c2
KR
20502000-06-18 Ken Raeburn <raeburn@gnu.org>
2051
2052 * charset.c (update_charset_table): Use XINT on "iso_final_char"
2053 when treating it as an integer.
2054
2055 * coding.h (encode_coding_string): Declare.
2056
2057 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
2058 it as an integer.
2059
2060 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
2061 "xkeymap" to avoid shadowing the "enum map_type" value that needs
2062 to be passed to get_local_map.
2063
2064 * sound.c (Fplay_sound): Don't call make_number on
2065 Frun_hook_with_args count argument.
2066
2067 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
2068 for lisp objects in X event structure data field, when lisp
2069 objects are represented with unions.
2070 (x_scroll_bar_to_input_event): Ditto.
2071
b357b9d4
KR
20722000-06-16 Ken Raeburn <raeburn@gnu.org>
2073
2074 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
2075 termination of string. Fix sense of test whether
2076 Vline_number_display_limit is an integer.
b357b9d4 2077
a871441d
GM
20782000-06-16 Gerd Moellmann <gerd@gnu.org>
2079
a9021acd
GM
2080 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
2081 only if HAVE_X_WINDOWS.
2082
6344985d
GM
2083 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
2084 of titles.
2085
427ec082 2086 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
2087 out of bounds.
2088
228b083e
EZ
20892000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2090
2091 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
2092 of its headers.
2093
c25b53a2
KH
20942000-06-15 Kenichi Handa <handa@etl.go.jp>
2095
2096 * coding.c (decode_coding_emacs_mule): Always set src_base at the
2097 start of the while loop.
2098
a6981b11
GM
20992000-06-15 Gerd Moellmann <gerd@gnu.org>
2100
e9924e52
GM
2101 * atimer.c (alarm_signal_handler): Add forward declaration.
2102
a6981b11
GM
2103 * data.c (set_internal): Remove debug code.
2104
25fa6deb
GM
21052000-06-14 Gerd Moellmann <gerd@gnu.org>
2106
dce6b995
GM
2107 * Makefile.in (bootstrap-temacs): Add `-I../src'.
2108
9f817ea4
GM
2109 * unexec.c (toplevel) [COFF]: Include coff.h.
2110
2111 * s/lynxos.h: New file.
2112
2113 * keymap.c (Fsingle_key_description): Enclose function key and
2114 event symbol names in angle brackets.
2115
8a4e3c0c
GM
2116 * xdisp.c (setup_echo_area_for_printing): Call
2117 message_log_maybe_newline if message_buf_print is not set.
2118
2119 * print.c (printchar, strout): Don't check message_buf_print
427ec082 2120 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
2121 function does something useful even when message_buf_print is
2122 already set.
2123
25fa6deb
GM
2124 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
2125 variables.
2126 (ensure_echo_area_buffers): Initialize echo buffer's
2127 truncate lines setting to nil.
2128 (with_echo_area_buffer): Don't set the echo buffer's truncate
2129 lines setting here.
8a4e3c0c 2130 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
2131 of message_truncate_lines.
2132 (resize_mini_window): Handle case that lines are truncated.
2133 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
2134 message-truncate-lines.
2135
2136 * keyboard.c (read_char): Bind message-truncate-lines to t
2137 while displaying a help-echo.
2138
2139 * lisp.h (Qmessage_truncate_lines): External declaration.
2140
163dcff3
GM
21412000-06-13 Gerd Moellmann <gerd@gnu.org>
2142
1681ead6
GM
2143 * xdisp.c (Vline_number_display_limit): Renamed from
2144 line_number_display_limit.
2145 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
2146 Extend documentation string. Initialize
2147 Vline_number_display_limit to nil meaning no limit.
2148 (decode_mode_spec): Use Vline_number_display_limit with its new
2149 meaning.
2150
163dcff3
GM
2151 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
2152
18e21ce8 21532000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
2154
2155 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 2156
163dcff3
GM
2157 * xfns.c (x_set_frame_parameters): Comment fix.
2158
2159 * frame.c (store_frame_param): Call swap_in_global_binding if the
2160 variable's current binding was chosen based on this frame.
2161
2162 * data.c (swap_in_global_binding): New function.
2163
a704139d
EZ
21642000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2165
2166 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
2167 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
2168
9b6610db
EZ
21692000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2170
2171 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
2172
c68833d2
JR
21732000-06-12 Jason Rumney <jasonr@gnu.org>
2174
2175 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
2176
2177 * w32.h (EMACS_W32_H): Renamed from _NT_H_
2178
2179 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
2180
2181 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
2182
ed1056b3
GM
21832000-06-12 Gerd Moellmann <gerd@gnu.org>
2184
2185 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
2186 (syms_of_xfaces): Defsubr Sdump_colors.
2187 (x_free_colors): Don't treat b&w specially on default visual.
2188 (x_free_dpy_colors): New function.
2189 (free_face_colors): Don't check visual class; it's done
2190 in x_free_colors.
2191
2192 * xterm.c (x_frame_of_widget): New function.
2193 (x_alloc_nearest_color_for_widget): Use it.
2194 (x_copy_dpy_color): New function.
2195 (x_destroy_window): Free various colors.
2196
5050a2ef
KH
21972000-06-12 Kenichi Handa <handa@etl.go.jp>
2198
2199 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
2200
2201 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
2202
2203 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
2204
2205 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
2206
2207 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
2208
fb1b041d
DL
22092000-06-11 Dave Love <fx@gnu.org>
2210
2211 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
2212
ff96b5f4
EZ
22132000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2214
2215 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
2216
db8eeecd
GM
22172000-06-11 Gerd Moellmann <gerd@gnu.org>
2218
ed1056b3 2219 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
2220 to `XEvent *'.
2221
49b71c5f
KH
22222000-06-10 Kenichi Handa <handa@etl.go.jp>
2223
c479bd55
KH
2224 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
2225 (regex_compile): Fix the code for handling the case of single byte
2226 char and multibyte char being mixed in a range within [...].
2227
ff6a65c2
KH
2228 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
2229 and dst_multibyte members of coding.
2230
49b71c5f
KH
2231 * charset.c (update_charset_table): Update the table
2232 bytes_by_char_head.
2233 (init_charset_once): Initialize elements of bytes_by_char_head to
2234 1 except for leading codes for private charases.
2235
2236 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
2237 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
2238 sequence.
2239
9e80b57d
KR
22402000-06-09 Ken Raeburn <raeburn@gnu.org>
2241
2242 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
2243 access the data it doesn't point to.
2244
f83fe4b4
GM
22452000-06-08 Gerd Moellmann <gerd@gnu.org>
2246
2247 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 2248 will be translated to a switch-frame event when reading the
f83fe4b4
GM
2249 event queue. This is necessary because Emacs otherwise won't
2250 perform a switch-frame to a new frame until some other event, for
2251 example a keystroke event, forces it to do so. This has various
2252 effects, one visible being that the cursor of a frame created with
2253 C-x 5 2 or switched to with a window manager key binding like
2254 A-TAB stays hollow because selected_window isn't on the newly
2255 focused frame until the switch-frame is performed.
2256
2257 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
2258 generating a switch-frame event if necessary.
2259
2260 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
2261
2262 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
2263 it's an integer.
2264
0890801b
KH
22652000-06-08 Kenichi Handa <handa@etl.go.jp>
2266
2267 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
2268 charset.
2269
173cbca8
GM
22702000-06-07 Gerd Moellmann <gerd@gnu.org>
2271
3091c2a6
GM
2272 * window.c (displayed_window_lines): Take empty lines at
2273 the bottom of a window into account.
427ec082 2274
f38952fe
GM
2275 * window.c (displayed_window_lines): New function.
2276 (Fmove_to_window_line): Use displayed_window_lines to determine
2277 the number of lines to move, instead of using the window's height.
2278
2279 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
2280 to stop reading, even if the form read sets point to a different
2281 value when evaluated.
2282
427ec082 2283 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
2284 put the cursor.
2285
6ba6c818
KH
22862000-06-07 Kenichi Handa <handa@etl.go.jp>
2287
2288 * fileio.c (e_write): Free composition data if stored in
2289 coding->cmp_data.
2290
5f1aea9a
GM
22912000-06-06 Gerd Moellmann <gerd@gnu.org>
2292
666852af
GM
2293 * xdisp.c (display_line): Set row's and iterator's
2294 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
2295 Set cursor even if row ends in the middle of a character.
2296 (dump_glyph_row): Print values of new flags.
2297 (redisplay_window) <cursor movement in unchanged window>: When
2298 point has been moved forward, and PT is at the end of the cursor
2299 row, don't place the cursor in the next row if the cursor row ends
2300 in the middle of a character or at ZV.
2301
2302 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
2303 (struct glyph_row): Add starts_in_middle_of_char_p and
2304 ends_in_middle_of_char_p.
2305 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
2306 ends_in_middle_of_char_p flag.
2307 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
2308
d13f3e2e
GM
2309 * term.c (append_glyph): Revert change of 2000-06-06.
2310
2311 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
2312 padding glyph not fitting on line as whole character not
2313 fitting on line.
2314
5f1aea9a
GM
2315 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
2316 this isn't true for images with `:ascent 100'.
2317
10cda9b0
KH
23182000-06-06 Kenichi Handa <handa@etl.go.jp>
2319
ed00559d
KH
2320 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
2321 as modified if it is originally unmodified.
2322
10cda9b0
KH
2323 * term.c (encode_terminal_code): Change the way to check if
2324 terminal coding does any conversion.
2325 (append_glyph): Set glyph->pixel_width correctly.
2326
2327 * xdisp.c (display_line): While checking line continuation, pay
2328 attention to a padding glyph.
2329
1969fae2
GM
23302000-06-05 Gerd Moellmann <gerd@gnu.org>
2331
2332 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
2333
162ccef4
DL
23342000-06-05 Dave Love <fx@gnu.org>
2335
f19f32dd
DL
2336 * xdisp.c: Include fontset.h.
2337
2338 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
2339
2340 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2341
2342 * dispnew.c: Conditionally include term.h.
2343
2344 * coding.h: Declare code_convert_string_norecord.
2345
2346 * frame.h (struct frame): Use volatile unconditionally.
2347
2348 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
2349
2350 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
2351
2352 * systime.h: Protect against multiple inclusion.
2353 (timezone) [USG5_4]: Define as time_t.
2354
2355 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
2356 (Foptimize_char_table, make_temp_name): Declare.
2357
2358 * Makefile.in (xdisp.o): Depend on fontset.h.
2359
2360 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2361
2362 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
2363 (Foptimize_char_table, make_temp_name): Declare.
2364
427ec082 2365 * s/irix4-0.h:
162ccef4
DL
2366 * s/irix5-0.h:
2367 * s/netbsd.h: Don't define autoconfiscated MATHERR.
2368
2082fe81
DL
23692000-06-02 Dave Love <fx@gnu.org>
2370
2371 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
2372
dcf671d2
GM
23732000-06-02 Gerd Moellmann <gerd@gnu.org>
2374
2375 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 2376 result face, set flags in that face indicating that colors may not
dcf671d2
GM
2377 be freed.
2378
2379 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
2380 glyph, use the ASCII NUL character to determine the face.
2381
d42122a3
DL
23822000-06-02 Dave Love <fx@gnu.org>
2383
2384 * sysdep.c: Conditionally include stdlib.h, unistd.h.
2385 (VFORK_RETURN_TYPE): Remove.
427ec082 2386
d42122a3
DL
2387 * config.in: Add NO_MATHERR.
2388
dd432f16
DL
23892000-06-01 Dave Love <fx@gnu.org>
2390
90aa4ea8
DL
2391 * cmds.c (internal_self_insert): Don't check
2392 Vbefore_change_function, Vafter_change_function.
2393
2394 * insdel.c (signal_before_change, signal_after_change): Likewise.
2395
2396 * buffer.c (Vbefore_change_function, Vafter_change_function):
2397 Variables and their initializations deleted.
2398
2330c9d4
DL
2399 * callint.c (Fcall_interactively): Doc fix.
2400
dd432f16
DL
2401 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
2402
bf9e8804
DL
24032000-05-31 Dave Love <fx@gnu.org>
2404
2405 * textprop.c: Revert last change -- duplicated.
2406
3694b4ab
GM
24072000-05-31 Gerd Moellmann <gerd@gnu.org>
2408
2409 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
2410 in #if 0.
2411
2412 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
2413
f14156cd
JR
24142000-05-31 Jason Rumney <jasonr@gnu.org>
2415
8119aab8
JR
2416 * search.c (Fre_search_forward, Fre_search_backward)
2417 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
2418
f14156cd
JR
2419 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
2420
4aab9be3
JR
24212000-05-30 Jason Rumney <jasonr@gnu.org>
2422
2423 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
2424 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
2425
2426 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
2427 member.
2428
2429 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
2430 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
2431 expand a nil default_filename.
2432
2433 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
2434 pointer to glyph_to_pixel_coords, not a frame.
2435
2436 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
2437 coding.h to dependencies.
2438
2439 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
2440
2441 * w32console.c (glyph_to_pixel_coords): Change first parameter to
2442 window pointer to be consistent with w32term.c and xterm.c.
2443
2444 * w32fns.c: Format and doc changes to bring closer to xfns.c.
2445 (VIETNAMESE_CHARSET): Define if not defined in system headers.
2446 (Qline_spacing, Qcenter): New variables.
2447 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
2448 (x_set_line_spacing): New function.
2449 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
2450 macros.
2451 (x_specified_cursor_type): New function.
2452 (x_set_cursor_type): Use it.
2453 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
2454 and icon strings.
2455 (validate_x_resource_name, x_get_resource_string): Measure lengths
2456 of external strings in bytes.
2457 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
2458 GetTextExtentPoint32 with NULL title.
2459 (Fx_create_frame): Initialize Qline_spacing.
2460 (w32_load_system_font): Initialize font->double_byte_p.
2461 (x_to_w32_charset): Use Vw32_charset_info_alist.
2462 (Image, busy cursor, tooltip functions): Merged changes from
2463 xfns.c. Not yet functional on Windows.
2464
2465 * w32gui.h (W32FontStruct): Add double_byte_p member.
2466
2467 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
2468 (emacs_button_translation): Use it.
2469 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
2470 in `mask' to be set.
2471
2472 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
2473 menu strings.
2474
2475 * w32term.c: Format and doc changes to bring closer to xterm.c.
2476 (w32_char_font_type): New enum.
2477 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
2478 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
2479 (w32_encode_char): New function.
2480 (x_encode_char): Removed.
2481 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
2482 x_encode_char and w32_font_is_double_byte.
2483 (x_produce_image_glyph): Use image_ascent.
2484 (x_produce_glyphs): Use new version of w32_per_char_metric and
2485 handle NULL return value. Allow extra line spacing.
2486 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
2487 (w32_get_glyph_overhangs): Remove unicode_p param. Use
2488 w32_font_type member of glyph instead.
2489 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
2490 (fast_find_position): Make sure not to consider rows not visible
2491 in the window.
2492 (w32_read_socket) [WM_MENUSELECT]: Cannot call
2493 w32_menu_display_help with input blocked, as it can abort.
2494 (x_display_and_set_cursor): Choose cursor depending
2495 on buffer-local value of cursor_type.
2496 (x_draw_bar_cursor): Add parameter WIDTH.
2497
2498 * w32term.h (CP_DEFAULT): Define.
2499 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
2500
10fc3187
GM
25012000-05-30 Gerd Moellmann <gerd@gnu.org>
2502
2503 * search.c (Fre_search_forward, Fre_search_backward)
2504 (Fposix_search_backward, Fposix_search_forward): Doc fix.
2505
d0555360
KH
25062000-05-30 Kenichi Handa <handa@etl.go.jp>
2507
2508 * coding.c (detect_coding_iso2022): Fix code for checking
2509 CODING_CATEGORY_MASK_ISO_8_2.
2510
f1ad044f
SM
25112000-05-29 Stefan Monnier <monnier@cs.yale.edu>
2512
2513 * regex.c (PREFETCH_NOLIMIT): New function.
2514 (re_match_2_internal): Use it and adjust the end_match_2 logic.
2515
84ec3b4b
GM
25162000-05-29 Gerd Moellmann <gerd@gnu.org>
2517
66254a13
GM
2518 * syntax.c (find_defun_start): Move test for
2519 open_paren_in_column_0_is_defun_start outside of the loop.
2520
49e70dec
GM
2521 * xdisp.c (redisplay_window): Really switch buffers when
2522 displaying mode lines, and temporarily set selected_frame to the
2523 frame of the window that's redisplayed.
2524
84ec3b4b
GM
2525 * xfaces.c (free_realized_faces): Block/unblock input.
2526 (free_realized_multibyte_face): Ditto.
2527
869a3a14
DL
25282000-05-29 Dave Love <fx@gnu.org>
2529
2530 * textprop.c (Qkeymap): New variable.
2531 (syms_of_textprop): Intern it.
2532
2533 * keymap.c: Include intervals.h.
2534 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
2535
2536 * Makefile.in (keymap.o): Depend on intervals.h.
2537
2538 * keyboard.c (menu_bar_items, tool_bar_items)
2539 (Fexecute_extended_command): Deal with `keymap' property.
2540 (read_key_sequence): Track map from `keymap' property as well as
2541 `local_map'.
2542
2543 * intervals.c (get_local_map): Extra arg to allow looking for
2544 `keymap' too.
2545
2546 * intervals.h (map_property): New enum.
2547 (get_local_map): Extra arg using it.
2548 (Qkeymap): Declare.
2549
84ec3b4b 2550 * lisp.h (get_local_map): Don't declare here.
869a3a14 2551
89d0c844
KH
25522000-05-29 Kenichi Handa <handa@etl.go.jp>
2553
2554 * Makefile.in (callproc.o): Depend on composite.h.
2555
2556 * callproc.c: Include composite.h.
2557 (Fcall_process): Handle composition correctly.
2558
2559 * coding.h (coding_allocate_composition_data): Extern it.
2560 (coding_restore_composition): Likewise.
2561
2562 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
2563 yet allocated, finish decoding with result
2564 CODING_FINISH_INSUFFICIENT_CMP.
2565 (coding_allocate_composition_data): Make it non-static.
2566 (coding_restore_composition): Likewise.
2567
797a084a
EZ
25682000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
2569
2570 * charset.c (syms_of_charset): Revert last change.
2571
cf872af5
EZ
25722000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2573
2574 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
2575 charsets as unibyte, with 1-column screen width. Sent by Kenichi
2576 Handa.
cf872af5 2577
5b1ae051
EZ
25782000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2579
2580 * charset.c (syms_of_charset): Set width of character sets
2581 eight-bit-control and eight-bit-graphic to 1 column.
2582
34ec9ebe
GM
25832000-05-26 Gerd Moellmann <gerd@gnu.org>
2584
2585 * config.in (HAVE_SPEED_T): New define.
2586
2587 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
2588 `extern speed_t'.
2589
dd854dc2
DL
25902000-05-26 Dave Love <fx@gnu.org>
2591
2592 * coding.c (shrink_decoding_region): Initialize eol_conversion.
2593
2594 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
2595 (Fsubr_arity): New function.
2596 (syms_of_data): Install them.
2597
ba9f8f95
KH
25982000-05-26 Kenichi Handa <handa@etl.go.jp>
2599
0f3e0672
KH
2600 * charset.c (init_charset_once): Set the table bytes_by_char_head
2601 correctly.
2602
cebefb44
KH
2603 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
2604 the default fontset to what Emacs uses by default.
0f3e0672
KH
2605 (check_registry_encoding): This function deleted.
2606 (Fset_fontset_font): Remove the adhoc condition for the default
2607 fontset. Allow cons in FONTNAME.
cebefb44 2608
0f3e0672
KH
2609 * fns.c (map_char_table): Ignore char-table entries for
2610 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 2611
7a18af49
KR
26122000-05-25 Ken Raeburn <raeburn@gnu.org>
2613
2614 * emacs.c (main): Initialize keyboard syms before initializing
2615 window code, so face names are available.
2616
d2af47df
SM
26172000-05-25 Stefan Monnier <monnier@cs.yale.edu>
2618
2619 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
2620 of an anchor at the beginning of a shy-group.
2621
fc6a6a4e
GM
26222000-05-25 Gerd Moellmann <gerd@gnu.org>
2623
2624 * xdisp.c (handle_invisible_prop): Don't try to skip over
2625 invisible text if end of text is already reached.
2626
005f0d35
DL
26272000-05-25 Dave Love <fx@gnu.org>
2628
02513cdd
DL
2629 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
2630
005f0d35
DL
2631 * coding.c (encode_eol): Add null statement after label.
2632
89f6ca4e
EZ
26332000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
2634
2635 * w16select.c (Fw16_set_clipboard_data): Fix the change from
2636 2000-05-20.
2637
a4e1759e
KH
26382000-05-25 Kenichi Handa <handa@etl.go.jp>
2639
2640 * ccl.c (ccl_driver): Fix previous change.
2641
eacfd7fe
KH
26422000-05-25 Kenichi Handa <handa@etl.go.jp>
2643
46ab33a9
KH
2644 * coding.c (run_pre_post_conversion_on_str): Set point to the
2645 beginning of buffer before calling coding->post_read_conversion.
2646 (decode_coding_string): Give correct args to
2647 run_pre_post_conversion_on_str.
2648 (encode_coding_string): Likewise.
2649
eacfd7fe
KH
2650 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
2651 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
2652 eight-bit-graphic correctly.
2653
f8569325
DL
26542000-05-24 Kenichi HANDA <handa@etl.go.jp>
2655
2656 * fileio.c (Finsert_file_contents): Even if a file is not found,
2657 execute codes for setting up coding system. Call
2658 after-insert-file-functions unconditionally.
2659
04545643
GM
26602000-05-24 Gerd Moellmann <gerd@gnu.org>
2661
2662 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
2663 BSD_PGRPS are not defined.
2664
747d90ea
KH
26652000-05-24 Kenichi Handa <handa@etl.go.jp>
2666
2667 * charset.c (update_charset_table): Accept nil in LONG_NAME and
2668 DESCRIPTION.
2669 (syms_of_charset): Avoid building same strings.
2670
716e3b88
GM
26712000-05-23 Gerd Moellmann <gerd@gnu.org>
2672
2673 * lread.c (Fload): Add a comment about the meaning of
2674 Vuser_init_file being t.
2675
2676 * puresize.h (BASE_PURESIZE): Increase to 675000.
2677
2678 * s/gnu-linux.h (setpgrp): Don't define it here because this
2679 prevents compilation on GNU/Linux systems with glib 2.2.
2680
2681 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
2682 as setpgid.
427ec082 2683
9aeb39fa
EZ
26842000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2685
2686 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
2687 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
2688 version.
2689 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
2690
29ced61b
KH
26912000-05-23 Kenichi Handa <handa@etl.go.jp>
2692
0574a2ed
KH
2693 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
2694 unconditionally.
2695
3d80f24d
KH
2696 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
2697
2698 * term.c (encode_terminal_code): Set coding->src_multibyte
2699 properly.
2700
29ced61b
KH
2701 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
2702
d7e00792
KH
27032000-05-22 Kenichi Handa <handa@etl.go.jp>
2704
c9d80d38
KH
2705 * keyboard.c (read_char): Allow character codes 128..255 to be
2706 handled by input-method-function.
2707
d7e00792
KH
2708 * insdel.c (adjust_markers_for_replace): Fix previous change.
2709 (adjust_after_replace): If PREV_TEXT is nil, call
2710 adjust_markers_for_insert, not adjust_markers_for_replace.
2711
087121cc 27122000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 2713
087121cc
GM
2714 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
2715 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
2716 [HAVE_GRANDPT]: Define.
2717 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
2718
2719 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
2720 like SYSV_PTYS.
2721
2722 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
2723
2724 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
2725
c9671f81
KH
27262000-05-20 Kenichi Handa <handa@etl.go.jp>
2727
2728 The following changes are to handle 8-bit characters in a
2729 multibyte buffer/string without facing with byte combining
2730 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
2731 eight-bit-graphic (for 0xA0..0xFF) are introduced.
2732
2733 * Makefile.in (fns.o): Depend on charset.h.
2734
2735 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
2736 convert it to unibyte.
2737 (make_string): Use parse_str_as_multibyte, not chars_in_text.
2738
2739 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
2740 apparent char boundary.
2741 (Fset_buffer_multibyte): Convert 8-bit characters in the range
2742 0x80..0x9F to/from multibyte form.
2743
2744 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
2745 to unibyte.
2746
2747 * callproc.c (Fcall_process): Always encode an argument string if
2748 it is multibyte. Setup src_multibyte and dst_multibyte members of
2749 process_coding properly.
ce75fd23 2750
c9671f81
KH
2751 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
2752 SPLIT_NON_ASCII_CHAR.
2753
2754 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
2755 as is.
2756 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2757
2758 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
2759 variables.
2760 (SPLIT_CHARACTER_SEQ): This macro deleted.
2761 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
2762 valid.
2763 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
2764 and eight-bit-graphic.
2765 (char_to_string): Likewise. Signal an error for too large
2766 character code.
2767 (char_printable_p): Return 0 for 8-bit characters.
2768 (update_charset_table): Update iso_charset_table only when a final
2769 character is non-negative.
2770 (find_charset_in_text): Renamed from find_charset_in_str.
2771 Arguments and return value changed. Callers changed.
2772 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
2773 be -1 if CHARSET is used only internally.
2774 (Fmake_char_internal): Handle new charsets; eight-bit-control and
2775 eight-bit-graphic.
2776 (Fcharset_after): Simplified.
2777 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
2778 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
2779 (multibyte_chars_in_text): Simplified by assuming there's no
2780 invalid multibyte sequence.
2781 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2782 str_as_unibyte): New functions.
2783 (Fstring): Simpified by assuming that byte combining never
2784 happens.
2785 (init_charset_once): Initialization for
2786 LEADING_CODE_8_BIT_CONTROL.
2787 (syms_of_charset): Intern and staticpro Qeight_bit_control and
2788 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
2789 eight-bit-control and eight-bit-graphic.
2790
2791 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
2792 CHARSET_8_BIT_GRAPHIC): New macros.
2793 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
2794 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
2795 (CHARSET_REVERSE_CHARSET): Likewise.
2796 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
2797 eight-bit-graphic.
2798 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
2799 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
2800 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
2801 encounter an invalid multibyte sequence.
2802 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
2803 sequence is always valid.
2804 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
2805 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
2806 macros.
2807 (CHAR_STRING): For 8-bit characters, call char_to_string.
2808 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
2809 multibyte sequence is always valid.
2810 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
2811 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
2812 str_as_unibyte): Extern them.
2813 (BCOPY_SHORT): Fix a bug.
2814 (CHAR_LEN): This macro deleted. Callers changed to use
2815 CHAR_BYTES.
2816 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
2817 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
2818 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2819
bd4bde7f 2820 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
2821 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
2822 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
2823 EMIT_BYTES): New macros.
2824 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
2825 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
2826 macros deleted.
2827 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
2828 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
2829 check the validity of multibyte sequence.
2830 (decode_coding_emacs_mule): New function.
2831 (encode_coding_emacs_mule): New macro.
2832 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
2833 the source.
2834 (DECODE_ISO_CHARACTER): Just return a character code.
2835 (DECODE_COMPOSITION_START): Set coding->result instead of result.
2836 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
2837 EMIT_CHAR to produced decoded characters. Exit the loop only by
2838 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
2839 block here.
2840 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
2841 only position codes for an invalid character.
2842 (encode_designation_at_bol): Return new destination pointer. 5th
2843 arg DSTP is changed to DST.
2844 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
2845 from the source by ONE_MORE_CHAR. Don't handle the case of last
2846 block here.
2847 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
2848 macros deleted.
2849 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
2850 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
2851 TWO_MORE_BYTES to fetch a byte from the source.
2852 (encode_eol): Pay attention to coding->src_multibyte.
2853 (detect_coding, detect_eol): Preserve members src_multibyte and
2854 dst_multibyte.
2855 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
2856 (encoding_buffer_size): Set magnification to 3 for all coding
2857 systems that require encoding.
2858 (ccl_coding_driver): For decoding, be sure that the result is
2859 valid multibyte sequence.
2860 (decode_coding): Initialize coding->errors and coding->result.
2861 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
2862 and raw-text, always call decode_eol. Handle the case of last
2863 block here. If not coding->dst_multibyte, convert the resulting
2864 sequence to unibyte.
2865 (encode_coding): Initialize coding->errors and coding->result.
2866 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
2867 and raw-text, always call encode_eol. Handle the case of last
2868 block here.
2869 (shrink_decoding_region, shrink_encoding_region): Detect cases
2870 that we can't skip data more rigidly.
2871 (code_convert_region): Setup src_multibyte and dst_multibyte
2872 members of coding. For decoding, if the buffer is multibyte,
2873 convert the source sequence to unibyte in advance. For encoding,
2874 if the buffer is multibyte, convert the resulting sequence to
2875 multibyte afterward.
2876 (run_pre_post_conversion_on_str): New function.
2877 (code_convert_string): Deleted and divided into the following two.
2878 (decode_coding_string, encode_coding_string): New functions.
2879 (code_convert_string1, code_convert_string_norecord): Call one of
2880 above.
2881 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
2882 MAKE_NON_ASCII_CHAR.
2883 (Fset_terminal_coding_system_internal,
2884 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
2885 and dst_multibyte members.
2886 (init_coding_once): Initialize iso_code_class with new enum
2887 ISO_control_0 and ISO_control_1.
2888
2889 * coding.h (enum iso_code_class_type): Member ISO_control_code is
2890 devided into ISO_control_0 and ISO_control_1.
2891 (struct coding_system): New members src_multibyte, dst_multibyte,
2892 errors, and result. Delete member fake_multibyte.
2893 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
2894 nonzero.
2895 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
2896 nonzero.
2897
2898 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
2899 (Faset): Likewise.
2900
2901 * editfns.c (Fformat): Be sure to convert 8-bit characters to
2902 multibyte form.
2903 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
2904 combining occurs.
2905 (Ftranspose_region): Delete codes for handling byte combining.
2906
2907 * fileio.c (Finsert_file_contents): Setup src_multibyte and
2908 dst_multibyte members of coding. On handling REPLACE on unibyte
2909 buffer, convert the result of decode_coding to unibyte. On
2910 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 2911 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
2912 multibyteness of the source (buffer or string).
2913
2914 * fns.c (concat): Handle 8-bit characters correctly.
2915 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
2916 unibyte in the result.
2917 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
2918 valid multibyte form in the result.
2919 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2920 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
2921 return -1, signal an error.
2922 (base64_encode_1): New arg MULTIBYTE. Get each character by
2923 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
2924 character is found, return -1.
2925 (Fbase64_decode_region): Delete codes for handling byte-combining.
2926 Treat each decoded byte as a unibyte character.
2927 (Fbase64_decode_string): Return unibyte string.
2928 (Fcompare_strings, concat, string_byte_to_char): Use
2929 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
2930 FETCH_STRING_CHAR_ADVANCE.
2931 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2932 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2933
2934 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
2935 SPLIT_NON_ASCII_CHAR.
2936 (fontset_ref_via_base, fontset_set): Likewise
2937
2938 * insdel.c (adjust_markers_for_record_delete): Deleted.
2939 (adjust_markers_for_insert): Argument changed. Caller changed.
2940 (adjust_markers_for_replace): Likewise.
2941 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
2942 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
2943 (copy_text): Delete unused local varialbe c_save. For converting
2944 to multibyte, be sure to make all 8-bit characters in valid
2945 multibyte form.
2946 (count_size_as_multibyte): Handle 8-bit characters correctly.
2947 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2948 adjust_after_replace, replace_range, del_range_2)
2949 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
2950 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
2951 adjust_after_replace, replace_range, del_range_2) Delete codes for
2952 handling byte combining.
2953 (adjust_before_replace): Deleted.
427ec082 2954
c9671f81
KH
2955 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
2956 SPLIT_NON_ASCII_CHAR.
2957 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
2958 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
2959 unconditionally.
2960 (Fkey_description): Likewise.
2961
2962 * lread.c (read1): On reading multibyte string, be sure to make
2963 all 8-bit chararacters in valid multibyte form.
2964 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2965
2966 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
2967 unconditionally.
2968
2969 * process.c (Fstart_process): GCPRO current_dir before calling
2970 Ffind_operation_coding_system. Encode arguments here.
2971 (create_process): Don't encode arguments here. Setup
2972 src_multibyte and dst_multibyte members of struct coding.
2973 (read_process_output): Setup src_multibyte and dst_multibyte
2974 members of struct coding. If the output is to multibyte buffer,
2975 always decode the output of the process. Adjust the
2976 representation of 8-bit characters to the multibyteness of the
2977 output.
2978 (send_process): Setup coding->src_multibyte according to the
2979 multibyteness of the source.
2980
2981 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
2982 unconditionally.
2983 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
2984 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2985
2986 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
2987 CHAR_LEN.
2988
2989 * w16select.c (Fw16_set_clipboard_data): Setup members
2990 src_multibyte and dst_multibyte of coding. Adjusted for the
2991 change for find_charset_in_str.
2992 (Fw16_get_clipboard_data): Likewise.
2993
2994 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
2995 dst_multibyte of coding.
2996 (x_to_w32_font): Likewise.
2997
2998 * w32select.c (Fw32_set_clipboard_data): Setup members
2999 src_multibyte and dst_multibyte of coding. Adjusted for the
3000 change for find_charset_in_str.
3001 (Fw32_get_clipboard_data): Likewise.
3002
3003 * xdisp.c (get_next_display_element): Handle 8-bit characters
3004 correctly.
3005 (next_element_from_display_vector): Use CHAR_BYTES instead of
3006 CHAR_LEN.
3007 (disp_char_vector): Use SPLIT_CHAR instead of
3008 SPLIT_NON_ASCII_CHAR.
3009
3010 * xselect.c (selection_data_to_lisp_data): Setup members
3011 src_multibyte and dst_multibyte of coding. Adjusted for the
3012 change for find_charset_in_str.
3013 (lisp_data_to_selection_data): Likewise.
3014
5f64c9e0
GM
30152000-05-19 Gerd Moellmann <gerd@gnu.org>
3016
2b63d473
GM
3017 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
3018 buffer.
3019
5f64c9e0
GM
3020 * dispextern.h (Vimage_types): Add extern declaration.
3021
3022 * xdisp.c (Vimage_types): Moved here from xfns.c.
3023 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
3024
3025 * xfns.c (Vimages_types): Moved to xdisp.c.
3026 (syms_of_xfns): Move `image-types' to xdisp.c.
3027
3028 * w32fns.c (Vimage_types): Removed.
3029 (syms_of_w32fns): Remove `image-types'.
3030
813086ea
KH
30312000-05-18 Kenichi Handa <handa@etl.go.jp>
3032
3033 * fns.c (map_char_table): Pay attention to character number of
3034 charset. Check the validity of charset at the first level. For
3035 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
3036 the default value.
3037
3038 * fontset.c: Include "buffer.h".
3039 (fs_load_font): If the face has fontset, record the face ID in
3040 that fontset.
3041 (Finternal_char_font): New function.
3042 (accumulate_font_info): New function.
3043 (Ffontset_info): Rewritten for the new fontset implementation.
3044 (syms_of_fontset): Register Vdefault_fontset in the first element
3045 of Vfontset_table. Include Vdefault_fontset in
3046 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
3047 function.
3048
bdaebbf0
DL
30492000-05-16 Dave Love <fx@gnu.org>
3050
3051 * m/iris5d.h: Deleted -- unused.
3052
cb613bb8
GM
30532000-05-16 Gerd Moellmann <gerd@gnu.org>
3054
b15f3b77
GM
3055 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
3056 `invalid' instead of `illegal'.
3057
3058 * indent.c (Fmove_to_column): When ending within a tab, insert
3059 spaces first so that markers at the end of the tab get adjusted.
3060
835c1b36
GM
3061 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
3062 buffer list that wasn't selected in that frame.
3063
cb613bb8
GM
3064 * filelock.c (get_boot_time): To obtain an 8 char file name, which
3065 is needed on mescaline, use a 2 char prefix, and call
3066 make_temp_name with second arg non-zero.
3067
3068 * fileio.c (make_temp_name): New function, extracted from
3069 Fmake_temp_name.
3070 (Fmake_temp_name): Use it.
3071
f685bea9
EZ
30722000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3073
3074 * window.c (coordinates_in_window): Subtract 1 when computing
3075 right_x.
3076
a1b8d58b
GM
30772000-05-15 Gerd Moellmann <gerd@gnu.org>
3078
3079 * Makefile.in (lisp): Add env.elc.
3080
3081 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
3082
a265079f
GM
30832000-05-12 Gerd Moellmann <gerd@gnu.org>
3084
3085 * search.c (Freplace_match): Handle case of `\N' in the
3086 replacement when there's no group N.
3087
da4496b6
GM
30882000-05-11 Gerd Moellmann <gerd@gnu.org>
3089
0ace421a
GM
3090 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
3091 of the message to message_dolog.
3092
1172eb8d
GM
3093 * keyboard.c (read_char): Don't clear current message for help
3094 events; let the code handling help events handle this. Change
3095 code detecting help events that should be ignored.
3096
da4496b6
GM
3097 * xdisp.c (handle_single_display_prop): Don't try to set PT if
3098 we're interating over a string.
3099
0623e40f
DL
31002000-05-09 Dave Love <fx@gnu.org>
3101
3102 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
3103 that offset before writing. Move gcpro region past call of
3104 Ffile_regular_p.
3105
bae2503b
DL
31062000-05-04 Dave Love <fx@gnu.org>
3107
3108 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
3109
ec82fb2f
GM
31102000-05-04 Gerd Moellmann <gerd@gnu.org>
3111
3112 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
3113 of inserted characters when BUF equals the current buffer, and PT
3114 is in front of or equal to FROM.
3115
cbf18892
GM
31162000-05-03 Gerd Moellmann <gerd@gnu.org>
3117
4ff40dd0
GM
3118 * xdisp.c (handle_single_display_prop): If display property value
3119 is invalid, or something not supported on the frame, restore
3120 iterator's position to what it was initially. Make sure to return
3121 0 for invalid and unsupported property values.
3122
cbf18892
GM
3123 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
3124 that x_per_char_metric returns null.
3125
1b0672c3
GM
31262000-05-02 Gerd Moellmann <gerd@gnu.org>
3127
576da55d
GM
3128 * xterm.h (struct face): Add forward declaration.
3129 (struct image): Ditto.
3130 (image_ascent): Add prototype.
3131
3132 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3133 (x_draw_image_relief, x_draw_image_foreground_1): Call function
3134 image_ascent instead of using IMAGE_ASCENT.
3135
3136 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
3137 (IMAGE_ASCENT): Removed.
3138
3139 * xfns.c (Qcenter): New variable.
3140 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
3141 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
3142 (image_ascent): New function.
3143 (lookup_image): Recognize `:ascent center'.
3144 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3145 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3146 (xbm_load): Don't set image's ascent here.
3147 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
3148 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
3149 check ascent values here.
3150 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
3151 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
3152 (syms_of_xfns): Initialize Qcenter.
3153
1b0672c3
GM
3154 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
3155 to the limits, increase the limits.
3156
0d7811ed
KH
31572000-05-01 Kenichi Handa <handa@etl.go.jp>
3158
3159 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
3160 Check Vfont_encoding_alist against the full name of the opened
3161 font.
3162
a943a5ca
GM
31632000-04-28 Gerd Moellmann <gerd@gnu.org>
3164
3165 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
3166 taller than the window.
3167
5dba1e29
KH
31682000-04-28 Kenichi Handa <handa@etl.go.jp>
3169
3170 * xfaces.c (realize_x_face): Fix the argument of the second
3171 xassert. BASE_FACE may not be a face for ASCII.
3172
353964e3
GM
31732000-04-27 Gerd Moellmann <gerd@gnu.org>
3174
c76e04a8
GM
3175 * print.c (print_object): Treat print-length < 0 as nil.
3176
3177 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
3178
3179 * s/freebsd.h (TERMCAP_OBJ): Removed.
3180 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
3181
3182 * lread.c (read1): Don't treat period followed by certain
3183 characters as symbol start.
3184
3185 * xfns.c (slurp_file): New function.
3186 (xbm_image_p): Handle case of in-memory XBM files.
3187 (xbm_scan): Rewritten to work on memory buffers instead of files.
3188 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
3189 Work on memory buffers instead of files. If DATA is null test
3190 if buffer looks like an in-memory XBM file.
3191 (xbm_load_image): Renamed from xbm_load_image_file. Work on
3192 memory buffers instead of files.
3193 (xbm_file_p): New function.
3194 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
3195
353964e3
GM
3196 * lread.c (end_of_file_error): New function.
3197 (read1): Call it instead of signaling `end-of-file' directly.
3198
427ec082 3199 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
3200 with Fprinc instead of Fprin1.
3201
24d744ac
KR
32022000-04-26 Ken Raeburn <raeburn@gnu.org>
3203
3204 * window.c (freeze_window_start): Check that minibuffer scroll
3205 window isn't nil before extracting the window structure pointer
3206 from it.
3207
3208 * undo.c (record_delete): If we hit the end of the undo list, stop
3209 picking elements apart.
3210
7464346d
GM
32112000-04-26 Gerd Moellmann <gerd@gnu.org>
3212
3213 * xdisp.c (display_line): If lines are continued, restore
3214 iterator's ascent/descent information to the values before the
3215 first glyph not fitting on the line.
3216
612839b6
GM
32172000-04-25 Gerd Moellmann <gerd@gnu.org>
3218
3219 * xdisp.c (try_window_id) <all changes above window start>: Adjust
3220 positions in glyph matrix. Don't compute new window end
3221 positions.
3222
3223 * dispnew.c (increment_matrix_positions): Renamed from
3224 increment_glyph_matrix_buffer_positions.
3225 (increment_row_positions): Renamed from
3226 increment_glyph_row_buffer_positions.
3227
3228 * dispextern.h: Change names of renamed functions from dispnew.c
3229 in prototypes.
3230
cc181e95
GM
32312000-04-24 Gerd Moellmann <gerd@gnu.org>
3232
abfcc168
GM
3233 * fileio.c (Fdo_auto_save): Create directories for auto-save
3234 list file if necessary.
3235
cc181e95
GM
3236 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
3237 from buffer or frame.
3238 (automatic_hscrolling_p): New variable.
3239 (hscroll_windows): Scroll windows horizontally only if automatic
3240 hscrolling is allowed.
3241 (syms_of_xdisp): New variable `automatic-hscrolling'.
3242
3243 * frame.h (struct frame): Add member extra_line_spacing.
3244
3245 * xfns.c (x_set_line_spacing): New function.
3246 (Fx_create_frame): Set line spacing from resources.
3247 (Qline_spacing): New variable.
3248 (syms_of_xfns): Initialize Qline_spacing.
427ec082 3249
cc181e95
GM
3250 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
3251
3252 * buffer.c (init_buffer_once): Handle extra_line_spacing.
3253 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 3254 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
3255 extra_line_spacing from default value.
3256 (init_buffer_once): Initialize default value of extra_line_spacing.
3257
3258 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
3259 and extra3.
3260
3261 * xterm.c (x_produce_glyphs): Remove reference to struct it's
3262 prompt_width. Add extra line spacing.
3263
3264 * term.c (produce_glyphs): Remove reference to struct it's
3265 prompt_width.
3266
3267 * dispextern.h (struct it): Remove member prompt_width, add
3268 extra_line_spacing.
3269
58827478
GM
32702000-04-22 Gerd Moellmann <gerd@gnu.org>
3271
3272 * dispnew.c (update_frame_line): When writing a whole line, make
3273 sure cursor is in the right row afterwards, otherwise a use of
3274 capability `ch' in cmgoto might leave the cursor in the row below.
3275
25a87f42
GM
32762000-04-21 Gerd Moellmann <gerd@gnu.org>
3277
3278 * lisp.h (struct Lisp_Buffer_Cons): Remove.
3279
3280 * keyboard.c (timer_check): Fix typo in comment.
3281
54edf5c2
KH
32822000-04-21 Kenichi Handa <handa@etl.go.jp>
3283
3284 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
3285 name change: ch -> character.
3286
3a64eef5
GM
32872000-04-20 Gerd Moellmann <gerd@gnu.org>
3288
3289 * keyboard.c (echo_message_buffer): New variable.
3290 (echo_now): Set echo_message_buffer to the echo area buffer used
3291 to display the echo.
3292 (cancel_echoing): Reset echo_message_buffer to nil.
3293 (read_char): Code rewritten that handles canceling an echo or
3294 echoing a dash, respectively.
3295
3296 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
3297 directory doesn't exist.
3298
6142fdcb
DL
32992000-04-19 Dave Love <fx@gnu.org>
3300
3301 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
3302 (concat): Don't allow numeric args.
3303 (Fconcat): Doc change.
6142fdcb 3304
ac6b5352
SM
33052000-04-19 Stefan Monnier <monnier@cs.yale.edu>
3306
3307 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
3308 instead define end_match(1|2) more carefully.
3309 Use GET_CHAR_BEFORE_2 for `begline'.
3310
cb9215e4
GM
33112000-04-19 Gerd Moellmann <gerd@gnu.org>
3312
5e3dac3f
GM
3313 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
3314 on 64-bit systems where NULL is defined as `0'.
3315
3316 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
3317 the `variable argument list' to make it work on Alpha.
3318
cb9215e4
GM
3319 * m/alpha.h (_LP64) [!_LP64]: Define.
3320 (ORDINARY_LINK): Define for NetBSD.
3321
3322 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 3323
f532dca0
DL
33242000-04-19 Dave Love <fx@gnu.org>
3325
c750667e
DL
3326 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
3327 change.
3328
3329 * Makefile.in (LIBS): Don't use.
3330 (GETLOADAVG_OBJ): Define again.
3331 (otherobj): Add GETLOADAVG_OBJ.
3332
f532dca0
DL
3333 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
3334
1c7e22fd
GM
33352000-04-18 Gerd Moellmann <gerd@gnu.org>
3336
f6d3257b
GM
3337 * lread.c (read_filtered_event): Cancel and start busy cursor.
3338
427ec082 3339 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
3340 that the per-character metrics may be null.
3341
e10f64e7
GM
33422000-04-17 Gerd Moellmann <gerd@gnu.org>
3343
0daee095
GM
3344 * buffer.c (clone_per_buffer_values): New function.
3345 (Fmake_indirect_buffer): Add optional argument CLONE. Call
3346 clone_per_buffer_values if CLONE is not nil.
3347
e10f64e7
GM
3348 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
3349
38687d43
DL
33502000-04-16 Dave Love <fx@gnu.org>
3351
3352 * Makefile.in: Remove obsolete localcpp stuff.
3353 (GETLOADAVG_OBJ): Don't define.
3354 (obj): Move LIBOBJS...
3355 (otherobj): ... to here.
3356 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
3357 whitespace-only lines after the continuation (Irix).
3358
c21c7262
GM
33592000-04-14 Gerd Moellmann <gerd@gnu.org>
3360
3361 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
3362
3363 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
3364
314767c0
DL
33652000-04-14 Dave Love <fx@gnu.org>
3366
3367 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
3368 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
3369 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
3370 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
3371 NLIST_STRUCT.
3372
3373 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
3374 autoconfiscated HAVE_GETLOADAVG.
3375
3376 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
3377 BROKEN_MKTIME.
3378
a2522dca
GM
33792000-04-14 Gerd Moellmann <gerd@gnu.org>
3380
3381 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
3382 (fill_in_lock_file_name): Avoid existing files that aren't
3383 links.
3384
33744b5d
DL
33852000-04-14 Dave Love <fx@gnu.org>
3386
c21c7262 3387 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
3388 (INTERVAL_SRC): Convert to make variable.
3389 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
3390 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
3391 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
3392 add LIBOBJS.
3393 (SOME_MACHINE_OBJECTS): Remove interval stuff.
3394 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
3395 (shortlisp): Add facemenu, float-sup, frame.
3396 (SOME_MACHINE_LISP): Remove them from here.
3397 (LIBES): Change unused LDLIBS to autoconf LIBS.
3398
3399 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
3400
9d3d5916
KH
34012000-04-14 Kenichi Handa <handa@etl.go.jp>
3402
3403 * composite.c (update_compositions): If FROM and TO are not in a
3404 valid range, do nothing.
3405
198e3c7a
GM
34062000-04-13 Gerd Moellmann <gerd@gnu.org>
3407
3408 * tparam.c (tparam1): Abort when encountering an unknown
3409 `%'-specifier.
3410
3411 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
3412 terminfo.o.
3413
3414 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
3415 as TERMCAP_OBJ.
3416
055a28c9
EZ
34172000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
3418
3419 * fileio.c (a_write): Remove redundant semi-colons.
3420 (e_write): Return -1 if failed to write all the data.
3421 This fixes the changes made at 1999-12-15.
3422
f5c75033
DL
34232000-04-12 Dave Love <fx@gnu.org>
3424
3425 * fns.c (mapcar1): Test for null vals to support mapc.
3426 (Fmapc): New function.
3427
0c3cfc51
EZ
34282000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
3429
3430 * msdos.c (NUM_MOUSE_BUTTONS): Define.
3431 (IT_frame_up_to_date): Support the buffer local value of
3432 cursor-type, if defined.
3433
33465a31
DL
34342000-04-10 Dave Love <fx@gnu.org>
3435
3436 * editfns.c (preceding-char, following-char): Doc fix.
3437
6ed56568
KR
34382000-04-10 Ken Raeburn <raeburn@gnu.org>
3439
3440 * Makefile.in (temacs): Revert 2000-03-12 change.
3441
7cf80d4e
JR
34422000-04-10 Jason Rumney <jasonr@gnu.org>
3443
3444 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
3445
34f3f342
GM
34462000-04-10 Gerd Moellmann <gerd@gnu.org>
3447
1a1b1895
GM
3448 * xdisp.c (setup_echo_area_for_printing): Choose an echo
3449 area buffer, if it's not set up yet.
3450
34f3f342
GM
3451 * indent.c (compute_motion): Set immediate_quit.
3452
be0dbdab
GM
34532000-04-09 Gerd Moellmann <gerd@gnu.org>
3454
c45be9ac
GM
3455 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
3456 variable.
3457 (realize_tty_face): Suppress boldness if colors are the inverse of
3458 the default colors, and tty_suppress_bold_inverse_default_colors_p
3459 is set.
3460 (Ftty_suppress_bold_inverse_default_colors): New function.
3461 (syms_of_xfaces): Defsubr it.
3462
be0dbdab
GM
3463 * buffer.c (Frestore_buffer_modified_p): New function.
3464 (syms_of_buffer): Defsubr it.
3465
e8413c3b
KR
34662000-04-08 Ken Raeburn <raeburn@gnu.org>
3467
87f67317
KR
3468 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
3469 charset id (int) argument, not a charset (Lisp_Object).
3470
e8413c3b
KR
3471 * coding.h (code_convert_string): Declare.
3472 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
3473 object, as the fourth argument to code_convert_string.
3474
3475 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
3476 value.
3477 (Fset_fontset_font): Use EQ to compare lisp objects.
3478
7c752c80
KR
34792000-04-05 Ken Raeburn <raeburn@gnu.org>
3480
c0333abc
KR
3481 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
3482 a pointer that looks like a lisp object.
3483 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
3484 zero, instead see whether it's an integer object, since they can't
3485 have intervals.
3486 (GET_INTERVAL_OBJECT): Simply assign to the destination.
3487
7c752c80
KR
3488 * dispnew.c (allocate_matrices_for_frame_redisplay,
3489 direct_output_forward_char): Use X(U)INT and make_number as needed
3490 to convert between (unsigned) int values and lisp integers.
3491 * keyboard.c (read_key_sequence): Likewise.
3492 * lread.c (substitute_object_recurse): Likewise.
3493 * fns.c (concat, hash_lookup, hash_remove): Likewise.
3494 * minibuf.c (do_completion, Fminibuffer_complete_word,
3495 Fminibuffer_completion_help): Likewise.
3496 * term.c (produce_special_glyphs): Likewise.
3497
3498 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
3499 * print.c (print_preprocess, print_object): Likewise.
3500
3501 * search.c (compile_pattern): Use NILP when checking for nil.
3502
74e49b38
KR
3503 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
3504 __OPTIMIZE__]: Provide a GNU C macro version that handles
3505 lisp-object unions.
3506 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
3507 field, to better cope with ENABLE_CHECKING and calls that modify a
3508 Lisp_Object using its old value.
3509
685e5ed2
GM
35102000-04-04 Gerd Moellmann <gerd@gnu.org>
3511
c407c570
GM
3512 * window.c (compare_window_configurations): Signal an error
3513 if parameters C1 or C2 aren't window configurations.
3514
685e5ed2
GM
3515 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
3516 AFTER_POTENTIAL_GC calls around calls to functions that can
3517 signal an error and thus invoke the debugger.
3518
587a49ab
GM
35192000-04-03 Gerd Moellmann <gerd@gnu.org>
3520
62f20204
GM
3521 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
3522 an error if decoding fails.
3523
587a49ab
GM
3524 * keyboard.c (lispy_mouse_names): Variable removed.
3525 (Vlispy_mouse_stem): New variable.
3526 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
3527 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
3528 for any mouse button number. Increase size of mouse_syms and
3529 button_down_location as needed. Call modify_event_symbol with
3530 different arguments.
3531 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
3532 Call modify_event_symbol with different arguments.
3533 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
3534 for any button number. Call modify_event_symbol with different
3535 arguments.
3536 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
3537 Accept a string for NAME_ALIST_OR_STEM.
3538
3539 * lisp.h (larger_vector): Add prototype.
3540
3541 * fns.c (larger_vector): Make externally visible.
3542
3543 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
3544
2d1675e4
SM
35452000-04-02 Stefan Monnier <monnier@cs.yale.edu>
3546
3547 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
3548 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
3549 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
3550 we are between str1 and str2.
3551 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
3552 (PATFETCH): Use `TRANSLATE'.
3553 (PATFETCH_RAW): Fetch multibyte char if applicable.
3554 (PATUNFETCH): Remove.
3555 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
3556 When writing a char, write it directly into the pattern buffer rather
3557 than going needlessly through a temp char-array.
3558 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
3559 multibyte magic and remove the useless `#ifdef emacs'.
3560 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
3561 buffer.
3562
3563 * regex.h (struct re_pattern_buffer): Make field `multibyte'
3564 conditional on `emacs'.
3565
3566 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
3567
cc2d8c6b
KR
35682000-04-01 Ken Raeburn <raeburn@gnu.org>
3569
3570 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
3571 non-union-type versions of XMARK and friends here, because XMARK
3572 and friends won't work on an integer field if NO_UNION_TYPE is not
3573 defined.
3574 (make_number): Define as a function if it's not defined as a
3575 macro.
3576
09654086
KR
3577 * composite.c (run_composite_function): Use NILP when checking for
3578 nil.
3579 (syms_of_composite): Delete local var NARGS, pass an int as first
3580 argument to Fmake_hash_table.
3581
2387b382
KR
3582 * editfns.c (text_property_stickiness): Use NILP to test
3583 Lisp_Object boolean value.
3584 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
3585 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
3586 problems reading from and changing the same lisp value in an
3587 XSETSTRING call.
3588
27660e89
GM
35892000-04-01 Gerd Moellmann <gerd@gnu.org>
3590
3591 * term.c (TN_no_color_video): New variable.
3592 (term_init): Intitialize TN_no_color_video.
3593 (enum no_color_bit): New enumeration.
3594 (MAY_USE_WITH_COLORS_P): New macro.
3595 (turn_on_face): Use it to determine if attributes may be used
3596 combined with colors.
3597
3578db3c
KR
35982000-04-01 Ken Raeburn <raeburn@gnu.org>
3599
3600 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
3601 with int lvalues via casts; instead, just yield lisp object
3602 lvalues.
3603 (enlarge_window): Variable sizep now points to Lisp_Object. Use
3604 proper accessor macros.
3605 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
3606 (grow_mini_window): Fix typo getting int value of root->height.
3607
6fc556fd
KR
3608 * xdisp.c (compute_string_pos): Fix order of arguments to
3609 string_pos_nchars_ahead.
3610 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
3611 count arg to variable-arg routines like Frun_hook_with_args and
3612 Fformat.
587a49ab
GM
3613 (back_to_previous_visible_line_start)
3614 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
3615 fixed-arg routines like Fget_char_property and Fmake_string.
3616 (reconsider_clip_changes): Use XINT when comparing integer lisp
3617 objects, or passing them as int arguments.
587a49ab
GM
3618 (mark_window_display_accurate, insert_left_trunc_glyphs)
3619 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
3620 storing or passing integer values as lisp objects.
3621 (set_cursor_from_row, highlight_trailing_whitespace): Use
3622 INTEGERP, not implicit test against zero, for glyph object.
3623 (try_window_id): Don't use make_number when we want an int value.
3624
3625 * xfaces.c (xlfd_symbolic_value): Make last argument a
3626 Lisp_Object, to be consistent with callers.
3627 (Fbitmap_spec_p): Use XINT to get numeric value of height.
3628 (lface_hash): Apply XFASTINT to lisp values before folding in.
3629
3630 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
3631 fill in window width and height. Pass an int, not a lisp object,
3632 as first arg to Finsert.
3633
6e7b2457
GM
36342000-04-01 Gerd Moellmann <gerd@gnu.org>
3635
610d841e
GM
3636 * xfaces.c (realize_basic_faces): Block input while realizing
3637 the faces.
3638
6e7b2457
GM
3639 * keyboard.c (lispy_mouse_names): Add additional mouse names.
3640
3641 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
3642
aa110c0c
GM
36432000-03-31 Gerd Moellmann <gerd@gnu.org>
3644
3645 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 3646 or ASCII, handle case that per-char metric is null.
aa110c0c 3647
8801a864
KR
36482000-03-30 Ken Raeburn <raeburn@gnu.org>
3649
c6129d7e
KR
3650 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
3651
8801a864
KR
3652 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
3653 XSUBR, XBUFFER): Verify correct object type before returning
3654 pointer, using eassert.
3655 * frame.h (XFRAME): Likewise.
3656
3657 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
3658 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
3659 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
3660 type.
3661 * data.c (set_internal): Likewise.
3662 * dispextern.h (WINDOW_WANTS_MODELINE_P,
3663 WINDOW_WANTS_HEADER_LINE_P): Likewise.
3664 * fileio.c (auto_save_1): Likewise.
3665 * insdel.c (check_markers): Likewise.
3666 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
3667 * undo.c (record_insert): Likewise.
3668 * vmsproc.c (child_sig): Likewise.
3669 * window.c (unshow_buffer, window_loop): Likewise.
3670 * xterm.c (x_erase_phys_cursor): Likewise.
3671
8e7af858
GM
36722000-03-30 Gerd Moellmann <gerd@gnu.org>
3673
3674 * xfns.c (free_image_cache): Free the cache structure itself
3675 last, after all its members have been freed.
3676
3677 * lisp.h (xstrdup): Add prototype.
3678
3679 * alloc.c (xstrdup): Moved here from xfaces.c.
3680 (allocating_for_lisp): Variable removed.
3681 (lisp_malloc): Block input around the calls to malloc and
3682 mem_insert.
3683
3684 * xfaces.c (realize_tty_face): Use find_symbol_value instead
3685 of Fsymbol_value.
3686 (xstrdup): Moved to alloc.c.
3687
e0b8c689
KR
36882000-03-29 Ken Raeburn <raeburn@gnu.org>
3689
b96f9fb7
KR
3690 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
3691
3692 * emacs.c (main): Fix sense of no-loadup test.
3693
e0b8c689
KR
3694 * config.in (ENABLE_CHECKING): Undef.
3695
3696 * lisp.h (struct interval): Replace "parent" field with a union of
3697 interval pointer and Lisp_Object; add new bitfield to use as
3698 discriminant. Change other flag fields to bitfields.
3699 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
3700 is defined and the supplied test fails, print a message and
3701 abort.
3702 (eassert): New macro. Use CHECK to provide an assert-like
3703 facility.
3704
3705 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
3706 pointers; abort if the value looks like a lisp object.
3707 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
3708 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
3709 Modify for new interval parent definition.
3710
3711 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
3712 UNMARK_BALANCE_INTERVALS): Update references that need an
3713 addressable lisp object in the interval structure.
3714 (die): New function.
3715 (suppress_checking): New variable.
3716
3717 * intervals.c (interval_start_pos): Just return 0 if there's no
3718 parent object.
3719
f83c5440
GM
37202000-03-29 Gerd Moellmann <gerd@gnu.org>
3721
3722 * lread.c (read1): Accept `.' (period) as symbol start like in CL
3723 and earlier Emacs versions.
3724
3725 * keyboard.c (Ftop_level): Cancel busy-cursor.
3726
3727 * eval.c (call_debugger): Cancel busy-cursor.
3728
fdce64ff
KH
37292000-03-29 Kenichi Handa <handa@etl.go.jp>
3730
3731 * search.c (Freplace_match): Adjust multibyteness of the current
3732 buffer and NEWTEXT. Free allocated memory before signaling an
3733 error.
3734
f6a3f532
SM
37352000-03-28 Stefan Monnier <monnier@cs.yale.edu>
3736
3737 * regex.c (analyse_first): New function obtained by ripping out most
3738 of re_compile_fastmap and generalizing it a little bit so that it
3739 can also just return whether a given (sub)pattern can match the empty
3740 string or not.
3741 (regex_compile): Use `analyse_first' to decide whether the loop-check
3742 needs to be done or not for *, +, *? and +? (the loop check is costly
3743 for non-greedy repetition).
3744 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
3745
e9b309ac
DL
37462000-03-28 Dave Love <fx@gnu.org>
3747
bb15bd9a
DL
3748 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
3749 alpha.
3750
e9b309ac
DL
3751 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
3752
ed0767d8
SM
37532000-03-27 Stefan Monnier <monnier@cs.yale.edu>
3754
3755 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
3756 an expression.
3757 (enum re_opcode_t): Update description of succeed_n.
3758 (PATFETCH): Always define.
3759 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
3760 operators, char classes, shy-groups and intervals).
3761 Optimize special cases of intervals so as to only use succeed_n and
3762 jump_n when really needed.
3763 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
3764 that we don't have to handle the special cases any more.
3765 Simplify on_failure_jump handling as well.
3766
e11e7e46
JR
37672000-03-28 Jason Rumney <jasonr@gnu.org>
3768
3769 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
3770
88faab89
GM
37712000-03-27 Gerd Moellmann <gerd@gnu.org>
3772
182ff242
GM
3773 * s/freebsd.h (GC_SETJMP_WORKS): Define.
3774
3775 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 3776
182ff242
GM
3777 * alloc.c (mark_maybe_object): New function.
3778 (mark_memory): Use it.
3779 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
3780 (setjmp_tested_p, longjmp_done): New variables.
3781 (test_setjmp): New function.
3782 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
3783 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
3784
c1005d06
GM
3785 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
3786 to DEC_TEXT_POS and INC_TEXT_POS.
3787
3788 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
3789 with parameter MULTIBYTE_P.
3790
427ec082 3791 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
3792 MULTIBYTE_P.
3793
7439e5b9 3794 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
3795 buffers because it looks for multibyte character byte sequences
3796 which don't exist in unibyte text.
7439e5b9 3797
d9c545da
GM
3798 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
3799
11fd416e 3800 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
3801 [DEBUG_X_COLORS]: New functions.
3802 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
3803
3804 * xfns.c (x_set_cursor_color): Get color reference counts right.
3805
3806 * xterm.c (x_copy_color): New function.
3807 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
3808
3809 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
3810 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
3811 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
3812 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
3813 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
3814 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
3815 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
3816 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
3817 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
3818 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
3819
11fd416e
GM
3820 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
3821 names for handling per-buffer variables.
d9c545da
GM
3822
3823 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
3824 instead of MAX_BUFFER_LOCAL_VARS.
3825 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
3826
3827 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
3828
88faab89
GM
3829 * xfns.c (x_specified_cursor_type): New function.
3830 (x_set_cursor_type): Use it.
3831
3832 * buffer.h (struct buffer): Add cursor_type.
3833
d80f42b7
SM
38342000-03-26 Stefan Monnier <monnier@cs.yale.edu>
3835
3836 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 3837 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 3838 opcode.
d80f42b7
SM
3839 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
3840 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
3841 executing it as well as when popping it off the stack to find infinite
3842 loops in non-greedy repetition operators.
3843
89e80928
GM
38442000-03-26 Gerd Moellmann <gerd@gnu.org>
3845
3d4ff2dd
GM
3846 * doc.c (Qfunction_documentation): New variable.
3847 (syms_of_doc): Initialize Qfunction_documentation.
3848 (Fdocumentation): If FUNCTION is a symbol with non-nil
3849 `function-documentation' property, return a documentation derived
3850 from that.
3851
bd96bd79
GM
3852 * buffer.c (syms_of_buffer): Add default-cursor-type.
3853 (init_buffer_once): Don't let cursor_type have a local value
3854 in every buffer.
3855
19d1bc27
GM
3856 * xterm.c (x_display_and_set_cursor): Choose cursor depending
3857 on buffer-local value of cursor_type.
3858 (x_draw_bar_cursor): Add parameter WIDTH.
3859
3860 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
3861 (init_buffer_once): Set default cursor_type value to t.
3862 Mark cursor_type as local everywhere.
3863 (syms_of_buffer): New per-buffer variable cursor-type.
3864
89e80928
GM
3865 * buffer.h (struct buffer): Remove member local_var_flags,
3866 add local_flags.
3867 (MAX_BUFFER_LOCAL_VARS): New macro.
3868 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
3869 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
3870 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
3871 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
3872
3873 * print.c (print_object): Use new macros for per-buffer
3874 variables.
3875
3876 * category.c (Fset_category_table): Use new macros for per-buffer
3877 variables.
3878
3879 * buffer.c (buffer_permanent_local_flags): Make a char array.
3880 (max_buffer_local_idx): New variable.
3881 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
3882 for new handling of per-buffer variables.
3883 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
3884 (init_buffer_once): Initialize per-buffer vars differently.
3885 Set max_buffer_local_idx.
3886
3887 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
3888 variables.
3889
3890 * lread.c (defvar_per_buffer): Use new macros for per-buffer
3891 variables.
3892
3893 * data.c (do_symval_forwarding, store_symval_forwarding)
3894 (find_symbol_value, set_internal, default_value, Fset_default)
3895 (Fkill_local_variable, Flocal_variable_p): Use new macros for
3896 per-buffer variables.
3897
3898 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
3899
9a0dd3dc
GM
39002000-03-24 Gerd Moellmann <gerd@gnu.org>
3901
b68c375f
GM
3902 * xterm.c (x_term_init): Unblock input around call1 of
3903 Qvendor_specific_keysyms.
3904
9a0dd3dc
GM
3905 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
3906 (find_defun_start): Consider an open parenthesis in column 0
3907 a defun start only if open_paren_in_column_0_is_defun_start is set.
3908 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
3909
7973e637
SM
39102000-03-24 Stefan Monnier <monnier@cs.yale.edu>
3911
3912 * eval.c (Fautoload): Add entry in load-history (if after dump).
3913 * lread.c (load-history): Update docstring.
3914
39210e90
GM
39152000-03-24 Gerd Moellmann <gerd@gnu.org>
3916
3917 * indent.c (Fvertical_motion): Always use the current buffer.
3918 Temporarily change the window's buffer, if necessary.
3919
72db3ab5
GM
39202000-03-23 Gerd Moellmann <gerd@gnu.org>
3921
3922 * xterm.c (fast_find_position): Make sure not to consider rows
3923 not visible in the window.
3924
990b2375
SM
39252000-03-22 Stefan Monnier <monnier@cs.yale.edu>
3926
3927 * regex.c (enum syntaxcode): Provide default for non-Emacs.
3928 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
3929
ff4df011
JR
39302000-03-22 Jason Rumney <jasonr@gnu.org>
3931
3932 * w32menu.c (single_submenu): Set help string to NULL if none.
3933 (w32_menu_show): Set help string correctly.
3934 (add-menu-item): Set help string in MIIM_DATA for menu item.
3935 Load SetMenuItemInfoA explicitly.
3936 (w32_menu_display_help): New function.
427ec082 3937
ff4df011
JR
3938 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
3939 (QCdata): Moved to xdisp.c.
3940
3941 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
3942 (Vw32_charset_to_codepage_alist): Removed.
3943 (Vw32_charset_info_alist): New variable.
3944 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
3945 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
3946 greek, hebrew, thai, johab, mac, unicode]): New symbols.
3947 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
3948 with TODO comment.
3949 (w32_codepage_for_font): Use Vw32_charset_info_alist.
3950 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
3951 Define Vw32_charset_info_alist and w32_charset symbols.
3952
39532000-03-22 Jason Rumney <jasonr@gnu.org>
3954
3955 * makefile.nt (w32bdf.obj): Update dependencies.
3956
3957 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
3958
3959 * w32fns.c: Include fontset.h after dispextern.h.
3960 (Fx_create_frame): Do not create fontset.
3961 (w32_load_system_font): Doc fix.
3962 (Fx_close_connection): Free full_name if it is not shared.
3963
3964 * w32term.c: Include fontset.h after dispextern.h.
3965 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
3966 updated.
3967 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
3968 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
3969 (w32_font_is_double_byte): New function, needs body.
3970 (x_append_glyph): Set glyph->glyph_not_available_p.
3971 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
3972 it->charset. If it->multibyte_p is zero and it->c is a multibyte
3973 character, convert it to a unibyte character.
3974 (struct glyph_string): Delete member `charset'.
3975 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
3976 calculating it is found.
3977 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
3978 the case that per char metric is not available correctly.
3979 (x_fill_glyph_string): Handle the case that the specific glyph is
3980 not available correctly.
3981 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
3982 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
3983 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
3984 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
3985 fontset. Don't call FS_LOAD_FONT.
3986
439d5cb4
KR
39872000-03-22 Ken Raeburn <raeburn@gnu.org>
3988
3989 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
3990 (INT_LISPLIKE): New macro.
3991 (NULL_INTERVAL_P): Use it.
3992 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
3993 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
3994 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
3995
3996 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
3997 explicit references to "parent" field of struct interval and
3998 associated unclean type conversions.
3999 * intervals.c (create_root_interval, root_interval, rotate_right,
4000 rotate_left, balance_possible_root_interval, split_interval_right,
4001 split_interval_left, interval_start_pos, find_interval,
4002 next_interval, previous_interval, update_interval,
4003 adjust_intervals_for_insertion, delete_node, delete_interval,
4004 adjust_intervals_for_deletion, merge_interval_right,
4005 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
4006 copy_intervals_to_string): Likewise.
4007 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
4008 Likewise.
4009 * syntax.c (update_syntax_table): Likewise.
4010
4011 * intervals.c (reproduce_tree_obj): New function, like
4012 reproduce_tree but takes a Lisp_Object for the parent. Declare
4013 with prototype.
4014 (graft_intervals_into_buffer): Use it when appropriate.
4015 (reproduce_tree): Declare with prototype.
4016 (balance_possible_root_interval): Check that the parent is a lisp
4017 object before trying to examine its type.
4018
ee1c5b21
GM
40192000-03-22 Gerd Moellmann <gerd@gnu.org>
4020
4021 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
4022 as strings only if both are known to be strings.
4023
4024 * s/openbsd.h (LIBS_TERMCAP): Undef.
4025
1fb352e0
SM
40262000-03-21 Stefan Monnier <monnier@cs.yale.edu>
4027
4028 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
4029 definitions for non-Emacs compilation.
4030 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
4031 outside of `#ifdef emacs'.
4032 (print_partial_compiled_pattern): Update.
4033 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
4034 (re_compile_fastmap): Merge handling of charset and charset_not (for
4035 emacs and non-emacs compilation as well).
4036 Similarly for (not)categoryspec and (not)syntaxspec.
4037 Don't use the fastmap when reaching `anychar' since the added
4038 complexity is not justified.
4039 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
4040 and (not)syntaxspec. Merge (not)categoryspec.
4041
fdaa1f77
KH
40422000-03-22 Kenichi Handa <handa@etl.go.jp>
4043
ff1a0d8e
KH
4044 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4045 FACE_FOR_CHAR): Define them differently for the configuration of
4046 --without-x.
fdaa1f77 4047
d152fb46
DL
40482000-03-21 Dave Love <fx@gnu.org>
4049
4050 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
4051 doc string.
4052
d2cafc8c
GM
40532000-03-21 Gerd Moellmann <gerd@gnu.org>
4054
4055 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
4056 (lface_fully_specified_p): Don't check contents of
4057 LFACE_FONT_INDEX because that attribute is optional.
4058 (realize_x_face): Remove now unwarranted xassert.
4059
9111d4b5
KH
40602000-03-21 Kenichi HANDA <handa@etl.go.jp>
4061
4062 The following changes are to make font selection based on
4063 characters, not charset. In addition, they recover fontset
4064 facilities while utilizing the new font selection mechanism.
4065
6c4bfdc0
KH
4066 * Makefile.in (fontset.o): Depend on dispextern.h.
4067
4068 * alloc.c (mark_face_cache): Don't mark face->registry.
4069
9111d4b5
KH
4070 * dispextern.h (struct glyph): New member glyph_not_available_p.
4071 Use 22 bits for face_id.
4072 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
4073 (struct face): Delete member registry, new member ascii_face.
4074 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
4075 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
4076 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
4077 (struct it): Delete member charset, new member
4078 glyph_not_available_p.
4079
4080 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
4081 (struct fontset_info, struct fontset_data): Structs removed.
4082 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
4083 Vglobale_fontset_alist, font_idx_temp): Externs removed.
4084 (fs_load_font, fs_query_fontset): Adjusted for new argument.
4085 (fs_free_face_fontset, fontset_font_pattern,
4086 face_suitable_for_char_p, face_for_char,
4087 make_fontset_for_ascii_face): Extern them.
4088 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
4089 (FS_LOAD_FACE_FONT): New macro.
4090
4091 * fontset.c: All codes rewritten or adjusted for the change of
4092 fontset implementation. Now fontset is represented by char table.
4093 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
4094 removed.
4095 (my_strcasecmp): Function removed.
4096 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
4097 variables.
4098 (AREF, ASIZE): New macros.
4099 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
4100 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
4101 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
4102 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
4103 fontset_id_valid_p, font_family_registry, fontset_name,
4104 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
4105 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
4106 New functions.
4107 (fs_load_font): New arg FACE. Caller changed.
4108 (fs_query_fontset): Argument changed. Caller changed.
4109 (Fquery_fontset): call fs_query_fontset.
4110 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
4111 Functions removed.
4112 (clear_fontset_elements, check_registry_encoding,
4113 check_fontset_name): New functions.
4114 (syms_of_fontset): Set char-table-extra-slots property of fontset
4115 to 3. Staticpro and initialize Vfontset_table and
4116 Vdefault_fontset. Defsubr fontset_font and fontset_list.
4117
4118 * frame.h (struct frame): Member `fontset_data' removed.
4119 (FRAME_FONTSET_DATA): Macro removed.
4120
4121 * frame.c (make_frame): Don't allocate f->fontset_data.
4122 (Fdelete_frame): Don't free f->fontset_data.
4123
6c4bfdc0
KH
4124 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
4125
9111d4b5
KH
4126 * xdisp.c (charset_at_position): Function removed.
4127 (init_iterator): Don't set member charset of struct `it'.
4128 (handle_face_prop, reseat_to_string, set_iterator_to_next,
4129 next_element_from_display_vector, insert_left_trunc_glyphs):
4130 Likewise.
4131 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
4132 FACE_FOR_CHARSET.
4133 (get_next_display_element, append_space,
4134 extend_face_to_end_of_line): Likewise.
4135
4136 * xfaces.c (Qx_charset_registry, Vface_default_registry):
4137 Variables removed.
4138 (clear_font_table, frame_update_line_height, load_face_font):
4139 Adjusted for the change of fontset implementation.
4140 (load_face_fontset_font): Function removed.
4141 (pixel_point_size): New function.
4142 (font_list): Argument type changed. Caller changed.
4143 (LFACE_FONT): New macro.
4144 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
4145 (set_lface_from_font_name): Type of arg FONTNAME is changed to
4146 Lisp_Object. Determine the font name by actually loading a font
4147 by the specified pattern. Set LFACE_FONT (lface) to the specified
4148 pattern. Even if a font is not found, don't try alternatives.
4149 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
4150 (set_font_frame_param): If `font' is specified in lface, use it.
4151 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
4152 (lface_same_font_attributes_p): Likewise.
4153 (make_realized_face): Arguent changed. Caller changed. Set
4154 face->ascii_face to face itself.
4155 (free_realized_face): Free face->fontset if face is for ASCII.
4156 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
4157 deduce_unibyte_registry, x_charset_registry): Functions removed.
4158 (free_realized_multibyte_face): New function.
4159 (lookup_face, lookup_named_face, lookup_derived_face): Argument
4160 changed. Caller changed.
4161 (try_font_list): Argument type changed.
4162 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
4163 (choose_face_font): Argument changed. Handle fontset properly.
4164 (choose_face_fontset_font): Function removed.
4165 (realize_default_face, realize_named_face): Don't remove the
4166 former face here.
4167 (realize_face): Argument changed. Caller changed. Remove face
4168 with the arg former_face_id in advance. Load font for the new
4169 face.
4170 (realize_x_face): Argument changed. Caller changed. For a
4171 multibyte character, share fontset with base_face. For a single
4172 byte character, make a new realized fontset. Don't load a font
4173 here.
4174 (realize_tty_face): Argument changed. Caller changed.
4175 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
4176 (face_at_buffer_position): Don't check multibyte_p for returning
4177 DEFAULT_FACE_ID.
4178 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
4179 FACE_SUITABLE_FOR_CHARSET_P.
4180 (syms_of_xfaces): Remove code for Qx_charset_registry and
4181 Vface_default_registry.
4182
6c4bfdc0
KH
4183 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
4184 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
4185 (x_per_char_metric): Don't try FONT->default_char. Even if
4186 pcm->width is zero, glyph bits may exist.
4187 (x_encode_char): Always initialize char2b->byte1.
4188 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
4189 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
4190 changed.
4191 (x_append_glyph): Set glyph->glyph_not_available_p.
4192 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4193 it->charset. Handle the case that per char metric is not
4194 available. If it->multibyte_p is zero and it->c is a multibyte
4195 character, convert it to a unibyte character.
4196 (struct glyph_string): Delete member `charset'.
4197 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4198 the case that per char metric is not available correctly.
4199 (x_fill_glyph_string): Handle the case that the specific glyph is
4200 not available correctly.
4201 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4202 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4203 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4204 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4205 fontset. Don't call FS_LOAD_FONT.
4206
4207 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
4208 (x_create_tip_frame): Likewise.
4209 (Fx_close_connection): Free full_name of font_info.
4210
4211 * fns.c (optimize_sub_char_table): New function.
4212 (Foptimize_char_table): New function.
4213 (syms_of_fns): Defsubr Soptimize_char_table.
4214
b33dd3b0
GM
42152000-03-20 Gerd Moellmann <gerd@gnu.org>
4216
4217 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
4218 only if buffer is displayed in some window.
4219
4220 * xdisp.c (handle_single_display_prop): Initialize local `value'.
4221 (try_window_reusing_current_matrix): Don't call scroll run
4222 function if run's current and desired position are the same;
4223 this prevents cursor flickering.
4224
4e8a9132
SM
42252000-03-19 Stefan Monnier <monnier@cs.yale.edu>
4226
4227 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
4228
4229 * regex.c (RE_STRING_CHAR): New macro.
4230 (GET_CHAR_AFER_2): Remove.
4231 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
4232 (enum re_opcode_t): Remove on_failure_jump_exclusive.
4233 (print_partial_compiled_pattern, re_compile_fastmap)
4234 (re_match_2_internal): Remove on_failure_jump_exclusive.
4235 (regex_compile): Turn optimizable P+ loops into PP*, so that the
4236 optimization only need to work for * (ie. can use of_keep_string_jump).
4237 Remove the special case for .*\n since it is now covered by the general
4238 optimization.
4239 (re_search_2): Don't bother with `room'.
4240 (skip_one_char): New function.
4241 (skip_noops): Simplify since `memory' is not needed any more.
4242 (mutually_exclusive_p): Restructure slightly to use `switch' and
4243 add handling for "all" remaining cases.
4244 (re_match_2_internal): Change on_failure_jump_smart to use
4245 on_failure_keep_string_jump (and redirect the end-of-loop jump)
4246 rather than on_failure_jump_exclusive.
4247
2136fdd4
GM
42482000-03-19 Gerd Moellmann <gerd@gnu.org>
4249
4250 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
4251 number of bits per RGB because it's everywhere used as the depth
4252 of the visual.
4253
4254 * term.c (calculate_costs): Remove code dealing with X frames.
4255
18e21ce8 42562000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
4257
4258 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
4259
d7b511c4
GM
42602000-03-18 Gerd Moellmann <gerd@gnu.org>
4261
4262 * lread.c (read_integer): Unread the last char not consumed.
4263
16b5d424
GM
42642000-03-17 Gerd Moellmann <gerd@gnu.org>
4265
4266 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 4267 which are in the process of being deleted.
16b5d424 4268
1fa28578
GM
42692000-03-16 Gerd Moellmann <gerd@gnu.org>
4270
83488cce
GM
4271 * Makefile.in (mostlyclean): Add `*.core'.
4272 (clean): Add `bootstrap-emacs'.
4273
1fa28578
GM
4274 * lread.c (read_integer): New function.
4275 (read1): Support read syntax #o, #x, #b, #r.
4276
99633e97
SM
42772000-03-15 Stefan Monnier <monnier@cs.yale.edu>
4278
1fa28578
GM
4279 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
4280 make sure POINTER_TO_OFFSET gives the same value before and after
4281 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
4282 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
4283 (debug): Now only active if > 0 rather than if != 0.
4284 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
4285 (print_partial_compiled_pattern): Add missing `succeed' case. Use
4286 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
4287 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
4288 (store_op1, store_op2, insert_op1, insert_op2)
4289 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
4290 (group_in_compile_stack): Move to after its arg's types are
4291 declared and add a prototype.
99633e97 4292 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
4293 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
4294 wrapper.
99633e97 4295 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
4296 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
4297 indentation of the greedy-op and shy-group code.
99633e97
SM
4298 (at_(beg|end)line_loc_p): Fix argument's types.
4299 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
4300 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
4301 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
4302 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
4303 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
4304 QUIT unconditionally.
99633e97 4305
699238d9
GM
43062000-03-15 Gerd Moellmann <gerd@gnu.org>
4307
4308 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
4309 a sole completion.
4310
4311 * process.c (send_process): Add a hint that the function
4312 can call Lisp code to its comment.
4313
4314 * lread.c (load_dangerous_libraries): New variable.
4315 (Vbytecomp_version_regexp): New variable.
4316 (safe_to_load_p): New function.
4317 (Fload): Handle files not compiled with Emacs specially.
4318 (syms_of_lread): New Lisp variable load-dangerous-libraries.
4319
34e23e5a
GM
43202000-03-14 Gerd Moellmann <gerd@gnu.org>
4321
9c763cca
GM
4322 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
4323
4324 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
4325 support functions only if HAVE_X11R6_XIM is defined.
4326 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
4327
4328 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
4329
4330 * xfns.c (X_I18N_INHIBITED): Don't define.
4331 (create_frame_xic): Remove conditional compilation on
4332 X_I18N_INHIBITED.
4333 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
4334
4335 * config.in (HAVE_X_I18N): Moved here from xterm.h.
4336 (HAVE_X11R6_XIM): Define.
4337
4338 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
4339
34e23e5a
GM
4340 * xterm.c (x_term_init): Add support for X resource `synchronous'.
4341 If set, call XSynchronize.
4342
66f0296e
SM
43432000-03-13 Stefan Monnier <monnier@cs.yale.edu>
4344
34e23e5a
GM
4345 * regex.c: Declare a new type `re_char' used throughout the code
4346 for the string char type. It's `const unsigned char' to match the
4347 rest of Emacs. Consistently make sure all pointers to strings use
4348 it and make sure all pointers into the pattern use `unsigned
4349 char'.
66f0296e 4350 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
4351 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
4352 code duplication.
66f0296e
SM
4353
4354 * charset.h (GET_CHAR_AFTER_2): Remove.
4355 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
4356
854a025c
KR
43572000-03-12 Ken Raeburn <raeburn@gnu.org>
4358
4359 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
4360 variable before the invocation of YMF_PASS_LDFLAGS, in case both
4361 of them try to use backquotes.
4362
b9d2c7e2
DL
43632000-03-12 Dave Love <fx@gnu.org>
4364
4365 * unexelf.c: Restore changes of 1999-10-19.
4366 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
4367 fix its type and alignment; copy it from current process.
4368
5e5dff44
GM
43692000-03-12 Gerd Moellmann <gerd@gnu.org>
4370
9b2f3c38
GM
4371 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
4372 has been found. Fix bug not computing timer's predecessor.
4373
427ec082 4374 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
4375 file name.
4376
e1cff360
GM
4377 * window.c (Fsave_window_excursion): Doc fix.
4378
5e5dff44
GM
4379 * xfns.c (x_defined_color): Rewritten to use
4380 x_allocate_nearest_color.
4381
e411ce4b
EZ
43822000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4383
4384 * msdos.c (vga_installed): New function, code moved from
4385 dos_set_window_size.
4386 (Qbar, Qcursor_type, outside_cursor): New variables.
4387 (syms_of_msdos): Intern and staticpro them.
4388 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
4389 shape used outside Emacs when called for the first time.
4390 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
4391 cursor shape used outside Emacs.
4392 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
4393 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
4394 type has changed.
4395 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
4396 parameters specify the cursor. Make qreverse a global
4397 variable (renamed to Qreverse).
4398
80460654
GM
43992000-03-09 Gerd Moellmann <gerd@gnu.org>
4400
4401 * fns.c (Fy_or_n_p): Cancel busy-cursor.
4402
95cd4c40
SM
44032000-03-08 Stefan Monnier <monnier@cs.yale.edu>
4404
4405 This is a big redesign of failure-stack and register handling, prompted
4406 by bugs revealed when trying to add shy-groups. Overall, what happened
4407 is that loops are now structured a little differently, groups can be
4408 shy and the code is a little simpler.
4409
4410 * regex.h: Update the copyright.
4411 (RE_SHY_GROUPS): New value.
4412 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
4413 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
4414
80460654
GM
4415 * regex.c (enum re_opcode_t): Remove jump_past_alt,
4416 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
4417 on_failure_jump_(exclusive, loop and smart). Also fix the comment
4418 for (start|stop)_memory since they now only take one argument (the
4419 second has becomes unnecessary).
4420 (print_partial_compiled_pattern): Adjust for changes in
4421 re_opcode_t.
4422 (print_compiled_pattern): Use %ld to printf long ints and flush to
4423 make debugging a little easier.
95cd4c40
SM
4424 (union fail_stack_elt): Make the integer unsigned.
4425 (struct fail_stack_type): Add a `frame' element.
4426 (INIT_FAIL_STACK): Init `frame' as well.
4427 (POP_PATTERN_OP): New macro for re_compile_fastmap.
4428 (DEBUG_PUSH, DEBUG_POP): Remove.
4429 (NUM_REG_ITEMS): Remove.
4430 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
4431 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
4432 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 4433 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
4434 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
4435 macros.
4436 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
4437 address pushed is not the destination of the jump but the source
4438 of it instead.
95cd4c40
SM
4439 (NUM_FAILURE_ITEMS): Remove.
4440 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
4441 registers before the actual failure point). Don't hardcode any
4442 meaning for str==NULL anymore.
95cd4c40 4443 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
4444 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
4445 Remove.
95cd4c40
SM
4446 (REG_UNSET_VALUE): Use NULL (why not?).
4447 (compile_range): Remove declaration since it doesn't exist.
4448 (struct compile_stack_elt_t): Remove inner_group_offset.
4449 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
4450 (regex_grow_registers): Remove dead code.
4451 (FIXUP_ALT_JUMP): New macro.
80460654
GM
4452 (regex_compile): Add shy-groups Change loops to use
4453 on_failure_jump_smart&jump instead of
4454 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
4455 initial (dummy_failure_)jump. Remove c1_base (looks like unused
4456 variable to me). Use `jump' instead of `jump_past_alt' and don't
4457 bother with push_dummy_failure in alternatives since it is now
4458 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
4459 emacs' for (re)allocating the stack.
4460 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
4461 from loop when bufp->can_be_null rather than jumping to `done'.
4462 Avoid jumping backwards so as to ensure termination. Use
4463 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
4464 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 4465 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
4466 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
4467 improve mutually_exclusive_p to handle ".+\n".
4468 (lowest_active_reg, highest_active_reg,
4469 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
4470 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
4471 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
4472 variables. Push register (in `start_memory') on the stack rather
4473 than storing it in old_reg(start|end). Remove the cycle detection
4474 from `stop_memory', replaced by the use of on_failure_jump_loop
4475 for greedy loops. Add code for the new on_failure_jump_<foo>.
4476 Remove ad-hoc code in `on_failure_jump' to push more registers in
4477 the case of a loop. Take out code from `maybe_pop_jump' into
4478 separate functions and adapt it to the semantics of
4479 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
4480 and push_dummy_failure. Remove dummy_failure handling and
4481 handling of `failures to jump to on_failure_jump' (this last one
4482 was already dead code, it seems).
4483 (group_match_null_string_p, alt_match_null_string_p)
4484 (common_op_match_null_string_p): Remove.
95cd4c40 4485
7397acc4
DL
44862000-03-08 Dave Love <fx@gnu.org>
4487
4488 * config.in: Don't depend on __STDC__ for volatile.
4489 Add POINTER_TYPE, PTR, PROTOTYPES.
4490
4491 * hftctl.c, strftime.c: Use PROTOTYPES.
4492 * eval.c (find_handler_clause): Likewise.
4493
4494 * mem-limits.h: Use POINTER_TYPE.
4495
4496 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
4497 (memory_warnings): Declare using POINTER_TYPE.
4498
5e91ff9e
GM
44992000-03-08 Gerd Moellmann <gerd@gnu.org>
4500
feab4fba
GM
4501 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
4502
25edb08f
GM
4503 * xdisp.c (display_echo_area): Temporarily inhibit garbage
4504 collection.
4505
5e91ff9e
GM
4506 * xfns.c: Remove obsolete code in #if 0.
4507 (Fx_focus_frame): New function.
4508
a735b7e1
KH
45092000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4510
4511 * coding.c (coding_category_name): Add coding-category-utf-8,
4512 coding-category-utf-16-be, coding-category-utf-16-le.
4513 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
4514 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
4515 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
4516 (detect_coding_utf_8): New function.
4517 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
4518 UTF_16_LOW_SURROGATE_P): New macros.
4519 (detect_coding_utf_16): New function
4520 (detect_coding_mask): When priorities are specified, skip any
4521 categories that have `nil' coding-system. Fix bug of returning
4522 wrong mask when PRIORITIES is specified and detect_coding_XXX()
4523 returns a mask not set in PRIORITIES.
4524 (detect_eol_type_in_2_octet_form): New function.
4525 (detect_eol): selects detect_eol_type_XXX to call according to
4526 cooding->category_idx.
4527 (detect_coding_system): Remove `nil' coding-system in the result.
4528 (Fupdate_coding_systems_internal): Update all coding-categories.
4529
4530 * coding.h (CODING_CATEGORY_IDX_UTF_8,
4531 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
4532 macros.
4533 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
4534 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
4535 CODING_CATEGORY_IDX_UTF_16_LE.
4536 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
4537 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
4538 (CODING_CATEGORY_MASK_ANY): Include the above macros.
4539 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
4540
9994cc69
GM
45412000-03-07 Gerd Moellmann <gerd@gnu.org>
4542
e9b4e5ff
GM
4543 * doc.c (Fdocumentation_property): If value is not a string,
4544 and doesn't refer to etc/DOC, evaluate it to obtain a string.
4545
f7daf1e1
GM
4546 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
4547 close the display with XtCloseDisplay. This caused a bus error
4548 on OpenWindows.
4549
9994cc69
GM
4550 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
4551 complete but not unique.
4552
4336c705
GM
45532000-03-06 Gerd Moellmann <gerd@gnu.org>
4554
18bb0684
GM
4555 * process.c (send_process): Remove local variable `procname' that
4556 might become invalid when a GC happens. Instead, access the
4557 process name slot directly.
4558
4336c705
GM
4559 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
4560 orig_height if set.
4561
4562 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
4563 orig_height if set.
4564
515d0d0e
EZ
45652000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4566
4567 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
4568 glyph matrices have been freed.
4569
100b3cbb
GM
45702000-03-05 Gerd Moellmann <gerd@gnu.org>
4571
50df5e5a 4572 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 4573 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
4574
4575 * xfns.c (QCdata): Moved to xdisp.c.
4576
4577 * xdisp.c (QCdata): Moved here from xfns.c.
4578 (syms_of_xdisp): Initialize QCdata.
4579
4580 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
4581
4582 * window.c (coordinates_in_window): Use
4583 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
4584 FRAME_INTERNAL_BORDER_WIDTH.
4585
100b3cbb 4586 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 4587 it is obviously invalid.
100b3cbb
GM
4588
4589 * xterm.c (x_term_init): Create a colormap if not using the
4590 default visual.
4591
4592 * xterm.h (select_visual): Change prototype.
4593
4594 * xfns.c (select_visual): Rewritten. Recognize user-specified
4595 visual classes.
4596 (visual_classes): New variable.
4597
64d739c4
GM
45982000-03-04 Gerd Moellmann <gerd@gnu.org>
4599
4600 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
4601 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
4602 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
4603 (x_decode_color): Don't handle allocation of white and black
4604 specially.
4605 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
4606 XtNcolormap resources.
4607 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
4608 (Fx_create_frame): Initialize color members of x_output structure.
4609 (xpm_load): Pass colormap to XPM lib.
4610
4611 * xfaces.c (x_free_colors): Access colormap of frame using
4612 FRAME_X_COLORMAP. Be paranoid about freeing black and white
4613 when default colormap is used.
4614
4615 * xterm.c (x_term_init): Set Colormap member of x_display_info
4616 structure. Copy colormap if resource `privateColormap' is
4617 specified (PseudoColor only).
4618 (x_setup_relief_color): Access colormap of frame using
4619 FRAME_X_COLORMAP.
4620
4621 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
4622 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
4623
c3cee013
JR
46242000-03-04 Jason Rumney <jasonr@gnu.org>
4625
4626 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
4627 other non-platform-specific equivalents.
64d739c4 4628 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
4629 specific functions and macros as their w32 equivalents where
4630 non-platform-specifics are not available.
4631 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
4632 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
4633 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
4634 (frame_update_line_height): Use macros to access f->output_data.
4635 (defined_color): Remove FIXME comments; fixed.
4636 (x_face_list_fonts, prepare_face_for_display): Put X specifics
4637 into #ifdef blocks. Add WINDOWSNT blocks.
4638 (Fx_list_fonts): Use macros for accessing font data.
4639 (set_lface_from_font_name): Different default fonts for X and
4640 WINDOWSNT.
4641 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
4642 scalable for backward compatibility.
64d739c4 4643 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
4644 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
4645
64d739c4 4646 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
4647 syms_of_w32faces.
4648
4649 * makefile.nt (w32faces.obj): Remove.
4650 (xfaces.obj): Add.
4651
807cc41c
JR
46522000-03-03 Jason Rumney <jasonr@gnu.org>
4653
4654 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
4655 correct parameters.
4656
0007072a
KR
46572000-03-03 Ken Raeburn <raeburn@gnu.org>
4658
4659 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
4660 standard ELF definitions here if the system header does not.
4661
71a6ba55
GM
46622000-03-03 Gerd Moellmann <gerd@gnu.org>
4663
4664 * xterm.c (PER_CHAR_METRIC): Removed.
4665 (x_per_char_metric_1, x_default_char): New functions.
4666 (x_per_char_metric): If font's default char is invalid, return
4667 metrics of a suitably chosen usable default char.
4668 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
4669 char, replace occurrences of unprintable chars with a suitably
4670 chosen usable default char.
71a6ba55 4671
900fa1f1
GM
46722000-03-02 Gerd Moellmann <gerd@gnu.org>
4673
42f55fe0
GM
4674 * xterm.c (note_mouse_highlight): Return quickly if frame's
4675 glyph matrices have been freed.
4676
4677 * dispnew.c (free_glyphs): Block input while freeing matrices.
4678
900fa1f1
GM
4679 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
4680
4681 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
4682 x_free_colors.
4683
4684 * dispextern.h (x_free_colors): Add prototype.
4685
4686 * xfaces.c (x_free_colors): New function.
4687 (unload_color, free_face_colors): Use it.
4688
2f950292
EZ
46892000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4690
4691 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
4692
4693 * window.c [MSDOS]: Include msdos.h.
4694
54d04320
DL
46952000-03-02 Dave Love <fx@gnu.org>
4696
4697 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
4698
4699 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
4700 set C_OPTIMIZE_SWITCH for gcc.
4701
0ba93ac4
KH
47022000-03-02 Kenichi Handa <handa@etl.go.jp>
4703
4704 * coding.c (coding_save_composition): Be sure to allocate
4705 composition data area in coding even if there's no composition in
4706 the current run.
4707
a2bc11d4
JR
47082000-03-01 Jason Rumney <jasonr@gnu.org>
4709
4710 * w32term.c: Equivalent changes to those made to xterm.c on
4711 2000-02-25 and 2000-02-24.
4712
4713 * w32fns.c: Equivalent changes to those made to xfns.c on
4714 2000-02-25 and 2000-02-21.
4715
4716 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
4717 correct line-end convention is followed.
4718
4719 * w32menu.c [HAVE_BOXES]: Remove #undef.
4720 (single_keymap_panes): Remove code for simulating checkmarks.
4721 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
4722 Remove code for drawing simulated checkmarks.
4723 (w32_menu_show): make unibyte help string correctly.
4724 (add_menu_item): draw standard Windows checkmarks. Draw radio
4725 buttons as radio buttons if possible.
4726
72d19d75
GM
47272000-03-01 Gerd Moellmann <gerd@gnu.org>
4728
2df636f4
GM
4729 * sysdep.c (start_of_text): Don't define this function for NetBSD
4730 with ELF.
4731
427ec082 4732 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
4733 Don't define.
4734 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
4735 (LINKER): Don't undef if __NetBSD__ is defined.
4736
4737 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
4738
4739 * fileio.c [__NetBSD__]: Define `unix'.
4740
72d19d75
GM
4741 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
4742
ed4d0512
GM
47432000-02-29 Gerd Moellmann <gerd@gnu.org>
4744
50b1039f
GM
4745 * atimer.c (start_atimer): Don't abort when timers are stopped.
4746 (append_atimer_lists): New function.
4747 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
4748 arbitrary lists of stopped and running atimers.
4749
ed4d0512
GM
4750 * atimer.c (cancel_atimer): Handle canceling an atimer when
4751 some timers are stopped.
4752
4753 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
4754 after canceling it.
4755
4756 * fns.c (maybe_resize_hash_table): Handle case of new size
4757 coming out as being the same as old size.
4758
387023ee
JR
47592000-02-27 Jason Rumney <jasonr@gnu.org>
4760
4761 * makefile.nt: Add atimer.h to dependencies.
4762 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
4763 * w32console.c: Only disable window system features for dispextern.h
4764 (initialize_w32_display): Build a display info for the console.
4765 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
4766 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
4767 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
4768 as 2 button mice.
4769 * w32gui.h (struct W32FontStruct): Revert last change after change
4770 to xdisp.c.
4771 * w32menu.c (single_submenu): Set up help string.
4772 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
4773 (w32_dialog_show): Set up help string.
4774 * w32term.c (w32_display_info_for_display): Remove unused function.
4775 (w32_draw_bitmap): Use pre-built bitmaps.
4776 (w32_initialize_display_info): New function to initialize parts of
4777 display info that are common to both GUI and console frames.
4778 (w32_term_init): Use w32_initialize_display_info. Do not set
4779 Vw32_num_mouse_buttons here, as it is not called for console
4780 frames. Build bitmaps for indicating truncated lines etc.
4781 (x_delete_display): Destroy pre-built bitmaps.
4782 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
4783 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
4784
4516715a
DL
47852000-02-27 Dave Love <fx@gnu.org>
4786
4787 * lisp.h: Add a bunch of prototypes.
4788
171ca836
KH
47892000-02-26 Kenichi Handa <handa@etl.go.jp>
4790
4791 * keyboard.c (read_char): Set `usec' correctly.
4792
4013921d
KH
47932000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4794
4795 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
4796 `lambda', set reg[RRR] to the map index.
4797 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
4798 reg[RRR] to 0. Otherwise, set it to -1.
4799
9244a058
GM
48002000-02-25 Gerd Moellmann <gerd@gnu.org>
4801
2df636f4 4802 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 4803
18e21ce8 48042000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 4805
f43d79c1
GM
4806 * fileio.c (Ffile_symlink_p): If result starts with a `/'
4807 and contains a `:', prepend `/:'.
4808
4809 * window.c (select_window_1): If selected_window is nil,
4810 don't "swap out" the buffer's point.
4811 (Fset_window_configuration): Set selected_window to nil
4812 before calling Fselect_window.
4813 (unshow_buffer): Don't set point in buffer from window's point
4814 if another more recently selected window also shows the buffer.
4815
bed0c171
GM
48162000-02-25 Gerd Moellmann <gerd@gnu.org>
4817
449c3c52
GM
4818 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
4819
f5b58615
GM
4820 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
4821 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
4822 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
4823 variables.
4824 (DEFAULT_BUSY_CURSOR_DELAY): New define.
4825 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
4826 (hide_busy_cursor): New functions.
4827 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
4828
4829 * minibuf.c (read_minibuf): Cancel busy-cursor.
4830
4831 * keyboard.c (command_loop_1): Call start_busy_cursor before
4832 Fcommand_execute and cancel_busy_cursor after it.
4833 (timer_check): Remove busy-cursor code.
4834 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
4835 cursor timer.
4836
4837 * process.c (wait_reading_process_input): Remove busy-cursor code.
4838
4839 * eval.c (Fsignal): Call cancel_busy_cursor instead of
4840 Fx_hide_busy_cursor.
4841
4842 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
4843 Remove prototyoes.
4844 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
4845
4846 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
4847
4848 * xterm.c (XTread_socket): Remove busy-cursor code.
4849
4eb8436f
GM
4850 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
4851 (build_frame_matrix_from_leaf_window): Put code handling
4852 glyph row's not being a slice of a frame row in #if 0.
4853 (sync_window_with_frame_matrix_rows): New function.
4854 (frame_row_to_window): New function.
4855 (mirror_line_dance): Handle copies between windows.
4856
3cb65b0e
GM
4857 * lread.c (Fload): Use `xfree' instead of `free'.
4858 (init_obarray): Use `xmalloc' instead of `malloc'.
4859
bed0c171
GM
4860 * window.c (Fset_window_buffer): Set WINDOW to the window
4861 after decoding.
2add4349
GM
4862 (coordinates_in_window): Take frame's internal border width
4863 into account.
bed0c171 4864
42088c12
GM
48652000-02-24 Gerd Moellmann <gerd@gnu.org>
4866
4867 * xterm.c (x_display_and_set_cursor): Display cursor of
4868 non-selected windows depending on the setting of
4869 cursor_in_non_selected_windows.
4870
4871 * xdisp.c (cursor_in_non_selected_windows): New variable.
4872 (syms_of_xdisp): DEFVAR_BOOL it.
4873
d1e103b2
GM
48742000-02-23 Gerd Moellmann <gerd@gnu.org>
4875
723e779c
GM
4876 * data.c (Fstring_to_number): If number is greater than what
4877 fits into an integer, return a float.
4878
d1e103b2
GM
4879 * eval.c (specbind): Remove references to
4880 keyword_symbols_constant_flag.
4881
4882 * data.c (keyword_symbols_constant_flag): Removed.
4883 (Fmakunbound, set_internal, syms_of_data): Remove references to
4884 keyword_symbols_constant_flag.
4885
4886 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
4887
214f877f
KH
48882000-02-23 Kenichi Handa <handa@etl.go.jp>
4889
4890 * syntax.c (multibyte_syntax_as_symbol): New variable.
4891 (syms_of_syntax): Declare it as a Lisp variable.
4892 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
4893 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
4894 nonzero, treat all multibyte characters as symbol.
42088c12 4895 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
4896 characters.
4897
130adcb7
EZ
48982000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4899
3cb65b0e 4900 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 4901 a deleted frame.
130adcb7 4902
17cbbf95
GM
49032000-02-21 Gerd Moellmann <gerd@gnu.org>
4904
4905 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
4906
4907 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4908 (x_non_menubar_window_to_frame): Check the busy-cursor window.
4909
beb0bc36
DL
49102000-02-21 Dave Love <fx@gnu.org>
4911
4912 * frame.c (Vmouse_position_function): New variable.
4913 (Fmouse_position): Use it.
4914 (syms_of_frame): Install it.
4915
4916 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
4917
1d92afcd
GM
49182000-02-20 Gerd Moellmann <gerd@gnu.org>
4919
4920 * fileio.c (Finsert_file_contents): Unbind the binding of
4921 standard-output done by temp_output_buffer_setup.
329eed9f
GM
4922
4923 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
4924 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
4925 (specbind, unbind_to): Handle most common case of non-constant
4926 symbol with trivial value specially.
4927
4928 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
4929
18e21ce8 49302000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
4931
4932 * data.c (Fmake_variable_buffer_local): Doc fix.
4933 Init found_for_buffer to 0.
4934 (Fmake_variable_frame_local): If the variable has already
4935 been buffer-local, set the check_frame field.
4936
1d4311c3
EZ
49372000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
4938
4939 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
4940 produced for CODING_MODE_LAST_BLOCK requires.
4941
2dc95ddd
DL
49422000-02-18 Dave Love <fx@gnu.org>
4943
4944 * keyboard.c (echo_keystrokes): Remove declaration.
4945 (Vecho_keystrokes) New variable.
4946 (read_char, record_menu_key, read_key_sequence): Use it to allow
4947 use of float value.
4948 (syms_of_keyboard): Change Vecho_keystrokes declaration.
4949
4950 * lread.c: Undef feature selection macros before defining.
4951
f0930f35
GM
49522000-02-18 Gerd Moellmann <gerd@gnu.org>
4953
4954 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
4955 for symbols other than the symbol in question.
4956
e3d4de90
DL
49572000-02-17 Dave Love <fx@gnu.org>
4958
4959 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
4960
0b378936
GM
49612000-02-17 Gerd Moellmann <gerd@gnu.org>
4962
d621caf7
GM
4963 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
4964
0b378936
GM
4965 * alloc.c (enum mem_type): Compile unconditionally.
4966
3b451f74
EZ
49672000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
4968
4969 * xfaces.c (tty_defined_color): Don't return faulire indication
4970 for unspecified-fg and unspecified-bg pseudo-colors.
4971
10689a01
GM
49722000-02-17 Gerd Moellmann <gerd@gnu.org>
4973
1216f5e4
GM
4974 * alloc.c (mark_object): Don't mark symbol names in pure space.
4975 (gc_sweep): Don't unmark symbol names in pure space.
4976
4977 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
4978 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
4979 [GC_MARK_STACK]: New defines.
427ec082 4980 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
4981 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
4982
4983 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
4984
4985 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
4986 allocate_buffer instead of xmalloc.
4987
4988 * alloc.c (toplevel): Include setjmp.h.
4989 (PURE_POINTER_P): New define.
4990 (enum mem_type) [GC_MARK_STACK]: New enumeration.
4991 (Vdead) [GC_MARK_STACK]: New variable.
4992 (lisp_malloc): Add parameter TYPE, call mem_insert if
4993 GC_MARK_STACK is defined.
4994 (allocate_buffer): New function.
427ec082 4995 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
4996 (free_float) [GC_MARK_STACK]: Set type to Vdead.
4997 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
4998 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
4999 (MEM_NIL) [GC_MARK_STACK]: New define.
5000 (struct mem_node) [GC_MARK_STACK]: New structure.
5001 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
5002 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
5003 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5004 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
5005 (mark_stack) [GC_MARK_STACK]: New functions.
5006 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
5007 (clear_marks): Removed.
5008 (gc_sweep): Set free conses' car, free floats' type, free
5009 symbols' function to Vdead. Use lisp_free to free buffers.
5010 (init_alloc_once): Initialize Vdead.
5011 (survives_gc_p): Return non-zero for pure objects.
5012
5013 * alloc.c: Add comments throughout the file.
5014
2503c8b1
GM
5015 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
5016 that unblocks alarms.
5017
8389e1e2
GM
5018 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
5019 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
5020 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
5021
10689a01 5022 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 5023
bfc17d18
KH
50242000-02-17 Kenichi Handa <handa@etl.go.jp>
5025
4a09dee0
KH
5026 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
5027 avoid infinite error signaling. Allocate sufficient memory for
5028 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 5029
2b927d02
SM
50302000-02-17 Stefan Monnier <monnier@cs.yale.edu>
5031
5032 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
5033 depends on the previous behavior.
5034
b49cb764
GM
50352000-02-16 Gerd Moellmann <gerd@gnu.org>
5036
5037 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
5038
99e95407
GM
50392000-02-15 Gerd Moellmann <gerd@gnu.org>
5040
5041 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
5042
5043 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 5044 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
5045 write(2).
5046
6ffd3cf7
RS
50472000-02-15 Richard M. Stallman <rms@gnu.org>
5048
5049 * data.c (set_internal): Don't make variable buffer-local
5050 if within a let-binding for the same buffer.
5051 (let_shadows_buffer_binding_p): New function.
5052
5053 * eval.c (specbind): For buffer-local value,
5054 record the current buffer also.
5055 (unbind_to): Cope with that change.
5056
cad53475
GM
50572000-02-15 Gerd Moellmann <gerd@gnu.org>
5058
5059 * window.c (Fsave_window_excursion): Doc fix.
5060
1aa963c8
SM
50612000-02-15 Stefan Monnier <monnier@cs.yale.edu>
5062
5063 * syntax.c (back_comment): Make sure we only consider comment-starters
5064 of the relevant style and return -1 in case of a failure to find the
5065 beginning of the comment.
5066 (Fforward_comment): If back_comment fails, go back to the position just
5067 after the comment-end.
5068 (scan_lists): Add comment describing a very minor bug.
5069
b9b84fd3
SM
50702000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5071
5072 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
5073 `completion-regexp-list' in the docstring.
5074
3a28db80
DL
50752000-02-14 Dave Love <fx@gnu.org>
5076
5077 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
5078
fb4a568d
SM
50792000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5080
5081 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
5082 to Emacs' syntax. Also fix the comment about set/not-set meanings
5083 since Emacs syntax is not the value 0 any more.
5084 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
5085 since it's now part of RE_SYNTAX_EMACS.
5086
1063ebb5
DL
50872000-02-12 Dave Love <fx@gnu.org>
5088
5089 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
5090 Alpha.
5091
fb07a302
GM
50922000-02-12 Gerd Moellmann <gerd@gnu.org>
5093
5094 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
5095
aaf2320c
DL
50962000-02-12 Dave Love <fx@gnu.org>
5097
5098 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
5099
5100 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
5101 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
5102 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
5103
5104 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
5105
5106 * s/nextstep.h: Don't define HAVE_ALLOCA.
5107
5108 * config.in: Add vfork bits.
5109
eedf8bde
GM
51102000-02-12 Gerd Moellmann <gerd@gnu.org>
5111
5112 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
5113 unwind function to undo the effect of stopping atimers.
5114
5115 * keyboard.c (bind_polling_period): Stop all timers except
5116 poll_timer.
5117
5118 * atimer.c (stopped_atimers): New variable.
5119 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
5120 New functions.
5121
5122 * atimer.h (stop_other_atimers, run_all_atimers)
5123 (unwind_stop_other_atimers): Add function prototypes.
427ec082 5124
eedf8bde
GM
5125 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
5126
8476c2f8
KR
51272000-02-11 Ken Raeburn <raeburn@gnu.org>
5128
5129 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
5130 library may depend on jpeg.
5131 (atimer.o): Depends on atimer.c.
5132
0e85e4a3
KH
51332000-02-11 Kenichi Handa <handa@etl.go.jp>
5134
5135 * insdel.c (del_range_1): Call update_compositions.
5136 (del_range_both): Call update_compositions just once..
5137
97fa0cc8
DL
51382000-02-10 Dave Love <fx@gnu.org>
5139
5140 * xfns.c (create_frame_xic): Fix initialization of automatic
5141 aggregates for pcc.
5142
25566a3c
KH
51432000-02-09 Kenichi Handa <handa@etl.go.jp>
5144
5145 * ccl.c (CCL_MAKE_CHAR): New macro.
5146 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
5147 registers by CCL_MAKE_CHAR before calling translate_char.
5148 <CCL_TranslateCharacterConstTbl> Likewise.
5149
69da54ba
DL
51502000-02-08 Dave Love <fx@gnu.org>
5151
5152 * lread.c (__EXTENSIONS__): Define.
5153
f7136ee8
GM
51542000-02-08 Gerd Moellmann <gerd@gnu.org>
5155
5156 * puresize.h (BASE_PURESIZE): Increase to 650000.
5157
7768790b
EZ
51582000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5159
5160 * msdos.c (XMenuActivate): Turn off the cursor after displaying
5161 the help message.
5162
38fd211b
EZ
51632000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5164
5165 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
5166 md, mh, mb, mr, and me to the fake termcap entry.
5167
66e4690f
KR
51682000-02-06 Ken Raeburn <raeburn@gnu.org>
5169
5170 * sound.c (sound_cleanup): Don't call device close routine if the
5171 function pointer is null.
5172
a75dfea0
AI
51732000-02-06 Andrew Innes <andrewi@gnu.org>
5174
5175 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
5176 around image definitions and prototypes.
5177 (gamma_correct) [WINDOWSNT]: New prototype.
5178
5179 * w32term.c (x_make_frame_visible): Replace call to
5180 input_poll_signal with poll_for_input.
5181
5182 * window.c [WINDOWSNT]: Include w32term.h.
5183
5184 * xdisp.c [WINDOWSNT]: Include w32term.h.
5185
5186 * makefile.nt: Add dependencies on w32gui.h.
5187 (OBJ1): Include atimer.obj.
5188 ($(BLD)\atimer.obj): New dependency rule.
5189
5190 * w32.c (sigmask): New function (does nothing).
5191 (sigunblock): Ditto.
5192
5193 * frame.c [WINDOWSNT]: Include w32term.h.
5194
5195 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
5196
5197 * lread.c (syms_of_lread): Fix literal newlines.
5198
5199 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
5200 the string constant limit (2048 bytes) in MSVC.
5201 (main): Ditto.
5202
59ddecde
GM
52032000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
5204
5205 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
5206 area.
5207 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
5208 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
5209 dispatch the event.
5210
07590973
DL
52112000-02-04 Dave Love <fx@gnu.org>
5212
5213 * fileio.c: Remove some unused vars.
5214 (_GNU_SOURCE): Define (for euidaccess).
5215
5216 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
5217
5218 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
5219 gcpro1, gcpro2.
5220 (read_minibuf): Deal with allow_props correctly.
5221
649351f9
EZ
52222000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
5223
5224 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
5225
66e4690f 52262000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
5227
5228 * search.c (compile_pattern): If a cache entry has a nil regexp,
5229 fill in that entry instead of clobbering a previously cached
5230 string regexp.
5231
66e4690f 52322000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
5233
5234 * puresize.h (BASE_PURESIZE): Increase to 610000.
5235
d240a249
GM
52362000-02-02 Gerd Moellmann <gerd@gnu.org>
5237
5238 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
5239 can GC.
5240
ca91fb26
KH
52412000-02-02 Kenichi Handa <handa@etl.go.jp>
5242
25660570
KH
5243 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
5244 instead of incrementing ic directly.
5245 <CCL_WriteExprConst> Likewise.
5246 <ccl_set_expr>: Set ic to jump_address.
5247
ca91fb26
KH
5248 * fileio.c (e_write): Fix the handling of
5249 CODING_FINISH_INSUFFICIENT_SRC.
5250
2ede9689
DL
52512000-02-01 Dave Love <fx@gnu.org>
5252
5253 * editfns.c (Fpropertize): Doc fix.
5254
5255 * process.c (Fstart_process): Doc fix.
5256
5257 * eval.c: Fix various doc strings not to duplicate information
5258 from help-manyarg-func-alist.
5259
5260 * window.c (Fset_window_margins): Don't make interactive. Doc
5261 fix.
5262
5263 * doc.c (Vhelp_manyarg_func_alist): New variable.
5264 (Fdocumentation): Use it.
5265 (syms_of_doc): Define it.
5266
b6680a0e
GM
52672000-01-31 Gerd Moellmann <gerd@gnu.org>
5268
2cb750ba
GM
5269 * xterm.c (xim_open_dpy): Remove unused local variable.
5270
74e9213b
GM
5271 * emacs.c (USAGE): Use term `display options' instead of `X
5272 options'.
5273
5274 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
5275 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5276
b6680a0e
GM
5277 * fns.c (sweep_weak_table): New function.
5278 (sweep_weak_hash_tables): Use it. Keep on marking until there
5279 is no more change.
5280
994c5afe
GM
52812000-01-30 Gerd Moellmann <gerd@gnu.org>
5282
5283 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
5284 that XTread_socket does not crash by trying to call XNoOp on a
5285 closed display.
427ec082 5286
f00276e3
JR
52872000-01-30 Jason Rumney <jasonr@gnu.org>
5288
5289 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5290 Change selected_frame to SELECTED_FRAME ().
5291 (w32_console_mouse_position): Remove #ifndef MULE from around
5292 `insist' parameter.
5293
5294 * makefile.nt: Remove dosfns.obj.
5295
5296 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
5297
5298 * w32fns.c (w32_defined_color): Check for valid frame before
5299 applying gamma correction. Eliminate dependency on frame elsewhere.
5300 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
5301 (w32_to_x_font): Use resx and resy not height_in and width_in.
5302 (x_to_w32_font): Doc fix.
5303 (xlfd_strip_height): New function to strip and return font height.
5304 (w32_font_match): Compare height separately from rest of xlfd
5305 spec, using xlfd_strip_height.
5306
5307 * w32term.c (w32_term_init): Swap resx and height_in, resy and
5308 width_in. Use w32_defined_color in place of defined_color.
5309
5310 * w32faces.c: Merge more of DOS and X specifics in preparation for
5311 merge with xfaces.c.
5312 (defined_color): Remove FIXME comment.
5313 (tty_color_name): Provide w32-specific function.
5314 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
5315
5316 * w32console.c (turn_on_face, turn_off_face): Removed.
5317 (w32_face_attributes): New function.
5318 (Global_variables): Reduce scope where possible.
5319 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
5320 fill attribute.
5321 (hl_mode): Don't modify text attributes.
5322 (write_glyphs): Don't do anything if len <= 0. Use
5323 w32_face_attributes to get attributes for drawing. Write
5324 terminating codes using char_attr_normal.
5325 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
5326 (update_begin, update_end): Likewise.
5327 (vga_stdcolor_name): New function.
5328 (initialize_w32_display): Remove char_attr_reverse and char_attr.
5329 (Fset_screen_color): Remove char_attr_reverse.
5330
b08e8bb2
GM
53312000-01-29 Gerd Moellmann <gerd@gnu.org>
5332
5333 * xfns.c (xic_set_preeditarea): Take window parameter and
5334 window-relative pixel-positions.
5335
5336 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
5337 is its frame's selected window.
5338 (xim_instantiate_callback): Likewise.
5339
5340 * xfns.c (x_create_im): Removed.
5341 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
5342 (supported_xim_styles): Renamed from supported_styles.
5343 (best_xim_style): Renamed from best_style.
5344 (create_frame_xic): Renamed from xic_create_frame.
5345 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 5346
b08e8bb2
GM
53472000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
5348
5349 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
5350 our frames, call XFilterEvent with 2nd parameter `None'.
5351 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
5352 returning XBufferOverflow.
5353 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
5354 area.
5355 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
5356 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
5357 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
5358 (xim_initialize, xim_close)
5359 [HAVE_X_I18N && HAVE_X11R6]: New functions.
5360 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
5361 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
5362 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
5363
5364 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
5365 and `xim_styles'.
5366 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
5367 `xic_style' and `xic_xfs'.
5368 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
5369 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
5370 (FRAME_XIM): Removed.
5371
5372 * xfns.c (supported_styles): New variable.
5373 (DEFAULT_STYLE, DEFAULT_FONT): New macros
5374 (xic_create_xfontset, best_style, xic_create_frame)
5375 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
5376 (xic_set_xfontset): New functions.
5377
142e109c
DL
53782000-01-28 Dave Love <fx@gnu.org>
5379
5380 * s/irix6-5.h: Revert last change after change to irix5-0.h.
5381
5382 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
5383
b02786f9
GM
53842000-01-28 Gerd Moellmann <gerd@gnu.org>
5385
d060bc9f
GM
5386 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
5387 for *scratch* if it already existed.
5388
b02786f9
GM
5389 * emacs.c (USAGE): New macro.
5390 (main): Use it to display usage information.
5391
2c52d7e4
EZ
53922000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
5393
5394 Support for the menu-help feature:
5395
5396 * msdos.h: Change prototypes of XMenuAddSelection and
5397 XMenuActivate.
5398
5399 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
5400 part of the line to the termscript file.
5401 (IT_clear_to_end): Clear the entire line, not just its beginning.
5402 (menu_help_message, prev_menu_help_message): New variables.
5403 (IT_menu_make_room): Make room for the help_text member.
5404 (IT_menu_display): New argument disp_help; all callers changed.
5405 If disp_help is non-zero, store the help text of the active menu
5406 item in menu_help_message.
5407 (XMenuAddPane): Initialize the help_text member to NULL.
5408 (XMenuAddSelection): New argument help_text. Store it in the
5409 XMenu structure.
5410 (XMenuActivate): New argument help_callback. If the value of
5411 menu_help_message has changed since the last time, display the
5412 menu help message text while waiting for the mouse to move. Clear
5413 the echo area before exiting.
5414 (XMenuDestroy): Free the help_text member.
5415
ffe0bcd1
GM
54162000-01-27 Gerd Moellmann <gerd@gnu.org>
5417
5418 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
5419 XMenuAddSelection. Pass help callback to XMenuActivate.
5420 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
5421
50dbd23f
EZ
54222000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
5423
5424 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
5425 and EMACS_SET_USECS.
5426
f5941bf8
GM
54272000-01-26 Dave Love <fx@gnu.org>
5428
6c67ddee
DL
5429 * editfns.c (Fchar_after, Fchar_before): Doc fix.
5430
f5941bf8
GM
5431 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
5432 an error may be signalled.
5433
9e49c990
GM
54342000-01-26 Gerd Moellmann <gerd@gnu.org>
5435
fc3cb460
GM
5436 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
5437 LD_SWITCH_SYSTEM inherited from irix5-0.h.
5438
9e49c990
GM
5439 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
5440
d0c037d8
GM
54412000-01-25 Gerd Moellmann <gerd@gnu.org>
5442
5443 * charset.c (Fstring): If there is a multibyte char among
5444 the args, always return a multibyte string.
5445
e12489f9
GM
54462000-01-25 Gerd Moellmann <gerd@gnu.org>
5447
5448 * sysdep.c (sys_select): Turn atimers off and on instead of
5449 recording and restoring old alarm handler
5450
5451 * process.c (toplevel): Include atimer.h.
5452 (create_process_1): Rewritten.
5453 (create_process): Use atimers instead of alarm.
5454 (wait_reading_process_input) [hpux]: Turn atimers off instead
5455 of turning off SIGALRM.
5456 (wait_reading_process_input): Turn off atimers instead off
5457 calling stop_polling.
5458
5459 * emacs.c (main): Call init_atimer.
5460
5461 * keyboard.c (toplevel): Include systime.h and atimer.h.
5462 (polling_for_input): Removed because unused.
5463 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
5464 (poll_timer): New variable.
5465 (poll_for_input, poll_for_input_1): New functions.
5466 (start_polling, stop_polling): Rewritten.
5467
5468 * keyboard.h (polling_for_input): Removed.
427ec082 5469
e12489f9
GM
5470 * atimer.h, atimer.c: New files.
5471
5472 * Makefile.in (obj): Add atimer.o.
5473 (atimer.o): New target.
5474
5475 * blockinput.h (pending_atimers): Add extern declaration.
5476 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
5477
5478 * lisp.h (popup_activated_flag): Add extern declaration.
5479
5480 * xmenu.c (popup_activated_flag): Make externally visible.
5481 (popup_activate_callback) [USE_MOTIF]: Increment
5482 popup_activated_flag.
5483 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
5484
5485 * xterm.c (toplevel): Include atimer.h.
5486 (toolkit_scroll_bar_interaction): New variable.
5487 (Fxt_process_timeouts): Removed.
5488 (x_process_timeouts): New function.
5489 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
5490 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
5491 (x_make_frame_visible): Call poll_for_input_1 instead of
5492 input_poll_signal. Don't call alarm.
5493 (x_initialize): Install timer calling x_process_timeouts.
427ec082 5494
1e5279b9
DL
54952000-01-24 Dave Love <fx@gnu.org>
5496
6c67ddee 5497 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
5498 Don't use -cckr -- apparently not now necessary.
5499
edf6aeb8
EZ
55002000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5501
5502 * msdos.c (IT_menu_display): Truncate long menu lines at the right
5503 screen boundary.
5504
9badad41
JR
55052000-01-23 Jason Rumney <jasonr@gnu.org>
5506
5507 * w32fns.c (w32_defined_color): Apply gamma correction before
5508 trying to map to the palette.
5509 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
5510 to w32_clear_rect.
5511
5512 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
5513 here. Callers changed to always pass real device context.
5514 (w32_draw_bitmap): Likewise.
5515 (w32_get_glyph_overhangs): Likewise.
5516 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
5517 one.
5518 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
5519 pfnSetScrollInfo and SetScrollRange.
5520 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
5521 back into MULE characters after decoding them.
5522 (x_get_glyph_face_and_encoding): Likewise.
5523 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
5524 GetCharABCWidthsW fails, since this is defined on Windows 9x.
5525 (x_produce_glyphs): Calculate per char metrics for a character
5526 that we know exists in default font when font_not_found_p is true.
5527
63bd786b
JR
55282000-01-22 Jason Rumney <jasonr@gnu.org>
5529
5530 * makefile.nt (intervals.obj, composite.obj): New modules.
5531 (composite.h): Added as dependency where appropriate.
5532
5533 * w32gui.h (XGCValue): New struct for emulating X GCs.
5534
5535 * w32term.h (XCharStruct): New struct for emulating X.
5536
5537 * w32console.c (turn_on_face, turn_off_face): New functions.
5538 (change_line_highlight): New prototype for new redisplay.
5539 (write_glyphs): Support multibyte text. Support faces.
5540
5541 * w32faces.c: Complete rewrite for new redisplay based on new
5542 xfaces.c.
5543
5544 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
5545 throughout. struct frame * in place of FRAME_PTR.
5546 Skeleton support for images, toolbars, tooltips from xfns.c.
5547 (Fx_create_frame): Use system default for default scroll bar
5548 width.
5549 (w32_get_arg): Renamed from x_get_arg.
5550 (Fx_file_dialog): New function.
5551 (w32_list_fonts): Check cache before asking system.
5552 (Vw32_enable_synthesized_fonts): New variable.
5553 (Vw32_enable_italics): Obsolete, removed.
5554
5555 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5556 Use SELECTED_FRAME macro.
5557
5558 * w32menu.c: Add skeleton support for help strings on menus.
5559 (add_menu_item): Native checkbox and radio support added, but not
5560 yet enabled due to bugs.
5561 (push_menu_item): Add parameters type, selection and help.
5562 Callers updated.
5563 Formatting changes to reduce unnecessary diffs with xmenu.c.
5564
5565 * w32select.c (Fw32_set_clipboard_data): Update call to
5566 find_charset_in_str.
5567
5568 * w32term.c: Complete rewrite for new redisplay based on new
5569 xterm.c with necessary sections merged back in from old w32term.c.
5570
6ffd3cf7 55712000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
5572
5573 * data.c (set_internal): Further fix in same criterion.
5574
6ffd3cf7 55752000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
5576
5577 * data.c (set_internal): Fix the criteria for whether
5578 to swap out the old cached binding.
5579
60af03f1
DL
55802000-01-19 Dave Love <fx@gnu.org>
5581
5582 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
5583
f9be074f
KH
55842000-01-18 Kenichi Handa <handa@etl.go.jp>
5585
5586 * regex.c (re_compile_fastmap): While checking a range table for
5587 `charset', skip flag bits for a character class correctly.
5588
52b8dbf9
GM
55892000-01-17 Gerd Moellmann <gerd@gnu.org>
5590
d36100c9
GM
5591 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
5592
52b8dbf9
GM
5593 * xfns.c (x_window): Call lw_create_widget with new parameter
5594 list.
5595
5596 * widget.c (EmacsFrameSetCharSize): Change size of children first
5597 because of problems with main window geometry management under
5598 Lesstif.
5599
5600 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
5601 MENU_ITEMS_ITEM_.*.
5602 (MENU_ITEMS_ITEM_HELP): New enumerator.
5603 (push_menu_item): Add parameter HELP. Record help in menu_items.
5604 (single_menu_item, single_submenu, list_of_items): Call
5605 push_menu_item with new parameter.
5606 (single_submenu): Set help string in widget value.
5607 (menu_highlight_callback): New function.
5608 (set_frame_menubar): Call lw_create_widget with new
5609 parameter list.
5610 (xmenu_show, xdialog_show): Ditto.
5611
3139018f
GM
56122000-01-13 Gerd Moellmann <gerd@gnu.org>
5613
5614 * sound.c (Fplay_sound): Improve doc string.
5615
83c8f461
RS
56162000-01-11 Richard M. Stallman <rms@gnu.org>
5617
5618 * lisp.h (set_internal): Enter the new arg.
5619
5620 * eval.c (specbind): Record buffer-local variables specially,
5621 indicating which buffer's binding was saved.
5622 (unbind_to): Restore buffer-local variables specially
5623 in the proper buffer.
5624
5625 * data.c (set_internal): New arg BUF.
427ec082 5626
83c8f461
RS
5627 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
5628 * data.c (Fset): Pass new arg to set_internal.
5629 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 5630
1fab1775
GM
56312000-01-11 Gerd Moellmann <gerd@gnu.org>
5632
5633 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
5634 xprintsym.
5635
83c8f461 56362000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
5637
5638 * minibuf.c (Ftry_completion): Doc fix.
5639
7a85e4df
GM
56402000-01-11 Gerd Moellmann <gerd@gnu.org>
5641
5642 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
5643 vector, too.
5644
a970dae4
AS
56452000-01-11 Andreas Schwab <schwab@suse.de>
5646
5647 * coding.c (code_convert_region): Initialize total_skip.
5648
c65d14ee
DL
56492000-01-08 Dave Love <fx@gnu.org>
5650
5651 * eval.c (Fuser_variable_p): Check customizability too.
5652
834938d2
GM
56532000-01-07 Gerd Moellmann <gerd@gnu.org>
5654
5655 * minibuf.c (Fcompleting_read): Doc fix.
5656
e0303cd6
GM
56572000-01-05 Gerd Moellmann <gerd@gnu.org>
5658
8a26744b
GM
5659 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
5660 -L /usr/local/lib.
5661
e0303cd6
GM
5662 * xfns.c (x_create_im): New function to set IM and IC of a frame.
5663 Check that input style is supported before trying to create an
5664 IC for it.
5665 (x_window): Call x_create_im.
427ec082 5666
2e471eb5
GM
56672000-01-04 Gerd Moellmann <gerd@gnu.org>
5668
560a7bd2
GM
5669 * xfns.c (current_gif_memory_src): New variable.
5670 (gif_load): Record the address of the current memory source
5671 in current_gif_memory_src.
5672 (gif_read_from_memory): Use current_gif_memory_src.
5673
f9ee84a3
GM
5674 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
5675 macros statement form.
5676
d1299cde
GM
5677 * sound.c (struct sound): Renamed from struct sound_file.
5678 (struct sound): Add members `data' and `header_size'.
5679 (enum sound_attr): Add SOUND_DATA.
5680 (current_sound, current_sound_device): Variables renamed from
5681 sound_file and sound_device.
5682 (parse_sound): Parse :data.
5683 (parse_sound): Handle sound data in strings.
5684 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 5685 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
5686 needed header size.
5687 (wav_play, au_play): Play sounds from string data.
5688
2e471eb5
GM
5689 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
5690
5691 * lisp.h: Add prototype for allocate_string_data.
5692
5693 * alloc.c (Fgarbage_collect): Return number of live and free
5694 strings.
5695
5696 * alloc.c (mark_buffer): Remove code in #if 0.
5697 (gc_sweep): Ditto.
5698 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
5699 (strings_consed): New variable.
5700 (allocate_string): Set it.
5701 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
5702 (Fmemory_use_counts): Return strings_consed. Use Flist.
5703
5704 * alloc.c: General cleanup in comments etc. Remove conditional
5705 compilation for `standalone'.
5706
5707 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
5708
5709 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
5710 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
5711 (DONT_COPY_FLAG): Removed.
5712 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
5713 (struct sdata, struct sblock): New
5714 (struct string_block): Rewritten.
5715 (STRINGS_IN_STRING_BLOCK): New macro.
5716 (oldest_sblock, current_sblock, total_strings, total_free_strings)
5717 (large_sblocks, string_blocks, string_free_list): New variables.
5718 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
5719 (init_strings): Rewritten.
5720 (allocate_string, allocate_string_data, compact_small_strings)
5721 (free_large_strings, sweep_strings): New functions.
5722 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
5723 (struct string_block_head, current_string_block)
5724 (first_string_block, large_string_blocks, STRING_FULLSIZE)
5725 (STRING_PAD): Removed.
5726 (make_uninit_multibyte_string, make_pure_string): Rewritten.
5727 (Fgarbage_collect): Don't set mark bit in large strings.
5728 (mark_object): Mark strings differently. Mark symbol names
5729 differently.
5730 (survives_gc_p): Test marked strings differently.
427ec082 5731 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
5732 symbol names.
5733 (compact_strings): Removed.
5734
42608ba8
EZ
57352000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
5736
5737 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
5738 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
5739
e0a09e1a
KH
57402000-01-04 Kenichi Handa <handa@etl.go.jp>
5741
dd9f0750 5742 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 5743 in a non-empty buffer.
dd9f0750 5744
3c0f3b15 5745 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 5746
44cd3ae5
GM
57472000-01-03 Gerd Moellmann <gerd@gnu.org>
5748
5749 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
5750 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
5751
5752 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
5753
c182a70f
EZ
57542000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5755
5756 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
5757 need to test for MSDOS frames.
5758
24480d5b
EZ
57592000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5760
5761 * dosfns.c (unspecified_colors): Remove.
5762 (msdos_stdcolor_idx): Use global variables unspecified_fg and
5763 unspecified_bg.
5764 (msdos_stdcolor_name): Return strings for unspecified fore- and
5765 back-ground colors.
5766
5767 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 5768 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
5769 (tty_color_name): Return Lisp strings for unspecified fore- and
5770 back-ground colors.
5771 (Finternal_set_lisp_face_attribute): Remove the special treatment
5772 for Qunspecified_{f,b}g.
5773 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
5774 string.
5775
047f434a
GM
57762000-01-03 Gerd Moellmann <gerd@gnu.org>
5777
5778 * xdisp.c (reseat_at_next_visible_line_start): Position before
5779 newline only if ending up on a newline.
5780 (next_element_from_ellipsis): Return success. Handle case of
5781 displaying no ellipsis. Fix case of ellipsis defined in display
5782 table.
5783 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
5784 returns 0.
5785
d684c676
EZ
57862000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
5787
5788 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
5789 (Fcolor_supported_p): Renamed from face-color-supported-p.
5790
5fe1d139
EZ
57912000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5792
5793 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
5794 list of colors renamed to tty-defined-color-alist.
5795 (tty_color_name): Pass the frame to tty-color-by-index.
5796 (realize_tty_face): tty-color-alist is now a function which
5797 accepts the frame as argument.
5798
5799 * term.c (Ftty_display_color_p): Accept an optional argument
5800 FRAME.
5801
816be8b8
EZ
58022000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5803
5804 * term.c (insert_glyphs): Pass glyph, not &glyph, to
5805 encode_terminal_code.
5806
b635321e
EZ
58072000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5808
5809 * dispnew.c (mode_line_string): Support termcap frames as well.
5810
9b784e96
GM
58112000-01-01 Gerd Moellmann <gerd@gnu.org>
5812
27189709
GM
5813 * syntax.c (Fforward_word): Undo previous change.
5814
5815 * editfns.c (Fconstrain_to_field): Don't constrain if
5816 inhibit-field-text-motion is non-nil.
5817 (Fline_beginning_position): Undo previous change.
5818 (Fline_end_position): Ditto.
5819
5820 * syntax.c (Fforward_word): Notice field boundaries only if
5821 inhibit-field-text-motion is nil.
5822
5823 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
5824
5825 * editfns.c (Vinhibit_field_text_motion): New variable.
5826 (inhibit-field-text-motion): New DEFVAR_LISP.
5827 (Fline_beginning_position, Fline_end_position): Notice field
5828 boundaries only if inhibit-field-text-motion is nil.
5829
45158a91
GM
5830 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
5831 All calls adjusted.
5832 (x_build_heuristic_mask): Likewise.
5833 (xbm_load_image_from_file): Change error output.
5834 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
5835 (gif_load, gs_load, x_kill_gs_process): Ditto.
5836
9b784e96
GM
5837 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
5838 color indices when accessing raster pixels.
63cec32f
GM
5839 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
5840 one of :file or :data.
5841 (enum pbm_keyword_index): Add PBM_DATA.
5842 (pbm_format): Add :data.
5843 (pbm_image_p): Allow either :file or :data.
5844 (pbm_read_file): New function.
5845 (pbm_scan_number): Rewritten to read from string.
5846 (pbm_load): Support :data.
9b784e96 5847
2cb085db 5848See ChangeLog.8 for earlier changes.
6922b018
KH
5849
5850;; Local Variables:
69a7ffa7 5851;; coding: iso-2022-7bit
6922b018 5852;; End: