*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e672fdce
MB
12000-11-22 Miles Bader <miles@gnu.org>
2
3a17d6cc
MB
3 * keyboard.c (Vminibuffer_message_timeout): New variable.
4 (command_loop_1): Use it to determine message timeout.
5 (syms_of_keyboard): Initialize it.
6
e672fdce
MB
7 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defualts to nil.
8
e9655d81
KH
92000-11-22 Kenichi Handa <handa@etl.go.jp>
10
11 * sysdep.c: Move the code for declaring h_errno after #include
12 <netdb.h>.
13
77270fac
GM
142000-11-21 Gerd Moellmann <gerd@gnu.org>
15
cd913aae
GM
16 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
17 the menu bar when the tooltip is unmapped.
18
77270fac
GM
19 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
20 sole visible buffer when we're currently in the mini-buffer, and
21 give up if so.
22
556635d6
JR
232000-11-21 Jason Rumney <jasonr@gnu.org>
24
25 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
26 put on the clipboard.
27 (Fw32_get_clipboard_data): Compare data on clipboard with saved
28 copy of what Emacs last put there. If they are the same, do not
29 use the clipboard copy to avoid losing data due to coding
30 conversions.
31
5b7bde64
MB
322000-11-22 Miles Bader <miles@gnu.org>
33
34 * minibuf.c (Vminibuffer_prompt_properties): New variable.
35 (syms_of_minibuf): Initialize it.
36 (read_minibuf): Add properties from Vminibuffer_prompt_properties
37 to prompt, don't make read-only.
38
ff23e1dd
GM
392000-11-21 Gerd Moellmann <gerd@gnu.org>
40
3c64f287
GM
41 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
42 BEFORE/AFTER_POTENTIAL_GC.
43
7aaf4388
GM
44 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
45
f5f47add 46 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 47
ff23e1dd
GM
48 * term.c, cm.c: Don't try to include termcap.h; see comment there.
49
37c35586
KH
502000-11-21 Kenichi Handa <handa@etl.go.jp>
51
52 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
53 ... #endif scope.
54
ff9ab414
GM
552000-11-20 Gerd Moellmann <gerd@gnu.org>
56
c51d2b5e
GM
57 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
58 screen supports it.
59
29a01b72
GM
60 * s/gnu-linux.h: Don't use `#cpu'.
61
09dfdf85
GM
62 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
63 not defined in mman.h.
64
ff9ab414
GM
65 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
66 variables.
67 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
68 and store an index in the XClientMessageEvent. Storing a
69 Lisp_Object or pointer can fail on a 64 bit system, since X only
70 transfers 32 bits.
71 (x_scroll_bar_to_input_event): Get the window from
72 scroll_bar_windows.
73
81459ac9
DL
742000-11-20 Dave Love <fx@gnu.org>
75
76 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
77
56c13ae6
GM
782000-11-20 Gerd Moellmann <gerd@gnu.org>
79
80 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
81
495a6df3
KH
822000-11-20 Kenichi Handa <handa@etl.go.jp>
83
2bcf3714
KH
84 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
85 by WIDTH.
86
495a6df3
KH
87 * alloc.c (make_string): Fix previous change. Be sure to make
88 unibyte string correctly.
89
6d950f4c
GM
902000-11-19 Gerd Moellmann <gerd@gnu.org>
91
39b39373
GM
92 * window.c (Fwindow_list): Change parameter list to be XEmacs
93 compatible.
94 (window_list_1): New function.
95 (window_loop): Use it instead of Fwindow_list.
96
b95b34e5
GM
97 * sysdep.c (emacs_ospeed): New variable.
98 (toplevel): Don't declare ospeed extern.
99 (init_baud_rate): Use emacs_ospeed instead of ospeed.
100
101 * termcap.c (ospeed): Remove.
102 (tputs) [!emacs]: Remove unused code.
103 (tgetent): Avoid a compiler warning.
104
e83dc917
GM
105 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
106 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 107 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
108
109 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
110 removed.
111 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
112 Take the X display as additional argument.
113 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
114 `Widget' is a pointer type that's not easily stored in Lisp_Object
115 form in a portable way.
116
6d950f4c
GM
117 * dispnew.c (update_text_area): Fix last change.
118
e47306e6
GM
1192000-11-18 Gerd Moellmann <gerd@gnu.org>
120
fb3cd89b
GM
121 * xdisp.c: Use BINDING_STACK_SIZE throughout.
122
123 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
124 clear current matrices.
125
edaa9aed
GM
126 * buffer.c (mmap_enlarge): Don't print a message on stderr
127 if mapping new memory at the end of the existing region fails.
128
e47306e6
GM
129 * dispnew.c (update_text_area): Don't skip over equal glyphs
130 when the last current glyph overlaps the glyph to its right.
131
509633e3
MB
1322000-11-18 Miles Bader <miles@gnu.org>
133
134 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
135 lines that *end* with "..." too (that's the most common case!).
136
d392e9c5
GM
1372000-11-18 Gerd Moellmann <gerd@gnu.org>
138
67988445
GM
139 * xdisp.c (resize_mini_window): Temporarily change to the
140 mini-window's buffer if necessary.
1bfdbe43 141
d392e9c5
GM
142 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
143 the tooltip obscures less text under it.
144
1452000-11-17 Gerd Moellmann <gerd@gnu.org>
146
147 * puresize.h (BASE_PURESIZE): Increase to 700000.
148
92bb977f
JR
1492000-11-18 Jason Rumney <jasonr@gnu.org>
150
151 * w32term.c (w32_draw_bitmap): Use face to set colors.
152
26fbf20b
DL
1532000-11-17 Dave Love <fx@gnu.org>
154
155 * lread.c (Fload): Fix #ifdef for pcc.
156
100b593b
GM
1572000-11-17 Gerd Moellmann <gerd@gnu.org>
158
159 * xdisp.c (pos_visible_p): Compute the default character height
160 differently.
161
a288d0d1
GM
1622000-11-16 Gerd Moellmann <gerd@gnu.org>
163
cac94de6
GM
164 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
165 knowing the line's height; use the default font's height in that
166 case.
167
a288d0d1
GM
168 * xfaces.c (weight_table): Add `demi' with the same meaning as
169 `demibold'.
170
981fb6f6
KH
1712000-11-16 Kenichi Handa <handa@etl.go.jp>
172
2cca872d 173 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
174 (clear_glyph_row): Delete local static variable null_row.
175
e5fa381b
JR
1762000-11-15 Jason Rumney <jasonr@gnu.org>
177
178 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
179 (w32_alloc_lighter_color): Use new brightness calculations from
180 xterm.c. Scale delta to be in the range expected by W32.
181 (w32_draw_relief_rect): Use frame relief colors.
182
8e42f043
GM
1832000-11-15 Gerd Moellmann <gerd@gnu.org>
184
6d133d1f
GM
185 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
186 (Qinhibit_default_face_x_resources): New variable.
187 (syms_of_frame): Initialize it.
188 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
189
190 * xdisp.c (pos_visible_p): Improve function comment.
191
192 * lisp.h (BINDING_STACK_SIZE): New macro.
193
8e42f043
GM
194 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
195 reading the directory if readdir returns null and errno is EAGAIN
196 or EINTR.
197
e8c87124
SM
1982000-11-14 Stefan Monnier <monnier@cs.yale.edu>
199
200 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
201 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
202 Set amount_to_scroll to max of dx and scroll_step so that
203 scroll-conservatively doesn't defeat scroll-step>1.
204 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
205 scroll-conservatively for line-at-a-time scrolling.
206
5f0c971d
GM
2072000-11-14 Gerd Moellmann <gerd@gnu.org>
208
209 * window.c (Fpos_visible_in_window_p): Call pos_visible with
210 extra argument.
211
212 * xdisp.c (current_mode_line_height, current_header_line_height):
213 New variables.
214 (init_xdisp): Initialize them.
215 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
216 and use exact mode line heights if it is set.
217
218 * lisp.h (pos_visible_p): Change prototype.
219
220 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
221 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
222 and current_header_line_height first.
223 (current_mode_line_height, current_header_line_height): Declare
224 extern.
225
d7361edf
MB
2262000-11-14 Miles Bader <miles@lsi.nec.co.jp>
227
228 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
229 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
230 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
231
ee5e440a
MB
2322000-11-14 Miles Bader <miles@gnu.org>
233
234 * xterm.c (x_alloc_lighter_color): Include an additive component
235 too for dark colors, because FACTOR isn't enough.
236 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
237 New macros.
238
5ca020fc
GM
2392000-11-13 Gerd Moellmann <gerd@gnu.org>
240
241 * keyboard.c (show_help_echo): Call message3_nolog with number of
242 bytes in the help string as 2nd parameter, instead of the number
243 of characters.
244
9d348294
MB
2452000-11-13 Miles Bader <miles@gnu.org>
246
247 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
248 (Fload): Use new openp return protocol.
249 Don't try to use Vload_source_file_function to load .elc files.
250 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
251 openp return protocol.
252 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
253
1729bb9a
KH
2542000-11-11 Kenichi Handa <handa@etl.go.jp>
255
4e677396
KH
256 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
257
258 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
259 Defined these macros.
260 (NLIST_STRUCT): Avoid re-defining it.
261
1729bb9a
KH
262 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
263 -I/usr/contrib/X11R6/include.
264 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
265
a82fe213
JR
2662000-11-10 Jason Rumney <jasonr@gnu.org>
267
268 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
269
270 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
271 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
272
273 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
274 (Qw32_charset_vietnamese): New symbol.
275 (xlfd_charset_of_font): New function.
276 (w32_load_system_font): Use it.
277 (x_to_w32_charset): Use Fassoc to find charset info. Special case
278 when Vw32_charset_info_alist is nil to ensure default face always
279 has font. Use Fcar and Fcdr for safety.
280 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
281 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
282 pseudo-codepages for special cases.
283 (w32_to_x_font): New parameter to allow charset portion to be
284 specified where there is many to one mapping. Callers changed.
285 (w32_list_fonts): Avoid listing fonts that won't display.
286
52d89894
GM
2872000-11-10 Gerd Moellmann <gerd@gnu.org>
288
289 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
290 (font_list_1): Renamed from font_list.
291 (font_list): New function, trying alternative registries from
292 Vface_alternative_font_registry_alist.
293 (Finternal_set_alternative_font_registry_alist): New function.
294 (syms_of_xfaces): Initialize and Staticpro
295 Vface_alternative_font_registry_alist. Defsubr
296 Finternal_set_alternative_font_registry_alist.
297
651cd3da
KR
2982000-11-09 Ken Raeburn <raeburn@gnu.org>
299
300 * lisp.h (Flooking_at): Declare.
301
388ac098
GM
3022000-11-09 Gerd Moellmann <gerd@gnu.org>
303
778fbc46
GM
304 * dired.c (directory_files_internal): Fix a braino.
305
388ac098
GM
306 * dired.c (directory_files_internal): Add missing GCPRO's.
307 Some cleanup.
308
ecaedde1
GM
3092000-11-08 Gerd Moellmann <gerd@gnu.org>
310
f7eb32aa
GM
311 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
312 (resize_mini_window): Return quickly if Vresize_mini_window is
313 nil. Don't return if Vmax_mini_window_height is nil.
314
315 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
316 (syms_of_xdisp): Initialize them.
317 (resize_mini_window): Act according to the setting of
318 Vresize_mini_window.
319 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
320
ecaedde1
GM
321 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
322 scroll bar widget after configuring it, so that it will appear at
323 the right position from the start.
324 (XTredeem_scroll_bar): Cleaned up.
325
3747ef2c
KH
3262000-11-08 Kenichi Handa <handa@etl.go.jp>
327
328 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 329 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
330 division by two.
331
332 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
333
03391420
DL
3342000-11-07 Dave Love <fx@gnu.org>
335
7758f1c1 336 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
337
338 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
339
b5de343d
GM
3402000-11-07 Gerd Moellmann <gerd@gnu.org>
341
acad3c0b
GM
342 * window.c (Fset_window_configuration): Don't try to preserve
343 point in the current buffer, if that buffer is displayed in more
344 than one window.
345
b5de343d
GM
346 * xfaces.c (lookup_named_face): If default face isn't realized,
347 try to realize it. Return -1 if not successful.
348 (Fx_list_fonts): Handle case that face cannot be determined.
349 (Fface_font): Likewise.
350
cdb1fe49
GM
3512000-11-06 Gerd Moellmann <gerd@gnu.org>
352
353 * window.c (displayed_window_lines): Detect partially
354 visible lines at the bottom correctly.
355
d3a67486
SM
3562000-11-06 Stefan Monnier <monnier@cs.yale.edu>
357
358 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
359 when ensuring we don't do visit in indirect buffer.
360
ff8dd5d5
KH
3612000-11-06 Kenichi Handa <handa@etl.go.jp>
362
363 * composite.h (compose_chars_in_text): Add prototype.
364
365 * composite.c (Vcomposition_function_table): New variable.
366 (Qcomposition_function_table): New variable.
367 (run_composition_function): Call
368 Vcompose_chars_after_function with three arguments.
369 (compose_chars_in_text): New function.
370 (syms_of_composite): Modified the doc-string of
371 Vcompose_chars_after_function. Declare composition-function-table
372 as a lisp variable, and initialize it.
373
374 * xfns.c (x_encode_text): Suppress producing escape sequences for
375 composition.
376
377 * xselect.c: Include composite.h.
378 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
379
d1145f85
AI
3802000-11-05 Andrew Innes <andrewi@gnu.org>
381
382 * w32term.c (x_produce_glyphs): Fix typo in enum name.
383
384 * sysdep.c (read_input_waiting): Remove extraneous argument to
385 read_socket_hook.
386
387 * w32fns.c (Fx_server_version): Include w32_build_number in the
388 return list.
389
390 * w32heap.c (w32_build_number): New variable.
391 (cache_system_info): Set it.
392
393 * w32heap.h (w32_build_number): Add extern.
394
395 * emacs.c (syms_of_emacs): Update docstring for
396 system-configuration, to reflect the actual usage on MS-Windows.
397
e85ee976
GM
3982000-10-31 Gerd Moellmann <gerd@gnu.org>
399
26dcb81b
GM
400 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
401 process idle timers while waiting for another event.
402
0a894bad
GM
403 * dispnew.c (update_frame_line): Handle case where spaces in
404 the default face are colored.
405
e85ee976
GM
406 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
407 window height hasn't changed.
408
01b220b6
JR
4092000-10-31 Jason Rumney <jasonr@gnu.org>
410
411 * w32term.c (x_produce_glyphs): Handle composite characters.
412 (x_draw_glyph_string_foreground)
413 (x_draw_composite_glyph_string_foreground): Restore old font.
414
4e6b7204
MB
4152000-10-31 Miles Bader <miles@lsi.nec.co.jp>
416
417 * minibuf.c (read_minibuf): Reset the undo history just before
418 starting the recursive-edit.
419
d4358b37
GM
4202000-10-30 Gerd Moellmann <gerd@gnu.org>
421
563f68f1
GM
422 * xfaces.c (menu_face_change_count): New variable.
423 (Finternal_set_lisp_face_attribute): Increment it for changes
424 of the `menu' face.
425 (realize_basic_faces): Reflect changes in the `menu' faces
426 in menu bars.
427
82e274d1
GM
428 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
429 dy obtained from the iterator's y-position after moving from
430 scroll_margin_pos to PT; see comment there.
431
0dbf9fd2
GM
432 * xdisp.c (safe_eval_handler): Call add_to_log.
433
906b3b14
GM
434 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
435 is not a symbol or string.
436
d4358b37
GM
437 * xdisp.c (echo_area_display): Don't perform a display update from
438 inside redisplay. The update will happen anyway at the end of
439 redisplay, and it can confuse redisplay (GC messages while
440 redisplaying, for instance.)
441
70c825df
SM
4422000-10-30 Stefan Monnier <monnier@cs.yale.edu>
443
cf9b4b0b
SM
444 * xrdb.c (x_load_resources): Use the class name in the defaults.
445
70c825df
SM
446 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
447 (regex_compile): Catch bogus \(\1\).
448
a1d34b1e
GM
4492000-10-30 Gerd Moellmann <gerd@gnu.org>
450
cae71efe
GM
451 * xterm.c (x_alloc_nearest_color): Fix last change to compare
452 RGB values.
453
35efe0a1
GM
454 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
455 we have a color cache, check that the cached color equals the
456 allocated color. If not, clear the color cache.
457
1d3baf74
GM
458 * window.c (displayed_window_lines): Change buffers if necessary.
459 Fix computation of displayed lines.
460
a1d34b1e
GM
461 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
462 update_menu_bindings to DEFVAR_BOOL.
463
70737ea9
KH
4642000-10-30 Kenichi Handa <handa@etl.go.jp>
465
70c825df 466 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 467
fa0cb51d
KH
468 * puresize.h (BASE_PURESIZE): Increase to 680000.
469
70737ea9
KH
470 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
471
0e4c08e8
JR
4722000-10-29 Jason Rumney <jasonr@gnu.org>
473
474 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
475
476 * w32term.c (w32_bdf_per_char_metric): Negate descent.
477 (w32_cache_char_metrics): Handle possibility that 'x' does not
478 exist in a BDF font.
479 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
480
481 * w32bdf.h (bdffont): Add nchars.
482
483 * w32bdf.c (set_bdf_font_info): Set it.
484 (w32_BDF_TextOut): Swap byte order of double byte characters.
485 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
486
45b84006
EZ
4872000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
488
489 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
490 don't override the colors in frame's param_alist, unless they are
491 unspecified.
492
493 * term.c (reassert_line_highlight): If inverse_video is non-zero,
494 reverse the effect of the highlight flag.
495
caf9deee
KR
4962000-10-27 Ken Raeburn <raeburn@gnu.org>
497
498 * window.h (Fwindow_live_p): Declare.
499
ae0b9b46
KR
500 * undo.c (record_delete): Check that last_undo_buffer is really a
501 buffer before applying XBUFFER to it.
502
503 * keymap.c (where_is_internal): Pass lisp object, not integer, to
504 Faref.
505
02067692
SM
5062000-10-27 Stefan Monnier <monnier@cs.yale.edu>
507
508 * lisp.h (KEYMAPP): New macro.
509 (get_keymap): Remove.
510 (get_keymap_1): Rename get_keymap.
511
512 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
513
514 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
515
516 * xmenu.c (single_submenu): Use KEYMAPP.
517 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
518 Use KEYMAPP rather than Fkeymapp.
519
520 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
521
522 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
523 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
524 Use KEYMAPP rather than Fkeymapp.
525 (single_submenu): Use KEYMAPP.
526 (w32_menu_show, w32_dialog_show): Use TRUE.
527
528 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
529
530 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
531 (Fkeymapp): Use KEYMAPP.
532 (get_keymap): Rename from get_keymap_1. Remove old def.
533 Return t when autoload=0 and error=0 and the keymap needs autoloading.
534 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
535 (Fminor_mode_key_binding): Don't raise an error if the binding
536 is not a keymap.
537 (Fuse_global_map, Fuse_local_map): Allow autoloading.
538 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
539
540 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
541 Allow Vspecial_event_map to be autoloaded.
542 (menu_bar_items): Fetch the keymap rather than using keymapp.
543 (menu_bar_one_keymap): No need to follow func-indirect any more.
544 (parse_menu_item): get_keymap_1 -> get_keymap.
545 (tool_bar_items): Fetch the keymap rather than using keymapp.
546 (read_key_sequence): Use KEYMAPP.
547
548 * intervals.c (get_local_map): Use get_keymap rather than following
549 function-indirections explicitly.
550
551 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
552
f9d80af3
JR
5532000-10-27 Jason Rumney <jasonr@gnu.org>
554
555 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
556 point, as Windows has oversized fonts.
557
558 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
559
a3ba27da
GM
5602000-10-27 Gerd Moellmann <gerd@gnu.org>
561
562 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
563 (freehook, reallochook): Handle null pointer arguments.
564 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
565
aa3b80cc
SM
5662000-10-27 Stefan Monnier <monnier@cs.yale.edu>
567
568 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
569 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
570 Giving in to popular pressure to shut up the compiler with casts.
571
e24e84cc
GM
5722000-10-27 Gerd Moellmann <gerd@gnu.org>
573
574 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
575 signed value, and use a default value computed from the font's
576 maximum descent.
577
05ea7ef2
MB
5782000-10-27 Miles Bader <miles@lsi.nec.co.jp>
579
580 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
581 that specify a negative underline position can still use underlines.
582
583 * window.c (Fpos_visible_in_window_p): Make POS default to
584 WINDOW's point, not the current buffer's point.
585
0b95284b
DL
5862000-10-26 Dave Love <fx@gnu.org>
587
588 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
589 when it's necessary.
590
6c5b90af
GM
5912000-10-26 Gerd Moellmann <gerd@gnu.org>
592
8b6d9dc9
GM
593 * window.c (size_window): Compute size difference from sum of old
594 child window sizes instead of from parent's size.
595
6bc92b2e
GM
596 * xdisp.c (pos_visible_p): Change current buffer if necessary.
597 Handle obscured lines at the top of the window.
598
599 * frame.c (Fdelete_frame): Doc fix. Move running the hook
600 down after the last error condition check.
601
6c5b90af
GM
602 * frame.c (Fdelete_frame): Run delete-frame-hook.
603
42f92d4d
KH
6042000-10-26 Kenichi Handa <handa@etl.go.jp>
605
606 * coding.c (decode_coding): Fix previous change (check also
607 CODING_MODE_LAST_BLOCK).
608
d97151cb
SM
6092000-10-25 Stefan Monnier <monnier@cs.yale.edu>
610
e7efc503
SM
611 * regex.c: More `unsigned char' -> `re_char' changes.
612 Also change several `int' into `re_wchar_t'.
613 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
614 (PUSH_FAILURE_POINTER): Don't cast any more.
615 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
616 We want GCC to complain, since this piece of code makes
617 re_match non-reentrant, which *should* be fixed.
618 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
619 (EXTEND_BUFFER): Use RETALLOC.
620 (SET_LIST_BIT): Don't cast.
621 (re_wchar_t): New type.
622 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
623 that those two functions will always properly return.
624 (IMMEDIATE_QUIT_CHECK): Cast to void.
625 (analyse_first): Use recursion rather than an explicit stack.
626 (re_compile_fastmap): Can't fail anymore.
627 (re_search_2): Don't check re_compile_fastmap for failure.
628 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
629 Now also sets the new value (passed in a new argument).
630 (re_match_2_internal): Use it.
631 Also, use a new var `reg' of type size_t when looping through regs
632 rather than reuse the inappropriate `mcnt'.
633
d97151cb
SM
634 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
635 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
636 (where_is_internal): Renamed from Fwhere_is_internal.
637 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
638 (Fwhere_is_internal): New function wrapping where_is_internal.
639 (where_is_internal_1): Handle the case where we're filling the cache.
640 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
641
d5789b65
MB
6422000-10-25 Miles Bader <miles@gnu.org>
643
644 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
645
4ecda532
GM
6462000-10-25 Gerd Moellmann <gerd@gnu.org>
647
648 * window.c (pos_fully_visible_p): Removed.
649 (Fpos_visible_in_window_p): Use pos_visible_p to determine
650 if position is visible and/or fully visible.
651
652 * lisp.h (pos_visible_p): Add prototype.
653
654 * xdisp.c (pos_visible_p): New function.
655
68c3a137
KH
6562000-10-25 Kenichi Handa <handa@etl.go.jp>
657
658 * process.c (send_process): If OBJECT is t, it means that the data
659 is from C string, but we should encode it. Before calling
660 setup_raw_text_coding_system, be sure to flush out data by the
661 previous coding system.
662
7ae1c032
MB
6632000-10-25 Miles Bader <miles@lsi.nec.co.jp>
664
ff4dcd4b
MB
665 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
666 assignment of startpos to prev when startpos == pos.
667
7ae1c032
MB
668 * editfns.c (find_field): Set the field stickiness correctly from
669 overlay fields. Use renamed `text_property_stickiness'.
670 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 671 Only check text properties, not overlays.
7ae1c032
MB
672 * textprop.c (get_char_property_and_overlay): New function.
673 (Fget_char_property): Use it.
674 * intervals.h (get_char_property_and_overlay): Add declaration.
675
49801145
SM
6762000-10-25 Stefan Monnier <monnier@cs.yale.edu>
677
678 * keymap.c: Use AREF, ASET and ASIZE macros.
679 (Fmake_sparse_keymap): Docstring fix.
680 (synkey): Remove.
681 (shadow_lookup): Move up.
682 Handle the case where lookup-key returns an integer.
683 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
684 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
685 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
686 Simplify/rewrite the keymap-finding code.
687 Add check for command shadowing, using shadow_lookup.
688
39e776cd
SM
6892000-10-24 Stefan Monnier <monnier@cs.yale.edu>
690
691 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
692 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
693 a symbol.
694
2488aba5
AI
6952000-10-24 Andrew Innes <andrewi@gnu.org>
696
697 * dired.c (directory_files_internal_unwind): New function.
698 (directory_files_internal): Use it to ensure closedir is called
699 even if expand-file-name or file-attributes throw, eg. because of
700 a user interrupt. Also enable immediate_quit while calling
701 re_search, so that matching can be interrupted as well.
702
b94fdf61
AI
7032000-10-24 Andrew Innes <andrewi@gnu.org>
704
705 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
706 NT-Emacs only.
707 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
708 so that re_search functions only quit when callers expect them to.
709
7102000-10-24 Kenichi Handa <handa@etl.go.jp>
711
712 * regex.c (regex_compile): Change the way of handling a range from
713 a char less than 256 to a char not less than 256.
714
1946f901
GM
7152000-10-24 Gerd Moellmann <gerd@gnu.org>
716
7ae2f10f
GM
717 * window.c (size_window): Prevent setting window's width or
718 height to a negative value (esp. with XSETFASTINT).
719
5dcab13e
GM
720 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
721 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
722 (protect_malloc_state) [GC_MALLOC_CHECK &&
723 GC_PROTECT_MALLOC_STATE]: New function.
724 (PROTECT_MALLOC_STATE): New macro.
725 (__malloc_initialize, morecore, _malloc_internal)
726 (_free_internal) _realloc_internal): Use it to make _heapinfo
727 read-only outside of gmalloc.
728
63e1b552
GM
729 * keymap.c: Update copyright.
730
1946f901
GM
731 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
732 a symbol.
733
4fa09beb
GM
7342000-10-24 Colin Walters <walters@cis.ohio-state.edu>
735
736 * filelock.c (unlock_all_files): Use unlock_file to expand each
737 buffer's file_truename before trying remove its lock file.
738
23afac01
EZ
7392000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
740
741 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
742 or CRLF, decode EOLs.
743
04448b95
KH
7442000-10-24 Kenichi Handa <handa@etl.go.jp>
745
746 * window.c (Fdisplay_buffer): Fix doc.
747
3090a5a5
JR
7482000-10-23 Jason Rumney <jasonr@gnu.org>
749
750 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
751 ASCII font of default fontset on Windows.
752
753 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
754 xterm.c comment below).
755
756 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
757
a83fee2c
GM
7582000-10-23 Gerd Moellmann <gerd@gnu.org>
759
760 * xterm.c (x_connection_closed): Reset handling_signal.
761
762 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
763 null.
764
6ffdb539
MB
7652000-10-23 Miles Bader <miles@gnu.org>
766
767 * window.c (window_scroll_pixel_based, window_scroll_line_based):
768 Pass nil for FULLY argument to Fpos_visible_in_window_p to
769 maintain old behavior.
770 * minibuf.c (Fminibuffer_complete): Likewise.
771
7f1c969b
MB
7722000-10-23 Miles Bader <miles@lsi.nec.co.jp>
773
774 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
775 that when a font can't be exactly centered, it errs up rather than
776 down.
777
23afac01 7782000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
779
780 * fns.c (Fbase64_decode_string): The decoded result should be
781 unibyte.
782
1a578e9b
AC
7832000-10-23 Andrew Choi <akochoi@i-cable.com>
784
785 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
786
787 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 788 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
789
790 * emacs.c (main) [macintosh]: Call syms_of_textprop,
791 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
792 syms_of_search, x_term_init, and init_keyboard before calling
793 init_window_once. Also, call syms_of_xmenu.
794
795 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
796 default fontset to Monaco.
797
798 * frame.c [macintosh]: Include macterm.h. Remove declarations of
799 NewMacWindow and DisposeMacWindow.
800 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
801 instead of calling NewMacWindow and setting fields of
802 f->output_data.mac directly. Call init_frame_faces.
803 (Fdelete_frame) [macintosh]: Remove unused code.
804 (Fmodify_frame_parameters) [macintosh]: Call
805 x_set_frame_parameters instead of mac_set_frame_parameters.
806
807 * frame.h [macintosh]: Define menu_bar_lines field in struct
808 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
809
810 * keyboard.c [macintosh]: Include macterm.h.
811 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
812 and menu_bar_activate_event type events as for X and NT.
813 (make_lispy_event) [macintosh]: Construct lisp events of type
814 MENU_BAR_EVENT as for X and NT.
815
816 * sysdep.c [macintosh]: Remove declaration for sys_signal.
817 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
818 (sys_subshell) [macintosh]: Remove definition entirely.
819 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
820 Vwindow_system_version here. Remove initialization of
821 Vx_bitmap_file_path.
822 (read_input_waiting): Correct the number of parameters passed to
823 read_socket_hook.
824 Move all Macintosh functions to mac/mac.c.
825
826 * term.c [macintosh]: Include macterm.h.
827
828 * window.c [macintosh]: Include macterm.h.
829
830 * xdisp.c [macintosh]: Include macterm.h. Declare
831 set_frame_menubar and pending_menu_activation.
832 (echo_area_display) [macintosh]: Do not return if terminal frame
833 is the selected frame.
834 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
835 Allow only the selected frame to set menu bar.
836 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
837 calling FRAME_EXTERNAL_MENU_BAR (f).
838 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
839
840 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
841 and check_x. Declare XCreateGC. Define x_create_gc and
842 x_free_gc. Initialize font_sort_order.
843 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
844 but call x_list_fonts instead of w32_list_fonts.
845 (Finternal_face_x_get_resource) [macintosh]: Do not call
846 display_x_get_resource.
847 (prepare_face_for_display) [macintosh]: Set xgcv.font.
848 (realize_x_face) [macintosh]: Load the font if it is specified in
849 ATTRS.
850 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
851 to Qt.
852
1ffbabe3
SM
8532000-10-22 Stefan Monnier <monnier@cs.yale.edu>
854
855 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
856 is nil: since we go to the end of submap anyway, we'd end up
857 setting nil to nil.
858 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
859 doesn't obey autoload.
860
bed43f1d
EZ
8612000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
862
1ffbabe3 863 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 864
ea4233a7
JR
8652000-10-21 Jason Rumney <jasonr@gnu.org>
866
867 * w32term.c (w32_cache_char_metrics): Double check that font is
868 really fixed pitch before trusting tmPitchAndFamily.
869
f3d3c491
AI
8702000-10-21 Andrew Innes <andrewi@gnu.org>
871
872 * w32gui.h (w32_char_font_type): Move enum from w32term.c
873
874 * w32term.h: Extern decl for w32_cache_char_metrics.
875
876 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
877
878 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
879 (w32_unload_font): Free per_char array if present.
880
881 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
882 cached information in emulated XFontStruct to handle common cases
883 quickly. Do not allocate XCharStruct for return.
884 (w32_native_per_char_metric): New function.
885 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
886 allocating one.
887 (x_produce_glyphs): Don't get an HDC. Change calls to
888 w32_per_char_metric to match arg change above. Remove calls to
889 free results.
890 (w32_get_glyph_overhangs): Ditto.
891 (w32_cache_char_metrics): New function.
892
893 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
894 ($(BLD)/casefiddle.$(O)): Remove compile command.
895 ($(BLD)/gmalloc.$(O)): Remove compile command.
896 ($(BLD)/dispnew.obj):
897 ($(BLD)/keyboard.obj):
898 ($(BLD)/w32inevt.obj):
899 ($(BLD)/w32bdf.obj):
900 ($(BLD)/alloc.obj):
901 ($(BLD)/buffer.obj):
902 ($(BLD)/editfns.obj):
903 ($(BLD)/emacs.obj):
904 ($(BLD)/fileio.obj):
905 ($(BLD)/fns.obj):
906 ($(BLD)/indent.obj):
907 ($(BLD)/insdel.obj):
908 ($(BLD)/intervals.obj):
909 ($(BLD)/minibuf.obj):
910 ($(BLD)/print.obj):
911 ($(BLD)/scroll.obj):
912 ($(BLD)/sysdep.obj):
913 ($(BLD)/textprop.obj):
914 ($(BLD)/widget.obj):
915 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
916 ($(BLD)/term.obj): Add dependency on dispextern.h.
917
918 * makefile.nt ($(BLD)\dispnew.obj):
919 ($(BLD)\keyboard.obj):
920 ($(BLD)\w32inevt.obj):
921 ($(BLD)\w32bdf.obj):
922 ($(BLD)\alloc.obj):
923 ($(BLD)\buffer.obj):
924 ($(BLD)\editfns.obj):
925 ($(BLD)\emacs.obj):
926 ($(BLD)\fileio.obj):
927 ($(BLD)\fns.obj):
928 ($(BLD)\indent.obj):
929 ($(BLD)\insdel.obj):
930 ($(BLD)\intervals.obj):
931 ($(BLD)\minibuf.obj):
932 ($(BLD)\print.obj):
933 ($(BLD)\scroll.obj):
934 ($(BLD)\sysdep.obj):
935 ($(BLD)\textprop.obj):
936 ($(BLD)\widget.obj):
937 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
938 ($(BLD)\term.obj): Add dependency on dispextern.h
939
18ad4821
EZ
9402000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
941
942 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
943 with an additional argument of Qt.
944
de54681a
MB
9452000-10-21 Miles Bader <miles@gnu.org>
946
947 * window.c (pos_fully_visible_in_window_p): New function.
948 (Fpos_visible_in_window_p): Add FULLY argument.
949 Use pos_fully_visible_in_window_p.
950 (window_scroll_pixel_based, window_scroll_line_based): Update
951 calls to Fpos_visible_in_window_p.
952 * lisp.h (Fpos_visible_in_window_p): Update prototype
953
13c844fb
GM
9542000-10-20 Gerd Moellmann <gerd@gnu.org>
955
956 * alloc.c (toplevel): Conditionalize compilation of mem_*
957 functions differently.
958
d9506268
JR
9592000-10-20 Jason Rumney <jasonr@gnu.org>
960
961 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
962 mem_init where it used to be. mem_z etc not defined otherwise.
963
8094989b
GM
9642000-10-20 Gerd Moellmann <gerd@gnu.org>
965
966 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
967 GC_MALLOC_CHECK.
968 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
969 structure definition and related variabled to the top of the file.
970 Include this code when GC_MALLOC_CHECK is defined.
971 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
972 register/unregister allocated region.
973 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
974 which isn't allocated.
975 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
976 something which is already in use.
977 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
978 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
979 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
980 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
981
982 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
983 _malloc_internal instead of malloc.
984 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
985 of free.
986
ea456eb4
AI
9872000-10-20 Andrew Innes <andrewi@gnu.org>
988
989 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
990 Windows.
991 (my_strftime) <macro>: Don't use macro arg list when redefining as
992 _strftime_copytm.
993 (my_strftime) <function>: Supply 0 as ut argument.
994
e64c3a75
JR
9952000-10-19 Jason Rumney <jasonr@altavista.net>
996
997 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
998 including dispextern.h, as it stops faces from working.
999
1000 * w32fns.c (Fx_create_frame): Don't bother calling
1001 face-set-after-frame-default since the caller does it for us
1002 anyway. Clean up calls to x_get_arg to be consistent with X.
1003
1004 * w32term.c (x_produce_glyphs): Handle
1005 unibyte_display_via_language_environment correctly.
1006 (w32_draw_box_rect): Fix the calculation of width and height.
1007
1008 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
1009 as it has stopped working.
1010 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
1011 menu-bar.
1012
17401c97
GM
10132000-10-19 Gerd Moellmann <gerd@gnu.org>
1014
1015 * eval.c (skip_debugger): Prevent a compiler warning.
1016 (Fcondition_case): Likewise.
1017 (Fbacktrace_frame): Use a null interactive spec.
1018
773272d8
KH
10192000-10-19 Kenichi Handa <handa@etl.go.jp>
1020
1021 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
1022
a42943e9
GM
10232000-10-18 Gerd Moellmann <gerd@gnu.org>
1024
e50517d9
GM
1025 * strftime.c: Sync with glibc, file version 1.78.
1026 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
1027 should no longer be used according to ISO 8601.
1028
9035a35a
GM
1029 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
1030 no map for meta_prefix_char, don't try to use it as a keymap.
1031 Instead, if T_OK is non-zero, look up a default binding, if any,
1032 otherwise, if T_OK is zero, return nil.
1033
a42943e9
GM
1034 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
1035 (x_to_xcolors, png_load): Use x_query_color.
1036
1037 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
1038 functions.
1039 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
1040 which can be slow.
1041 (x_copy_color, x_alloc_lighter_color): Likewise.
1042
1043 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
1044 (x_query_color, x_query_colors): Add prototype.
1045
1046 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
1047 check_string_bytes only if not noninteractive, increase count to 50.
1048
00de2987
MB
10492000-10-18 Miles Bader <miles@lsi.nec.co.jp>
1050
1051 * insdel.c (adjust_markers_for_delete): Handle before-insertion
1052 markers correctly.
1053
54918e2b
GM
10542000-10-17 Gerd Moellmann <gerd@gnu.org>
1055
1f0b3fd2
GM
1056 * alloc.c (pure_bytes_used): Renamed from pureptr.
1057 (ALIGN): New macro.
1058 (pure_alloc): New function.
1059 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
1060 Use it.
1061 (Fpurecopy): Use PURE_POINTER_P.
1062
68c5d1db
GM
1063 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
1064 PT has moved backward.
1065
9a038881
GM
1066 * xdisp.c (cursor_row_p): Take continued lines into account.
1067
361b097f
GM
1068 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
1069 string's size_byte.
1070 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
1071 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
1072 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
1073 string allocated.
1074
54918e2b
GM
1075 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
1076 of selective display off while searching for the next line start.
1077
03ed0806
KH
10782000-10-17 Kenichi Handa <handa@etl.go.jp>
1079
1080 * Makefile.in (term.o): Depend on dispextern.h.
1081
7e05cdaf
SM
10822000-10-16 Stefan Monnier <monnier@cs.yale.edu>
1083
1084 * keymap.c (keymap_memberp): Ensure that nil is not a member.
1085
a6801fd1
GM
10862000-10-16 Gerd Moellmann <gerd@gnu.org>
1087
483de32b
GM
1088 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
1089 the iterator at the beginning, so that they can be set later on,
1090 for instance in reseat_at_next_visible_line_start, without being
1091 overwritten.
1092
a6801fd1
GM
1093 * xfns.c (pbm_format): Add :foreground and :background keywords.
1094 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 1095 (xbm_load): Recognize foreground and background color
a6801fd1
GM
1096 specifications.
1097
dbf1fcc1
EZ
10982000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
1099
1100 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
1101
1102 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
1103 declaration.
1104
1105 * msdos.c (IT_set_face): Compare highlighted face with the default
1106 face, and invert colors if these faces' colors are identical.
1107 (Fmsdos_remember_default_colors): Don't swap foreground and
1108 background colors in initial_colors[].
1109 (IT_set_frame_parameters): Don't swap frame's foreground and
1110 background pixels. If ALIST includes "(reverse . t)", swap
1111 foreground-color and background-color properties in frame's
1112 param_alist. If the original frame's param_alist doesn't specify
1113 the colors, store unspecified-fg and unspecified-bg, reversed if
1114 required.
1115
1116 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
1117 the colors are unspecified and reversed, reverse fore- and back-
1118 ground in the returned value.
1119 (Fframe_parameter): Ditto.
1120
b41fe2c3
GM
11212000-10-16 Gerd Moellmann <gerd@gnu.org>
1122
3a6b59d9
GM
1123 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
1124 get_last_unchanged_at_beg_row.
1125 (find_first_unchanged_at_end_row): Renamed from
1126 get_first_unchanged_at_end_row.
1127 (find_first_unchanged_at_end_row): Convert assertions to
1128 unconditional tests which abort. When looking for a row in
1129 unchanged text, don't go further back than first_text_row.
1130
b41fe2c3
GM
1131 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
1132 Don't add in the last line's height when deciding if the new
1133 position is below the scroll margin.
9d1af64f 1134
b41fe2c3 11352000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
1136
1137 * editfns.c (Fconstrain_to_field): Check carefully for field
1138 boundaries if either OLD_POS or NEW_POS has a non-nil field
1139 property, even if they're the same.
1140
c412cb7b
KH
11412000-10-16 Kenichi Handa <handa@etl.go.jp>
1142
1143 * xterm.c (x_draw_box_rect): Fix the calculation of width and
1144 height for XFillRectangle.
1145
5586f3eb
SM
11462000-10-15 Stefan Monnier <monnier@cs.yale.edu>
1147
1148 * syntax.c (Fstring_to_syntax): New function extracted from
1149 Fmodify_syntax_entry.
1150 (Fmodify_syntax_entry): Use it and document the ! and | fences.
1151 (skip_chars, Fforward_comment): Remove unused variables.
1152 (syms_of_syntax): Add defsubr for string-to-syntax.
1153 (describe_syntax): Add code for comment and string fences.
1154
db785038
SM
11552000-10-14 Stefan Monnier <monnier@cs.yale.edu>
1156
1157 * keymap.c (access_keymap): Add AUTOLOAD parameter.
1158 Do the meta->esc mapping. Call get_keyelt before returning.
1159 Start scanning from the second element (the first is always `keymap')
1160 to make it easier to detect when we reach a parent map.
1161 Handle the case of inheriting from a symbol whose function is a map.
1162 (Fkeymap_parent): Also handle the `inherit from symbol' case.
1163 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
1164 (get_keyelt, Flookup_key): Update call to access_keymap.
1165 Remove the meta->esc mappings.
1166 (define_as_prefix): Delete old disabled code.
1167 (menu_item_p): New function.
1168 (where_is_internal_1): Skip over the few remaining menu items.
1169 * lisp.h (access_keymap): Update prototype.
1170 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
1171 Update call to access_keymap.
1172 (follow_key, read_key_sequence): Update calls to access_keymap.
1173 Remove the meta->esc mappings.
1174
cafafe0b
GM
11752000-10-13 Gerd Moellmann <gerd@gnu.org>
1176
a2e2a7f6
GM
1177 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
1178 with additional argument.
1179
cafafe0b
GM
1180 * xdisp.c (cursor_row_p): New function.
1181 (try_cursor_movement, display_line): Use it.
1182
1183 * xdisp.c (append_space): Also save/restore iterator's current
1184 character and its length.
1185
1186 * xdisp.c (init_from_display_pos): Add an assertion.
1187 (handle_stop): Don't set iterator's add_overlay_start.
1188 (handle_invisible_prop): Likewise.
1189 (load_overlay_strings): If text under an overlay is invisible,
1190 take both before- and after-strings into account when the iterator
1191 is positioned either at the start or at the end of the overlay.
1192 (forward_to_next_line_start): Rewritten.
1193 (reseat_at_next_visible_line_start): Rewritten.
1194 (set_iterator_to_next): Add parameter RESEAT_P.
1195
1196 * dispextern.h (struct it): Remove member add_overlay_start.
1197 (set_iterator_to_next): Change prototype.
1198
c744452b
KH
11992000-10-13 Kenichi Handa <handa@etl.go.jp>
1200
1201 * coding.c (code_convert_region): Be sure to initialize
1202 coding->category_idx.
e4a3f4e1
KH
1203 (decode_coding_string): Set coding->src_multibyte and
1204 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
1205 (encode_coding_string): Set coding->src_multibyte and
1206 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 1207
321fd26f
SM
12082000-10-12 Stefan Monnier <monnier@cs.yale.edu>
1209
1210 * xfns.c (Fx_create_frame): Don't bother calling
1211 face-set-after-frame-default since the caller does it for us anyway.
1212
76832439
EZ
12132000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1214
1215 * window.c (coordinates_in_window): Fix detection of vertical line
1216 on character terminals.
1217
2483cf58
GM
12182000-10-12 Gerd Moellmann <gerd@gnu.org>
1219
1220 * editfns.c (save_excursion_save): Additionally record the
1221 selected window.
1222 (save_excursion_restore): If buffer was visible in a window, and a
1223 different window was selected, and the old selected window is
1224 still live, restore point in that window.
1225
eb991b25
KH
12262000-10-12 Kenichi Handa <handa@etl.go.jp>
1227
8a0eba09
KH
1228 * xterm.c (x_produce_glyphs): Handle
1229 unibyte_display_via_language_environment correctly.
1230
20401fcc
KH
1231 * regex.c (regex_compile): Change the way of handling a range from
1232 unibyte char to multibyte char.
1233
1234 * syntax.c (skip_chars): Change the way of handling a range from
1235 unibyte char to multibyte char.
1236
eb991b25
KH
1237 * process.c (read_process_output): Cancel previous change.
1238
365dd325
EZ
12392000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
1240
c1b096cb
EZ
1241 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
1242
365dd325
EZ
1243 * charset.c (Ffind_charset_string): Doc fix.
1244 (Ffind_charset_region): Doc fix.
1245
eb483c2b
KH
12462000-10-11 Kenichi Handa <handa@mule.m17n.org>
1247
1248 * process.c (read_process_output): Fix previous change. Adjust
1249 multibyteness of text to insert in a buffer by
df3c11b9 1250 string_make_unibyte/multibyte instead of
eb483c2b
KH
1251 Fstring_as_unibyte/multibyte.
1252
b40bfb99
AS
12532000-10-10 Andreas Schwab <schwab@suse.de>
1254
1255 * alloc.c (mark_object): Remove all workarounds installed on
1256 1993-08-08.
1257
caff31d4
KH
12582000-10-10 Kenichi Handa <handa@etl.go.jp>
1259
1260 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
1261 returning.
1262 (base64_encode_1): Make it work for a text of multibyte form.
1263 (Fbase64_decode_region): Allocate sufficient memory for multibyte
1264 case. Don't call str_to_multibyte because base64_decode_1
1265 produces correct multibyte form for eight-bit codes.
1266 (Fbase64_decode_string): Adjusted for the change of
1267 base64_decode_1.
1268 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
1269 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
1270 codes.
1271
1272 * charset.h (CHAR_STRING): Optimized for single byte characters.
1273
cba026ef
AS
12742000-10-09 Andreas Schwab <schwab@suse.de>
1275
1276 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
1277 -1 after socket is closed, to fall through to error processing.
1278
1e21fe48
EZ
12792000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
1280
1281 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 1282 variables. If ALIST includes foreground-color or
1e21fe48
EZ
1283 background-color, change also the colors of the default face for
1284 this frame.
1285
a640322e
EZ
12862000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1287
1288 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
1289 them extern (they are defined on xfaces.c).
1290 (syms_of_msdos): Don't intern and don't staticpro
1291 Qbackground_color and Qforeground_color.
1292
a115794c
EZ
12932000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
1294
1295 * frame.c (Fframe_parameter): For non-windowed frames, if
1296 f->param_alist says foreground or background color is unspecified,
1297 call tty_color_name to return the color name computed from the
1298 frame's current colors.
1299
f5533b63
DL
13002000-10-06 Dave Love <fx@gnu.org>
1301
1302 * terminfo.c (ospeed): Don't declare.
1303
1304 * sysdep.c: Don't include string.h.
1305 (h_errno): Declare conditional also on TRY_AGAIN.
1306
1307 * charset.c (Ffind_charset_string): Doc fix.
1308
1309 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
1310 (Fbase64_decode_region, Fbase64_decode_string): More explicit
1311 error messages.
1312
2b06561a
DL
13132000-10-05 Dave Love <fx@gnu.org>
1314
1315 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
1316 position like menu-bar.
1317
ca839c85
GM
13182000-10-05 Gerd Moellmann <gerd@gnu.org>
1319
1320 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
1321
1322 * xdisp.c (handle_single_display_prop): Use safe_call1.
1323 (safe_call): Renamed from call_function.
1324 (safe_call1): New function.
1325 (handle_fontified_prop): Use safe_call1 instead of call1.
1326 (safe_eval): Renamed from eval_form.
1327 (safe_eval_handler): Renamed from eval_handler.
1328 (handle_single_display_prop, display_mode_element): Use safe_eval
1329 instead of eval_form.
1330
1331 * xfaces.c (merge_face_heights): Use safe_call instead of
1332 call_function.
1333
1334 * keyboard.c (show_help_echo): Use safe_call instead of
1335 call_function; use safe_eval instead of eval_form.
1336
1337 * lisp.h (safe_call): Renamed from call_function.
1338 (safe_eval): Renamed from eval_form.
1339 (safe_call1): Add prototype.
1340
a3489ece
MB
13412000-10-05 Miles Bader <miles@lsi.nec.co.jp>
1342
1343 * xfns.c (image_ascent): Rearrange ascent calculation for the
1344 has-a-font case.
1345
35810b6f
SM
13462000-10-04 Stefan Monnier <monnier@cs.yale.edu>
1347
1348 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
1349 (where_is_internal_1): Don't bother ignoring menu-items any more.
1350
3dc78168
GM
13512000-10-04 Gerd Moellmann <gerd@gnu.org>
1352
1353 * keyboard.c (update_menu_bindings): New variable.
1354 (parse_menu_item): Use AREF. If update_menu_bindings
1355 is 0, don't update menu bindings.
1356 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
1357
1efc2bb9
EZ
13582000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
1359
1360 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
1361 to `mark_object'.
1362
3f679f55
SM
13632000-10-02 Stefan Monnier <monnier@cs.yale.edu>
1364
1365 * syntax.c (forw_comment): Match nestedness of ender/starter.
1366 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
1367 (prev_char_comstart_first): Remove.
1368 (back_comment): Check two-char comment markers more carefully
1369 to better handle overlapping cases like *//* or /* */* */ ...
1370 Match nestedness of ender/starter.
1371
2021ab61
DL
13722000-10-02 Dave Love <fx@gnu.org>
1373
1374 * config.in (HAVE_GAI_STRERROR): Add undef.
1375
1376 * process.c (Fopen_network_stream): Use it.
1377
1378 * m/alpha.h (NO_REMAP): Don't define.
1379
64e6cc18
GM
13802000-10-02 Gerd Moellmann <gerd@gnu.org>
1381
1382 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
1383 return with a string converted to an integer or vice versa when
1384 Vmocklisp_arguments is t.
1385 (Fsignal): Likewise. The function can return for `quit'.
1386 (struct gcpro): Declare member `var' to point to a volatile
1387 Lisp_Object.
1388
1389 * eval.c (error): Prevent compiler warning.
1390
b1904cd9
SM
13912000-09-30 Stefan Monnier <monnier@cs.yale.edu>
1392
1393 * keymap.c (keymap_memberp): New function.
1394 (Fset_keymap_parent): Use it.
1395 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
1396 Use keymap_memberp to avoid creating cycles.
1397 (access_keymap): Use KEYMAPP.
1398
71c9ec51
GM
13992000-09-30 Gerd Moellmann <gerd@gnu.org>
1400
1401 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
1402 gai_strerror. Make sure xerrno is set if connect fails. Improve
1403 error recovery.
71c9ec51 1404
c70c6b58
JR
14052000-09-29 Jason Rumney <jasonr@gnu.org>
1406
1407 * w32term.c (w32_char_font_type, w32_encode_char)
1408 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
1409 (w32_bdf_per_char_metric): New function.
1410 (w32_per_char_metric): Use it.
1411 (x_draw_glyph_string_background): Always draw background for BDF
1412 glyphs.
1413
1414 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
1415 GDI object which is a scarce resource.
1416
1417 * w32bdf.c (search_file_line): Fix skipping of whitespace.
1418 (get_quoted_string): Fix limit on memchr search.
1419 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
1420 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
1421 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
1422 (get_cached_font_char, cache_char_offset): Use macro
1423 BDF_CODEPOINT_RANGE_COVER_P.
1424 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
1425 (clear_cached_bitmap_slots): New function.
1426 (GET_HEX_VALUE): G-Z, g-z are not hex.
1427 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
1428 (get_bitmap_with_cache): Use new cache implementation.
1429 (create_offscreen_bitmap): New function.
1430 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
1431
1432 * w32term.c (x_produce_glyphs): If the distance from the current
1433 position to the next tab stop is less than a canonical character
1434 width, use the tab stop after that.
1435 (x_draw_glyphs): Handle case START and END are out of bounds more
1436 carefully.
1437 (x_clear_mouse_face): Block/unblock input.
1438 (x_display_and_set_cursor): Don't show a hollow box cursor for
1439 buffers whose cursor_type is nil.
1440
fe01239f
GM
14412000-09-29 Gerd Moellmann <gerd@gnu.org>
1442
1443 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
1444 disappears.
1445
1446 * dispextern.h (updating_frame): Declare extern.
1447
e7c52f1f
AS
14482000-09-29 Andreas Schwab <schwab@suse.de>
1449
1450 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
1451
de6e1f7c
GM
14522000-09-29 Gerd Moellmann <gerd@gnu.org>
1453
25126faa
GM
1454 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
1455 use its function definition.
1456 (tool_bar_items): Likewise.
1457
de6e1f7c
GM
1458 * lisp.h (fatal): Declare NO_RETURN.
1459
454ee39b
KH
14602000-09-29 Kenichi Handa <handa@etl.go.jp>
1461
1462 * keymap.c: Remove the line "#undef NULL".
1463
96301c5f
GM
14642000-09-28 Gerd Moellmann <gerd@gnu.org>
1465
1466 * xterm.c (x_make_frame_visible): Try harder to make the frame
1467 visible.
1468
efffeeb4
DL
14692000-09-28 Dave Love <fx@gnu.org>
1470
ecb8b666
DL
1471 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
1472
dc3cd20f
DL
1473 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
1474
1475 * .gdbinit (xreload): Note its need on GNU/Linux.
1476
efffeeb4
DL
1477 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
1478 r_alloc, r_alloc_free.
1479
8610d903
KH
14802000-09-28 Kenichi Handa <handa@etl.go.jp>
1481
1482 * syntax.c (skip_chars): Handle negation correctly.
1483
8901d1ac
GM
14842000-09-27 Gerd Moellmann <gerd@gnu.org>
1485
6f22f1ad
GM
1486 * xfaces.c (realize_default_face): Call set_lface_from_font_name
1487 with non-zero FORCE_P argument.
1488
8901d1ac
GM
1489 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
1490 Add assertions.
1491
1492 * xdisp.c (window_box_height): Add an assertion.
1493
1494 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
1495 tool-bar than is available.
1496 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
1497
36f1966f
DL
14982000-09-27 Dave Love <fx@gnu.org>
1499
efffeeb4 1500 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 1501
31d929e5
GM
15022000-09-26 Gerd Moellmann <gerd@gnu.org>
1503
c98863bf
GM
1504 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
1505 instead of BITS_PER_INT.
1506 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
1507 EMACS_UINT, respectively.
1508 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
1509
1510 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
1511
1512 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
1513
77072ab1
GM
1514 * window.c (freeze_window_starts): Construct last argument for
1515 foreach_window differently.
1516
1517 * xfns.c (x_decode_color): Don't return a Lisp_Object.
1518
1519 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
1520 EMACS_UINT instead of `int' and `unsigned int'.
1521 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
1522
1523 * frame.h (struct frame): Make the `nothing' member of union
1524 output_data an EMACS_INT.
1525
31d929e5
GM
1526 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
1527 hunting.
1528 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
1529 size in the sdata structure.
1530 (SDATA_NBYTES, SDATA_DATA): New macros.
1531 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
1532 differently for the different layout of the sdata structure.
1533 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
1534 in sdata.
1535 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
1536 Check that size recorded in the string size and size recorded in
1537 the sdata structure agree.
1538
3e60b029
DL
15392000-09-25 Dave Love <fx@gnu.org>
1540
1541 * buffer.c: Include stdio.h.
1542
1543 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
1544
1545 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
1546
1547 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
1548 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
1549 size_t.
1550 (__malloc_extra_blocks): Declare as __malloc_size_t.
1551
8ff16b4e
GM
15522000-09-25 Gerd Moellmann <gerd@gnu.org>
1553
755a2ccd
GM
1554 * alloc.c (mark_image): Use GC_NILP instead of NILP.
1555
d8b4516f
GM
1556 * keyboard.c (show_help_echo): Set help_echo_showing_p.
1557 (read_char): If help-echo is showing, preserve the echo area
1558 when redisplaying.
1559
1560 * xdisp.c (help_echo_showing_p): New variable.
1561 (set_message): Reset it to 0.
1562 (init_xdisp): Initialize help_echo_showing_p.
1563
1564 * dispextern.h (help_echo_showing_p): Declare extern.
1565
1566 * config.in: Fix typo in __GNUC_MINOR__.
1567
1568 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
1569
b11af2dd
GM
1570 * s/freebsd.h (POSIX_SIGNALS): Define.
1571
8ff16b4e
GM
1572 * xterm.c (x_clear_mouse_face): Block/unblock input.
1573
844eb643
DL
15742000-09-24 Dave Love <fx@gnu.org>
1575
1576 * fns.c (base64_encode_1): Fix last change.
1577
b30ab1b3
GM
15782000-09-22 Gerd Moellmann <gerd@gnu.org>
1579
1580 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
1581
1582 * xdisp.c (try_window_reusing_current_matrix): More fixes
1583 for the case window has a header-line.
1584
c6cbe5f0
DL
15852000-09-22 Dave Love <fx@gnu.org>
1586
4c7c1f3f
DL
1587 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
1588 a doc string.
1589
1590 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
1591
c6cbe5f0
DL
1592 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
1593
550a625e
GM
15942000-09-21 Gerd Moellmann <gerd@gnu.org>
1595
4c7c1f3f 1596 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
1597 for GCC >= 2.5.
1598
1599 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
1600 NO_RETURN.
1601
80d26f99
GM
1602 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
1603 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
1604 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
1605 warnings.
1606
1607 * marker.c (byte_char_debug_check): Return void.
1608
623a0aae
GM
1609 * xfns.c (Fx_create_frame): Set default frame parameter value
1610 for tool-bar-lines to 1.
1611
1612 * dispnew.c (scrolling_window): Compare y-positions of rows
1613 equal at the start. Some simplification.
1614
1615 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
1616 reused rows' y-position in the case window has a header-line, and
1617 new window start is greater than old window start.
1618
42ac0ae5
GM
1619 * process.c (process_sent_to): New variable.
1620 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
1621 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
1622 Declare more parameters volatile.
1623
550a625e
GM
1624 * lread.c (Vrecursive_load_depth_limit): New variable.
1625 (Fload): Check recursive loads whose recursion depth exceeds
1626 Vrecursive_load_depth_limit.
1627 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
1628
8320414c
GM
16292000-09-20 Gerd Moellmann <gerd@gnu.org>
1630
f46c275e
GM
1631 * fileio.c (Fread_file_name): Doc fix.
1632
1633 * editfns.c (Fmessage_or_box): Doc fix.
1634
1635 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
1636
b7e11c5b
GM
1637 * xfns.c (xbm_scan): Allow C-style comments.
1638
8320414c
GM
1639 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
1640 symbols are specified, add color translations to the cache.
1641 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
1642 functions.
1643 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
1644 xpm_cache_color.
1645 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
1646 structures to xpm_init_color_cache.
1647
da1608d9
GM
16482000-09-19 Gerd Moellmann <gerd@gnu.org>
1649
1650 * dispnew.c (update_window_line): Make sure to always draw
1651 mode-lines.
1652
6badfa25
AI
16532000-09-19 Andrew Innes <andrewi@gnu.org>
1654
1655 * makefile.nt (bootstrap-emacs): Don't change directory.
1656
3a5f42bb
KH
16572000-09-19 Kenichi Handa <handa@etl.go.jp>
1658
1b7649bd
KH
1659 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
1660
3a5f42bb
KH
1661 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
1662 If output buffer is too small, signal an appropriated error.
1663
9f83cf0b
DL
16642000-09-18 Dave Love <fx@gnu.org>
1665
1666 * keyboard.c (menu_bar_items, tool_bar_items)
1667 (current_active_maps): Remove redundant get_local_map call.
1668
28c7826c
GM
16692000-09-18 Gerd Moellmann <gerd@gnu.org>
1670
5cefa566
GM
1671 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
1672 cursor for buffers whose cursor_type is nil.
1673
6fed3546
GM
1674 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
1675 a feature to implement that is already implemented.
1676 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
1677 warnings.
1678
1679 * xfns.c (x_clear_image_1): New function.
1680 (x_clear_image): Use it.
1681 (x_from_xcolors): Use x_clear_image_1; don't free the image's
1682 mask.
1683
05b1f851
GM
1684 * dispnew.c (update_window): Move test for invisible lines
1685 at the top to update_window_line.
1686 (update_window_line): Handle invisible lines here.
1687
f4779de9
GM
1688 * xfns.c (clear_image_cache): Clear current matrices of all
1689 frames sharing an image cache. Block input while freeing
1690 images. Fix timestamp comparison.
1691 (x_clear_image): Also free the mask.
1692
28c7826c
GM
1693 * xfns.c (lookup_image): Block input while loading the image so
1694 that we won't get interrupted in a state where the image isn't yet
1695 set up completely.
1696 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
1697 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
1698 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
1699 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
1700 input.
1701
b7412313
GM
17022000-09-16 Gerd Moellmann <gerd@gnu.org>
1703
1704 * dispnew.c (update_window): Make sure to make desired rows
1705 current even if they are completely invisible at the top
1706 of a window.
1707
47e351a3
GM
17082000-09-15 Gerd Moellmann <gerd@gnu.org>
1709
7f8f1edc
GM
1710 * xfns.c (lookup_image): Build mask before applying an algorithm.
1711 Recognize algorithm `disabled'.
1712 (cross_disabled_images): New variable.
1713 (COLOR_INTENSITY): New macro.
1714 (x_detect_edges): Use COLOR_INTENSITY.
1715 (x_disable_image): New function.
1716 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
1717
1718 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
1719 disabled state, don't apply an image transformation algorithm if
1720 the user specified an image for the disabled state. Use
28c7826c 1721 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
1722 user hasn't specified an image.
1723
ebb8f116
GM
1724 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
1725 allocation functions with the XPM lib.
1726 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
1727 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
1728 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
1729 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
1730 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
1731 functions.
1732 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
1733 functions, if possible, because these handle color allocation
1734 failure more gracefully.
1735 (Fimage_mask_p): New function.
1736
47e351a3
GM
1737 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
1738 (Qedge_detection, Qheuristic): New symbols.
1739 (syms_of_xfns): Initialize new symbols.
1740 (lookup_image): Handle `:mask X', `:algorithm emboss', and
1741 `algorithm (edge-detection ...)'.
1742 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
1743 (tiff_format, gif_format, gs_format): Add `:mask'.
1744 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
1745 (GIF_MASK, GS_MASK): New enumerators.
1746 (x_laplace_read_row, x_laplace_write_row): Functions removed.
1747 (emboss_matrix, laplace_matrix): New variables.
1748 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
1749 (x_edge_detection): New functions.
1750 (x_laplace): Rewritten in terms of x_detect_edges.
1751 (x_build_heuristic_mask): If image has a mask, free it.
1752
fe83b953
AI
17532000-09-14 Andrew Innes <andrewi@gnu.org>
1754
1755 * makefile.w32-in: Revert to Unix line endings.
1756
3021e816
AI
17572000-09-14 Andrew Innes <andrewi@gnu.org>
1758
1759 * makefile.w32-in: Standardize indentation somewhat.
1760 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
1761 cater for differences between shells.
1762
1763 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
1764
2a32b5ea
GM
17652000-09-14 Gerd Moellmann <gerd@gnu.org>
1766
1767 * xterm.c (x_produce_glyphs): If the distance from the current
1768 position to the next tab stop is less than a canonical character
1769 width, use the tab stop after that.
1770
b4331e96
DL
17712000-09-14 Dave Love <fx@gnu.org>
1772
1773 * buffer.c (alloc_buffer_text): Fix xmalloc call.
1774
ef9e4345
GM
17752000-09-14 Gerd Moellmann <gerd@gnu.org>
1776
085536c2
GM
1777 * xdisp.c (handle_fontified_prop): While running fontification
1778 functions, bind `fontification-functions' and
1779 `after-change-functions' to nil.
1780
ef9e4345
GM
1781 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
1782 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
1783
1784 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
1785
1786 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
1787 USE_MMAP_FOR_BUFFERS.
1788
1789 * insdel.c (make_gap): Use enlarge_buffer_text.
1790
1791 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
1792 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
1793 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
1794 from former r_alloc_* functions in ralloc.c.
1795 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
1796 variables.
1797 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
1798 (mmap_init) [REL_ALLOC_MMAP]: New function.
1799 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
1800 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
1801 BUFFER_FREE.
1802
1803 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
1804 (enlarge_buffer_text): Add prototype.
1805
1806 * ralloc.c: Remove everything having to do with the use of mmap.
1807
f8608968
GM
18082000-09-13 Gerd Moellmann <gerd@gnu.org>
1809
2a494b2d
GM
1810 * sound.c (Fplay_sound): Doc fix.
1811
8c907a56
GM
1812 * keyboard.c: Avoid some more compiler warnings.
1813 (parse_tool_bar_item): Ignore cached key bindings.
1814
f8608968
GM
1815 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
1816 and allocation of Lisp data.
1817
6ab70e9a
GM
18182000-09-12 Gerd Moellmann <gerd@gnu.org>
1819
d12d0a9b
GM
1820 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
1821 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
1822 defaults first.
1823
6ab70e9a
GM
1824 * lread.c (Fload): Put code checking for recursive loads in #if 0.
1825
63c36c3c
KH
18262000-09-12 Miyashita Hisashi <himi@meadowy.org>
1827
1828 * ccl.c: Comment fixed.
1829 (MAX_MAP_SET_LEVEL): Increased to 30.
1830 (PUSH_MAPPING_STACK): Enclose with do-while block.
1831 (POP_MAPPING_STACK): Likewise.
1832 (stack_idx_of_map_multiple): New variable.
1833 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
1834 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
1835 call the corresponding CCL program by
1836 CCL_CALL_FOR_MAP_INSTRUCTION.
1837 (ccl_driver) <CCL_MapSingle>: Likewise.
1838 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
1839 with the case where looking up process reaches to the end of
1840 map-set, and call CCL programs as the above change.
1841
7ee3bd7b
GM
18422000-09-11 Gerd Moellmann <gerd@gnu.org>
1843
8ec8a5ec
GM
1844 * xfns.c (png_load, jpeg_load): Declare some variables volatile
1845 that might be clobbered by longjmp.
1846 (check_x_display_info, x_decode_color, create_frame_xic)
1847 (Fx_display_backing_store, Fx_display_visual_class)
1848 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
1849 warnings.
1850
f74b0705
GM
1851 * lread.c (init_lread): Set Vloads_in_progress to nil.
1852 (Fload): Show list of recursively loaded files, when signaling an
1853 error.
1854
7ee3bd7b
GM
1855 * lread.c (Vloads_in_progress): New variable.
1856 (record_load_unwind): New function.
1857 (Fload): Check for recursive loads.
1858 (syms_of_lread): Initialize Vloads_in_progress.
1859 (read_integer, read1): Avoid some compiler warnings.
1860
1861 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
1862 compiler warnings.
1863
974e1e5b
MB
18642000-09-11 Miles Bader <miles@gnu.org>
1865
1866 * editfns.c (Fbuffer_string): Doc fix.
1867
9824c4e3
GM
18682000-09-10 Gerd Moellmann <gerd@gnu.org>
1869
1870 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
1871
6a72fdd1
KR
18722000-09-09 Ken Raeburn <raeburn@gnu.org>
1873
1874 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
1875 whether to include other header files.
1876
28e6fb66
GM
18772000-09-09 Gerd Moellmann <gerd@gnu.org>
1878
1879 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 1880 by Fmemq as a boolean.
28e6fb66 1881
7f8b6551
SM
18822000-09-08 Stefan Monnier <monnier@cs.yale.edu>
1883
1884 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
1885
a8710abf
GM
18862000-09-08 Gerd Moellmann <gerd@gnu.org>
1887
d1a02881
GM
1888 * ralloc.c (mmap_fd): Remove initializer which can make it
1889 read-only in a dumped Emacs.
1890 (mmap_fd_1): New variable.
1891 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
1892 restore it from there.
1893 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
1894 unconditionally so that mmap_fd can be initialized there.
1895 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
1896 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
1897 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
1898
c454aac1
GM
1899 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
1900
1901 * xdisp.c (dump_glyph_row): Fix printf format string.
1902 (display_line, move_it_in_display_line_to): Avoid compiler
1903 warnings.
1904
fc653ef2
GM
1905 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
1906
3015eec0
GM
1907 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
1908 inheritance.
1909
bfe0ee88
GM
1910 * xdisp.c (try_window_id): When trying to locate cursor in
1911 unchanged rows at the top, handle the case that we can't find it.
1912
a8710abf
GM
1913 * xterm.c (x_draw_glyphs): Handle case START and END are out
1914 of bounds more carefully.
1915
6b7d4ae4
DL
19162000-09-08 Dave Love <fx@gnu.org>
1917
423193c5
DL
1918 * s/sol2.h (REL_ALLOC_MMAP): Define.
1919 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
1920
1921 * ralloc.c: Don't include string.h (redundant).
1922 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
1923 [!MAP_ANON]: Include fcntl.h.
1924 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
1925 (r_alloc, r_re_alloc, r_alloc_free)
1926 (mmap_enlarge, mmap_set_vars): Use it.
1927 (r_alloc_init_fd): New function.
1928 (__morecore) [SYSTEM_MALLOC]: Don't declare.
1929 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
1930 malloc type.
1931
1932 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
1933 Remove vm-limit.o.
1934
6b7d4ae4
DL
1935 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
1936 change to __NetBSD__.
1937
44d31981
KH
19382000-09-08 Kenichi Handa <handa@etl.go.jp>
1939
1940 * search.c (compile_pattern): Check the multibyteness of cached
1941 string and PATTERN.
1942
aad40737
MB
19432000-09-08 Miles Bader <miles@gnu.org>
1944
1945 * xfaces.c (default_face_vector): Function removed.
1946 (Finternal_merge_in_global_face): Restore old global/local
1947 attribute override order. Use inline loop instead of calling
1948 default_face_vector.
1949
91a211b5
GM
19502000-09-07 Gerd Moellmann <gerd@gnu.org>
1951
1952 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
1953 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
1954 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
1955 where necessary, in case POINTER_TYPE is `void'.
1956
03419440
EZ
19572000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
1958
1959 * frame.c (make_terminal_frame): Initialize frame foreground and
1960 background colors to unspecified, for the initial instance of an
1961 MSDOS frame.
1962
f46f845b
GM
19632000-09-07 Gerd Moellmann <gerd@gnu.org>
1964
24f76fbf
GM
1965 * ralloc.c (mmap_find): Fix overlap computation.
1966 (mmap_enlarge): Compute nbytes before trying to find an
1967 overlapping region.
1968
f46f845b
GM
1969 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
1970 instead of `!='.
1971
1972 * lread.c (syms_of_lread): Change value of regexp
1973 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
1974
1975 * xmenu.c (xdialog_show): When looking up the selection in
1976 menu_items, take `quote' boundaries into account; this corresponds
1977 to a nil ITEM in x-popup-dialog.
1978
3c014385
KH
19792000-09-07 Kenichi Handa <handa@etl.go.jp>
1980
fd6f711b
KH
1981 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
1982 not 0x81.
1983 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
1984
3c014385 1985 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
1986 encoding, not decoding. Fix the handling of latin-jisx0201.
1987 Check for the charset katakana-jisx0201 too.
3c014385 1988 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 1989 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 1990
0da3ecef
GM
19912000-09-07 Gerd Moellmann <gerd@gnu.org>
1992
ab0ee409
GM
1993 * xfaces.c (Vparam_value_alist): New variable.
1994 (syms_of_xfaces): Initialize it.
1995 (Finternal_set_lisp_face_attribute): Avoid more consing.
1996
1997 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
1998 specially.
1999 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
2000 (Qbackground_mode): New variable.
2001 (syms_of_frame_1): Initialize Qbackground_mode.
2002
2003 * lisp.h (Qdisplay): Declare extern.
1091dd67 2004
0da3ecef
GM
2005 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
2006 change face on all frames, and change the default for new frames.
2007
b14654b9
DL
20082000-09-07 Dave Love <fx@gnu.org>
2009
2010 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
2011
d24fd56f
KH
20122000-09-07 Kenichi Handa <handa@etl.go.jp>
2013
794f3670
KH
2014 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
2015
0fddd0dc
KH
2016 * charset.c: Include composite.h
2017 (lisp_string_width): New function.
2018 (Fstring_width): Call lisp_string_width instead of strwidth.
2019
2020 * Makefile.in (charset.o): Depends on composite.h.
2021
d24fd56f
KH
2022 * process.c (read_process_output): Before inserting the decoded
2023 text in the buffer, adjust the multibyteness.
2024
fa0b693c
GM
20252000-09-06 Gerd Moellmann <gerd@gnu.org>
2026
73b77ee5
GM
2027 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
2028 buffer's text buffer is null, map new memory.
2029
0a58f946
GM
2030 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
2031 POINTER_TYPE and size_t.
2032 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
2033 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
2034 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
2035 [REL_ALLOC_MMAP]: New macros.
2036 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
2037 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
2038 [REL_ALLOC_MMAP]: New functions.
2039
2040 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
2041 before and after unexec.
2042
2043 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
2044 text buffers if necessary.
2045
2046 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
2047 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
2048 in prototypes.
2049
fa0b693c
GM
2050 * config.in (HAVE_MMAP): Add #undef.
2051
877055f6
GM
20522000-09-05 Gerd Moellmann <gerd@gnu.org>
2053
08ba3862
GM
2054 * frame.c (Qdisplay_type): New variable.
2055 (syms_of_frame_1): Initialize it.
2056 (Fframe_parameter): New function that avoids consing.
2057 (syms_of_frame): Defsubr it.
2058
66ffe51c
GM
2059 * buffer.c (Fother_buffer): Consider buffers as invisible when
2060 they are displayed in a window on an invisible frame.
2061
877055f6
GM
2062 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
2063 get-largest-window always return nil.
2064
bb970e67
GM
20652000-09-04 Gerd Moellmann <gerd@gnu.org>
2066
2067 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
2068 variable; recognize Emacs 19 elc files.
2069
7a3d0e0e
MB
20702000-09-04 Miles Bader <miles@gnu.org>
2071
2072 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
2073 before initially popping up the menu, so the menu doesn't flash
2074 when the face settings are significantly different from the
2075 defaults.
2076
14473664
SM
20772000-09-04 Stefan Monnier <monnier@cs.yale.edu>
2078
2079 * regex.c (WIDE_CHAR_SUPPORT): New macro.
2080 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
2081 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
2082 (BIT_UNIBYTE): Remove.
2083 (re_match_2_internal): Delete corresponding code and streamline the
2084 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
2085 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
2086 (re_wctype_t): New type.
2087 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
2088 (regex_compile): Use them and fix handling of overly long char classes.
2089
c1174479
AI
20902000-09-03 Andrew Innes <andrewi@gnu.org>
2091
f8803e97
AI
2092 * makefile.w32-in: Change to DOS line endings.
2093
c1174479
AI
2094 * s/ms-w32.h (ORDINARY_LINK): New define.
2095
2096 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
2097 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
2098
2099 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
2100 (distclean): Delete them here instead.
2101
44ef7cf6
AI
2102 * w32proc.c (compare_env): Convert to uppercase for comparison,
2103 not lowercase, to match how the native Windows shell works.
2104
49b3bd82
JR
21052000-09-03 Jason Rumney <jasonr@gnu.org>
2106
2107 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
2108 CVS changes the line-ends when checking in/out on DOS/Windows.
2109
2110 * makefile.nt (emacs): Do not change directory to run temacs, as
2111 the load-path is set relative to current directory.
2112
a3d35a39
MB
21132000-09-03 Miles Bader <miles@gnu.org>
2114
2115 * xterm.c (x_alloc_lighter_color_for_widget): New function.
2116
d276b0cf
GM
21172000-09-02 Gerd Moellmann <gerd@gnu.org>
2118
715e84c9
GM
2119 * xdisp.c (redisplay_mode_lines): New function.
2120 (display_mode_lines): Return number of mode lines displayed.
2121 (echo_area_display): Use redisplay_mode_lines to draw garbaged
2122 mode lines. Don't temporarily bind redisplay-dont-pause to t.
2123
8892f40b
GM
2124 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
2125 string.h and strings.h.
2126 (index) [HAVE_INDEX]: Add prototype.
2127
d276b0cf
GM
2128 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
2129 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
2130
2131 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
2132 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
2133
38404229
GM
21342000-09-01 Gerd Moellmann <gerd@gnu.org>
2135
2136 * lread.c (read1): Accept `?' as symbol constituent, for
2137 compatiblity with XEmacs.
2138
c0f9ea08
SM
21392000-08-31 Stefan Monnier <monnier@cs.yale.edu>
2140
2141 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
2142 (struct re_pattern_buffer): Remove newline_anchor.
2143 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
2144 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
2145 (re_max_failures, fail_stack): Use size_t rather than unsigned.
2146 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
2147 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
2148 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
2149 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
2150 Get rid of references to newline_anchor.
2151 (regcomp): Allocate and precompute a fastmap.
2152
8c0f83fe
GM
21532000-08-31 Gerd Moellmann <gerd@gnu.org>
2154
2155 * lread.c (openp): GCPRO local variable `filename'.
2156
4bb91c68
SM
21572000-08-30 Stefan Monnier <monnier@cs.yale.edu>
2158
2159 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
2160
2161 * regex.c: Merge some changes from GNU libc. Add prototypes.
2162 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
2163 Use memcmp and memcpy instead of bcopy and bcmp.
2164 (init_syntax_once): Use ISALNUM.
2165 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
2166 (REG_UNSET_VALUE): Remove. Use NULL instead.
2167 (REG_UNSET, re_match_2_internal): Use NULL.
2168 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
2169 New macros.
2170 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
2171 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
2172 (regex_compile): In handle_interval, return an error rather than try to
2173 unfetch the interval if we can't find the closing brace.
2174 Obey the RE_NO_GNU_OPS syntax bit.
2175 (TOLOWER): New macro.
2176 (regcomp): Use it.
2177 (regexec): Allocate regs.start and regs.end as one block.
2178
5226a931
GM
21792000-08-30 Gerd Moellmann <gerd@gnu.org>
2180
868dd24b
GM
2181 * xdisp.c (echo_area_display): Check display_completed instead
2182 of calling detect_input_pending.
2183
2184 * dispnew.c (update_frame): Only set display_completed here; move
2185 the update_begin and update_end calls here from update_frame_1.
2186 (update_frame_1): Don't set display_completed here, don't call
2187 update_begin/update_end.
2188
5226a931
GM
2189 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
2190 instead of store_frame_param.
2191
2a8bd25f
GM
21922000-08-29 Gerd Moellmann <gerd@gnu.org>
2193
2194 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
2195 desired window matrix hasn't been displayed, use the current row
2196 instead. Make sure that only those frame rows are updated for
2197 which there exists a corresponding enabled desired row.
2198
ba3478d9
MB
21992000-08-29 Miles Bader <miles@gnu.org>
2200
2201 * xfaces.c (default_face_vector): New function.
2202 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
2203
87d0f685
GM
22042000-08-29 Gerd Moellmann <gerd@gnu.org>
2205
2206 * lread.c (openp): Prevent temporary string passed to
2207 Ffile_readable_p from being garbage collected.
2208
6fa86045
DL
22092000-08-28 Dave Love <fx@gnu.org>
2210
2211 * keymap.c (store_in_keymap): Add `static' to declaration.
2212
bb17930d
GM
22132000-08-28 Gerd Moellmann <gerd@gnu.org>
2214
2215 * emacs.c, callint.c, doc.c, editfns.c
2216 (toplevel) [HAVE_STRING_H]: Include string.h.
2217 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
2218 (index): Remove prototypes which might conflict with non-standard
2219 definitions of index/strchr.
2220
2221 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
2222 (rindex): Define only if !HAVE_RINDEX.
2223
2224 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
2225
2226 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
2227
87188200
MB
22282000-08-28 Miles Bader <miles@gnu.org>
2229
2230 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
2231 made inconsistent by a font-related attribute in FROM.
2232 (merge_face_inheritance): Add function comment.
2233
41a68aef
KH
22342000-08-28 Kenichi Handa <handa@etl.go.jp>
2235
2236 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
2237 the 4th arg (PREV_EVENT) Qt to suppress input method.
2238
f7c436c1
SM
22392000-08-27 Stefan Monnier <monnier@cs.yale.edu>
2240
0b32bf0e
SM
2241 * regex.c: Indent cpp directives and remove parens after `defined'.
2242 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
2243 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
2244 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
2245 (re_compile_pattern): Use size_t for length.
2246 (init_syntax_once): Move to a better place.
2247 * regex.h: Merge changes from GNU libc. Indent cpp directives.
2248 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
2249
f7c436c1
SM
2250 * syntax.c (back_comment): Detect cases where a comment-starter is
2251 actually inside another comment as in: /* a // b */ c // d \n.
2252 Make it clear that `comstart_pos' is unused for nested comments.
2253
2254 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
2255 (KEYMAPP): New macro.
2256 (Fkeymap_parent, Fset_keymap_parent): Use it.
2257 (fix_submap_inheritance): Mark it static.
2258 (define_as_prefix, describe_buffer_bindings, describe_command)
2259 (describe_translation, describe_map): Complete prototypes.
2260
2261 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
2262
2263 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
2264 to better match the key-lookup behavior.
2265
6288c62f
GM
22662000-08-27 Gerd Moellmann <gerd@gnu.org>
2267
2268 * xfaces.c (lface_fully_specified_p): Handle :inherit.
2269 (Finternal_set_lisp_face_attribute): Fix typo in error message.
2270
e931344e
EZ
22712000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
2272
2273 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
2274 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
2275 (xterm.o): Depend on coding.h
2276
d10dfeef
KH
22772000-08-26 Kenichi Handa <handa@etl.go.jp>
2278
2279 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
2280 the corresponding '#endif'.
2281
2d73e8d3
MB
22822000-08-26 Miles Bader <miles@gnu.org>
2283
2284 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
2285 * xfaces.c (QCinherit): New variable.
2286 (syms_of_xfaces): Initialize it.
2287 (LFACE_INHERIT): New macro.
2288 (Finternal_get_lisp_face_attribute)
2289 (merge_face_vector_with_property)
2290 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
2291 (check_lface_attrs): Allow new types of face height. Check
2292 inherit attribute.
2293 (CYCLE_CHECK): New macro.
2294 (merge_face_inheritance): New function.
2295 (merge_face_vectors): Merge inherited faces too. Add F and
2296 CYCLE_CHECK arguments.
2297 (merge_face_vector_with_property, Finternal_merge_in_global_face)
2298 (lookup_named_face, lookup_derived_face, realize_named_face)
2299 (face_at_string_position, face_at_buffer_position): Supply
2300 new F and CYCLE_CHECK arguments to merge_face_vectors.
2301 (merge_face_heights): New function.
2302 (merge_face_vectors, merge_face_vector_with_property)
2303 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
2304 handle relative face heights.
2305 (lface_same_font_attributes_p): Compare heights using EQ.
2306
6ce974d4
KH
23072000-08-26 Kenichi Handa <handa@etl.go.jp>
2308
2309 * charset.c (char_to_string): Check the character validity.
2310 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
2311 0.
2312
dc1e502d
SM
23132000-08-25 Stefan Monnier <monnier@cs.yale.edu>
2314
2315 * regex.c (PUSH_FAILURE_COUNT): New macro.
2316 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
2317 Handle popping of a register's or a counter's data.
2318 (POP_FAILURE_POINT): Use the new name.
2319 (re_match_2_internal): Push counter data on the stack for succeed_n,
2320 jump_n and set_number_at and remove misleading dead code in succeed_n.
2321
bd9d0f3f
GM
23222000-08-25 Gerd Moellmann <gerd@gnu.org>
2323
2324 * xdisp.c (redisplay_internal): If considering all windows on all
2325 frames, update the display for each frame as soon as possible,
2326 instead of first building all desired matrices for all frames, and
2327 then updating them all.
2328 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
2329
aa5b8e15
GM
23302000-08-24 Gerd Moellmann <gerd@gnu.org>
2331
17494071
GM
2332 * bytecode.c (mark_byte_stack): Add a comment.
2333
aa5b8e15
GM
2334 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
2335 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
2336 a graphical frame.
2337
c543db81
KH
23382000-08-24 Kenichi Handa <handa@etl.go.jp>
2339
d246d5f5
KH
2340 * minibuf.c (do_completion): Always use compare-string, not
2341 string-equal because the latter doesn't pay attention to
2342 multibyteness of strings.
2343
c543db81
KH
2344 * process.c (create_process): Don't setup raw-text coding here.
2345 (Fopen_network_stream): Don't set coding->src_multibyte and
2346 coding->dst_multibyte here.
2347 (read_process_output): For process filter, return unibyte string
2348 if default-enable-multibyte-characters is nil.
2349 (send_process): If OBJECT is multibyte text, be sure to encoded it
2350 by the specified coding system for the process. Otherwise, setup
2351 raw-text coding.
2352 (init_process): Don't initialize default-process-coding-system
2353 here.
2354
9b47cfe0
EZ
23552000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
2356
2357 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
2358 <scroll-down-aggressively>: Likewise.
2359
f5a36960
KH
23602000-08-23 Kenichi Handa <handa@etl.go.jp>
2361
2362 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
2363 zero. Set coding->produced_char correctly.
2364
69a7ffa7
AI
23652000-08-22 Andrew Innes <andrewi@gnu.org>
2366
2367 * makefile.w32-in: New file.
2368
2369 * unexw32.c (unexec): Ignore old_name, and use the actual location
2370 of the current executable instead. Base new_name on this.
2371
2372 * w32proc.c (create_child): Remove reference to security
2373 descriptor, which isn't needed and doesn't compile with mingw32.
2374
2375 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2376 up dllimport attributes.
2377 (x_update_window_end): Update prototype.
2378
2379 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
2380 extern, which screws up dllimport attributes.
2381
2382 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2383 up dllimport attributes.
2384
2385 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
2386 screws up dllimport attributes.
2387
2388 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2389 up dllimport attributes.
2390 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
2391 screws up dllimport attributes.
2392
2393 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2394 up dllimport attributes.
2395
2396 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
2397 screws up dllimport attributes.
2398
2399 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
2400 screws up dllimport attributes.
2401
2402 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2403 up dllimport attributes.
2404
2405 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
2406 unnecessary extern, which screws up dllimport attributes.
2407 (main): Ditto.
2408
2409 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2410 up dllimport attributes.
2411
2412 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
2413 unnecessary extern, which screws up dllimport attributes.
2414
2415 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
2416 screws up dllimport attributes.
2417
2418 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
2419 up dllimport attributes.
2420
2421 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
2422
2423 * w32bdf.c (search_file_line):
2424 (set_bdf_font_info):
2425 (seek_char):
2426 (w32_get_bdf_glyph):
2427 (w32_BDF_to_x_font): Fix compile warnings.
2428
2429 * w32menu.c: Include keyboard.h before frame.h. Fix compile
2430 warnings.
2431
2432 * w32select.c: Include keyboard.h before frame.h.
2433
2434 * w32fns.c (max): Define macro.
2435 (JOHAB_CHARSET): Define if not known.
2436 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
2437 (Fx_show_tip): Synch with X version.
2438
2439 * w32xfns.c: Include keyboard.h before frame.h.
2440
2441 * w32fns.c: Include keyboard.h before frame.h.
2442
2443 * w32term.c: Include keyboard.h before frame.h.
2444
2445 * fontset.c: Include keyboard.h before frame.h.
2446
2447 * w32inevt.c: Include keyboard.h before frame.h.
2448 (MOUSE_MOVED): Define if not known.
2449
2450 * minibuf.c: Include keyboard.h before frame.h.
2451
2452 * keyboard.c: Include keyboard.h before frame.h.
2453
2454 * indent.c: Include keyboard.h before frame.h.
2455
2456 * dispnew.c: Include keyboard.h before frame.h.
2457
2458 * buffer.c: Include keyboard.h before frame.h.
2459
2460 * alloc.c: Include keyboard.h before frame.h.
2461
2462 * print.c: Include keyboard.h before frame.h.
2463
2464 * process.c: Include keyboard.h before frame.h.
2465
2466 * scroll.c: Include keyboard.h before frame.h.
2467
2468 * sysdep.c: Include keyboard.h before frame.h.
2469
2470 * term.c: Include keyboard.h before frame.h.
2471
2472 * window.c: Include keyboard.h before frame.h.
2473
2474 * xdisp.c: Include keyboard.h before frame.h.
2475 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
2476
2477 * frame.c: Include keyboard.h before frame.h.
2478
2479 * w32heap.h: Undefine min, max.
2480
2481 * w32gui.h: Undefine min, max.
2482
2483 * unexw32.c: Change PUCHAR to PCHAR.
2484 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
2485 (relocate_offset):
2486 (get_section_info):
2487 (copy_executable_and_dump_data): Remove unnecessary static defs.
2488 (copy_executable_and_dump_data): Fix compile warnings.
2489
2490 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
2491
2492 * w32console.c (min): Define macro.
2493 (clear_frame, write_glyphs): Fix compile warning.
2494
2495 * w32proc.c (compare_env):
2496 (find_child_console): Fix compile warning.
2497
2498 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
2499 sys_errlist instead of _sys_errlist.
2500 (get_emacs_configuration_options): New function.
2501
2502 * s/ms-w32.h (sys_nerr): Provide default definition.
2503 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
2504 name with _ prepended.
2505 (NSIG): Define if not known.
2506 (get_emacs_configuration): Provide extern declaration.
2507 (get_emacs_configuration_options): Provide extern declaration.
2508 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
2509
2510 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
2511 (map_w32_filename):
2512 (read_unc_volume): Fix compile warning.
2513
2514 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
2515 definitions from being used.
2516
2517 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
2518
2519 * w32.c (unc_volume_file_attributes):
2520 (open_unc_volume): Make arg const.
2521
2522 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
2523 (read_input_waiting): Remove excess parameter.
2524
2525 * w32.c (init_environment): Call _access.
2526 (check_windows_init_file): Call _close.
2527 (init_user_info): Call _putenv.
2528 (init_environment): Call _putenv and _strdup.
2529 (init_ntproc): Reset volume info cache on startup.
2530
2531 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
2532 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
2533 cannot override the CRT malloc.
2534
2535 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
2536 (LINK_FLAGS): Append to original value of LINK_FLAGS.
2537
2538 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
2539 unless we are linking with a static CRT.
2540 (RVA_TO_PTR): Cast result to unsigned char*.
2541
2542 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
2543 (add_volume_info): Use xstrdup.
2544
25060080
SM
25452000-08-22 Stefan Monnier <monnier@cs.yale.edu>
2546
2547 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
2548 (do_completion, Fminibuffer_complete_word): Use it.
2549 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
2550 var so it can take non-boolean values.
2551
6917e6bb
GM
25522000-08-21 Gerd Moellmann <gerd@gnu.org>
2553
acb7cc89
GM
2554 * editfns.c (find_field): Formatting changes.
2555 (toplevel): Some old-style function forward declarations
2556 changed to prototypes, some new protypes added, some functions
2557 made static.
2558
2559 * lisp.h (set_time_zone_rule): Add prototype.
2560 (use_dialog_box): External declaration.
2561
0bbfdc25
GM
2562 * keyboard.c (gen_help_event): Add parameter SIZE.
2563 (kbd_buffer_events_waiting): Slightly rewritten.
2564 (clear_event): New function.
2565 (kbd_buffer_get_event): Use it, and clear the input_events of
2566 HELP_EVENTs.
2567 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
2568 don't fill the newly created array with nils.
2569 (toplevel): Convert some old-style function forward declarations
2570 to prototypes.
2571
2572 * keyboard.h (gen_help_event): Change prototype.
2573
2574 * xterm.c (XTread_socket): Change calls to gen_help_event.
2575
2576 * w32term.c (w32_read_socket): Change calls to gen_help_event.
2577
6917e6bb
GM
2578 * eval.c (Fmacroexpand): Doc fix.
2579
e5cd3d11
JR
25802000-08-20 Jason Rumney <jasonr@gnu.org>
2581
2582 * w32term.h (x_display_info_for_display): Remove as this function
2583 does not exist on W32.
2584
2585 * w32term.c (help_echo_window): New variable.
2586 (syms_of_w32term): staticpro it.
2587 (note_mode_line_highlight): Set it.
2588 (XTextExtents16): Removed as there is no equivalent on W32.
2589 (x_compute_glyph_string_overhangs): Incomplete body removed, as
2590 the X way of doing this will not work for W32.
2591 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
2592 (x_draw_image_foreground): Avoid drawing outside of the clip area
2593 when image doesn't have a mask.
2594 (note_mouse_highlight): Process overlays in the right order of
2595 priority. Set help_echo_window.
2596 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
2597 because that's more visible for large images.
2598
2599 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
2600 name to single_keymap_panes.
2601 (w32_menu_show): Set wv->title when dealing with titles.
2602 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
2603
6e69ab8c
MB
26042000-08-21 Miles Bader <miles@gnu.org>
2605
2606 * minibuf.c (do_completion): Try again if we rewrite the input
2607 string, but no completion was done, so that any completion message
2608 will be correct.
2609
511bd4eb
GM
26102000-08-20 Gerd Moellmann <gerd@gnu.org>
2611
2612 * xfaces.c (lface_equal_p): Compare strings differently.
2613 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
2614 (realize_tty_face): Use them.
2615 (syms_of_xfaces): Initialize new variables.
2616 (map_tty_color): New function, extracted from realize_tty_face.
2617 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
2618 foreground or background color, store the new color name in the
2619 realized face; previous code trying to do this had no effect.
2620 (realize_tty_face): Use map_tty_color.
2621 (Fclear_face_cache): Set face_change_count and ensure thorough
2622 redisplay.
2623
1433385f
GM
26242000-08-19 Gerd Moellmann <gerd@gnu.org>
2625
511bd4eb
GM
2626 * undo.c (record_first_change, record_marker_adjustment): Don't
2627 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 2628
419ac0a2
KH
26292000-08-18 Kenichi Handa <handa@etl.go.jp>
2630
2631 * coding.c (decode_coding_string): Set members consumed,
2632 consumed_char, produced, produced_char of *coding correctly. If
2633 decode_coding doesn't consume any byte, don't try anymore.
2634 (encode_coding_string): Likewise.
2635
7eb9e30d
GM
26362000-08-18 Gerd Moellmann <gerd@gnu.org>
2637
511bd4eb
GM
2638 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
2639 conditional have void type, for Standard C compilers.
7eb9e30d
GM
2640
2641 * xdisp.c (redisplay_internal): Compare windows for equality with
2642 EQ, instead of applying XWINDOW to something that might not
2643 be a window.
2644
dd34a735
KH
26452000-08-18 Kenichi Handa <handa@etl.go.jp>
2646
2647 * fontset.c (Finternal_char_font): Search only the selected frame
2648 for a window of the current buffer.
2649
385ff9e3
GM
26502000-08-18 Gerd Moellmann <gerd@gnu.org>
2651
511bd4eb 2652 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
2653 Lisp_Objects.
2654
385ff9e3
GM
2655 * keyboard.c (kbd_buffer_get_event): Handle the case that the
2656 second half of a HELP_EVENT is found at the start of kbd_buffer.
2657
d6abb4c7
MB
26582000-08-18 Miles Bader <miles@gnu.org>
2659
4618074a
MB
2660 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
2661
d6abb4c7
MB
2662 * editfns.c (save_restriction_save): Rewrite to use markers.
2663 (save_restriction_restore): Rewrite to understand new form of data
2664 saved by save_restriction_save.
2665 (Fsave_restriction): Remove cautionary note in doc-string.
2666
a7b28523
GM
26672000-08-17 Gerd Moellmann <gerd@gnu.org>
2668
2669 * fileio.c (build_annotations): Add a comment explaining the
2670 return value of format-annotate-function. Replace a spurious call
2671 to Flength with a CONSP test. Call format-annotate-function with
2672 a fifth arg specifying how many times the function is been called
2673 in a row, to let it choose temporary buffers appropriately.
2674
03c9ed77
DL
26752000-08-17 Dave Love <fx@gnu.org>
2676
2677 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
2678 declare make_temp_name twice.
2679
2680 * lread.c: Prototype readevalloop, load_unwind,
2681 load_descriptor_unwind.
2682 (unreadpure): Give it an arg.
2683
2684 * unexalpha.c: Prototype fatal_unexec, mark_x,
2685 update_dynamic_symbols. Declare unexec as void.
2686
2687 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
2688 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
2689
2690 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
2691 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
2692 DOUG_LEA_MALLOC.
2693
2694 * alloca.c: Use #error.
2695 [POINTER_TYPE]: Use it.
2696
2697 * eval.c (Fdefvar): Doc fix.
2698
2699 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
2700 INITIALIZE_INTERVAL.
2701
2702 * buffer.h: Avoid DECLARE_INTERVALS.
2703
2704 * config.in: Add size_t.
2705
aae41d97
EZ
27062000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
2707
2708 * w16select.c (set_clipboard_data): If there's not enough memory
2709 to put text into clipboard, return 1, as Fw16_set_clipboard_data
2710 expects. In case of other failures, return 3.
2711 (system_error_msg): New error message.
2712 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
2713 system_error_msg.
2714
65aa5e85
GM
27152000-08-16 Gerd Moellmann <gerd@gnu.org>
2716
2717 * term.c (write_glyphs): Also turn off inverse video after turning
2718 off other appearances in case TS_exit_attribute_mode is not equal
2719 to TS_end_standout_mode.
2720 (insert_glyphs): Turn inverse video on/off for each run of glyphs
2721 with the same face.
2722 (turn_off_face): Reset standout_mode only if
2723 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
2724 is equal to TS_end_standout_mode.
2725
ece23901
KH
27262000-08-16 Kenichi Handa <handa@etl.go.jp>
2727
9d7bcb2e
KH
2728 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
2729 sequence at the end of the source block.
2730
ece23901
KH
2731 * ccl.c (Fccl_program_p): Docstring modified.
2732 (Fccl_execute): Likewise.
2733 (Fccl_execute_on_string): Likewise.
2734
5e30eaa2
EZ
27352000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2736
2737 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
2738
290602fd
KH
27392000-08-16 Kenichi Handa <handa@etl.go.jp>
2740
2741 The following changes are mainly to fix bugs of
2742 encode/decode-coding-string failing if encoding/decoding return
2743 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
2744 variable conversion_buffer.
2745
2746 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
2747 decrement dst_end to avoid buffer overflow in the later call of
2748 string_as_multibyte
2749
2750 * coding.h (conversion_buffer_size, conversion_buffer)
2751 (get_conversion_buffer): Extern deleted.
2752
2753 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
2754 (conversion_buffer, conversion_buffer_size): Variables deleted.
2755 (get_conversion_buffer): Function deleted.
2756 (struct conversion_buffer): New structure.
2757 (MAX_ALLOCA): New macro.
2758 (allocate_conversion_buffer): New macro.
2759 (extend_conversion_buffer, free_conversion_buffer): New functions.
2760 (ccl_coding_driver): Set coding->result.
2761 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
2762 this is the last block of source.
2763 (encode_coding): Likewise. Handle the source block as the last
2764 one only when the whole source text is consumed.
2765 (decode_coding_string): Handle the case that the output buffer is
2766 too small to decode the whole source text. Use
2767 allocate_conversion_buffer, extend_conversion_buffer and
2768 free_conversion_buffer, not get_conversion_buffer.
2769 (encode_coding_string): Likewise.
2770 (init_coding): Function deleted.
2771 (init_coding_once): Delete code to initialize
2772 conversion_buffer_size.
2773
2774 * emacs.c (main): Don't call init_coding.
2775
2776 * msdos.c (IT_write_glyphs): Use a locally declared
2777 conversion_buffer.
2778
2779 * term.c (write_glyphs): Use a locally declared conversion_buffer.
2780 (insert_glyphs): Likewise.
2781
2782 * w32console.c (write_glyphs): Use a locally declared
2783 conversion_buffer.
2784
b9f80d41
EZ
27852000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
2786
2787 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
2788 member of display_info is NULL.
2789
32dc52f7
GM
27902000-08-15 Gerd Moellmann <gerd@gnu.org>
2791
58ed0d3b
GM
2792 * alloc.c (compact_small_strings): Use safe_bcopy, add an
2793 assertion.
2794
32dc52f7 2795 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 2796 appearances with capability `me'.
32dc52f7
GM
2797 (write_glyphs): Switch on inverse video before each face change.
2798
4eb22d33
DL
27992000-08-14 Dave Love <fx@gnu.org>
2800
2801 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
2802 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
2803 (lisp_free): Declare and make static.
2804
2805 * window.c: Fix embedded comment.
2806 (syms_of_window): Fix doc string.
2807
90cbf47e
GM
28082000-08-14 Gerd Moellmann <gerd@gnu.org>
2809
2810 * keymap.c (push_key_description): If C without modifiers is < 32,
2811 make sure to print `C-' before `M-', like in the manual.
2812
440fc135
GM
28132000-08-11 Gerd Moellmann <gerd@gnu.org>
2814
2815 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
2816 since they aren't relocated anymore.
2817 (sxhash_string): Make sure returned hash code fits in a Lisp
2818 integer.
2819
2820 * xdisp.c (try_cursor_movement): Fix handling of cursor in
2821 partially visible line which is smaller than the window's
2822 height.
2823
6e264fad
KH
28242000-08-11 Kenichi Handa <handa@etl.go.jp>
2825
2826 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
2827 the multibyte form of eight-bit-control characters.
2828 (Fccl_execute_on_string): Initialize ccl->multibyte.
2829
2830 * ccl.h (struct ccl_program): New member multibyte.
2831
2832 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
2833
c371f69a
KH
28342000-08-11 Kenichi Handa <handa@etl.go.jp>
2835
2836 * regex.c (regex_compile) <normal_char>: Pay attention to
2837 multibyteness.
2838 (analyse_first) <exactn>: Setup fastmap correctly for
2839 eight-bit-control characters.
2840
28412000-08-11 Kenichi Handa <handa@etl.go.jp>
2842
2843 * termhooks.h (enum event_kind): New member
2844 multibyte_char_keystroke.
2845
2846 * keyboard.c (make_lispy_event): Handle the new event type
2847 multibyte_char_keystroke.
2848
2849 * xterm.c: Include coding.h.
2850 (XTread_socket): Work around a bug of XmbLookupString. If the
2851 input is from XIM, decode it according to the current locale. In
2852 that case, generate multibyte_char_keystroke events.
2853
b8ddbe71
KH
28542000-08-11 Kenichi Handa <handa@etl.go.jp>
2855
2856 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
2857 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
2858
47589c8c
GM
28592000-08-10 Gerd Moellmann <gerd@gnu.org>
2860
2861 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
2862 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
2863 (move_it_in_display_line_to): Record iterator's ascent and descent
2864 before producing glyphs, and restore them when we know the glyph
2865 doesn't fit on the line.
2866 (move_it_to): Restructured so that it's easier to debug. If
2867 moving to a vpos, and not moving to an x or character position,
2868 stop as soon as the specified vpos is reached; don't move further
2869 into that line because that might change the computed line height.
2870 (try_cursor_movement): New function, extracted from the cursor
2871 movement branch of redisplay_window. If ending on a partially
2872 visible line, don't try to scroll if the cursor line is taller
2873 than the window.
2874 (redisplay_window): Use try_cursor_movement.
2875
2876 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
2877 because that function doesn't cope with variable-height lines.
2878
2879 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
2880 box cursor because that's better visible for large images.
2881
c51bacd6
MB
28822000-08-10 Miles Bader <miles@gnu.org>
2883
2884 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
2885
bea56df7
GM
28862000-08-10 Gerd Moellmann <gerd@gnu.org>
2887
2888 * xdisp.c (Vmessages_buffer_name): New variable.
2889 (message_dolog): Use it.
2890 (syms_of_xdisp): Initialize it.
2891
99cd7364
EZ
28922000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2893
2894 * msdos.c (IT_note_mouse_highlight): Update the calls to
2895 overlays_at.
2896 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
2897 redundant now that keyboard.h is included.
2898
7d093d56
EZ
28992000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
2900
2901 * keyboard.c (kbd_buffer_events_waiting): New function.
2902
2903 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
2904
2905 * msdos.c: Include keyboard.h.
2906 (XMenuActivate): Empty no_event events from the event buffer. If
2907 no events are left after that, call clear_input_pending.
2908 (mouse_clear_clicks): New function, code moved from mouse_init.
2909 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
2910 mouse driver to ``forget'' any past clicks.
2911
2912 * Makefile.in (msdos.o): Depend on keyboard.h.
2913
41e757a6
GM
29142000-08-09 Gerd Moellmann <gerd@gnu.org>
2915
8e7bd231
GM
2916 * lisp.h (input_pending): External declaration.
2917
2918 * dispextern.h (Qredisplay_dont_pause): Declare extern.
2919
2920 * xdisp.c (echo_area_display): Display thoroughly if input is
2921 pending. Bind redisplay-dont-pause to t during the redisplay.
2922 in case input is pending.
2923
2924 * dispnew.c (Qredisplay_dont_pause): New variable.
2925 (syms_of_display): Initialize and staticpro it.
2926 (update_frame_1): Don't interrupt the display for pending input if
2927 redisplay_dont_pause is set.
2928
43028b7e
GM
2929 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
2930
41e757a6
GM
2931 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
2932
2f2174fa
KH
29332000-08-09 Miles Bader <miles@lsi.nec.co.jp>
2934
2935 * callproc.c (Fcall_process): Terminate the unwind-protect around
2936 the post-read-conversion of coding system.
2937
0a6fd67e
MB
2938 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
2939 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
2940 * buffer.h (overlays_at): Update prototype.
2941 * xdisp.c (next_overlay_change): Update call to overlays_at.
2942 * xfaces.c (face_at_buffer_position): Likewise.
2943 * textprop.c (Fget_char_property): Likewise.
2944 * xterm.c (note_mouse_highlight): Likewise.
2945
0c80756e
MB
2946 * minibuf.c (do_completion): Don't consider a simple change of
2947 case as `completion'.
2948
975f250a
KR
29492000-08-08 Ken Raeburn <raeburn@gnu.org>
2950
b347b3fd
KR
2951 * keyboard.c (syms_of_keyboard): Initialize
2952 last_point_position_buffer.
2953 * undo.c (record_delete): Make sure last_point_position_buffer is
2954 a buffer before comparing pointers.
2955
2956 * coding.h (decode_coding_string): Declare.
2957
2958 * intervals.h (Fprevious_single_char_property_change): Declare.
2959
2960 * textprop.c (Fprevious_single_char_property_change): Don't do
2961 arithmetic directly on lisp objects.
2962
25ad1371 2963 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
2964 objects.
2965
2966 * keyboard.h (menu_item_eval_property): Declare.
2967
2968 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
2969 reuse as buffer name, instead of recreating (and discarding) every
2970 time a message is logged.
2971 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
2972 (current_message_1, truncate_message_1, set_message_1)
2973 (display_echo_area_1, resize_mini_window_1): Signatures changed.
2974 (current_message, truncate_echo_area, display_echo_area)
2975 (resize_echo_area_axactly): Changed calls.
b347b3fd 2976
975f250a 2977 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 2978 Lisp object.
975f250a 2979 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 2980 must be an integer, not a Lisp object.
975f250a 2981
46dc9912
KH
29822000-08-08 Kenichi Handa <handa@etl.go.jp>
2983
2984 * charset.c (Fchar_width): Doc fix.
2985
9f6d1a6c
GM
29862000-08-08 Gerd Moellmann <gerd@gnu.org>
2987
2988 * charset.c (Fstring_width): Doc fix.
2989
ff3d9573
GM
29902000-08-07 Gerd Moellmann <gerd@gnu.org>
2991
41e757a6 2992 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
2993 line, clear ascent and descent members of the iterator structure;
2994 the height of the continued line does not affect the height of the
2995 continuation line.
2996 (make_cursor_line_fully_visible): Do nothing if cursor is on a
2997 line taller than the window.
2998 (redisplay_window) <forced window start>: Handle case that the
2999 middle of the window is not found in any row.
3000 (dump_glyph_row): Show more information.
3001 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
3002 first text line in a glyph matrix.
3003
3004 * xterm.c (x_draw_image_foreground): Avoid drawing outside
3005 of the clip area when image doesn't have a mask.
3006
70fc58b3
GM
3007 * fns.c (sweep_weak_table): Fix survival conditions for
3008 key-or-value and key-and-value weakness.
3009
3010 * .gdbinit (xhashtable): New command.
3011
ac0e96ee
GM
3012 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
3013 tables out of the list of all weak hash tables.
3014
ff3d9573
GM
3015 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
3016 a new buffer is created, make sure echo_area_buffer[] references
3017 the new buffer.
3018
e0d8827b
EZ
30192000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
3020
3021 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
3022 the doc string.
3023
c6f35378
KH
30242000-08-07 Kenichi Handa <handa@etl.go.jp>
3025
3026 * syntax.c (skip_chars): Fix previous change. Make the handling
3027 of unibyte string consistent with that of regex search.
3028
1fd4c450
GM
30292000-08-05 Gerd Moellmann <gerd@gnu.org>
3030
e49aa397
GM
3031 * xmenu.c (popup_get_selection): Use xfree instead of free.
3032
3033 * fileio.c (Finsert_file_contents): Use xfree instead of free.
3034
3035 * editfns.c (Ftranspose_regions): Use xfree instead of free.
3036
3037 * callproc.c (child_setup): Use xfree instead of free.
3038
3039 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
3040 instead of malloc.
3041 (run_mac_command, closedir): Use `xfree' instead of `free'.
3042
3043 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
3044
3045 * eval.c (error): Use xfree instead of free.
3046
1fd4c450
GM
3047 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
3048
3049 * fns.c: Replace `illegal' with `invalid'.
e49aa397 3050 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 3051
82d497fc
KH
30522000-08-05 Kenichi Handa <handa@etl.go.jp>
3053
3054 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
3055 conversion.
3056
59f953a2
NF
30572000-08-04 Noah Friedman <friedman@splode.com>
3058
3059 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
3060 docstring.
3061
688351f2
GM
30622000-08-04 Gerd Moellmann <gerd@gnu.org>
3063
3064 * syntax.c (skip_chars): Fix typo in error message.
3065
2dad51cc
AS
30662000-08-04 Andreas Schwab <schwab@suse.de>
3067
3068 * m/ia64.h: Moved from s/ia64.h.
3069
99bb2c60
KH
30702000-08-04 Kenichi Handa <handa@etl.go.jp>
3071
082a1df2
KH
3072 * process.c (read_process_output): Big simplification. Handle
3073 composition and post-read-conversion of coding system correctly.
3074 (send_process): Handle composition correctly.
3075
3076 * callproc.c (Fcall_process): Handle post-read-conversion of
3077 coding system if any.
3078
99bb2c60
KH
3079 * coding.c (decode_coding_iso2022): More strict check for handling
3080 single shifting.
082a1df2
KH
3081 (coding_restore_composition): Pay attention to the case that
3082 cmp_data is not set properly (because of invalid code in the
3083 source text).
3084 (run_pre_post_conversion_on_str): Include text properties in the
3085 resulting string.
3086 (decode_coding_string): Set members of coding correctly.
99bb2c60 3087
f4988be7
GM
30882000-08-03 Gerd Moellmann <gerd@gnu.org>
3089
3090 * s/ia64.h: New file.
3091
3092 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
3093 Use NULL instead of 0 at the end of variable argument list of
3094 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
3095 sizeof (int) < sizeof (void *).
3096
3097 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
3098 of variable argument lists of XtVaGetValues and XtVaSetValues.
3099
3100 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
3101 variable argument lists of XtVaGetValues and XtVaSetValues.
3102
ead53494
GM
31032000-08-02 Gerd Moellmann <gerd@gnu.org>
3104
3105 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
3106 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
3107
3108 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
3109 prototype.
3110
3111 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
3112 in call to Fsingle_key_description.
3113
3114 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
3115 Callers changed.
3116
31172000-08-02 Colin Walters <walters@cis.ohio-state.edu>
3118
3119 * window.c (display_buffer_reuse_frames): New variable.
3120 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
3121 frames displaying BUFFER.
3122 (syms_of_window): Define Lisp variable
3123 display-buffer-reuse-frames.
3124
10b0f752
MB
31252000-08-01 Miles Bader <miles@gnu.org>
3126
3127 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
3128 when to constrain NEW_POS (they were pretty screwed up before).
3129
16425c4a
EZ
31302000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
3131
3132 * msdos.c (run_msdos_command): Save and restore the master
3133 environment, for the case that child_setup signals an error.
3134 When mirroring slashes in DOS shell commands, don't fail when
3135 argv[2] has embedded blanks.
da288c14
EZ
3136 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
3137 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
3138 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
3139
3140 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
3141 using alloca; free it after run_msdos_command returns.
3142
27f73852
DL
31432000-07-27 Dave Love <fx@gnu.org>
3144
3145 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
3146 define.
3147 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
3148 working.
3149
3150 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
3151
c0261b5e
EZ
31522000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
3153
3154 * editfns.c (lisp_time_argument): Fix last change.
3155
b548072f
GM
31562000-07-27 Gerd Moellmann <gerd@gnu.org>
3157
3ab82477
GM
3158 * fns.c (Fdelete): Make it work on vectors and strings in addition
3159 to lists.
3160
b548072f
GM
3161 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
3162 (syms_of_fns): Initialize new variables.
3163 (sweep_weak_table): Handle weakness `key-or-value' and
3164 `key-and-value'.
3165 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
3166 weakness, with t meaning the same as `key-and-value'.
3167
91ae8751
KH
31682000-07-27 Kenichi Handa <handa@etl.go.jp>
3169
3170 * coding.h (struct coding_system): Member safe_charset deleted.
3171
3172 * coding.c (Qsafe_charsets): This variable deleted.
3173 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
3174 variables.
3175 (coding_safe_chars): New function.
3176 (CODING_SAFE_CHAR_P): New macro.
3177 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
3178 checking safe_charsets member of the coding system. Caller
3179 changed.
3180 (detect_coding_iso2022): New local variable safe_chars.
3181 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
3182 safe_charsets member of the coding system.
3183 (decode_coding_iso2022): New local variable safe_chars.
3184 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
3185 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
3186 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
3187 (ENCODE_UNSAFE_CHARACTER): New macro.
3188 (encode_coding_iso2022): New local variable safe_chars. Check
3189 unsafe chars.
3190 (setup_coding_system): Delete the code to initialize
3191 coding->safe_charses
3192 (intersection, find_safe_codings): New functions.
3193 (Ffind_coding_systems_region_internal): New function.
3194 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
3195 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
3196 variable and initialize it.
3197
3198 * fns.c (char_table_ref_and_index): New function.
3199
3200 * lisp.h (char_table_ref_and_index): Add prototype.
3201
34a7a267
SS
32022000-07-26 Sam Steingold <sds@gnu.org>
3203
3204 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 3205 (Ffloat_time): New built-in Lisp function.
34a7a267 3206
a95cb10a
GM
32072000-07-26 Gerd Moellmann <gerd@gnu.org>
3208
3353ef5a
GM
3209 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
3210 for the character code.
3211
3212 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
3213 GNU/Linux.
3214
a95cb10a
GM
3215 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
3216 if called for a popup menu.
3217 (xmenu_show): Store help string in widget values.
3218
b4a12321
DL
32192000-07-26 Dave Love <fx@gnu.org>
3220
3221 * syswait.h: Move some definitions.
3222 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
3223 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
3224 perspicuous definitions.
3225 (WTERMSIG): Fix bit pattern used.
3226
13f5ad37
KH
32272000-07-26 Kenichi Handa <handa@etl.go.jp>
3228
3229 * print.c (print_object): If vector printing is truncated, print
3230 "..." to indicate it as well as the case of list printing.
3231
070fe99c
GM
32322000-07-25 Gerd Moellmann <gerd@gnu.org>
3233
969065c3
GM
3234 * xdisp.c (next_element_from_display_vector): Improve comments.
3235
3236 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
3237 for the character code, and the rest for the face id as in 20.x.
3238 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
3239
3240 * window.c (window_display_table): Cleaned up.
3241
070fe99c
GM
3242 * syntax.c (Fforward_word): Add last arg nil in call of
3243 Fconstrain_to_field.
3244
bad77ef7
EZ
32452000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
3246
969065c3 3247 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
3248 identical but for the letter-case, don't call
3249 barf_or_query_if_file_exists.
3250
c28da489
MB
32512000-07-25 Miles Bader <miles@gnu.org>
3252
3253 * editfns.c (find_field): Honor special `boundary' fields.
3254 (Qboundary): New variables.
3255 (syms_of_editfns): Initialize Qboundary.
3256 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
3257 Use scan_buffer instead of find_before_next_newline, because it
3258 allows us to detect the boundary case where there's a newline at
3259 the search limit.
3260 * lisp.h (Fconstrain_to_field): Update external declaration.
3261
e3c31fd5
GM
32622000-07-24 Gerd Moellmann <gerd@gnu.org>
3263
3264 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
3265 if that is nil.
c28da489 3266
c66c29a2
DL
32672000-07-24 Dave Love <fx@gnu.org>
3268
3269 * s/sunos4-0.h, s/sol2.h:
3270 (LIBS_TERMCAP): Move from m/sparc.h.
3271
3272 * m/sparc.h (TERMINFO): Moved to system files (probably only
3273 relevant for sunos4 judging by its vintage).
3274 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
3275 __arch64__.
3276
fbe0a958
EZ
32772000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
3278
3279 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
3280 name to single_keymap_panes.
3281
7d88e5c9
AS
32822000-07-24 Andreas Schwab <schwab@suse.de>
3283
3284 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
3285
e024b101
GM
32862000-07-24 Gerd Moellmann <gerd@gnu.org>
3287
3288 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
3289 parameters instead of using int parameters. Expect FN to accept
3290 EMACS_INT parameters.
3291 (display_echo_area, resize_echo_area_axactly, current_message)
3292 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
3293 with new argument list.
3294 (resize_mini_window_1): New callback function.
3295 (current_message_1, truncate_message_1, set_message_1): Change
3296 parameter lists to the new format expected by
3297 with_echo_area_buffer.
3298
25c1a9ce
KH
32992000-07-24 Kenichi Handa <handa@etl.go.jp>
3300
3301 * fontset.c (fontset_ref): Remove INLINE declaration.
3302 (fontset_ref_via_base): Likewise.
3303 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
3304 to downcase.
3305
7f987ac0
EZ
33062000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
3307
3308 * msdos.c (IT_note_mouse_highlight): Process overlays in the
3309 correct order of priority. If help echo was found in an overlay,
3310 use that overlay as the object in which the help echo was found.
3311
e2db3069
MB
33122000-07-22 Miles Bader <miles@gnu.org>
3313
3314 * textprop.c (Fprevious_single_char_property_change): The initial
3315 property value should be from the position preceding POSITION, not
3316 following it.
3317
5e3203e4
EZ
33182000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
3319
3320 * coding.c (syms_of_coding): Doc fix for
3321 inhibit-iso-escape-detection.
3322
62145073
GM
33232000-07-21 Gerd Moellmann <gerd@gnu.org>
3324
c20aeb83
GM
3325 * xterm.c (note_mouse_highlight): Process overlays in the right
3326 order of priority.
34a7a267 3327
743934db
GM
3328 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
3329
3330 * xterm.c (note_mouse_highlight): If help-echo was found in an
3331 overlay, use that overlay as the object in which the help was
3332 found.
3333
d1dc7e43 3334 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 3335
62145073
GM
3336 * window.c (foreach_window): Instead of a fake variable argument
3337 list, take one USER_DATA argument.
3338 (foreach_window_1): Likewise, and call callback functions with two
3339 args, the window and USER_DATA.
3340 (struct check_window_data): New struct.
3341 (check_window_containing): Use it.
3342 (window_from_coordinates): Set up a struct check_window_data for
3343 foreach_window.
3344 (add_window_to_list, freeze_window_start): Change parameters
3345 according to new calling convention.
3346
3347 * window.h (foreach_window): Change prototype.
3348
3349 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
3350
33512000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
3352
3353 * xmenu.c (menu_help_callback): Call show_help_echo with
3354 additional arguments OBJECT and POS.
3355
11270583
KH
33562000-07-21 Kenichi Handa <handa@etl.go.jp>
3357
07b14857
KH
3358 * data.c (Faset): Allow storing any multibyte character in a
3359 string. Convert unibyte string to multibyte if necessary.
3360
11270583
KH
3361 * xfns.c (x_encode_text): New function.
3362 (x_set_name): Use x_encode_text.
3363 (x_set_title): Likewise.
3364
3365 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
3366
3367 * xterm.h (x_encode_text): Add prototype.
3368
bc75b4fd
DL
33692000-07-20 Dave Love <fx@gnu.org>
3370
3371 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
3372 xfree, not free.
3373
48c14970
EZ
33742000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
3375
3376 * msdos.c (help_echo_window): New variable.
3377 (syms_of_msdos): Initialize and staticpro it.
3378 (IT_note_mode_line_highlight): Set help_echo_window.
3379 (IT_note_mouse_highlight): Ditto.
3380 (dos_rawgetc): Store help_echo_window in the second event produced
3381 for HELP_EVENTs.
3382
3383 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
3384 Record the object that generated the help echo and the position of
3385 that object in help_echo_object and help_echo_pos. Record that
3386 some glyphs in a row are displayed in mouse-face.
3387 (IT_update_begin): Don't clear mouse highlight unless one of the
3388 enabled glyph rows is marked as being displayed in mouse-face.
3389 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
3390 and position recorded in help_echo_object and help_echo_pos to the
3391 event queue.
3392 (IT_menu_display): Accept a new argument PN: the pane number of
3393 the current menu pane. Record the pane number and the item
3394 number of the item which has associated help string.
3395 (XMenuActivate): Update the prototype for help_callback in
3396 function declaration. Call IT_menu_display with the current menu
3397 pane number as an additional argument. Call help_callback with
3398 two additional arguments: the pane number and the item number of
3399 the menu item associated with the help text.
3400 (help_echo_object, help_echo_pos): New variables.
3401 (syms_of_msdos): Initialize them and staticpro help_echo_object.
3402
3403 * msdos.h (XMenuActivate): Update prototype.
3404
4279296d
GM
34052000-07-19 Gerd Moellmann <gerd@gnu.org>
3406
47db06aa
GM
3407 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
3408 Add some more prototypes.
3409
3410 * xterm.c, xterm.h: Add some more prototypes.
3411
3412 * lisp.h (Fnext_single_char_property_change): Add prototype.
3413
3414 * dispnew.c (direct_output_for_insert): Remove confusing
3415 outer local variable mouse_face_overwritten_p.
3416 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
3417
4279296d
GM
3418 * alloc.c (allocate_string_data): Don't copy old string contents.
3419
670acd62
KH
34202000-07-19 Kenichi Handa <handa@etl.go.jp>
3421
3422 * coding.c (code_convert_region): Delete text properties before
3423 shrinking the conversion region.
3424
7cea38bc
GM
34252000-07-18 Gerd Moellmann <gerd@gnu.org>
3426
dc1cac59
GM
3427 * dispnew.c (update_text_area): Write the whole row if it
3428 has mouse-face in it.
3429
85a8aca9
GM
3430 * xfaces.c (face-alternative-font-family-alist): Remove
3431 DEFVAR_LISP; staticpro instead.
3432
34a7a267 3433 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
3434 new arguments.
3435
3436 * keyboard.c (show_help_echo): Add parameter WINDOW.
3437 (read_char): Call show_help_echo with window extracted from Lisp
3438 help event.
3439 (gen_help_event): Add parameter WINDOW.
3440
3441 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
3442
3443 * xterm.c (help_echo_window): New variable.
3444 (note_mouse_highlight, note_tool_bar_highlight): Set
3445 help_echo_window.
3446 (XTread_socket): Pass help_echo_window to gen_help_event.
3447 (syms_of_xterm): Initialize and staticpro help_echo_window.
3448
f8276b77
DL
34492000-07-18 Dave Love <fx@gnu.org>
3450
3451 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
3452 systime.h.
3453
088831a6
GM
34542000-07-18 Gerd Moellmann <gerd@gnu.org>
3455
3d6cd763
GM
3456 * alloc.c (allocate_string_data): If string had already data
3457 assigned, copy old contents to new string data.
3458
3459 * coding.c (syms_of_coding): Fix typo in spelling of variable
3460 `inhibit-iso-escape-detection'.
3461
088831a6
GM
3462 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
3463
3464 * Makefile.in: Add dependencies on dispextern.h.
3465 (alloca.o): Don't define malloc and define EMACS_FREE instead of
3466 `free'; both can conflict with system header files.
3467
bc8a8d55
KH
34682000-07-18 Kenichi Handa <handa@etl.go.jp>
3469
3470 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
3471 undefined.
3472
069f5950
DL
34732000-07-18 Dave Love <fx@gnu.org>
3474
3475 * window.c (Fwindow_list): Declare arg `window'.
3476
aa96c820
KH
34772000-07-18 Kenichi Handa <handa@etl.go.jp>
3478
3479 * coding.c (setup_coding_system): Don't override the explicitly
3480 specified designations.
3481
06be8d32
MB
34822000-07-15 Miles Bader <miles@gnu.org>
3483
3484 * editfns.c (char_property_eq, char_property_stickiness): Renamed
3485 from `text_property_eq' and `text_property_stickiness', respectively.
3486 (find_field, Fconstrain_to_field, char_property_eq)
3487 (char_property_stickiness): Changed to call char-property functions
3488 instead of text-property-only ones.
3489
3490 * textprop.c (Fnext_single_char_property_change): Made a subr (was
3491 `next_single_char_property_change'). Do more error checking, and
3492 cleanup limit behavior.
3493 (Fprevious_single_char_property_change): New function.
3494 (syms_of_textprop): Initialize new subrs.
3495
3496 * xdisp.c (display_prop_end, invisible_text_between_p):
3497 Call Fnext_single_char_property_change instead of
3498 next_single_char_property_change.
3499
3fddcdc3
JR
35002000-07-15 Jason Rumney <jasonr@gnu.org>
3501
3502 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
3503 after menu is finished with.
3504 (add_menu_item): Only consider wv->title as a menu title.
3505 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
3506
3507 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
3508 null title.
3509 (FONT_REGEXP): Remove unused macro, and its sub-components.
3510 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
3511
3512 * w32term.c (help_echo_object, help_echo_pos): New variables.
3513 (note_mode_line_highlight): Store additional information about the
3514 help-echo in help_echo_object and help_echo_pos. Check both
3515 `local-map' and `keymap' properties for changing the cursor
3516 (note_mouse_highlight): Store additional information about the
3517 help-echo in help_echo_object and help_echo_pos.
3518 (note_tool_bar_highlight): Set help_echo_object to nil and
3519 help_echo_pos to -1.
3520 (w32_read_socket): Use gen_help_event instead of filling
3521 input_events manually.
3522 (syms_of_w32term): Staticpro help_echo_object.
3523 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
3524 set, arrange for a mouse-highlight redisplay in
3525 XTframe_up_to_date.
3526 (x_clear_mouse_face): New function.
3527 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
3528 (x_update_window_begin): No need to turn off the mouse
3529 highlight here.
3530 (show_mouse_face): Set the mouse_face_p flag of glyph rows
3531 depending on whether they contain glyphs highlighted in
3532 mouse-face.
3533 (x_fill_stretch_glyph_string): Consume runs of stretch
3534 glyphs instead of a single one.
3535 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
3536 with new argument list.
3537 (x_set_glyph_string_gc): Make sure the face's GC is valid.
3538 (x_append_glyph, x_append_composite_glyph)
3539 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
3540 changes in struct glyph starting 1999-12-27. See comments for
3541 xterm.c on 2000-07-05.
3542
178c5d9c
SS
35432000-07-14 Sam Steingold <sds@gnu.org>
3544
3545 * xfaces.c (realize_x_face): Fix the last patch:
3546 check `default_face' before dereferencing.
3547
6fe533f6
DL
35482000-07-14 Dave Love <fx@gnu.org>
3549
069f5950 3550 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 3551
dd7b81cf
KH
35522000-07-14 Kenichi Handa <handa@etl.go.jp>
3553
0693904a 3554 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 3555 default_face's fontset, not using the default fontset.
0693904a 3556
dd7b81cf
KH
3557 * coding.c (inhibit_iso_escape_detection): New variable.
3558 (syms_of_coding): Make it a Lisp variable.
3559 (detect_coding_iso2022): If inhibit_iso_escape_detection is
3560 nonzero, ignore ISO2022's escape sequence.
3561
d5aa31d8
GM
35622000-07-14 Gerd Moellmann <gerd@gnu.org>
3563
e5acf0ca
GM
3564 * alloca.c (malloc) [emacs]: Define as xmalloc.
3565
bd23a692
GM
3566 * xfns.c (Fx_show_tip): If frame parameters contain a position,
3567 use that instead of the mouse position. Add parameters DX and DY.
3568
3569 * dispextern.h (Fx_show_tip): Adjust number of parameters
3570 in prototype.
3571
9662da0b
GM
3572 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
3573 if HELP is a function, call it with OBJECT and POS as parameters
3574 to get the help to display.
3575 (gen_help_event, kbd_buffer_store_help_event): New functions.
3576 (kbd_buffer_get_event): Construct the Lisp help-event differently.
3577 (read_char): Call show_help_echo with new parameters.
3578
178c5d9c 3579 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
3580 Add prototypes.
3581
3582 * xterm.c (help_echo_object, help_echo_pos): New variables.
3583 (note_mode_line_highlight): Store additional information about the
3584 help-echo in help_echo_object and help_echo_pos. Check both
3585 `local-map' and `keymap' properties for changing the cursor
3586 (note_mouse_highlight): Store additional information about the
3587 help-echo in help_echo_object and help_echo_pos.
3588 (note_tool_bar_highlight): Set help_echo_object to nil and
3589 help_echo_pos to -1.
3590 (XTread_socket): Use gen_help_event instead of filling
3591 input_events manually.
3592 (syms_of_xterm): Staticpro help_echo_object.
3593
3594 * xmenu.c (menu_highlight_callback): Use
3595 kbd_buffer_store_help_event instead of setting up and input_event
3596 structure manually.
3597
3598 * xdisp.c (eval_form): GCPRO argument sexpr.
3599 (call_function): New function.
3600 (handle_single_display_prop): Use call_function and FUNCTIONP
3601 instead of checking whether if font_height is a symbol and
3602 using eval_form.
3603
3604 * eval.c (internal_condition_case_2): New function.
3605
3606 * lisp.h (FUNCTIONP): New macro.
3607 (internal_condition_case_2, call_function): Add prototypes.
3608
d5aa31d8
GM
3609 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
3610 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
3611 Always set `arg' member of input_events.
3612 (construct_menu_click): Unused function removed.
3613
3614 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
3615
3616 * w32term.c (construct_mouse_click, construct_mouse_wheel)
3617 (construct_drag_n_drop, x_scroll_bar_handle_click)
3618 (w32_read_socket): Always set `arg' member of input_events.
3619
3620 * keyboard.c (show_help_echo): Use eval_form. Add comment.
3621
3622 * lisp.h (eval_form): Add prototype.
3623
3624 * xdisp.c (eval_form): Make it externally visible.
3625
0f1a9b23
GM
36262000-07-13 Gerd Moellmann <gerd@gnu.org>
3627
3628 * xterm.c (x_handle_tool_bar_click): Store the frame in the
3629 frame_or_window slot of TOOL_BAR_EVENT input events instead of
3630 consing. For prefix events, store the frame in the `arg' slot of
3631 the event, otherwise store the key there.
3632 (XTread_socket): Instead of consing, use the frame_or_window slot
3633 of HELP_EVENTs for the frame, and the `arg' slot for the help
3634 string.
3635
3636 * xmenu.c (menu_highlight_callback): Store help string in the
3637 `arg' member of the input event; don't cons.
3638 (menubar_selection_callback): Use the `arg' slot of input events
3639 to queue additional information, instead of consing.
3640
3641 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
3642
3643 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
3644 TOOL_BAR_EVENTs.
3645 (w32_read_socket): Adapt to changes in HELP_EVENTs.
3646
3647 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
3648 input events to queue additional information, instead of consing.
3649
3650 * keyboard.c (kbd_buffer_gcpro): Renamed from
3651 kbd_buffer_frame_or_window. Now used for all Lisp objects
3652 referenced from the input queue.
3653 (kbd_buffer_store_event): Always use structure assignment for
3654 copying input events. Record all Lisp objects referenced from
3655 events in kbd_buffer_gcpro.
3656 (kbd_buffer_get_event): Construct Lisp `help-echo' events
3657 differently from input events. Test for prefix menu_bar_events
3658 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
3659 event in kbd_buffer_gcpro to nil.
3660 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
3661 frame_or_window is equal to its arg member as prefix events.
3662 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
3663 used by an input event to nil.
3664 (init_keyboard): Use two times the size of the input queue
3665 for kbd_buffer_gcpro.
3666 (syms_of_keyboard): Likewise.
3667
3668 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
3669 USER_SIGNAL_EVENT.
3670
3671 * termhooks.h (struct input_event): Add member `arg'.
3672 (MENU_BAR_EVENT): Renamed from menu_bar_event.
3673 (USER_SIGNAL_EVENT): Renamed from user_signal.
3674
3675 * xfaces.c (ASET): Remove definition.
3676
3677 * lisp.h (AREF, ASET, ASIZE): New macros.
3678
3679 * fontset.c (AREF, ASIZE): Remove definitions.
3680
3681 * fns.c (AREF): Remove definition.
178c5d9c 3682
0f1a9b23
GM
3683 * composite.c (AREF): Remove definition.
3684
712eaef2
GM
36852000-07-12 Gerd Moellmann <gerd@gnu.org>
3686
d8ee7803
GM
3687 * dispnew.c (redraw_overlapped_rows): Add missing local.
3688 (scrolling_window): Remove debug code.
3689
712eaef2
GM
3690 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
3691 Before scrolling, turn off a mouse-highlight in the window
3692 being scrolled.
3693
3694 * xterm.c (x_update_window_end): Add parameter
3695 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
3696 redisplay in XTframe_up_to_date.
3697 (x_clear_mouse_face): New function.
3698 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
3699
3700 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
3701 current glyph row.
3702 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
3703 it when any row is written to that contains glyphs highlighted in
3704 mouse-face.
3705 (update_window): Call the window update end hook with new
3706 parameter MOUSE_FACE_OVERWRITTEN_P.
3707 (direct_output_for_insert): Give up if row contains mouse-face.
3708
3709 * dispextern.h (struct redisplay_interface): Add parameter
3710 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
3711 (clear_mouse_face): New function pointer member.
3712
02010917
SM
37132000-07-11 Stefan Monnier <monnier@cs.yale.edu>
3714
3715 * syntax.c (back_comment): Use one switch rather than a few `if's.
3716 Obey open_paren_in_column_0_is_defun_start.
3717 When reverting to the `slow' method, try to nicely handle the case
3718 of nested comments by checking that the comment-starter we found
3719 does indeed match the comment-ender.
3720 (scan_sexps_forward, scan_sexps_forward):
3721 Ignore excessive opening parenthesis rather than throwing an error.
3722
d76c03ea
GM
37232000-07-11 Gerd Moellmann <gerd@gnu.org>
3724
3725 * doc.c (Fsubstitute_command_keys): Handle case that a GC
3726 in Fwhere_is_internal or get_keymap_1 relocates string contents.
3727
3728 * dispnew.c (direct_output_forward_char): Give up if currently
3729 displaying a message instead of the minibuffer contents.
3730
3731 * xterm.c (x_update_window_begin): No need to turn off the mouse
3732 highlight here.
3733 (show_mouse_face): Set the mouse_face_p flag of glyph rows
3734 depending on whether they contain glyphs highlighted in
3735 mouse-face.
3736
3737 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
3738 compare the mouse_face_p flags of both rows.
3739
3740 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
3741
d55ead18
EZ
37422000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
3743
3744 * keyboard.c (show_help_echo): Accept additional parameter
3745 ok_to_overwrite_keystroke_echo.
3746 (read_char): Call show_help_echo with a zero
3747 ok_to_overwrite_keystroke_echo argument.
3748 * keyboard.h (show_help_echo): Update prototype of
3749 show_help_echo.
3750 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
3751 ok_to_overwrite_keystroke_echo argument.
3752 * w32menu.c (w32_menu_display_help): Call show_help_echo with
3753 non-zero ok_to_overwrite_keystroke_echo argument.
3754
df75b1a3
GM
37552000-07-10 Gerd Moellmann <gerd@gnu.org>
3756
4b92c49a
GM
3757 * xdisp.c (try_window_id): If changes are all below what is
3758 displayed in the window, and point is in the window, we still
3759 might have to find point on the display.
3760
3761 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
3762 glyphs instead of a single one.
3763 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
3764 with new argument list.
3765 (x_set_glyph_string_gc): Make sure the face's GC is valid.
3766
df75b1a3
GM
3767 * keymap.c (get_keymap_1): Add comment that this function can GC.
3768 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
3769 comment that functions can GC.
3770 (Fset_keymap_parent): GCPRO arg KEYMAP.
3771
4314cf3e
EZ
37722000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
3773
3774 * msdos.c (XMenuActivate): After exiting the menu, restore the
3775 echo area message and erase it.
3776
ab49ce15
KH
37772000-07-10 Kenichi Handa <handa@etl.go.jp>
3778
3779 * fontset.c (Ffontset_info): Make the return value more compatible
3780 with that of Emacs 20.
3781
090a072f
GM
37822000-07-07 Gerd Moellmann <gerd@gnu.org>
3783
3784 * eval.c (Fsignal): Handle case that backtrace_list is null.
3785
f92de4a6
KH
37862000-07-07 Kenichi Handa <handa@etl.go.jp>
3787
3788 * ccl.c (Fccl_execute): Typo fixed.
3789
dd8888a1
GM
37902000-07-06 Gerd Moellmann <gerd@gnu.org>
3791
e5c81191 3792 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 3793
dd8888a1
GM
3794 * window.c (Fwindow_list): Reverse list at the end.
3795 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
3796 means allow windows on OWINDOW's frame, only.
3797 (window_loop): Simplified; use Fwindow_list.
3798
3799 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
3800
485266d0
GM
38012000-07-05 Gerd Moellmann <gerd@gnu.org>
3802
3803 * xterm.c (XTread_socket): Increment handling_signal at the start,
3804 decrement it at the end.
3805
3806 * eval.c (handling_signal): New variable.
3807 (Fsignal): Abort if handling_signal is non-zero.
3808
3809 * lisp.h (handling_signal): External declaration.
178c5d9c 3810
485266d0
GM
3811 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
3812
80fcd514
KR
38132000-07-05 Ken Raeburn <raeburn@gnu.org>
3814
3815 Sound support for NetBSD through "Linux emulation" support:
3816 * config.in (HAVE_SOUNDCARD_H): Undef.
3817 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
3818 * Makefile.in (LIBSOUND): New variable.
3819 (LIBES): Include it.
3820 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
3821 <soundcard.h>.
3822 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
3823 elsewhere.
3824 (vox_open): Use DEFAULT_SOUND_DEVICE.
3825 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
3826
d5c5cddd
GM
38272000-07-05 Gerd Moellmann <gerd@gnu.org>
3828
3829 * print.c (print_error_message): If Vsignaling_function is set,
3830 show it in *Messages*.
3831
3832 * lisp.h (Vsignaling_function): External declaration.
3833
3834 * eval.c (Vsignaling_function): New variable.
3835 (Fsignal): Compute it.
3836 (syms_of_eval): Staticpro it.
3837
65171e3a
DL
38382000-07-05 Dave Love <fx@gnu.org>
3839
3840 * syswait.h: Use the autoconf recommended approach. Old code
3841 #if'd out in case we need to revert.
3842
178c5d9c 3843 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 3844
e2c46326
AI
38452000-07-05 Andrew Innes <andrewi@gnu.org>
3846
3847 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
3848 when non-NULL instead of __morecore, to take account of buffer
3849 memory. This also solves a problem with spurious memory warnings
3850 on Windows.
3851
3852 * ralloc.c: Make real_morecore non-static.
3853
3854 * eval.c (internal_condition_case): Comment out abort if
3855 interrupt_input_blocked is not zero.
3856
3857 * makefile.nt: Add support for `bootstrap' and related targets.
3858 Include minimal debug info in emacs.exe in release build.
3859 Remove all dependencies on lisp.h, and fixup some others.
3860
3861 * w32.c (init_environment): Install code from 20.7 for providing
3862 default values for environment variables, based on the
3863 executable's own location.
3864 (map_w32_filename): Handle filenames that are longer than
3865 MAX_PATH.
3866 (sys_socket): Install socket inheritance bug fix from 20.7.
3867
3868 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
3869 here via blockinput.h).
3870
a027a91b
SM
38712000-07-05 Stefan Monnier <monnier@cs.yale.edu>
3872
e4b31601
SM
3873 * w32menu.c (w32_menu_display_help):
3874 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
3875
3876 * keyboard.h (show_help_echo): Declare.
3877
3878 * keyboard.c (show_help_echo): New function, extracted from read_char.
3879 Feval its `msg' argument if it's a cons cell.
3880 (read_char): Use it.
4cf8d9d5 3881 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 3882
178c5d9c 3883 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 3884 (note_tool_bar_highlight, XTread_socket):
178c5d9c 3885 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
3886 (dos_rawgetc):
3887 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
3888 (note_tool_bar_highlight, w32_read_socket):
3889 Do not gratuitously ignore non-string `help-echo' properties.
3890
88d75730
GM
38912000-07-05 Gerd Moellmann <gerd@gnu.org>
3892
969f7e79
GM
3893 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
3894
71201b00
GM
3895 * window.c (delete_all_subwindows): Reset Vwindow_list.
3896
88d75730
GM
3897 * xterm.c (x_append_glyph, x_append_composite_glyph)
3898 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
3899 changes in struct glyph starting 1999-12-27. Some bit-fields of
3900 struct glyph were not set, which made glyphs unequal when compared
3901 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
3902 effects were the result. This also depended on the contents of
3903 memory returned by xmalloc. If flickering happens again, activate
3904 the code in clear_glyph_row that's in #if 0. If the flickering is
3905 gone with that, chances are that it is caused by something
3906 similar.
3907
3908 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 3909
88d75730
GM
3910 * dispextern.h: Add some comments.
3911
3912 * window.c (add_window_to_list): Add parameter LIST.
3913 (window_list): Order list so that, for each frame, windows are
3914 in canonical order, and so that frames appear in the list in
3915 the order given by Vframe_list.
3916 (next_window): Reverse the handling of NEXT_P.
3917
53654733
GM
39182000-07-04 Gerd Moellmann <gerd@gnu.org>
3919
87efd256
GM
3920 * window.c (Vwindow_list): New variable.
3921 (make_window, delete_window): Set Vwindow_list to nil.
3922 (check_window_containing): New function.
3923 (window_from_coordinates): Rewritten.
3924 (add_window_to_list, window_list, candidate_window_p)
3925 (decode_next_window_args, next_window): New functions.
3926 (Fnext_window, Fprevious_window): Rewritten in terms of
3927 next_window.
3928 (Fwindow_list): New function.
3929 (Fother_window): Cleaned up.
3930 (foreach_window): Add a longer "variable argument list". Let
3931 callback function return 0 to indicate that cycling over windows
3932 should stop.
3933 (foreach_window_1): Likewise.
3934 (freeze_window_start): Return int.
3935 (init_window): New function.
3936 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
3937
3938 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
3939 input_event with bzero.
3940 (main): Call init_window.
3941
53654733
GM
3942 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
3943 a menu filter.
3944
4a8c194f
KH
39452000-07-04 Kenichi Handa <handa@etl.go.jp>
3946
3947 * composite.h (make_composition_value_copy): Extern it.
3948
3949 * composite.c (make_composition_value_copy): New function.
3950
3951 * editfns.c (Fformat): While copying text properties, make each
3952 composition property value a copy.
3953
3954 * fns.c (concat): While copying text properties, make each
3955 composition property value a copy.
3956
831a6cb0
GM
39572000-07-03 Gerd Moellmann <gerd@gnu.org>
3958
2f516940
GM
3959 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
3960
178c5d9c 3961 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
3962 marked already.
3963
831a6cb0
GM
3964 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
3965 include those frames as candidates which have their focus
3966 redirected to the minibuffer frame.
3967
d9c4f922
SM
39682000-07-03 Stefan Monnier <monnier@cs.yale.edu>
3969
3970 * fns.c (Fputhash): Return `value' rather than nil.
3971
3780bc22
GM
39722000-06-30 Gerd Moellmann <gerd@gnu.org>
3973
97d176db
GM
3974 * frame.c (next_frame): Don't check focus redirection in case
3975 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
3976 unless their focus is redirected, which contradicts the
3977 specification of next-frame, and leads to infinite loops in
3978 certain situations when cycling through windows with next-window.
3979
dca9961d
KH
39802000-06-30 Kenichi Handa <handa@etl.go.jp>
3981
3982 * coding.c (code_convert_region): Even if the length of text is
3983 zero, try to convert it if coding->type is coding_type_ccl.
3984 (decode_coding_string, encode_coding_string): Likewise.
3985
d5483ab1
GM
39862000-06-28 Gerd Moellmann <gerd@gnu.org>
3987
af5c25e1 3988 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 3989 the display if windows_or_buffers_changed.
af5c25e1
GM
3990
3991 * dispnew.c (struct row_entry): New structure.
3992 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
3993 (row_table_size, old_lines, new_lines, old_lines_size)
3994 (new_lines_size, run_pool, runs_size, runs): New variables.
3995 (add_row_entry): New function.
3996 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 3997 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
3998 holding them in local variables. Use a larger hash table whose
3999 size depends on glyph matrix sizes. Don't use bzero to clear the
4000 hash table; instead, clear used slots only.
4001
4002 * fns.c (next_almost_prime): Make it externally visible.
4003
4004 * lisp.h (next_almost_prime): Add prototype.
4005
d5483ab1
GM
4006 * s/isc4-0.h (sigunblock): Define.
4007
4008 * s/sco5.h (sigunblock): Define.
4009
93e40f40
DL
40102000-06-27 Dave Love <fx@gnu.org>
4011
4012 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
4013 (moved to osf5-0.h).
4014 [!NOT_C_CODE]: Protect string.h stuff.
4015
4016 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
4017 (sys_siglist, NSIG): Definitions moved here from osf1.h.
4018
3c4b7685
GM
40192000-06-27 Gerd Moellmann <gerd@gnu.org>
4020
97d176db 4021 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
4022 below the last line from the needed window height.
4023
32cad0aa
SM
40242000-06-26 Stefan Monnier <monnier@cs.yale.edu>
4025
4026 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
4027 (Fwidget_get): Use it.
4028 (syms_of_fns): Defsubr it.
4029
2c69ced2
GM
40302000-06-26 Gerd Moellmann <gerd@gnu.org>
4031
178c5d9c 4032 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
4033 display info for XIM.
4034 (xim_open_dpy): Likewise.
4035 (xim_close_dpy): Don't free the display info's XIM.
4036
4037 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
4038
4039 * config.in (USE_XIM): New define.
4040
3fc720e4
GM
4041 * keymap.c (get_keyelt): For menu-items containing a `:filter
4042 FILTER', apply FILTER to the menu-item's definition to get the
4043 real definition to use.
4044
4045 * lisp.h (QCfilter): External declaration.
4046
2c69ced2
GM
4047 * xfns.c (Fimage_size): New function.
4048 (syms_of_xfns): Defsubr it.
4049
f978b2a2
AS
40502000-06-26 Andreas Schwab <schwab@suse.de>
4051
4052 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
4053 Fstring_as_unibyte.
4054
94cc7892
DL
40552000-06-25 Dave Love <fx@gnu.org>
4056
4057 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
4058 tgetnum.
4059
4060 * Makefile.in (blockinput.h): Depend on atimer.h.
4061 (atimer.h): Depend on systime.h.
4062
4063 * blockinput.h: Protect against multiple inclusion. Include
4064 atimer.h.
4065
4066 * atimer.h: Protect against multiple inclusion. Include
4067 systime.h.
4068
4069 * lisp.h (swap_in_global_binding): Declare.
4070
b8c24556
KR
40712000-06-24 Ken Raeburn <raeburn@gnu.org>
4072
4073 * process.c (Fopen_network_stream): Turn off atimers for duration
4074 of call to connect. (Patch from Gerd.)
4075
8cf8560b
DL
40762000-06-23 Dave Love <fx@gnu.org>
4077
511c7541
DL
4078 * ralloc.c: Maybe include unistd.h
4079
8cf8560b
DL
4080 * emacs.c (setgrp): Undefine before defining.
4081 (malloc_warning, set_time_zone_rule, index): Prototype.
4082
4083 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
4084 HAVE_STRUCT_TIMEZONE.
4085
4086 * s/osf1.h: Move string.h hack here from alpha.h and make it
4087 conditional.
4088 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
4089 _XOPEN_SOURCE.
4090 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
4091 (SOCKLEN_TYPE): Don't define.
4092
4093 * m/alpha.h: Remove string.h hack.
4094
4095 * s/osf5-0.h: New file.
4096
4097 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
4098 include time.h, done by systime.h.
4099 [__FreeBSD__]: Remove redundant includes.
4100
3fc720e4 4101 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
4102 (delete_temp_file): Return Qnil to avoid warning.
4103
4104 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
4105
4106 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
4107 HAVE_X_WINDOWS.
4108
4109 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
4110
4111 * composite.h (compose_text): Declare.
4112
4113 * xterm.c: Don't include sys/types.h unconditionally. Don't
4114 protect its inclusion with !USG (following xmenu.c).
4115
ea055732
GM
41162000-06-23 Gerd Moellmann <gerd@gnu.org>
4117
4118 * xfns.c (x_create_tip_frame): Initialize frame's colors like
4119 in x_create_frame.
4120
74b01b80
EZ
41212000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
4122
4123 * coding.c (decode_eol_post_ccl): Special handling for undecided
4124 and inconsistent EOL types.
4125
64f3a166
GM
41262000-06-22 Gerd Moellmann <gerd@gnu.org>
4127
16cf31f7
GM
4128 * xrdb.c (x_load_resources): Add default resource for scroll bar's
4129 trough color and main window's background color.
4130
178c5d9c 4131 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
4132 differently.
4133
4134 * xterm.h (Xt_app_con): External declaration.
4135
4136 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 4137
486a103d
GM
4138 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
4139
64f3a166
GM
4140 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
4141 (handle_invisible_prop): Record the start of invisible text in
4142 it->add_overlay_start.
4143 (struct overlay_entry): Add member `overlay'.
4144 (handle_overlay_change): Simplify.
4145 (next_overlay_string): After having processed overlay strings at the
4146 end of the buffer, record that fact in
4147 it->overlay_strings_at_end_processed_p.
4148 (compare_overlay_entries): If before- and after-strings come
4149 from the same overlay, let before-strings come first.
4150 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
4151 (load_overlay_strings): Take it->add_overlay_start into account
4152 when adding overlay strings.
4153
4154 * dispextern.h (struct it): Add member add_overlay_start.
4155
bb746ea6
DL
41562000-06-22 Dave Love <fx@gnu.org>
4157
4158 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
4159
4160 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
4161
a8f573f3
KH
41622000-06-22 Kenichi Handa <handa@etl.go.jp>
4163
4164 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
4165 is greater than 0.
4166
9f2bbc92
DL
41672000-06-21 Dave Love <fx@gnu.org>
4168
178c5d9c 4169 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 4170
3ee5041c
SM
41712000-06-21 Stefan Monnier <monnier@cs.yale.edu>
4172
4173 * syntax.c (back_comment): Simplify string-parity counting (with
4174 the added benefit of handling multiple string-styles as long as
4175 they are not intertwined).
4176 Jump to the slow code as soon as a comment starter is found in
4177 a "string_lossage" position. Fixes the case: " /* " /* " */.
4178
4c343001
DL
41792000-06-21 Dave Love <fx@gnu.org>
4180
4181 * Makefile.in: Use GETLOADAVG_LIBS.
4182
4183 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
4184 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
4185
e6365855
SM
41862000-06-20 Stefan Monnier <monnier@cs.yale.edu>
4187
4188 * syntax.c (describe_syntax): Recognize the `n'estable bit.
4189 (Fforward_comment, scan_lists):
4190 Check the comstyle of single-char comment-starters.
4191 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
4192 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
4193 Check the comstyle of single-char comment-starters.
4194 Clarify control-flow around the Scomment case.
e6365855 4195
5700d2cc
DL
41962000-06-20 Dave Love <fx@gnu.org>
4197
d355bd8a
SM
4198 * fns.c (make_hash_table, maybe_resize_hash_table):
4199 Cast arg of next_almost_prime.
5700d2cc 4200
178c5d9c 4201 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
4202
4203 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
4204 and unistd.h.
4205
4a27bdfb
GM
42062000-06-20 Gerd Moellmann <gerd@gnu.org>
4207
a61d762c
GM
4208 * keyboard.c (adjust_point_for_property): Check if display
4209 property should be treated as intangible by looking at its
4210 value.
4211
178c5d9c 4212 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
4213 (display_prop_intangible_p): New functions.
4214
4215 * dispextern.h (display_prop_intangible_p): Add prototype.
4216
4217 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 4218
4a27bdfb
GM
4219 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
4220 argument to sigprocmask.
4221
4222 * s/sco5.h (sigblock): Redefined to pass a pointer as second
4223 argument to sigprocmask.
4224
4225 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
4226 sigprocmask_set, and pass a pointer to it to sigprocmask.
4227
4228 * sysdep.c (sigprocmask_set): New variable.
4229
4230 * fileio.c (make_temp_name): Don't use `%s' in string passed to
4231 report_file_error.
4232
427ec082
SS
42332000-06-20 Sam Steingold <sds@gnu.org>
4234
4235 * xrdb.c: Don't declare xmalloc, xrealloc.
4236
8972fe79 42372000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
4238
4239 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
4240 (re_comp): Cast gettext return value to avoid complaints when
4241 !HAVE_LIBINTL.
4242
074b6efe
DL
42432000-06-20 Dave Love <fx@gnu.org>
4244
f85c008a
DL
4245 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
4246 HAVE_GETTIMEOFDAY.
4247
5700d2cc 4248 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 4249
d355bd8a 4250 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
4251
4252 * m/alpha.h: Don't declare xmalloc, xrealloc.
4253
0af4f205
DL
4254 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
4255
4256 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
4257
4258 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
4259
4260 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
4261 HAVE_GETWD.
4262
074b6efe
DL
4263 * keyboard.h (poll_for_input_1): Declare.
4264
4265 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
4266
4267 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
4268
4269 * doprnt.c: Don't declare xmalloc, xrealloc.
4270
4271 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
4272 (getenv, ctime, getwd): Removed.
4273 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
4274
4275 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
4276 x_set_tool_bar_lines.
4277
4278 * config.in: Add HAVE_GETWD. Move some definitions above
4279 machine/system includes.
4280
68a5e97b
KH
42812000-06-20 Kenichi Handa <handa@etl.go.jp>
4282
95417e1e
KH
4283 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
4284
68a5e97b
KH
4285 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
4286 contain information about ENCODING.
4287
4288 * fontset.c (FONTSET_ASCII): Use the first element of char table
4289 for an ASCII font, not defalt slot.
4290 (fontset_ref_via_base): If FONTSET doesn't contain information for
4291 C, try the default fontset.
4292 (make_fontset): Don't copy the default fontset.
4293 (fontset_font_pattern): Likewise.
4294 (accumulate_font_info): If ELT is nil, use the corresponding
4295 element in the default fontset.
4296
3b4fa1b2
DL
42972000-06-19 Dave Love <fx@gnu.org>
4298
943e731c
DL
4299 * syntax.c (Fparse_partial_sexp): Doc fix.
4300
4301 * regex.h: Test PROTOTYPES as well as __STDC__.
4302
3b4fa1b2
DL
4303 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
4304 errno, strerror. Put text after #endif in comment.
4305
4306 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
4307 pcc).
4308
4309 * xterm.c (x_frame_of_widget): Likewise.
4310
cdf0357b
GM
43112000-06-19 Gerd Moellmann <gerd@gnu.org>
4312
4313 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
4314 to Vfundamental_mode_abbrev_table.
4315
4316 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
4317 bogus objects are marked. This slows down GC by ~80 percent, but
4318 it might be worth trying when debugging GC-related problems.
4319 This feature requires conservative stack marking to be enabled.
4320
4321 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
4322 returns XLookupChars, reset `modifiers' to zero.
4323
998e9f8c
DL
43242000-06-19 Dave Love <fx@gnu.org>
4325
4326 * mktime.c: Unprotoized.
4327
18e21ce8 43282000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
4329
4330 * data.c (set_internal): If variable is frame-local,
4331 store the new value immediately into the frame parameter alist.
4332
140c4ac6
KR
43332000-06-19 Ken Raeburn <raeburn@gnu.org>
4334
14358466
KR
4335 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
4336 in the custom handler pointer.
4337
140c4ac6
KR
4338 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
4339 value, or checks for CHAR_META can fail when Lisp_Object is a
4340 union type.
4341 * keymap.c (get_keyelt): Likewise.
4342
10d7bf84
KH
43432000-06-19 Kenichi Handa <handa@etl.go.jp>
4344
4345 * ccl.h (struct ccl_program): New member eol_type.
4346 (struct ccl_spec): New member cr_carryover.
4347
4348 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
4349 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
4350
4351 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
4352 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
4353 (decode_eol_post_ccl): New function.
4354 (decode_coding): Don't detect EOL format here for CCL based coding
4355 systems.
4356 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
4357 decode_eol_post_ccl after running the CCL program.
4358 (code_convert_region): Don't detect EOL format here for CCL based
4359 coding systems.
4360 (decode_coding_string): Likewise.
4361
52e386c2
KR
43622000-06-18 Ken Raeburn <raeburn@gnu.org>
4363
4364 * charset.c (update_charset_table): Use XINT on "iso_final_char"
4365 when treating it as an integer.
4366
4367 * coding.h (encode_coding_string): Declare.
4368
4369 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
4370 it as an integer.
4371
4372 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
4373 "xkeymap" to avoid shadowing the "enum map_type" value that needs
4374 to be passed to get_local_map.
4375
4376 * sound.c (Fplay_sound): Don't call make_number on
4377 Frun_hook_with_args count argument.
4378
4379 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
4380 for lisp objects in X event structure data field, when lisp
4381 objects are represented with unions.
4382 (x_scroll_bar_to_input_event): Ditto.
4383
b357b9d4
KR
43842000-06-16 Ken Raeburn <raeburn@gnu.org>
4385
4386 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
4387 termination of string. Fix sense of test whether
4388 Vline_number_display_limit is an integer.
b357b9d4 4389
a871441d
GM
43902000-06-16 Gerd Moellmann <gerd@gnu.org>
4391
a9021acd
GM
4392 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
4393 only if HAVE_X_WINDOWS.
4394
6344985d
GM
4395 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
4396 of titles.
4397
427ec082 4398 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
4399 out of bounds.
4400
228b083e
EZ
44012000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4402
4403 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
4404 of its headers.
4405
c25b53a2
KH
44062000-06-15 Kenichi Handa <handa@etl.go.jp>
4407
4408 * coding.c (decode_coding_emacs_mule): Always set src_base at the
4409 start of the while loop.
4410
a6981b11
GM
44112000-06-15 Gerd Moellmann <gerd@gnu.org>
4412
e9924e52
GM
4413 * atimer.c (alarm_signal_handler): Add forward declaration.
4414
a6981b11
GM
4415 * data.c (set_internal): Remove debug code.
4416
25fa6deb
GM
44172000-06-14 Gerd Moellmann <gerd@gnu.org>
4418
dce6b995
GM
4419 * Makefile.in (bootstrap-temacs): Add `-I../src'.
4420
9f817ea4
GM
4421 * unexec.c (toplevel) [COFF]: Include coff.h.
4422
4423 * s/lynxos.h: New file.
4424
4425 * keymap.c (Fsingle_key_description): Enclose function key and
4426 event symbol names in angle brackets.
4427
8a4e3c0c
GM
4428 * xdisp.c (setup_echo_area_for_printing): Call
4429 message_log_maybe_newline if message_buf_print is not set.
4430
4431 * print.c (printchar, strout): Don't check message_buf_print
427ec082 4432 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
4433 function does something useful even when message_buf_print is
4434 already set.
4435
25fa6deb
GM
4436 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
4437 variables.
4438 (ensure_echo_area_buffers): Initialize echo buffer's
4439 truncate lines setting to nil.
4440 (with_echo_area_buffer): Don't set the echo buffer's truncate
4441 lines setting here.
8a4e3c0c 4442 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
4443 of message_truncate_lines.
4444 (resize_mini_window): Handle case that lines are truncated.
4445 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
4446 message-truncate-lines.
4447
4448 * keyboard.c (read_char): Bind message-truncate-lines to t
4449 while displaying a help-echo.
4450
4451 * lisp.h (Qmessage_truncate_lines): External declaration.
4452
163dcff3
GM
44532000-06-13 Gerd Moellmann <gerd@gnu.org>
4454
1681ead6
GM
4455 * xdisp.c (Vline_number_display_limit): Renamed from
4456 line_number_display_limit.
4457 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
4458 Extend documentation string. Initialize
4459 Vline_number_display_limit to nil meaning no limit.
4460 (decode_mode_spec): Use Vline_number_display_limit with its new
4461 meaning.
4462
163dcff3
GM
4463 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
4464
18e21ce8 44652000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
4466
4467 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 4468
163dcff3
GM
4469 * xfns.c (x_set_frame_parameters): Comment fix.
4470
4471 * frame.c (store_frame_param): Call swap_in_global_binding if the
4472 variable's current binding was chosen based on this frame.
4473
4474 * data.c (swap_in_global_binding): New function.
4475
a704139d
EZ
44762000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4477
4478 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
4479 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
4480
9b6610db
EZ
44812000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4482
4483 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
4484
c68833d2
JR
44852000-06-12 Jason Rumney <jasonr@gnu.org>
4486
4487 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
4488
4489 * w32.h (EMACS_W32_H): Renamed from _NT_H_
4490
4491 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
4492
4493 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
4494
ed1056b3
GM
44952000-06-12 Gerd Moellmann <gerd@gnu.org>
4496
4497 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
4498 (syms_of_xfaces): Defsubr Sdump_colors.
4499 (x_free_colors): Don't treat b&w specially on default visual.
4500 (x_free_dpy_colors): New function.
4501 (free_face_colors): Don't check visual class; it's done
4502 in x_free_colors.
4503
4504 * xterm.c (x_frame_of_widget): New function.
4505 (x_alloc_nearest_color_for_widget): Use it.
4506 (x_copy_dpy_color): New function.
4507 (x_destroy_window): Free various colors.
4508
5050a2ef
KH
45092000-06-12 Kenichi Handa <handa@etl.go.jp>
4510
4511 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
4512
4513 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
4514
4515 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
4516
4517 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
4518
4519 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
4520
fb1b041d
DL
45212000-06-11 Dave Love <fx@gnu.org>
4522
4523 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
4524
ff96b5f4
EZ
45252000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
4526
4527 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
4528
db8eeecd
GM
45292000-06-11 Gerd Moellmann <gerd@gnu.org>
4530
ed1056b3 4531 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
4532 to `XEvent *'.
4533
49b71c5f
KH
45342000-06-10 Kenichi Handa <handa@etl.go.jp>
4535
c479bd55
KH
4536 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
4537 (regex_compile): Fix the code for handling the case of single byte
4538 char and multibyte char being mixed in a range within [...].
4539
ff6a65c2
KH
4540 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
4541 and dst_multibyte members of coding.
4542
49b71c5f
KH
4543 * charset.c (update_charset_table): Update the table
4544 bytes_by_char_head.
4545 (init_charset_once): Initialize elements of bytes_by_char_head to
4546 1 except for leading codes for private charases.
4547
4548 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
4549 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
4550 sequence.
4551
9e80b57d
KR
45522000-06-09 Ken Raeburn <raeburn@gnu.org>
4553
4554 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
4555 access the data it doesn't point to.
4556
f83fe4b4
GM
45572000-06-08 Gerd Moellmann <gerd@gnu.org>
4558
4559 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 4560 will be translated to a switch-frame event when reading the
f83fe4b4
GM
4561 event queue. This is necessary because Emacs otherwise won't
4562 perform a switch-frame to a new frame until some other event, for
4563 example a keystroke event, forces it to do so. This has various
4564 effects, one visible being that the cursor of a frame created with
4565 C-x 5 2 or switched to with a window manager key binding like
4566 A-TAB stays hollow because selected_window isn't on the newly
4567 focused frame until the switch-frame is performed.
4568
4569 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
4570 generating a switch-frame event if necessary.
4571
4572 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
4573
4574 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
4575 it's an integer.
4576
0890801b
KH
45772000-06-08 Kenichi Handa <handa@etl.go.jp>
4578
4579 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
4580 charset.
4581
173cbca8
GM
45822000-06-07 Gerd Moellmann <gerd@gnu.org>
4583
3091c2a6
GM
4584 * window.c (displayed_window_lines): Take empty lines at
4585 the bottom of a window into account.
427ec082 4586
f38952fe
GM
4587 * window.c (displayed_window_lines): New function.
4588 (Fmove_to_window_line): Use displayed_window_lines to determine
4589 the number of lines to move, instead of using the window's height.
4590
4591 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
4592 to stop reading, even if the form read sets point to a different
4593 value when evaluated.
4594
427ec082 4595 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
4596 put the cursor.
4597
6ba6c818
KH
45982000-06-07 Kenichi Handa <handa@etl.go.jp>
4599
4600 * fileio.c (e_write): Free composition data if stored in
4601 coding->cmp_data.
4602
5f1aea9a
GM
46032000-06-06 Gerd Moellmann <gerd@gnu.org>
4604
666852af
GM
4605 * xdisp.c (display_line): Set row's and iterator's
4606 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
4607 Set cursor even if row ends in the middle of a character.
4608 (dump_glyph_row): Print values of new flags.
4609 (redisplay_window) <cursor movement in unchanged window>: When
4610 point has been moved forward, and PT is at the end of the cursor
4611 row, don't place the cursor in the next row if the cursor row ends
4612 in the middle of a character or at ZV.
4613
4614 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
4615 (struct glyph_row): Add starts_in_middle_of_char_p and
4616 ends_in_middle_of_char_p.
4617 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
4618 ends_in_middle_of_char_p flag.
4619 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
4620
d13f3e2e
GM
4621 * term.c (append_glyph): Revert change of 2000-06-06.
4622
4623 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
4624 padding glyph not fitting on line as whole character not
4625 fitting on line.
4626
5f1aea9a
GM
4627 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
4628 this isn't true for images with `:ascent 100'.
4629
10cda9b0
KH
46302000-06-06 Kenichi Handa <handa@etl.go.jp>
4631
ed00559d
KH
4632 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
4633 as modified if it is originally unmodified.
4634
10cda9b0
KH
4635 * term.c (encode_terminal_code): Change the way to check if
4636 terminal coding does any conversion.
4637 (append_glyph): Set glyph->pixel_width correctly.
4638
4639 * xdisp.c (display_line): While checking line continuation, pay
4640 attention to a padding glyph.
4641
1969fae2
GM
46422000-06-05 Gerd Moellmann <gerd@gnu.org>
4643
4644 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
4645
162ccef4
DL
46462000-06-05 Dave Love <fx@gnu.org>
4647
f19f32dd
DL
4648 * xdisp.c: Include fontset.h.
4649
4650 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
4651
4652 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
4653
4654 * dispnew.c: Conditionally include term.h.
4655
4656 * coding.h: Declare code_convert_string_norecord.
4657
4658 * frame.h (struct frame): Use volatile unconditionally.
4659
4660 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
4661
4662 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
4663
4664 * systime.h: Protect against multiple inclusion.
4665 (timezone) [USG5_4]: Define as time_t.
4666
4667 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
4668 (Foptimize_char_table, make_temp_name): Declare.
4669
4670 * Makefile.in (xdisp.o): Depend on fontset.h.
4671
4672 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
4673
4674 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
4675 (Foptimize_char_table, make_temp_name): Declare.
4676
427ec082 4677 * s/irix4-0.h:
162ccef4
DL
4678 * s/irix5-0.h:
4679 * s/netbsd.h: Don't define autoconfiscated MATHERR.
4680
2082fe81
DL
46812000-06-02 Dave Love <fx@gnu.org>
4682
4683 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
4684
dcf671d2
GM
46852000-06-02 Gerd Moellmann <gerd@gnu.org>
4686
4687 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 4688 result face, set flags in that face indicating that colors may not
dcf671d2
GM
4689 be freed.
4690
4691 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
4692 glyph, use the ASCII NUL character to determine the face.
4693
d42122a3
DL
46942000-06-02 Dave Love <fx@gnu.org>
4695
4696 * sysdep.c: Conditionally include stdlib.h, unistd.h.
4697 (VFORK_RETURN_TYPE): Remove.
427ec082 4698
d42122a3
DL
4699 * config.in: Add NO_MATHERR.
4700
dd432f16
DL
47012000-06-01 Dave Love <fx@gnu.org>
4702
90aa4ea8
DL
4703 * cmds.c (internal_self_insert): Don't check
4704 Vbefore_change_function, Vafter_change_function.
4705
4706 * insdel.c (signal_before_change, signal_after_change): Likewise.
4707
4708 * buffer.c (Vbefore_change_function, Vafter_change_function):
4709 Variables and their initializations deleted.
4710
2330c9d4
DL
4711 * callint.c (Fcall_interactively): Doc fix.
4712
dd432f16
DL
4713 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
4714
bf9e8804
DL
47152000-05-31 Dave Love <fx@gnu.org>
4716
4717 * textprop.c: Revert last change -- duplicated.
4718
3694b4ab
GM
47192000-05-31 Gerd Moellmann <gerd@gnu.org>
4720
4721 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
4722 in #if 0.
4723
4724 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
4725
f14156cd
JR
47262000-05-31 Jason Rumney <jasonr@gnu.org>
4727
8119aab8
JR
4728 * search.c (Fre_search_forward, Fre_search_backward)
4729 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
4730
f14156cd
JR
4731 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
4732
4aab9be3
JR
47332000-05-30 Jason Rumney <jasonr@gnu.org>
4734
4735 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
4736 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
4737
4738 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
4739 member.
4740
4741 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
4742 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
4743 expand a nil default_filename.
4744
4745 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
4746 pointer to glyph_to_pixel_coords, not a frame.
4747
4748 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
4749 coding.h to dependencies.
4750
4751 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
4752
4753 * w32console.c (glyph_to_pixel_coords): Change first parameter to
4754 window pointer to be consistent with w32term.c and xterm.c.
4755
4756 * w32fns.c: Format and doc changes to bring closer to xfns.c.
4757 (VIETNAMESE_CHARSET): Define if not defined in system headers.
4758 (Qline_spacing, Qcenter): New variables.
4759 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
4760 (x_set_line_spacing): New function.
4761 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
4762 macros.
4763 (x_specified_cursor_type): New function.
4764 (x_set_cursor_type): Use it.
4765 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
4766 and icon strings.
4767 (validate_x_resource_name, x_get_resource_string): Measure lengths
4768 of external strings in bytes.
4769 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
4770 GetTextExtentPoint32 with NULL title.
4771 (Fx_create_frame): Initialize Qline_spacing.
4772 (w32_load_system_font): Initialize font->double_byte_p.
4773 (x_to_w32_charset): Use Vw32_charset_info_alist.
4774 (Image, busy cursor, tooltip functions): Merged changes from
4775 xfns.c. Not yet functional on Windows.
4776
4777 * w32gui.h (W32FontStruct): Add double_byte_p member.
4778
4779 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
4780 (emacs_button_translation): Use it.
4781 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
4782 in `mask' to be set.
4783
4784 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
4785 menu strings.
4786
4787 * w32term.c: Format and doc changes to bring closer to xterm.c.
4788 (w32_char_font_type): New enum.
4789 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
4790 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
4791 (w32_encode_char): New function.
4792 (x_encode_char): Removed.
4793 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
4794 x_encode_char and w32_font_is_double_byte.
4795 (x_produce_image_glyph): Use image_ascent.
4796 (x_produce_glyphs): Use new version of w32_per_char_metric and
4797 handle NULL return value. Allow extra line spacing.
4798 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
4799 (w32_get_glyph_overhangs): Remove unicode_p param. Use
4800 w32_font_type member of glyph instead.
4801 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
4802 (fast_find_position): Make sure not to consider rows not visible
4803 in the window.
4804 (w32_read_socket) [WM_MENUSELECT]: Cannot call
4805 w32_menu_display_help with input blocked, as it can abort.
4806 (x_display_and_set_cursor): Choose cursor depending
4807 on buffer-local value of cursor_type.
4808 (x_draw_bar_cursor): Add parameter WIDTH.
4809
4810 * w32term.h (CP_DEFAULT): Define.
4811 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
4812
10fc3187
GM
48132000-05-30 Gerd Moellmann <gerd@gnu.org>
4814
4815 * search.c (Fre_search_forward, Fre_search_backward)
4816 (Fposix_search_backward, Fposix_search_forward): Doc fix.
4817
d0555360
KH
48182000-05-30 Kenichi Handa <handa@etl.go.jp>
4819
4820 * coding.c (detect_coding_iso2022): Fix code for checking
4821 CODING_CATEGORY_MASK_ISO_8_2.
4822
f1ad044f
SM
48232000-05-29 Stefan Monnier <monnier@cs.yale.edu>
4824
4825 * regex.c (PREFETCH_NOLIMIT): New function.
4826 (re_match_2_internal): Use it and adjust the end_match_2 logic.
4827
84ec3b4b
GM
48282000-05-29 Gerd Moellmann <gerd@gnu.org>
4829
66254a13
GM
4830 * syntax.c (find_defun_start): Move test for
4831 open_paren_in_column_0_is_defun_start outside of the loop.
4832
49e70dec
GM
4833 * xdisp.c (redisplay_window): Really switch buffers when
4834 displaying mode lines, and temporarily set selected_frame to the
4835 frame of the window that's redisplayed.
4836
84ec3b4b
GM
4837 * xfaces.c (free_realized_faces): Block/unblock input.
4838 (free_realized_multibyte_face): Ditto.
4839
869a3a14
DL
48402000-05-29 Dave Love <fx@gnu.org>
4841
4842 * textprop.c (Qkeymap): New variable.
4843 (syms_of_textprop): Intern it.
4844
4845 * keymap.c: Include intervals.h.
4846 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
4847
4848 * Makefile.in (keymap.o): Depend on intervals.h.
4849
4850 * keyboard.c (menu_bar_items, tool_bar_items)
4851 (Fexecute_extended_command): Deal with `keymap' property.
4852 (read_key_sequence): Track map from `keymap' property as well as
4853 `local_map'.
4854
4855 * intervals.c (get_local_map): Extra arg to allow looking for
4856 `keymap' too.
4857
4858 * intervals.h (map_property): New enum.
4859 (get_local_map): Extra arg using it.
4860 (Qkeymap): Declare.
4861
84ec3b4b 4862 * lisp.h (get_local_map): Don't declare here.
869a3a14 4863
89d0c844
KH
48642000-05-29 Kenichi Handa <handa@etl.go.jp>
4865
4866 * Makefile.in (callproc.o): Depend on composite.h.
4867
4868 * callproc.c: Include composite.h.
4869 (Fcall_process): Handle composition correctly.
4870
4871 * coding.h (coding_allocate_composition_data): Extern it.
4872 (coding_restore_composition): Likewise.
4873
4874 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
4875 yet allocated, finish decoding with result
4876 CODING_FINISH_INSUFFICIENT_CMP.
4877 (coding_allocate_composition_data): Make it non-static.
4878 (coding_restore_composition): Likewise.
4879
797a084a
EZ
48802000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
4881
4882 * charset.c (syms_of_charset): Revert last change.
4883
cf872af5
EZ
48842000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
4885
4886 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
4887 charsets as unibyte, with 1-column screen width. Sent by Kenichi
4888 Handa.
cf872af5 4889
5b1ae051
EZ
48902000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
4891
4892 * charset.c (syms_of_charset): Set width of character sets
4893 eight-bit-control and eight-bit-graphic to 1 column.
4894
34ec9ebe
GM
48952000-05-26 Gerd Moellmann <gerd@gnu.org>
4896
4897 * config.in (HAVE_SPEED_T): New define.
4898
4899 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
4900 `extern speed_t'.
4901
dd854dc2
DL
49022000-05-26 Dave Love <fx@gnu.org>
4903
4904 * coding.c (shrink_decoding_region): Initialize eol_conversion.
4905
4906 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
4907 (Fsubr_arity): New function.
4908 (syms_of_data): Install them.
4909
ba9f8f95
KH
49102000-05-26 Kenichi Handa <handa@etl.go.jp>
4911
0f3e0672
KH
4912 * charset.c (init_charset_once): Set the table bytes_by_char_head
4913 correctly.
4914
cebefb44
KH
4915 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
4916 the default fontset to what Emacs uses by default.
0f3e0672
KH
4917 (check_registry_encoding): This function deleted.
4918 (Fset_fontset_font): Remove the adhoc condition for the default
4919 fontset. Allow cons in FONTNAME.
cebefb44 4920
0f3e0672
KH
4921 * fns.c (map_char_table): Ignore char-table entries for
4922 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 4923
7a18af49
KR
49242000-05-25 Ken Raeburn <raeburn@gnu.org>
4925
4926 * emacs.c (main): Initialize keyboard syms before initializing
4927 window code, so face names are available.
4928
d2af47df
SM
49292000-05-25 Stefan Monnier <monnier@cs.yale.edu>
4930
4931 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
4932 of an anchor at the beginning of a shy-group.
4933
fc6a6a4e
GM
49342000-05-25 Gerd Moellmann <gerd@gnu.org>
4935
4936 * xdisp.c (handle_invisible_prop): Don't try to skip over
4937 invisible text if end of text is already reached.
4938
005f0d35
DL
49392000-05-25 Dave Love <fx@gnu.org>
4940
02513cdd
DL
4941 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
4942
005f0d35
DL
4943 * coding.c (encode_eol): Add null statement after label.
4944
89f6ca4e
EZ
49452000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
4946
4947 * w16select.c (Fw16_set_clipboard_data): Fix the change from
4948 2000-05-20.
4949
a4e1759e
KH
49502000-05-25 Kenichi Handa <handa@etl.go.jp>
4951
4952 * ccl.c (ccl_driver): Fix previous change.
4953
eacfd7fe
KH
49542000-05-25 Kenichi Handa <handa@etl.go.jp>
4955
46ab33a9
KH
4956 * coding.c (run_pre_post_conversion_on_str): Set point to the
4957 beginning of buffer before calling coding->post_read_conversion.
4958 (decode_coding_string): Give correct args to
4959 run_pre_post_conversion_on_str.
4960 (encode_coding_string): Likewise.
4961
eacfd7fe
KH
4962 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
4963 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
4964 eight-bit-graphic correctly.
4965
f8569325
DL
49662000-05-24 Kenichi HANDA <handa@etl.go.jp>
4967
4968 * fileio.c (Finsert_file_contents): Even if a file is not found,
4969 execute codes for setting up coding system. Call
4970 after-insert-file-functions unconditionally.
4971
04545643
GM
49722000-05-24 Gerd Moellmann <gerd@gnu.org>
4973
4974 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
4975 BSD_PGRPS are not defined.
4976
747d90ea
KH
49772000-05-24 Kenichi Handa <handa@etl.go.jp>
4978
4979 * charset.c (update_charset_table): Accept nil in LONG_NAME and
4980 DESCRIPTION.
4981 (syms_of_charset): Avoid building same strings.
4982
716e3b88
GM
49832000-05-23 Gerd Moellmann <gerd@gnu.org>
4984
4985 * lread.c (Fload): Add a comment about the meaning of
4986 Vuser_init_file being t.
4987
4988 * puresize.h (BASE_PURESIZE): Increase to 675000.
4989
4990 * s/gnu-linux.h (setpgrp): Don't define it here because this
4991 prevents compilation on GNU/Linux systems with glib 2.2.
4992
4993 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
4994 as setpgid.
427ec082 4995
9aeb39fa
EZ
49962000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
4997
4998 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
4999 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
5000 version.
5001 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
5002
29ced61b
KH
50032000-05-23 Kenichi Handa <handa@etl.go.jp>
5004
0574a2ed
KH
5005 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
5006 unconditionally.
5007
3d80f24d
KH
5008 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
5009
5010 * term.c (encode_terminal_code): Set coding->src_multibyte
5011 properly.
5012
29ced61b
KH
5013 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
5014
d7e00792
KH
50152000-05-22 Kenichi Handa <handa@etl.go.jp>
5016
c9d80d38
KH
5017 * keyboard.c (read_char): Allow character codes 128..255 to be
5018 handled by input-method-function.
5019
d7e00792
KH
5020 * insdel.c (adjust_markers_for_replace): Fix previous change.
5021 (adjust_after_replace): If PREV_TEXT is nil, call
5022 adjust_markers_for_insert, not adjust_markers_for_replace.
5023
087121cc 50242000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 5025
087121cc
GM
5026 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
5027 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
5028 [HAVE_GRANDPT]: Define.
5029 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
5030
5031 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
5032 like SYSV_PTYS.
5033
5034 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
5035
5036 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
5037
c9671f81
KH
50382000-05-20 Kenichi Handa <handa@etl.go.jp>
5039
5040 The following changes are to handle 8-bit characters in a
5041 multibyte buffer/string without facing with byte combining
5042 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
5043 eight-bit-graphic (for 0xA0..0xFF) are introduced.
5044
5045 * Makefile.in (fns.o): Depend on charset.h.
5046
5047 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
5048 convert it to unibyte.
5049 (make_string): Use parse_str_as_multibyte, not chars_in_text.
5050
5051 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
5052 apparent char boundary.
5053 (Fset_buffer_multibyte): Convert 8-bit characters in the range
5054 0x80..0x9F to/from multibyte form.
5055
5056 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
5057 to unibyte.
5058
5059 * callproc.c (Fcall_process): Always encode an argument string if
5060 it is multibyte. Setup src_multibyte and dst_multibyte members of
5061 process_coding properly.
ce75fd23 5062
c9671f81
KH
5063 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
5064 SPLIT_NON_ASCII_CHAR.
5065
5066 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
5067 as is.
5068 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
5069
5070 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
5071 variables.
5072 (SPLIT_CHARACTER_SEQ): This macro deleted.
5073 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
5074 valid.
5075 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
5076 and eight-bit-graphic.
5077 (char_to_string): Likewise. Signal an error for too large
5078 character code.
5079 (char_printable_p): Return 0 for 8-bit characters.
5080 (update_charset_table): Update iso_charset_table only when a final
5081 character is non-negative.
5082 (find_charset_in_text): Renamed from find_charset_in_str.
5083 Arguments and return value changed. Callers changed.
5084 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
5085 be -1 if CHARSET is used only internally.
5086 (Fmake_char_internal): Handle new charsets; eight-bit-control and
5087 eight-bit-graphic.
5088 (Fcharset_after): Simplified.
5089 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
5090 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
5091 (multibyte_chars_in_text): Simplified by assuming there's no
5092 invalid multibyte sequence.
5093 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
5094 str_as_unibyte): New functions.
5095 (Fstring): Simpified by assuming that byte combining never
5096 happens.
5097 (init_charset_once): Initialization for
5098 LEADING_CODE_8_BIT_CONTROL.
5099 (syms_of_charset): Intern and staticpro Qeight_bit_control and
5100 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
5101 eight-bit-control and eight-bit-graphic.
5102
5103 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
5104 CHARSET_8_BIT_GRAPHIC): New macros.
5105 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
5106 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
5107 (CHARSET_REVERSE_CHARSET): Likewise.
5108 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
5109 eight-bit-graphic.
5110 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
5111 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
5112 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
5113 encounter an invalid multibyte sequence.
5114 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
5115 sequence is always valid.
5116 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
5117 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
5118 macros.
5119 (CHAR_STRING): For 8-bit characters, call char_to_string.
5120 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
5121 multibyte sequence is always valid.
5122 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
5123 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
5124 str_as_unibyte): Extern them.
5125 (BCOPY_SHORT): Fix a bug.
5126 (CHAR_LEN): This macro deleted. Callers changed to use
5127 CHAR_BYTES.
5128 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
5129 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
5130 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
5131
bd4bde7f 5132 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
5133 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
5134 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
5135 EMIT_BYTES): New macros.
5136 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
5137 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
5138 macros deleted.
5139 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
5140 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
5141 check the validity of multibyte sequence.
5142 (decode_coding_emacs_mule): New function.
5143 (encode_coding_emacs_mule): New macro.
5144 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
5145 the source.
5146 (DECODE_ISO_CHARACTER): Just return a character code.
5147 (DECODE_COMPOSITION_START): Set coding->result instead of result.
5148 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
5149 EMIT_CHAR to produced decoded characters. Exit the loop only by
5150 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
5151 block here.
5152 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
5153 only position codes for an invalid character.
5154 (encode_designation_at_bol): Return new destination pointer. 5th
5155 arg DSTP is changed to DST.
5156 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
5157 from the source by ONE_MORE_CHAR. Don't handle the case of last
5158 block here.
5159 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
5160 macros deleted.
5161 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
5162 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
5163 TWO_MORE_BYTES to fetch a byte from the source.
5164 (encode_eol): Pay attention to coding->src_multibyte.
5165 (detect_coding, detect_eol): Preserve members src_multibyte and
5166 dst_multibyte.
5167 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
5168 (encoding_buffer_size): Set magnification to 3 for all coding
5169 systems that require encoding.
5170 (ccl_coding_driver): For decoding, be sure that the result is
5171 valid multibyte sequence.
5172 (decode_coding): Initialize coding->errors and coding->result.
5173 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
5174 and raw-text, always call decode_eol. Handle the case of last
5175 block here. If not coding->dst_multibyte, convert the resulting
5176 sequence to unibyte.
5177 (encode_coding): Initialize coding->errors and coding->result.
5178 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
5179 and raw-text, always call encode_eol. Handle the case of last
5180 block here.
5181 (shrink_decoding_region, shrink_encoding_region): Detect cases
5182 that we can't skip data more rigidly.
5183 (code_convert_region): Setup src_multibyte and dst_multibyte
5184 members of coding. For decoding, if the buffer is multibyte,
5185 convert the source sequence to unibyte in advance. For encoding,
5186 if the buffer is multibyte, convert the resulting sequence to
5187 multibyte afterward.
5188 (run_pre_post_conversion_on_str): New function.
5189 (code_convert_string): Deleted and divided into the following two.
5190 (decode_coding_string, encode_coding_string): New functions.
5191 (code_convert_string1, code_convert_string_norecord): Call one of
5192 above.
5193 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
5194 MAKE_NON_ASCII_CHAR.
5195 (Fset_terminal_coding_system_internal,
5196 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
5197 and dst_multibyte members.
5198 (init_coding_once): Initialize iso_code_class with new enum
5199 ISO_control_0 and ISO_control_1.
5200
5201 * coding.h (enum iso_code_class_type): Member ISO_control_code is
5202 devided into ISO_control_0 and ISO_control_1.
5203 (struct coding_system): New members src_multibyte, dst_multibyte,
5204 errors, and result. Delete member fake_multibyte.
5205 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
5206 nonzero.
5207 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
5208 nonzero.
5209
5210 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
5211 (Faset): Likewise.
5212
5213 * editfns.c (Fformat): Be sure to convert 8-bit characters to
5214 multibyte form.
5215 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
5216 combining occurs.
5217 (Ftranspose_region): Delete codes for handling byte combining.
5218
5219 * fileio.c (Finsert_file_contents): Setup src_multibyte and
5220 dst_multibyte members of coding. On handling REPLACE on unibyte
5221 buffer, convert the result of decode_coding to unibyte. On
5222 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 5223 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
5224 multibyteness of the source (buffer or string).
5225
5226 * fns.c (concat): Handle 8-bit characters correctly.
5227 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
5228 unibyte in the result.
5229 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
5230 valid multibyte form in the result.
5231 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
5232 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
5233 return -1, signal an error.
5234 (base64_encode_1): New arg MULTIBYTE. Get each character by
5235 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
5236 character is found, return -1.
5237 (Fbase64_decode_region): Delete codes for handling byte-combining.
5238 Treat each decoded byte as a unibyte character.
5239 (Fbase64_decode_string): Return unibyte string.
5240 (Fcompare_strings, concat, string_byte_to_char): Use
5241 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
5242 FETCH_STRING_CHAR_ADVANCE.
5243 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
5244 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
5245
5246 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
5247 SPLIT_NON_ASCII_CHAR.
5248 (fontset_ref_via_base, fontset_set): Likewise
5249
5250 * insdel.c (adjust_markers_for_record_delete): Deleted.
5251 (adjust_markers_for_insert): Argument changed. Caller changed.
5252 (adjust_markers_for_replace): Likewise.
5253 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
5254 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
5255 (copy_text): Delete unused local varialbe c_save. For converting
5256 to multibyte, be sure to make all 8-bit characters in valid
5257 multibyte form.
5258 (count_size_as_multibyte): Handle 8-bit characters correctly.
5259 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
5260 adjust_after_replace, replace_range, del_range_2)
5261 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
5262 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
5263 adjust_after_replace, replace_range, del_range_2) Delete codes for
5264 handling byte combining.
5265 (adjust_before_replace): Deleted.
427ec082 5266
c9671f81
KH
5267 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
5268 SPLIT_NON_ASCII_CHAR.
5269 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
5270 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
5271 unconditionally.
5272 (Fkey_description): Likewise.
5273
5274 * lread.c (read1): On reading multibyte string, be sure to make
5275 all 8-bit chararacters in valid multibyte form.
5276 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
5277
5278 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
5279 unconditionally.
5280
5281 * process.c (Fstart_process): GCPRO current_dir before calling
5282 Ffind_operation_coding_system. Encode arguments here.
5283 (create_process): Don't encode arguments here. Setup
5284 src_multibyte and dst_multibyte members of struct coding.
5285 (read_process_output): Setup src_multibyte and dst_multibyte
5286 members of struct coding. If the output is to multibyte buffer,
5287 always decode the output of the process. Adjust the
5288 representation of 8-bit characters to the multibyteness of the
5289 output.
5290 (send_process): Setup coding->src_multibyte according to the
5291 multibyteness of the source.
5292
5293 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
5294 unconditionally.
5295 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
5296 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
5297
5298 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
5299 CHAR_LEN.
5300
5301 * w16select.c (Fw16_set_clipboard_data): Setup members
5302 src_multibyte and dst_multibyte of coding. Adjusted for the
5303 change for find_charset_in_str.
5304 (Fw16_get_clipboard_data): Likewise.
5305
5306 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
5307 dst_multibyte of coding.
5308 (x_to_w32_font): Likewise.
5309
5310 * w32select.c (Fw32_set_clipboard_data): Setup members
5311 src_multibyte and dst_multibyte of coding. Adjusted for the
5312 change for find_charset_in_str.
5313 (Fw32_get_clipboard_data): Likewise.
5314
5315 * xdisp.c (get_next_display_element): Handle 8-bit characters
5316 correctly.
5317 (next_element_from_display_vector): Use CHAR_BYTES instead of
5318 CHAR_LEN.
5319 (disp_char_vector): Use SPLIT_CHAR instead of
5320 SPLIT_NON_ASCII_CHAR.
5321
5322 * xselect.c (selection_data_to_lisp_data): Setup members
5323 src_multibyte and dst_multibyte of coding. Adjusted for the
5324 change for find_charset_in_str.
5325 (lisp_data_to_selection_data): Likewise.
5326
5f64c9e0
GM
53272000-05-19 Gerd Moellmann <gerd@gnu.org>
5328
2b63d473
GM
5329 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
5330 buffer.
5331
5f64c9e0
GM
5332 * dispextern.h (Vimage_types): Add extern declaration.
5333
5334 * xdisp.c (Vimage_types): Moved here from xfns.c.
5335 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
5336
5337 * xfns.c (Vimages_types): Moved to xdisp.c.
5338 (syms_of_xfns): Move `image-types' to xdisp.c.
5339
5340 * w32fns.c (Vimage_types): Removed.
5341 (syms_of_w32fns): Remove `image-types'.
5342
813086ea
KH
53432000-05-18 Kenichi Handa <handa@etl.go.jp>
5344
5345 * fns.c (map_char_table): Pay attention to character number of
5346 charset. Check the validity of charset at the first level. For
5347 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
5348 the default value.
5349
5350 * fontset.c: Include "buffer.h".
5351 (fs_load_font): If the face has fontset, record the face ID in
5352 that fontset.
5353 (Finternal_char_font): New function.
5354 (accumulate_font_info): New function.
5355 (Ffontset_info): Rewritten for the new fontset implementation.
5356 (syms_of_fontset): Register Vdefault_fontset in the first element
5357 of Vfontset_table. Include Vdefault_fontset in
5358 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
5359 function.
5360
bdaebbf0
DL
53612000-05-16 Dave Love <fx@gnu.org>
5362
5363 * m/iris5d.h: Deleted -- unused.
5364
cb613bb8
GM
53652000-05-16 Gerd Moellmann <gerd@gnu.org>
5366
b15f3b77
GM
5367 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
5368 `invalid' instead of `illegal'.
5369
5370 * indent.c (Fmove_to_column): When ending within a tab, insert
5371 spaces first so that markers at the end of the tab get adjusted.
5372
835c1b36
GM
5373 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
5374 buffer list that wasn't selected in that frame.
5375
cb613bb8
GM
5376 * filelock.c (get_boot_time): To obtain an 8 char file name, which
5377 is needed on mescaline, use a 2 char prefix, and call
5378 make_temp_name with second arg non-zero.
5379
5380 * fileio.c (make_temp_name): New function, extracted from
5381 Fmake_temp_name.
5382 (Fmake_temp_name): Use it.
5383
f685bea9
EZ
53842000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
5385
5386 * window.c (coordinates_in_window): Subtract 1 when computing
5387 right_x.
5388
a1b8d58b
GM
53892000-05-15 Gerd Moellmann <gerd@gnu.org>
5390
5391 * Makefile.in (lisp): Add env.elc.
5392
5393 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
5394
a265079f
GM
53952000-05-12 Gerd Moellmann <gerd@gnu.org>
5396
5397 * search.c (Freplace_match): Handle case of `\N' in the
5398 replacement when there's no group N.
5399
da4496b6
GM
54002000-05-11 Gerd Moellmann <gerd@gnu.org>
5401
0ace421a
GM
5402 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
5403 of the message to message_dolog.
5404
1172eb8d
GM
5405 * keyboard.c (read_char): Don't clear current message for help
5406 events; let the code handling help events handle this. Change
5407 code detecting help events that should be ignored.
5408
da4496b6
GM
5409 * xdisp.c (handle_single_display_prop): Don't try to set PT if
5410 we're interating over a string.
5411
0623e40f
DL
54122000-05-09 Dave Love <fx@gnu.org>
5413
5414 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
5415 that offset before writing. Move gcpro region past call of
5416 Ffile_regular_p.
5417
bae2503b
DL
54182000-05-04 Dave Love <fx@gnu.org>
5419
5420 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
5421
ec82fb2f
GM
54222000-05-04 Gerd Moellmann <gerd@gnu.org>
5423
5424 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
5425 of inserted characters when BUF equals the current buffer, and PT
5426 is in front of or equal to FROM.
5427
cbf18892
GM
54282000-05-03 Gerd Moellmann <gerd@gnu.org>
5429
4ff40dd0
GM
5430 * xdisp.c (handle_single_display_prop): If display property value
5431 is invalid, or something not supported on the frame, restore
5432 iterator's position to what it was initially. Make sure to return
5433 0 for invalid and unsupported property values.
5434
cbf18892
GM
5435 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
5436 that x_per_char_metric returns null.
5437
1b0672c3
GM
54382000-05-02 Gerd Moellmann <gerd@gnu.org>
5439
576da55d
GM
5440 * xterm.h (struct face): Add forward declaration.
5441 (struct image): Ditto.
5442 (image_ascent): Add prototype.
5443
5444 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5445 (x_draw_image_relief, x_draw_image_foreground_1): Call function
5446 image_ascent instead of using IMAGE_ASCENT.
5447
5448 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
5449 (IMAGE_ASCENT): Removed.
5450
5451 * xfns.c (Qcenter): New variable.
5452 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
5453 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
5454 (image_ascent): New function.
5455 (lookup_image): Recognize `:ascent center'.
5456 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5457 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
5458 (xbm_load): Don't set image's ascent here.
5459 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
5460 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
5461 check ascent values here.
5462 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
5463 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
5464 (syms_of_xfns): Initialize Qcenter.
5465
1b0672c3
GM
5466 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
5467 to the limits, increase the limits.
5468
0d7811ed
KH
54692000-05-01 Kenichi Handa <handa@etl.go.jp>
5470
5471 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
5472 Check Vfont_encoding_alist against the full name of the opened
5473 font.
5474
a943a5ca
GM
54752000-04-28 Gerd Moellmann <gerd@gnu.org>
5476
5477 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
5478 taller than the window.
5479
5dba1e29
KH
54802000-04-28 Kenichi Handa <handa@etl.go.jp>
5481
5482 * xfaces.c (realize_x_face): Fix the argument of the second
5483 xassert. BASE_FACE may not be a face for ASCII.
5484
353964e3
GM
54852000-04-27 Gerd Moellmann <gerd@gnu.org>
5486
c76e04a8
GM
5487 * print.c (print_object): Treat print-length < 0 as nil.
5488
5489 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
5490
5491 * s/freebsd.h (TERMCAP_OBJ): Removed.
5492 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
5493
5494 * lread.c (read1): Don't treat period followed by certain
5495 characters as symbol start.
5496
5497 * xfns.c (slurp_file): New function.
5498 (xbm_image_p): Handle case of in-memory XBM files.
5499 (xbm_scan): Rewritten to work on memory buffers instead of files.
5500 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
5501 Work on memory buffers instead of files. If DATA is null test
5502 if buffer looks like an in-memory XBM file.
5503 (xbm_load_image): Renamed from xbm_load_image_file. Work on
5504 memory buffers instead of files.
5505 (xbm_file_p): New function.
5506 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
5507
353964e3
GM
5508 * lread.c (end_of_file_error): New function.
5509 (read1): Call it instead of signaling `end-of-file' directly.
5510
427ec082 5511 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
5512 with Fprinc instead of Fprin1.
5513
24d744ac
KR
55142000-04-26 Ken Raeburn <raeburn@gnu.org>
5515
5516 * window.c (freeze_window_start): Check that minibuffer scroll
5517 window isn't nil before extracting the window structure pointer
5518 from it.
5519
5520 * undo.c (record_delete): If we hit the end of the undo list, stop
5521 picking elements apart.
5522
7464346d
GM
55232000-04-26 Gerd Moellmann <gerd@gnu.org>
5524
5525 * xdisp.c (display_line): If lines are continued, restore
5526 iterator's ascent/descent information to the values before the
5527 first glyph not fitting on the line.
5528
612839b6
GM
55292000-04-25 Gerd Moellmann <gerd@gnu.org>
5530
5531 * xdisp.c (try_window_id) <all changes above window start>: Adjust
5532 positions in glyph matrix. Don't compute new window end
5533 positions.
5534
5535 * dispnew.c (increment_matrix_positions): Renamed from
5536 increment_glyph_matrix_buffer_positions.
5537 (increment_row_positions): Renamed from
5538 increment_glyph_row_buffer_positions.
5539
5540 * dispextern.h: Change names of renamed functions from dispnew.c
5541 in prototypes.
5542
cc181e95
GM
55432000-04-24 Gerd Moellmann <gerd@gnu.org>
5544
abfcc168
GM
5545 * fileio.c (Fdo_auto_save): Create directories for auto-save
5546 list file if necessary.
5547
cc181e95
GM
5548 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
5549 from buffer or frame.
5550 (automatic_hscrolling_p): New variable.
5551 (hscroll_windows): Scroll windows horizontally only if automatic
5552 hscrolling is allowed.
5553 (syms_of_xdisp): New variable `automatic-hscrolling'.
5554
5555 * frame.h (struct frame): Add member extra_line_spacing.
5556
5557 * xfns.c (x_set_line_spacing): New function.
5558 (Fx_create_frame): Set line spacing from resources.
5559 (Qline_spacing): New variable.
5560 (syms_of_xfns): Initialize Qline_spacing.
427ec082 5561
cc181e95
GM
5562 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
5563
5564 * buffer.c (init_buffer_once): Handle extra_line_spacing.
5565 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 5566 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
5567 extra_line_spacing from default value.
5568 (init_buffer_once): Initialize default value of extra_line_spacing.
5569
5570 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
5571 and extra3.
5572
5573 * xterm.c (x_produce_glyphs): Remove reference to struct it's
5574 prompt_width. Add extra line spacing.
5575
5576 * term.c (produce_glyphs): Remove reference to struct it's
5577 prompt_width.
5578
5579 * dispextern.h (struct it): Remove member prompt_width, add
5580 extra_line_spacing.
5581
58827478
GM
55822000-04-22 Gerd Moellmann <gerd@gnu.org>
5583
5584 * dispnew.c (update_frame_line): When writing a whole line, make
5585 sure cursor is in the right row afterwards, otherwise a use of
5586 capability `ch' in cmgoto might leave the cursor in the row below.
5587
25a87f42
GM
55882000-04-21 Gerd Moellmann <gerd@gnu.org>
5589
5590 * lisp.h (struct Lisp_Buffer_Cons): Remove.
5591
5592 * keyboard.c (timer_check): Fix typo in comment.
5593
54edf5c2
KH
55942000-04-21 Kenichi Handa <handa@etl.go.jp>
5595
5596 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
5597 name change: ch -> character.
5598
3a64eef5
GM
55992000-04-20 Gerd Moellmann <gerd@gnu.org>
5600
5601 * keyboard.c (echo_message_buffer): New variable.
5602 (echo_now): Set echo_message_buffer to the echo area buffer used
5603 to display the echo.
5604 (cancel_echoing): Reset echo_message_buffer to nil.
5605 (read_char): Code rewritten that handles canceling an echo or
5606 echoing a dash, respectively.
5607
5608 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
5609 directory doesn't exist.
5610
6142fdcb
DL
56112000-04-19 Dave Love <fx@gnu.org>
5612
5613 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
5614 (concat): Don't allow numeric args.
5615 (Fconcat): Doc change.
6142fdcb 5616
ac6b5352
SM
56172000-04-19 Stefan Monnier <monnier@cs.yale.edu>
5618
5619 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
5620 instead define end_match(1|2) more carefully.
5621 Use GET_CHAR_BEFORE_2 for `begline'.
5622
cb9215e4
GM
56232000-04-19 Gerd Moellmann <gerd@gnu.org>
5624
5e3dac3f
GM
5625 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
5626 on 64-bit systems where NULL is defined as `0'.
5627
5628 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
5629 the `variable argument list' to make it work on Alpha.
5630
cb9215e4
GM
5631 * m/alpha.h (_LP64) [!_LP64]: Define.
5632 (ORDINARY_LINK): Define for NetBSD.
5633
5634 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 5635
f532dca0
DL
56362000-04-19 Dave Love <fx@gnu.org>
5637
c750667e
DL
5638 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
5639 change.
5640
5641 * Makefile.in (LIBS): Don't use.
5642 (GETLOADAVG_OBJ): Define again.
5643 (otherobj): Add GETLOADAVG_OBJ.
5644
f532dca0
DL
5645 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
5646
1c7e22fd
GM
56472000-04-18 Gerd Moellmann <gerd@gnu.org>
5648
f6d3257b
GM
5649 * lread.c (read_filtered_event): Cancel and start busy cursor.
5650
427ec082 5651 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
5652 that the per-character metrics may be null.
5653
e10f64e7
GM
56542000-04-17 Gerd Moellmann <gerd@gnu.org>
5655
0daee095
GM
5656 * buffer.c (clone_per_buffer_values): New function.
5657 (Fmake_indirect_buffer): Add optional argument CLONE. Call
5658 clone_per_buffer_values if CLONE is not nil.
5659
e10f64e7
GM
5660 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
5661
38687d43
DL
56622000-04-16 Dave Love <fx@gnu.org>
5663
5664 * Makefile.in: Remove obsolete localcpp stuff.
5665 (GETLOADAVG_OBJ): Don't define.
5666 (obj): Move LIBOBJS...
5667 (otherobj): ... to here.
5668 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
5669 whitespace-only lines after the continuation (Irix).
5670
c21c7262
GM
56712000-04-14 Gerd Moellmann <gerd@gnu.org>
5672
5673 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
5674
5675 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
5676
314767c0
DL
56772000-04-14 Dave Love <fx@gnu.org>
5678
5679 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
5680 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
5681 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
5682 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
5683 NLIST_STRUCT.
5684
5685 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
5686 autoconfiscated HAVE_GETLOADAVG.
5687
5688 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
5689 BROKEN_MKTIME.
5690
a2522dca
GM
56912000-04-14 Gerd Moellmann <gerd@gnu.org>
5692
5693 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
5694 (fill_in_lock_file_name): Avoid existing files that aren't
5695 links.
5696
33744b5d
DL
56972000-04-14 Dave Love <fx@gnu.org>
5698
c21c7262 5699 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
5700 (INTERVAL_SRC): Convert to make variable.
5701 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
5702 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
5703 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
5704 add LIBOBJS.
5705 (SOME_MACHINE_OBJECTS): Remove interval stuff.
5706 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
5707 (shortlisp): Add facemenu, float-sup, frame.
5708 (SOME_MACHINE_LISP): Remove them from here.
5709 (LIBES): Change unused LDLIBS to autoconf LIBS.
5710
5711 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
5712
9d3d5916
KH
57132000-04-14 Kenichi Handa <handa@etl.go.jp>
5714
5715 * composite.c (update_compositions): If FROM and TO are not in a
5716 valid range, do nothing.
5717
198e3c7a
GM
57182000-04-13 Gerd Moellmann <gerd@gnu.org>
5719
5720 * tparam.c (tparam1): Abort when encountering an unknown
5721 `%'-specifier.
5722
5723 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
5724 terminfo.o.
5725
5726 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
5727 as TERMCAP_OBJ.
5728
055a28c9
EZ
57292000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
5730
5731 * fileio.c (a_write): Remove redundant semi-colons.
5732 (e_write): Return -1 if failed to write all the data.
5733 This fixes the changes made at 1999-12-15.
5734
f5c75033
DL
57352000-04-12 Dave Love <fx@gnu.org>
5736
5737 * fns.c (mapcar1): Test for null vals to support mapc.
5738 (Fmapc): New function.
5739
0c3cfc51
EZ
57402000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
5741
5742 * msdos.c (NUM_MOUSE_BUTTONS): Define.
5743 (IT_frame_up_to_date): Support the buffer local value of
5744 cursor-type, if defined.
5745
33465a31
DL
57462000-04-10 Dave Love <fx@gnu.org>
5747
5748 * editfns.c (preceding-char, following-char): Doc fix.
5749
6ed56568
KR
57502000-04-10 Ken Raeburn <raeburn@gnu.org>
5751
5752 * Makefile.in (temacs): Revert 2000-03-12 change.
5753
7cf80d4e
JR
57542000-04-10 Jason Rumney <jasonr@gnu.org>
5755
5756 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
5757
34f3f342
GM
57582000-04-10 Gerd Moellmann <gerd@gnu.org>
5759
1a1b1895
GM
5760 * xdisp.c (setup_echo_area_for_printing): Choose an echo
5761 area buffer, if it's not set up yet.
5762
34f3f342
GM
5763 * indent.c (compute_motion): Set immediate_quit.
5764
be0dbdab
GM
57652000-04-09 Gerd Moellmann <gerd@gnu.org>
5766
c45be9ac
GM
5767 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
5768 variable.
5769 (realize_tty_face): Suppress boldness if colors are the inverse of
5770 the default colors, and tty_suppress_bold_inverse_default_colors_p
5771 is set.
5772 (Ftty_suppress_bold_inverse_default_colors): New function.
5773 (syms_of_xfaces): Defsubr it.
5774
be0dbdab
GM
5775 * buffer.c (Frestore_buffer_modified_p): New function.
5776 (syms_of_buffer): Defsubr it.
5777
e8413c3b
KR
57782000-04-08 Ken Raeburn <raeburn@gnu.org>
5779
87f67317
KR
5780 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
5781 charset id (int) argument, not a charset (Lisp_Object).
5782
e8413c3b
KR
5783 * coding.h (code_convert_string): Declare.
5784 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
5785 object, as the fourth argument to code_convert_string.
5786
5787 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
5788 value.
5789 (Fset_fontset_font): Use EQ to compare lisp objects.
5790
7c752c80
KR
57912000-04-05 Ken Raeburn <raeburn@gnu.org>
5792
c0333abc
KR
5793 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
5794 a pointer that looks like a lisp object.
5795 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
5796 zero, instead see whether it's an integer object, since they can't
5797 have intervals.
5798 (GET_INTERVAL_OBJECT): Simply assign to the destination.
5799
7c752c80
KR
5800 * dispnew.c (allocate_matrices_for_frame_redisplay,
5801 direct_output_forward_char): Use X(U)INT and make_number as needed
5802 to convert between (unsigned) int values and lisp integers.
5803 * keyboard.c (read_key_sequence): Likewise.
5804 * lread.c (substitute_object_recurse): Likewise.
5805 * fns.c (concat, hash_lookup, hash_remove): Likewise.
5806 * minibuf.c (do_completion, Fminibuffer_complete_word,
5807 Fminibuffer_completion_help): Likewise.
5808 * term.c (produce_special_glyphs): Likewise.
5809
5810 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
5811 * print.c (print_preprocess, print_object): Likewise.
5812
5813 * search.c (compile_pattern): Use NILP when checking for nil.
5814
74e49b38
KR
5815 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
5816 __OPTIMIZE__]: Provide a GNU C macro version that handles
5817 lisp-object unions.
5818 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
5819 field, to better cope with ENABLE_CHECKING and calls that modify a
5820 Lisp_Object using its old value.
5821
685e5ed2
GM
58222000-04-04 Gerd Moellmann <gerd@gnu.org>
5823
c407c570
GM
5824 * window.c (compare_window_configurations): Signal an error
5825 if parameters C1 or C2 aren't window configurations.
5826
685e5ed2
GM
5827 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
5828 AFTER_POTENTIAL_GC calls around calls to functions that can
5829 signal an error and thus invoke the debugger.
5830
587a49ab
GM
58312000-04-03 Gerd Moellmann <gerd@gnu.org>
5832
62f20204
GM
5833 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
5834 an error if decoding fails.
5835
587a49ab
GM
5836 * keyboard.c (lispy_mouse_names): Variable removed.
5837 (Vlispy_mouse_stem): New variable.
5838 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
5839 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
5840 for any mouse button number. Increase size of mouse_syms and
5841 button_down_location as needed. Call modify_event_symbol with
5842 different arguments.
5843 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
5844 Call modify_event_symbol with different arguments.
5845 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
5846 for any button number. Call modify_event_symbol with different
5847 arguments.
5848 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
5849 Accept a string for NAME_ALIST_OR_STEM.
5850
5851 * lisp.h (larger_vector): Add prototype.
5852
5853 * fns.c (larger_vector): Make externally visible.
5854
5855 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
5856
2d1675e4
SM
58572000-04-02 Stefan Monnier <monnier@cs.yale.edu>
5858
5859 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
5860 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
5861 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
5862 we are between str1 and str2.
5863 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
5864 (PATFETCH): Use `TRANSLATE'.
5865 (PATFETCH_RAW): Fetch multibyte char if applicable.
5866 (PATUNFETCH): Remove.
5867 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
5868 When writing a char, write it directly into the pattern buffer rather
5869 than going needlessly through a temp char-array.
5870 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
5871 multibyte magic and remove the useless `#ifdef emacs'.
5872 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
5873 buffer.
5874
5875 * regex.h (struct re_pattern_buffer): Make field `multibyte'
5876 conditional on `emacs'.
5877
5878 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
5879
cc2d8c6b
KR
58802000-04-01 Ken Raeburn <raeburn@gnu.org>
5881
5882 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
5883 non-union-type versions of XMARK and friends here, because XMARK
5884 and friends won't work on an integer field if NO_UNION_TYPE is not
5885 defined.
5886 (make_number): Define as a function if it's not defined as a
5887 macro.
5888
09654086
KR
5889 * composite.c (run_composite_function): Use NILP when checking for
5890 nil.
5891 (syms_of_composite): Delete local var NARGS, pass an int as first
5892 argument to Fmake_hash_table.
5893
2387b382
KR
5894 * editfns.c (text_property_stickiness): Use NILP to test
5895 Lisp_Object boolean value.
5896 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
5897 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
5898 problems reading from and changing the same lisp value in an
5899 XSETSTRING call.
5900
27660e89
GM
59012000-04-01 Gerd Moellmann <gerd@gnu.org>
5902
5903 * term.c (TN_no_color_video): New variable.
5904 (term_init): Intitialize TN_no_color_video.
5905 (enum no_color_bit): New enumeration.
5906 (MAY_USE_WITH_COLORS_P): New macro.
5907 (turn_on_face): Use it to determine if attributes may be used
5908 combined with colors.
5909
3578db3c
KR
59102000-04-01 Ken Raeburn <raeburn@gnu.org>
5911
5912 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
5913 with int lvalues via casts; instead, just yield lisp object
5914 lvalues.
5915 (enlarge_window): Variable sizep now points to Lisp_Object. Use
5916 proper accessor macros.
5917 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
5918 (grow_mini_window): Fix typo getting int value of root->height.
5919
6fc556fd
KR
5920 * xdisp.c (compute_string_pos): Fix order of arguments to
5921 string_pos_nchars_ahead.
5922 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
5923 count arg to variable-arg routines like Frun_hook_with_args and
5924 Fformat.
587a49ab
GM
5925 (back_to_previous_visible_line_start)
5926 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
5927 fixed-arg routines like Fget_char_property and Fmake_string.
5928 (reconsider_clip_changes): Use XINT when comparing integer lisp
5929 objects, or passing them as int arguments.
587a49ab
GM
5930 (mark_window_display_accurate, insert_left_trunc_glyphs)
5931 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
5932 storing or passing integer values as lisp objects.
5933 (set_cursor_from_row, highlight_trailing_whitespace): Use
5934 INTEGERP, not implicit test against zero, for glyph object.
5935 (try_window_id): Don't use make_number when we want an int value.
5936
5937 * xfaces.c (xlfd_symbolic_value): Make last argument a
5938 Lisp_Object, to be consistent with callers.
5939 (Fbitmap_spec_p): Use XINT to get numeric value of height.
5940 (lface_hash): Apply XFASTINT to lisp values before folding in.
5941
5942 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
5943 fill in window width and height. Pass an int, not a lisp object,
5944 as first arg to Finsert.
5945
6e7b2457
GM
59462000-04-01 Gerd Moellmann <gerd@gnu.org>
5947
610d841e
GM
5948 * xfaces.c (realize_basic_faces): Block input while realizing
5949 the faces.
5950
6e7b2457
GM
5951 * keyboard.c (lispy_mouse_names): Add additional mouse names.
5952
5953 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
5954
aa110c0c
GM
59552000-03-31 Gerd Moellmann <gerd@gnu.org>
5956
5957 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 5958 or ASCII, handle case that per-char metric is null.
aa110c0c 5959
8801a864
KR
59602000-03-30 Ken Raeburn <raeburn@gnu.org>
5961
c6129d7e
KR
5962 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
5963
8801a864
KR
5964 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
5965 XSUBR, XBUFFER): Verify correct object type before returning
5966 pointer, using eassert.
5967 * frame.h (XFRAME): Likewise.
5968
5969 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
5970 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
5971 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
5972 type.
5973 * data.c (set_internal): Likewise.
5974 * dispextern.h (WINDOW_WANTS_MODELINE_P,
5975 WINDOW_WANTS_HEADER_LINE_P): Likewise.
5976 * fileio.c (auto_save_1): Likewise.
5977 * insdel.c (check_markers): Likewise.
5978 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
5979 * undo.c (record_insert): Likewise.
5980 * vmsproc.c (child_sig): Likewise.
5981 * window.c (unshow_buffer, window_loop): Likewise.
5982 * xterm.c (x_erase_phys_cursor): Likewise.
5983
8e7af858
GM
59842000-03-30 Gerd Moellmann <gerd@gnu.org>
5985
5986 * xfns.c (free_image_cache): Free the cache structure itself
5987 last, after all its members have been freed.
5988
5989 * lisp.h (xstrdup): Add prototype.
5990
5991 * alloc.c (xstrdup): Moved here from xfaces.c.
5992 (allocating_for_lisp): Variable removed.
5993 (lisp_malloc): Block input around the calls to malloc and
5994 mem_insert.
5995
5996 * xfaces.c (realize_tty_face): Use find_symbol_value instead
5997 of Fsymbol_value.
5998 (xstrdup): Moved to alloc.c.
5999
e0b8c689
KR
60002000-03-29 Ken Raeburn <raeburn@gnu.org>
6001
b96f9fb7
KR
6002 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
6003
6004 * emacs.c (main): Fix sense of no-loadup test.
6005
e0b8c689
KR
6006 * config.in (ENABLE_CHECKING): Undef.
6007
6008 * lisp.h (struct interval): Replace "parent" field with a union of
6009 interval pointer and Lisp_Object; add new bitfield to use as
6010 discriminant. Change other flag fields to bitfields.
6011 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
6012 is defined and the supplied test fails, print a message and
6013 abort.
6014 (eassert): New macro. Use CHECK to provide an assert-like
6015 facility.
6016
6017 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
6018 pointers; abort if the value looks like a lisp object.
6019 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
6020 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
6021 Modify for new interval parent definition.
6022
6023 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
6024 UNMARK_BALANCE_INTERVALS): Update references that need an
6025 addressable lisp object in the interval structure.
6026 (die): New function.
6027 (suppress_checking): New variable.
6028
6029 * intervals.c (interval_start_pos): Just return 0 if there's no
6030 parent object.
6031
f83c5440
GM
60322000-03-29 Gerd Moellmann <gerd@gnu.org>
6033
6034 * lread.c (read1): Accept `.' (period) as symbol start like in CL
6035 and earlier Emacs versions.
6036
6037 * keyboard.c (Ftop_level): Cancel busy-cursor.
6038
6039 * eval.c (call_debugger): Cancel busy-cursor.
6040
fdce64ff
KH
60412000-03-29 Kenichi Handa <handa@etl.go.jp>
6042
6043 * search.c (Freplace_match): Adjust multibyteness of the current
6044 buffer and NEWTEXT. Free allocated memory before signaling an
6045 error.
6046
f6a3f532
SM
60472000-03-28 Stefan Monnier <monnier@cs.yale.edu>
6048
6049 * regex.c (analyse_first): New function obtained by ripping out most
6050 of re_compile_fastmap and generalizing it a little bit so that it
6051 can also just return whether a given (sub)pattern can match the empty
6052 string or not.
6053 (regex_compile): Use `analyse_first' to decide whether the loop-check
6054 needs to be done or not for *, +, *? and +? (the loop check is costly
6055 for non-greedy repetition).
6056 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
6057
e9b309ac
DL
60582000-03-28 Dave Love <fx@gnu.org>
6059
bb15bd9a
DL
6060 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
6061 alpha.
6062
e9b309ac
DL
6063 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
6064
ed0767d8
SM
60652000-03-27 Stefan Monnier <monnier@cs.yale.edu>
6066
6067 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
6068 an expression.
6069 (enum re_opcode_t): Update description of succeed_n.
6070 (PATFETCH): Always define.
6071 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
6072 operators, char classes, shy-groups and intervals).
6073 Optimize special cases of intervals so as to only use succeed_n and
6074 jump_n when really needed.
6075 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
6076 that we don't have to handle the special cases any more.
6077 Simplify on_failure_jump handling as well.
6078
e11e7e46
JR
60792000-03-28 Jason Rumney <jasonr@gnu.org>
6080
6081 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
6082
88faab89
GM
60832000-03-27 Gerd Moellmann <gerd@gnu.org>
6084
182ff242
GM
6085 * s/freebsd.h (GC_SETJMP_WORKS): Define.
6086
6087 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 6088
182ff242
GM
6089 * alloc.c (mark_maybe_object): New function.
6090 (mark_memory): Use it.
6091 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
6092 (setjmp_tested_p, longjmp_done): New variables.
6093 (test_setjmp): New function.
6094 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
6095 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
6096
c1005d06
GM
6097 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
6098 to DEC_TEXT_POS and INC_TEXT_POS.
6099
6100 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
6101 with parameter MULTIBYTE_P.
6102
427ec082 6103 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
6104 MULTIBYTE_P.
6105
7439e5b9 6106 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
6107 buffers because it looks for multibyte character byte sequences
6108 which don't exist in unibyte text.
7439e5b9 6109
d9c545da
GM
6110 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
6111
11fd416e 6112 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
6113 [DEBUG_X_COLORS]: New functions.
6114 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
6115
6116 * xfns.c (x_set_cursor_color): Get color reference counts right.
6117
6118 * xterm.c (x_copy_color): New function.
6119 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
6120
6121 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
6122 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
6123 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
6124 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
6125 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
6126 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
6127 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
6128 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
6129 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
6130 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
6131
11fd416e
GM
6132 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
6133 names for handling per-buffer variables.
d9c545da
GM
6134
6135 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
6136 instead of MAX_BUFFER_LOCAL_VARS.
6137 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
6138
6139 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
6140
88faab89
GM
6141 * xfns.c (x_specified_cursor_type): New function.
6142 (x_set_cursor_type): Use it.
6143
6144 * buffer.h (struct buffer): Add cursor_type.
6145
d80f42b7
SM
61462000-03-26 Stefan Monnier <monnier@cs.yale.edu>
6147
6148 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 6149 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 6150 opcode.
d80f42b7
SM
6151 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
6152 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
6153 executing it as well as when popping it off the stack to find infinite
6154 loops in non-greedy repetition operators.
6155
89e80928
GM
61562000-03-26 Gerd Moellmann <gerd@gnu.org>
6157
3d4ff2dd
GM
6158 * doc.c (Qfunction_documentation): New variable.
6159 (syms_of_doc): Initialize Qfunction_documentation.
6160 (Fdocumentation): If FUNCTION is a symbol with non-nil
6161 `function-documentation' property, return a documentation derived
6162 from that.
6163
bd96bd79
GM
6164 * buffer.c (syms_of_buffer): Add default-cursor-type.
6165 (init_buffer_once): Don't let cursor_type have a local value
6166 in every buffer.
6167
19d1bc27
GM
6168 * xterm.c (x_display_and_set_cursor): Choose cursor depending
6169 on buffer-local value of cursor_type.
6170 (x_draw_bar_cursor): Add parameter WIDTH.
6171
6172 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
6173 (init_buffer_once): Set default cursor_type value to t.
6174 Mark cursor_type as local everywhere.
6175 (syms_of_buffer): New per-buffer variable cursor-type.
6176
89e80928
GM
6177 * buffer.h (struct buffer): Remove member local_var_flags,
6178 add local_flags.
6179 (MAX_BUFFER_LOCAL_VARS): New macro.
6180 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
6181 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
6182 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
6183 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
6184
6185 * print.c (print_object): Use new macros for per-buffer
6186 variables.
6187
6188 * category.c (Fset_category_table): Use new macros for per-buffer
6189 variables.
6190
6191 * buffer.c (buffer_permanent_local_flags): Make a char array.
6192 (max_buffer_local_idx): New variable.
6193 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
6194 for new handling of per-buffer variables.
6195 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
6196 (init_buffer_once): Initialize per-buffer vars differently.
6197 Set max_buffer_local_idx.
6198
6199 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
6200 variables.
6201
6202 * lread.c (defvar_per_buffer): Use new macros for per-buffer
6203 variables.
6204
6205 * data.c (do_symval_forwarding, store_symval_forwarding)
6206 (find_symbol_value, set_internal, default_value, Fset_default)
6207 (Fkill_local_variable, Flocal_variable_p): Use new macros for
6208 per-buffer variables.
6209
6210 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
6211
9a0dd3dc
GM
62122000-03-24 Gerd Moellmann <gerd@gnu.org>
6213
b68c375f
GM
6214 * xterm.c (x_term_init): Unblock input around call1 of
6215 Qvendor_specific_keysyms.
6216
9a0dd3dc
GM
6217 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
6218 (find_defun_start): Consider an open parenthesis in column 0
6219 a defun start only if open_paren_in_column_0_is_defun_start is set.
6220 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
6221
7973e637
SM
62222000-03-24 Stefan Monnier <monnier@cs.yale.edu>
6223
6224 * eval.c (Fautoload): Add entry in load-history (if after dump).
6225 * lread.c (load-history): Update docstring.
6226
39210e90
GM
62272000-03-24 Gerd Moellmann <gerd@gnu.org>
6228
6229 * indent.c (Fvertical_motion): Always use the current buffer.
6230 Temporarily change the window's buffer, if necessary.
6231
72db3ab5
GM
62322000-03-23 Gerd Moellmann <gerd@gnu.org>
6233
6234 * xterm.c (fast_find_position): Make sure not to consider rows
6235 not visible in the window.
6236
990b2375
SM
62372000-03-22 Stefan Monnier <monnier@cs.yale.edu>
6238
6239 * regex.c (enum syntaxcode): Provide default for non-Emacs.
6240 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
6241
ff4df011
JR
62422000-03-22 Jason Rumney <jasonr@gnu.org>
6243
6244 * w32menu.c (single_submenu): Set help string to NULL if none.
6245 (w32_menu_show): Set help string correctly.
6246 (add-menu-item): Set help string in MIIM_DATA for menu item.
6247 Load SetMenuItemInfoA explicitly.
6248 (w32_menu_display_help): New function.
427ec082 6249
ff4df011
JR
6250 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
6251 (QCdata): Moved to xdisp.c.
6252
6253 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
6254 (Vw32_charset_to_codepage_alist): Removed.
6255 (Vw32_charset_info_alist): New variable.
6256 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
6257 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
6258 greek, hebrew, thai, johab, mac, unicode]): New symbols.
6259 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
6260 with TODO comment.
6261 (w32_codepage_for_font): Use Vw32_charset_info_alist.
6262 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
6263 Define Vw32_charset_info_alist and w32_charset symbols.
6264
62652000-03-22 Jason Rumney <jasonr@gnu.org>
6266
6267 * makefile.nt (w32bdf.obj): Update dependencies.
6268
6269 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
6270
6271 * w32fns.c: Include fontset.h after dispextern.h.
6272 (Fx_create_frame): Do not create fontset.
6273 (w32_load_system_font): Doc fix.
6274 (Fx_close_connection): Free full_name if it is not shared.
6275
6276 * w32term.c: Include fontset.h after dispextern.h.
6277 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
6278 updated.
6279 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
6280 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
6281 (w32_font_is_double_byte): New function, needs body.
6282 (x_append_glyph): Set glyph->glyph_not_available_p.
6283 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
6284 it->charset. If it->multibyte_p is zero and it->c is a multibyte
6285 character, convert it to a unibyte character.
6286 (struct glyph_string): Delete member `charset'.
6287 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
6288 calculating it is found.
6289 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
6290 the case that per char metric is not available correctly.
6291 (x_fill_glyph_string): Handle the case that the specific glyph is
6292 not available correctly.
6293 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
6294 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
6295 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
6296 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
6297 fontset. Don't call FS_LOAD_FONT.
6298
439d5cb4
KR
62992000-03-22 Ken Raeburn <raeburn@gnu.org>
6300
6301 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
6302 (INT_LISPLIKE): New macro.
6303 (NULL_INTERVAL_P): Use it.
6304 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
6305 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
6306 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
6307
6308 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
6309 explicit references to "parent" field of struct interval and
6310 associated unclean type conversions.
6311 * intervals.c (create_root_interval, root_interval, rotate_right,
6312 rotate_left, balance_possible_root_interval, split_interval_right,
6313 split_interval_left, interval_start_pos, find_interval,
6314 next_interval, previous_interval, update_interval,
6315 adjust_intervals_for_insertion, delete_node, delete_interval,
6316 adjust_intervals_for_deletion, merge_interval_right,
6317 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
6318 copy_intervals_to_string): Likewise.
6319 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
6320 Likewise.
6321 * syntax.c (update_syntax_table): Likewise.
6322
6323 * intervals.c (reproduce_tree_obj): New function, like
6324 reproduce_tree but takes a Lisp_Object for the parent. Declare
6325 with prototype.
6326 (graft_intervals_into_buffer): Use it when appropriate.
6327 (reproduce_tree): Declare with prototype.
6328 (balance_possible_root_interval): Check that the parent is a lisp
6329 object before trying to examine its type.
6330
ee1c5b21
GM
63312000-03-22 Gerd Moellmann <gerd@gnu.org>
6332
6333 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
6334 as strings only if both are known to be strings.
6335
6336 * s/openbsd.h (LIBS_TERMCAP): Undef.
6337
1fb352e0
SM
63382000-03-21 Stefan Monnier <monnier@cs.yale.edu>
6339
6340 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
6341 definitions for non-Emacs compilation.
6342 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
6343 outside of `#ifdef emacs'.
6344 (print_partial_compiled_pattern): Update.
6345 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
6346 (re_compile_fastmap): Merge handling of charset and charset_not (for
6347 emacs and non-emacs compilation as well).
6348 Similarly for (not)categoryspec and (not)syntaxspec.
6349 Don't use the fastmap when reaching `anychar' since the added
6350 complexity is not justified.
6351 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
6352 and (not)syntaxspec. Merge (not)categoryspec.
6353
fdaa1f77
KH
63542000-03-22 Kenichi Handa <handa@etl.go.jp>
6355
ff1a0d8e
KH
6356 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
6357 FACE_FOR_CHAR): Define them differently for the configuration of
6358 --without-x.
fdaa1f77 6359
d152fb46
DL
63602000-03-21 Dave Love <fx@gnu.org>
6361
6362 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
6363 doc string.
6364
d2cafc8c
GM
63652000-03-21 Gerd Moellmann <gerd@gnu.org>
6366
6367 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
6368 (lface_fully_specified_p): Don't check contents of
6369 LFACE_FONT_INDEX because that attribute is optional.
6370 (realize_x_face): Remove now unwarranted xassert.
6371
9111d4b5
KH
63722000-03-21 Kenichi HANDA <handa@etl.go.jp>
6373
6374 The following changes are to make font selection based on
6375 characters, not charset. In addition, they recover fontset
6376 facilities while utilizing the new font selection mechanism.
6377
6c4bfdc0
KH
6378 * Makefile.in (fontset.o): Depend on dispextern.h.
6379
6380 * alloc.c (mark_face_cache): Don't mark face->registry.
6381
9111d4b5
KH
6382 * dispextern.h (struct glyph): New member glyph_not_available_p.
6383 Use 22 bits for face_id.
6384 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
6385 (struct face): Delete member registry, new member ascii_face.
6386 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
6387 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
6388 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
6389 (struct it): Delete member charset, new member
6390 glyph_not_available_p.
6391
6392 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
6393 (struct fontset_info, struct fontset_data): Structs removed.
6394 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
6395 Vglobale_fontset_alist, font_idx_temp): Externs removed.
6396 (fs_load_font, fs_query_fontset): Adjusted for new argument.
6397 (fs_free_face_fontset, fontset_font_pattern,
6398 face_suitable_for_char_p, face_for_char,
6399 make_fontset_for_ascii_face): Extern them.
6400 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
6401 (FS_LOAD_FACE_FONT): New macro.
6402
6403 * fontset.c: All codes rewritten or adjusted for the change of
6404 fontset implementation. Now fontset is represented by char table.
6405 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
6406 removed.
6407 (my_strcasecmp): Function removed.
6408 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
6409 variables.
6410 (AREF, ASIZE): New macros.
6411 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
6412 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
6413 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
6414 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
6415 fontset_id_valid_p, font_family_registry, fontset_name,
6416 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
6417 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
6418 New functions.
6419 (fs_load_font): New arg FACE. Caller changed.
6420 (fs_query_fontset): Argument changed. Caller changed.
6421 (Fquery_fontset): call fs_query_fontset.
6422 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
6423 Functions removed.
6424 (clear_fontset_elements, check_registry_encoding,
6425 check_fontset_name): New functions.
6426 (syms_of_fontset): Set char-table-extra-slots property of fontset
6427 to 3. Staticpro and initialize Vfontset_table and
6428 Vdefault_fontset. Defsubr fontset_font and fontset_list.
6429
6430 * frame.h (struct frame): Member `fontset_data' removed.
6431 (FRAME_FONTSET_DATA): Macro removed.
6432
6433 * frame.c (make_frame): Don't allocate f->fontset_data.
6434 (Fdelete_frame): Don't free f->fontset_data.
6435
6c4bfdc0
KH
6436 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
6437
9111d4b5
KH
6438 * xdisp.c (charset_at_position): Function removed.
6439 (init_iterator): Don't set member charset of struct `it'.
6440 (handle_face_prop, reseat_to_string, set_iterator_to_next,
6441 next_element_from_display_vector, insert_left_trunc_glyphs):
6442 Likewise.
6443 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
6444 FACE_FOR_CHARSET.
6445 (get_next_display_element, append_space,
6446 extend_face_to_end_of_line): Likewise.
6447
6448 * xfaces.c (Qx_charset_registry, Vface_default_registry):
6449 Variables removed.
6450 (clear_font_table, frame_update_line_height, load_face_font):
6451 Adjusted for the change of fontset implementation.
6452 (load_face_fontset_font): Function removed.
6453 (pixel_point_size): New function.
6454 (font_list): Argument type changed. Caller changed.
6455 (LFACE_FONT): New macro.
6456 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
6457 (set_lface_from_font_name): Type of arg FONTNAME is changed to
6458 Lisp_Object. Determine the font name by actually loading a font
6459 by the specified pattern. Set LFACE_FONT (lface) to the specified
6460 pattern. Even if a font is not found, don't try alternatives.
6461 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
6462 (set_font_frame_param): If `font' is specified in lface, use it.
6463 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
6464 (lface_same_font_attributes_p): Likewise.
6465 (make_realized_face): Arguent changed. Caller changed. Set
6466 face->ascii_face to face itself.
6467 (free_realized_face): Free face->fontset if face is for ASCII.
6468 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
6469 deduce_unibyte_registry, x_charset_registry): Functions removed.
6470 (free_realized_multibyte_face): New function.
6471 (lookup_face, lookup_named_face, lookup_derived_face): Argument
6472 changed. Caller changed.
6473 (try_font_list): Argument type changed.
6474 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
6475 (choose_face_font): Argument changed. Handle fontset properly.
6476 (choose_face_fontset_font): Function removed.
6477 (realize_default_face, realize_named_face): Don't remove the
6478 former face here.
6479 (realize_face): Argument changed. Caller changed. Remove face
6480 with the arg former_face_id in advance. Load font for the new
6481 face.
6482 (realize_x_face): Argument changed. Caller changed. For a
6483 multibyte character, share fontset with base_face. For a single
6484 byte character, make a new realized fontset. Don't load a font
6485 here.
6486 (realize_tty_face): Argument changed. Caller changed.
6487 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
6488 (face_at_buffer_position): Don't check multibyte_p for returning
6489 DEFAULT_FACE_ID.
6490 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
6491 FACE_SUITABLE_FOR_CHARSET_P.
6492 (syms_of_xfaces): Remove code for Qx_charset_registry and
6493 Vface_default_registry.
6494
6c4bfdc0
KH
6495 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
6496 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
6497 (x_per_char_metric): Don't try FONT->default_char. Even if
6498 pcm->width is zero, glyph bits may exist.
6499 (x_encode_char): Always initialize char2b->byte1.
6500 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
6501 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
6502 changed.
6503 (x_append_glyph): Set glyph->glyph_not_available_p.
6504 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
6505 it->charset. Handle the case that per char metric is not
6506 available. If it->multibyte_p is zero and it->c is a multibyte
6507 character, convert it to a unibyte character.
6508 (struct glyph_string): Delete member `charset'.
6509 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
6510 the case that per char metric is not available correctly.
6511 (x_fill_glyph_string): Handle the case that the specific glyph is
6512 not available correctly.
6513 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
6514 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
6515 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
6516 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
6517 fontset. Don't call FS_LOAD_FONT.
6518
6519 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
6520 (x_create_tip_frame): Likewise.
6521 (Fx_close_connection): Free full_name of font_info.
6522
6523 * fns.c (optimize_sub_char_table): New function.
6524 (Foptimize_char_table): New function.
6525 (syms_of_fns): Defsubr Soptimize_char_table.
6526
b33dd3b0
GM
65272000-03-20 Gerd Moellmann <gerd@gnu.org>
6528
6529 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
6530 only if buffer is displayed in some window.
6531
6532 * xdisp.c (handle_single_display_prop): Initialize local `value'.
6533 (try_window_reusing_current_matrix): Don't call scroll run
6534 function if run's current and desired position are the same;
6535 this prevents cursor flickering.
6536
4e8a9132
SM
65372000-03-19 Stefan Monnier <monnier@cs.yale.edu>
6538
6539 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
6540
6541 * regex.c (RE_STRING_CHAR): New macro.
6542 (GET_CHAR_AFER_2): Remove.
6543 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
6544 (enum re_opcode_t): Remove on_failure_jump_exclusive.
6545 (print_partial_compiled_pattern, re_compile_fastmap)
6546 (re_match_2_internal): Remove on_failure_jump_exclusive.
6547 (regex_compile): Turn optimizable P+ loops into PP*, so that the
6548 optimization only need to work for * (ie. can use of_keep_string_jump).
6549 Remove the special case for .*\n since it is now covered by the general
6550 optimization.
6551 (re_search_2): Don't bother with `room'.
6552 (skip_one_char): New function.
6553 (skip_noops): Simplify since `memory' is not needed any more.
6554 (mutually_exclusive_p): Restructure slightly to use `switch' and
6555 add handling for "all" remaining cases.
6556 (re_match_2_internal): Change on_failure_jump_smart to use
6557 on_failure_keep_string_jump (and redirect the end-of-loop jump)
6558 rather than on_failure_jump_exclusive.
6559
2136fdd4
GM
65602000-03-19 Gerd Moellmann <gerd@gnu.org>
6561
6562 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
6563 number of bits per RGB because it's everywhere used as the depth
6564 of the visual.
6565
6566 * term.c (calculate_costs): Remove code dealing with X frames.
6567
18e21ce8 65682000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
6569
6570 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
6571
d7b511c4
GM
65722000-03-18 Gerd Moellmann <gerd@gnu.org>
6573
6574 * lread.c (read_integer): Unread the last char not consumed.
6575
16b5d424
GM
65762000-03-17 Gerd Moellmann <gerd@gnu.org>
6577
6578 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 6579 which are in the process of being deleted.
16b5d424 6580
1fa28578
GM
65812000-03-16 Gerd Moellmann <gerd@gnu.org>
6582
83488cce
GM
6583 * Makefile.in (mostlyclean): Add `*.core'.
6584 (clean): Add `bootstrap-emacs'.
6585
1fa28578
GM
6586 * lread.c (read_integer): New function.
6587 (read1): Support read syntax #o, #x, #b, #r.
6588
99633e97
SM
65892000-03-15 Stefan Monnier <monnier@cs.yale.edu>
6590
1fa28578
GM
6591 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
6592 make sure POINTER_TO_OFFSET gives the same value before and after
6593 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
6594 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
6595 (debug): Now only active if > 0 rather than if != 0.
6596 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
6597 (print_partial_compiled_pattern): Add missing `succeed' case. Use
6598 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
6599 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
6600 (store_op1, store_op2, insert_op1, insert_op2)
6601 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
6602 (group_in_compile_stack): Move to after its arg's types are
6603 declared and add a prototype.
99633e97 6604 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
6605 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
6606 wrapper.
99633e97 6607 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
6608 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
6609 indentation of the greedy-op and shy-group code.
99633e97
SM
6610 (at_(beg|end)line_loc_p): Fix argument's types.
6611 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
6612 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
6613 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
6614 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
6615 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
6616 QUIT unconditionally.
99633e97 6617
699238d9
GM
66182000-03-15 Gerd Moellmann <gerd@gnu.org>
6619
6620 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
6621 a sole completion.
6622
6623 * process.c (send_process): Add a hint that the function
6624 can call Lisp code to its comment.
6625
6626 * lread.c (load_dangerous_libraries): New variable.
6627 (Vbytecomp_version_regexp): New variable.
6628 (safe_to_load_p): New function.
6629 (Fload): Handle files not compiled with Emacs specially.
6630 (syms_of_lread): New Lisp variable load-dangerous-libraries.
6631
34e23e5a
GM
66322000-03-14 Gerd Moellmann <gerd@gnu.org>
6633
9c763cca
GM
6634 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
6635
6636 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
6637 support functions only if HAVE_X11R6_XIM is defined.
6638 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
6639
6640 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
6641
6642 * xfns.c (X_I18N_INHIBITED): Don't define.
6643 (create_frame_xic): Remove conditional compilation on
6644 X_I18N_INHIBITED.
6645 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
6646
6647 * config.in (HAVE_X_I18N): Moved here from xterm.h.
6648 (HAVE_X11R6_XIM): Define.
6649
6650 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
6651
34e23e5a
GM
6652 * xterm.c (x_term_init): Add support for X resource `synchronous'.
6653 If set, call XSynchronize.
6654
66f0296e
SM
66552000-03-13 Stefan Monnier <monnier@cs.yale.edu>
6656
34e23e5a
GM
6657 * regex.c: Declare a new type `re_char' used throughout the code
6658 for the string char type. It's `const unsigned char' to match the
6659 rest of Emacs. Consistently make sure all pointers to strings use
6660 it and make sure all pointers into the pattern use `unsigned
6661 char'.
66f0296e 6662 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
6663 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
6664 code duplication.
66f0296e
SM
6665
6666 * charset.h (GET_CHAR_AFTER_2): Remove.
6667 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
6668
854a025c
KR
66692000-03-12 Ken Raeburn <raeburn@gnu.org>
6670
6671 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
6672 variable before the invocation of YMF_PASS_LDFLAGS, in case both
6673 of them try to use backquotes.
6674
b9d2c7e2
DL
66752000-03-12 Dave Love <fx@gnu.org>
6676
6677 * unexelf.c: Restore changes of 1999-10-19.
6678 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
6679 fix its type and alignment; copy it from current process.
6680
5e5dff44
GM
66812000-03-12 Gerd Moellmann <gerd@gnu.org>
6682
9b2f3c38
GM
6683 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
6684 has been found. Fix bug not computing timer's predecessor.
6685
427ec082 6686 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
6687 file name.
6688
e1cff360
GM
6689 * window.c (Fsave_window_excursion): Doc fix.
6690
5e5dff44
GM
6691 * xfns.c (x_defined_color): Rewritten to use
6692 x_allocate_nearest_color.
6693
e411ce4b
EZ
66942000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
6695
6696 * msdos.c (vga_installed): New function, code moved from
6697 dos_set_window_size.
6698 (Qbar, Qcursor_type, outside_cursor): New variables.
6699 (syms_of_msdos): Intern and staticpro them.
6700 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
6701 shape used outside Emacs when called for the first time.
6702 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
6703 cursor shape used outside Emacs.
6704 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
6705 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
6706 type has changed.
6707 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
6708 parameters specify the cursor. Make qreverse a global
6709 variable (renamed to Qreverse).
6710
80460654
GM
67112000-03-09 Gerd Moellmann <gerd@gnu.org>
6712
6713 * fns.c (Fy_or_n_p): Cancel busy-cursor.
6714
95cd4c40
SM
67152000-03-08 Stefan Monnier <monnier@cs.yale.edu>
6716
6717 This is a big redesign of failure-stack and register handling, prompted
6718 by bugs revealed when trying to add shy-groups. Overall, what happened
6719 is that loops are now structured a little differently, groups can be
6720 shy and the code is a little simpler.
6721
6722 * regex.h: Update the copyright.
6723 (RE_SHY_GROUPS): New value.
6724 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
6725 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
6726
80460654
GM
6727 * regex.c (enum re_opcode_t): Remove jump_past_alt,
6728 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
6729 on_failure_jump_(exclusive, loop and smart). Also fix the comment
6730 for (start|stop)_memory since they now only take one argument (the
6731 second has becomes unnecessary).
6732 (print_partial_compiled_pattern): Adjust for changes in
6733 re_opcode_t.
6734 (print_compiled_pattern): Use %ld to printf long ints and flush to
6735 make debugging a little easier.
95cd4c40
SM
6736 (union fail_stack_elt): Make the integer unsigned.
6737 (struct fail_stack_type): Add a `frame' element.
6738 (INIT_FAIL_STACK): Init `frame' as well.
6739 (POP_PATTERN_OP): New macro for re_compile_fastmap.
6740 (DEBUG_PUSH, DEBUG_POP): Remove.
6741 (NUM_REG_ITEMS): Remove.
6742 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
6743 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
6744 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 6745 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
6746 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
6747 macros.
6748 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
6749 address pushed is not the destination of the jump but the source
6750 of it instead.
95cd4c40
SM
6751 (NUM_FAILURE_ITEMS): Remove.
6752 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
6753 registers before the actual failure point). Don't hardcode any
6754 meaning for str==NULL anymore.
95cd4c40 6755 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
6756 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
6757 Remove.
95cd4c40
SM
6758 (REG_UNSET_VALUE): Use NULL (why not?).
6759 (compile_range): Remove declaration since it doesn't exist.
6760 (struct compile_stack_elt_t): Remove inner_group_offset.
6761 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
6762 (regex_grow_registers): Remove dead code.
6763 (FIXUP_ALT_JUMP): New macro.
80460654
GM
6764 (regex_compile): Add shy-groups Change loops to use
6765 on_failure_jump_smart&jump instead of
6766 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
6767 initial (dummy_failure_)jump. Remove c1_base (looks like unused
6768 variable to me). Use `jump' instead of `jump_past_alt' and don't
6769 bother with push_dummy_failure in alternatives since it is now
6770 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
6771 emacs' for (re)allocating the stack.
6772 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
6773 from loop when bufp->can_be_null rather than jumping to `done'.
6774 Avoid jumping backwards so as to ensure termination. Use
6775 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
6776 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 6777 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
6778 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
6779 improve mutually_exclusive_p to handle ".+\n".
6780 (lowest_active_reg, highest_active_reg,
6781 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
6782 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
6783 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
6784 variables. Push register (in `start_memory') on the stack rather
6785 than storing it in old_reg(start|end). Remove the cycle detection
6786 from `stop_memory', replaced by the use of on_failure_jump_loop
6787 for greedy loops. Add code for the new on_failure_jump_<foo>.
6788 Remove ad-hoc code in `on_failure_jump' to push more registers in
6789 the case of a loop. Take out code from `maybe_pop_jump' into
6790 separate functions and adapt it to the semantics of
6791 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
6792 and push_dummy_failure. Remove dummy_failure handling and
6793 handling of `failures to jump to on_failure_jump' (this last one
6794 was already dead code, it seems).
6795 (group_match_null_string_p, alt_match_null_string_p)
6796 (common_op_match_null_string_p): Remove.
95cd4c40 6797
7397acc4
DL
67982000-03-08 Dave Love <fx@gnu.org>
6799
6800 * config.in: Don't depend on __STDC__ for volatile.
6801 Add POINTER_TYPE, PTR, PROTOTYPES.
6802
6803 * hftctl.c, strftime.c: Use PROTOTYPES.
6804 * eval.c (find_handler_clause): Likewise.
6805
6806 * mem-limits.h: Use POINTER_TYPE.
6807
6808 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
6809 (memory_warnings): Declare using POINTER_TYPE.
6810
5e91ff9e
GM
68112000-03-08 Gerd Moellmann <gerd@gnu.org>
6812
feab4fba
GM
6813 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
6814
25edb08f
GM
6815 * xdisp.c (display_echo_area): Temporarily inhibit garbage
6816 collection.
6817
5e91ff9e
GM
6818 * xfns.c: Remove obsolete code in #if 0.
6819 (Fx_focus_frame): New function.
6820
a735b7e1
KH
68212000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
6822
6823 * coding.c (coding_category_name): Add coding-category-utf-8,
6824 coding-category-utf-16-be, coding-category-utf-16-le.
6825 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
6826 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
6827 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
6828 (detect_coding_utf_8): New function.
6829 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
6830 UTF_16_LOW_SURROGATE_P): New macros.
6831 (detect_coding_utf_16): New function
6832 (detect_coding_mask): When priorities are specified, skip any
6833 categories that have `nil' coding-system. Fix bug of returning
6834 wrong mask when PRIORITIES is specified and detect_coding_XXX()
6835 returns a mask not set in PRIORITIES.
6836 (detect_eol_type_in_2_octet_form): New function.
6837 (detect_eol): selects detect_eol_type_XXX to call according to
6838 cooding->category_idx.
6839 (detect_coding_system): Remove `nil' coding-system in the result.
6840 (Fupdate_coding_systems_internal): Update all coding-categories.
6841
6842 * coding.h (CODING_CATEGORY_IDX_UTF_8,
6843 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
6844 macros.
6845 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
6846 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
6847 CODING_CATEGORY_IDX_UTF_16_LE.
6848 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
6849 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
6850 (CODING_CATEGORY_MASK_ANY): Include the above macros.
6851 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
6852
9994cc69
GM
68532000-03-07 Gerd Moellmann <gerd@gnu.org>
6854
e9b4e5ff
GM
6855 * doc.c (Fdocumentation_property): If value is not a string,
6856 and doesn't refer to etc/DOC, evaluate it to obtain a string.
6857
f7daf1e1
GM
6858 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
6859 close the display with XtCloseDisplay. This caused a bus error
6860 on OpenWindows.
6861
9994cc69
GM
6862 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
6863 complete but not unique.
6864
4336c705
GM
68652000-03-06 Gerd Moellmann <gerd@gnu.org>
6866
18bb0684
GM
6867 * process.c (send_process): Remove local variable `procname' that
6868 might become invalid when a GC happens. Instead, access the
6869 process name slot directly.
6870
4336c705
GM
6871 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
6872 orig_height if set.
6873
6874 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
6875 orig_height if set.
6876
515d0d0e
EZ
68772000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
6878
6879 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
6880 glyph matrices have been freed.
6881
100b3cbb
GM
68822000-03-05 Gerd Moellmann <gerd@gnu.org>
6883
50df5e5a 6884 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 6885 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
6886
6887 * xfns.c (QCdata): Moved to xdisp.c.
6888
6889 * xdisp.c (QCdata): Moved here from xfns.c.
6890 (syms_of_xdisp): Initialize QCdata.
6891
6892 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
6893
6894 * window.c (coordinates_in_window): Use
6895 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
6896 FRAME_INTERNAL_BORDER_WIDTH.
6897
100b3cbb 6898 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 6899 it is obviously invalid.
100b3cbb
GM
6900
6901 * xterm.c (x_term_init): Create a colormap if not using the
6902 default visual.
6903
6904 * xterm.h (select_visual): Change prototype.
6905
6906 * xfns.c (select_visual): Rewritten. Recognize user-specified
6907 visual classes.
6908 (visual_classes): New variable.
6909
64d739c4
GM
69102000-03-04 Gerd Moellmann <gerd@gnu.org>
6911
6912 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
6913 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
6914 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
6915 (x_decode_color): Don't handle allocation of white and black
6916 specially.
6917 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
6918 XtNcolormap resources.
6919 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
6920 (Fx_create_frame): Initialize color members of x_output structure.
6921 (xpm_load): Pass colormap to XPM lib.
6922
6923 * xfaces.c (x_free_colors): Access colormap of frame using
6924 FRAME_X_COLORMAP. Be paranoid about freeing black and white
6925 when default colormap is used.
6926
6927 * xterm.c (x_term_init): Set Colormap member of x_display_info
6928 structure. Copy colormap if resource `privateColormap' is
6929 specified (PseudoColor only).
6930 (x_setup_relief_color): Access colormap of frame using
6931 FRAME_X_COLORMAP.
6932
6933 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
6934 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
6935
c3cee013
JR
69362000-03-04 Jason Rumney <jasonr@gnu.org>
6937
6938 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
6939 other non-platform-specific equivalents.
64d739c4 6940 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
6941 specific functions and macros as their w32 equivalents where
6942 non-platform-specifics are not available.
6943 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
6944 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
6945 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
6946 (frame_update_line_height): Use macros to access f->output_data.
6947 (defined_color): Remove FIXME comments; fixed.
6948 (x_face_list_fonts, prepare_face_for_display): Put X specifics
6949 into #ifdef blocks. Add WINDOWSNT blocks.
6950 (Fx_list_fonts): Use macros for accessing font data.
6951 (set_lface_from_font_name): Different default fonts for X and
6952 WINDOWSNT.
6953 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
6954 scalable for backward compatibility.
64d739c4 6955 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
6956 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
6957
64d739c4 6958 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
6959 syms_of_w32faces.
6960
6961 * makefile.nt (w32faces.obj): Remove.
6962 (xfaces.obj): Add.
6963
807cc41c
JR
69642000-03-03 Jason Rumney <jasonr@gnu.org>
6965
6966 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
6967 correct parameters.
6968
0007072a
KR
69692000-03-03 Ken Raeburn <raeburn@gnu.org>
6970
6971 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
6972 standard ELF definitions here if the system header does not.
6973
71a6ba55
GM
69742000-03-03 Gerd Moellmann <gerd@gnu.org>
6975
6976 * xterm.c (PER_CHAR_METRIC): Removed.
6977 (x_per_char_metric_1, x_default_char): New functions.
6978 (x_per_char_metric): If font's default char is invalid, return
6979 metrics of a suitably chosen usable default char.
6980 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
6981 char, replace occurrences of unprintable chars with a suitably
6982 chosen usable default char.
71a6ba55 6983
900fa1f1
GM
69842000-03-02 Gerd Moellmann <gerd@gnu.org>
6985
42f55fe0
GM
6986 * xterm.c (note_mouse_highlight): Return quickly if frame's
6987 glyph matrices have been freed.
6988
6989 * dispnew.c (free_glyphs): Block input while freeing matrices.
6990
900fa1f1
GM
6991 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
6992
6993 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
6994 x_free_colors.
6995
6996 * dispextern.h (x_free_colors): Add prototype.
6997
6998 * xfaces.c (x_free_colors): New function.
6999 (unload_color, free_face_colors): Use it.
7000
2f950292
EZ
70012000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
7002
7003 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
7004
7005 * window.c [MSDOS]: Include msdos.h.
7006
54d04320
DL
70072000-03-02 Dave Love <fx@gnu.org>
7008
7009 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
7010
7011 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
7012 set C_OPTIMIZE_SWITCH for gcc.
7013
0ba93ac4
KH
70142000-03-02 Kenichi Handa <handa@etl.go.jp>
7015
7016 * coding.c (coding_save_composition): Be sure to allocate
7017 composition data area in coding even if there's no composition in
7018 the current run.
7019
a2bc11d4
JR
70202000-03-01 Jason Rumney <jasonr@gnu.org>
7021
7022 * w32term.c: Equivalent changes to those made to xterm.c on
7023 2000-02-25 and 2000-02-24.
7024
7025 * w32fns.c: Equivalent changes to those made to xfns.c on
7026 2000-02-25 and 2000-02-21.
7027
7028 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
7029 correct line-end convention is followed.
7030
7031 * w32menu.c [HAVE_BOXES]: Remove #undef.
7032 (single_keymap_panes): Remove code for simulating checkmarks.
7033 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
7034 Remove code for drawing simulated checkmarks.
7035 (w32_menu_show): make unibyte help string correctly.
7036 (add_menu_item): draw standard Windows checkmarks. Draw radio
7037 buttons as radio buttons if possible.
7038
72d19d75
GM
70392000-03-01 Gerd Moellmann <gerd@gnu.org>
7040
2df636f4
GM
7041 * sysdep.c (start_of_text): Don't define this function for NetBSD
7042 with ELF.
7043
427ec082 7044 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
7045 Don't define.
7046 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
7047 (LINKER): Don't undef if __NetBSD__ is defined.
7048
7049 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
7050
7051 * fileio.c [__NetBSD__]: Define `unix'.
7052
72d19d75
GM
7053 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
7054
ed4d0512
GM
70552000-02-29 Gerd Moellmann <gerd@gnu.org>
7056
50b1039f
GM
7057 * atimer.c (start_atimer): Don't abort when timers are stopped.
7058 (append_atimer_lists): New function.
7059 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
7060 arbitrary lists of stopped and running atimers.
7061
ed4d0512
GM
7062 * atimer.c (cancel_atimer): Handle canceling an atimer when
7063 some timers are stopped.
7064
7065 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
7066 after canceling it.
7067
7068 * fns.c (maybe_resize_hash_table): Handle case of new size
7069 coming out as being the same as old size.
7070
387023ee
JR
70712000-02-27 Jason Rumney <jasonr@gnu.org>
7072
7073 * makefile.nt: Add atimer.h to dependencies.
7074 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
7075 * w32console.c: Only disable window system features for dispextern.h
7076 (initialize_w32_display): Build a display info for the console.
7077 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
7078 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
7079 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
7080 as 2 button mice.
7081 * w32gui.h (struct W32FontStruct): Revert last change after change
7082 to xdisp.c.
7083 * w32menu.c (single_submenu): Set up help string.
7084 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
7085 (w32_dialog_show): Set up help string.
7086 * w32term.c (w32_display_info_for_display): Remove unused function.
7087 (w32_draw_bitmap): Use pre-built bitmaps.
7088 (w32_initialize_display_info): New function to initialize parts of
7089 display info that are common to both GUI and console frames.
7090 (w32_term_init): Use w32_initialize_display_info. Do not set
7091 Vw32_num_mouse_buttons here, as it is not called for console
7092 frames. Build bitmaps for indicating truncated lines etc.
7093 (x_delete_display): Destroy pre-built bitmaps.
7094 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
7095 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
7096
4516715a
DL
70972000-02-27 Dave Love <fx@gnu.org>
7098
7099 * lisp.h: Add a bunch of prototypes.
7100
171ca836
KH
71012000-02-26 Kenichi Handa <handa@etl.go.jp>
7102
7103 * keyboard.c (read_char): Set `usec' correctly.
7104
4013921d
KH
71052000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
7106
7107 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
7108 `lambda', set reg[RRR] to the map index.
7109 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
7110 reg[RRR] to 0. Otherwise, set it to -1.
7111
9244a058
GM
71122000-02-25 Gerd Moellmann <gerd@gnu.org>
7113
2df636f4 7114 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 7115
18e21ce8 71162000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 7117
f43d79c1
GM
7118 * fileio.c (Ffile_symlink_p): If result starts with a `/'
7119 and contains a `:', prepend `/:'.
7120
7121 * window.c (select_window_1): If selected_window is nil,
7122 don't "swap out" the buffer's point.
7123 (Fset_window_configuration): Set selected_window to nil
7124 before calling Fselect_window.
7125 (unshow_buffer): Don't set point in buffer from window's point
7126 if another more recently selected window also shows the buffer.
7127
bed0c171
GM
71282000-02-25 Gerd Moellmann <gerd@gnu.org>
7129
449c3c52
GM
7130 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
7131
f5b58615
GM
7132 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
7133 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
7134 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
7135 variables.
7136 (DEFAULT_BUSY_CURSOR_DELAY): New define.
7137 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
7138 (hide_busy_cursor): New functions.
7139 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
7140
7141 * minibuf.c (read_minibuf): Cancel busy-cursor.
7142
7143 * keyboard.c (command_loop_1): Call start_busy_cursor before
7144 Fcommand_execute and cancel_busy_cursor after it.
7145 (timer_check): Remove busy-cursor code.
7146 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
7147 cursor timer.
7148
7149 * process.c (wait_reading_process_input): Remove busy-cursor code.
7150
7151 * eval.c (Fsignal): Call cancel_busy_cursor instead of
7152 Fx_hide_busy_cursor.
7153
7154 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
7155 Remove prototyoes.
7156 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
7157
7158 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
7159
7160 * xterm.c (XTread_socket): Remove busy-cursor code.
7161
4eb8436f
GM
7162 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
7163 (build_frame_matrix_from_leaf_window): Put code handling
7164 glyph row's not being a slice of a frame row in #if 0.
7165 (sync_window_with_frame_matrix_rows): New function.
7166 (frame_row_to_window): New function.
7167 (mirror_line_dance): Handle copies between windows.
7168
3cb65b0e
GM
7169 * lread.c (Fload): Use `xfree' instead of `free'.
7170 (init_obarray): Use `xmalloc' instead of `malloc'.
7171
bed0c171
GM
7172 * window.c (Fset_window_buffer): Set WINDOW to the window
7173 after decoding.
2add4349
GM
7174 (coordinates_in_window): Take frame's internal border width
7175 into account.
bed0c171 7176
42088c12
GM
71772000-02-24 Gerd Moellmann <gerd@gnu.org>
7178
7179 * xterm.c (x_display_and_set_cursor): Display cursor of
7180 non-selected windows depending on the setting of
7181 cursor_in_non_selected_windows.
7182
7183 * xdisp.c (cursor_in_non_selected_windows): New variable.
7184 (syms_of_xdisp): DEFVAR_BOOL it.
7185
d1e103b2
GM
71862000-02-23 Gerd Moellmann <gerd@gnu.org>
7187
723e779c
GM
7188 * data.c (Fstring_to_number): If number is greater than what
7189 fits into an integer, return a float.
7190
d1e103b2
GM
7191 * eval.c (specbind): Remove references to
7192 keyword_symbols_constant_flag.
7193
7194 * data.c (keyword_symbols_constant_flag): Removed.
7195 (Fmakunbound, set_internal, syms_of_data): Remove references to
7196 keyword_symbols_constant_flag.
7197
7198 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
7199
214f877f
KH
72002000-02-23 Kenichi Handa <handa@etl.go.jp>
7201
7202 * syntax.c (multibyte_syntax_as_symbol): New variable.
7203 (syms_of_syntax): Declare it as a Lisp variable.
7204 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
7205 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
7206 nonzero, treat all multibyte characters as symbol.
42088c12 7207 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
7208 characters.
7209
130adcb7
EZ
72102000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
7211
3cb65b0e 7212 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 7213 a deleted frame.
130adcb7 7214
17cbbf95
GM
72152000-02-21 Gerd Moellmann <gerd@gnu.org>
7216
7217 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
7218
7219 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7220 (x_non_menubar_window_to_frame): Check the busy-cursor window.
7221
beb0bc36
DL
72222000-02-21 Dave Love <fx@gnu.org>
7223
7224 * frame.c (Vmouse_position_function): New variable.
7225 (Fmouse_position): Use it.
7226 (syms_of_frame): Install it.
7227
7228 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
7229
1d92afcd
GM
72302000-02-20 Gerd Moellmann <gerd@gnu.org>
7231
7232 * fileio.c (Finsert_file_contents): Unbind the binding of
7233 standard-output done by temp_output_buffer_setup.
329eed9f
GM
7234
7235 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
7236 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
7237 (specbind, unbind_to): Handle most common case of non-constant
7238 symbol with trivial value specially.
7239
7240 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
7241
18e21ce8 72422000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
7243
7244 * data.c (Fmake_variable_buffer_local): Doc fix.
7245 Init found_for_buffer to 0.
7246 (Fmake_variable_frame_local): If the variable has already
7247 been buffer-local, set the check_frame field.
7248
1d4311c3
EZ
72492000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
7250
7251 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
7252 produced for CODING_MODE_LAST_BLOCK requires.
7253
2dc95ddd
DL
72542000-02-18 Dave Love <fx@gnu.org>
7255
7256 * keyboard.c (echo_keystrokes): Remove declaration.
7257 (Vecho_keystrokes) New variable.
7258 (read_char, record_menu_key, read_key_sequence): Use it to allow
7259 use of float value.
7260 (syms_of_keyboard): Change Vecho_keystrokes declaration.
7261
7262 * lread.c: Undef feature selection macros before defining.
7263
f0930f35
GM
72642000-02-18 Gerd Moellmann <gerd@gnu.org>
7265
7266 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
7267 for symbols other than the symbol in question.
7268
e3d4de90
DL
72692000-02-17 Dave Love <fx@gnu.org>
7270
7271 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
7272
0b378936
GM
72732000-02-17 Gerd Moellmann <gerd@gnu.org>
7274
d621caf7
GM
7275 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
7276
0b378936
GM
7277 * alloc.c (enum mem_type): Compile unconditionally.
7278
3b451f74
EZ
72792000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
7280
7281 * xfaces.c (tty_defined_color): Don't return faulire indication
7282 for unspecified-fg and unspecified-bg pseudo-colors.
7283
10689a01
GM
72842000-02-17 Gerd Moellmann <gerd@gnu.org>
7285
1216f5e4
GM
7286 * alloc.c (mark_object): Don't mark symbol names in pure space.
7287 (gc_sweep): Don't unmark symbol names in pure space.
7288
7289 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
7290 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
7291 [GC_MARK_STACK]: New defines.
427ec082 7292 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
7293 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
7294
7295 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
7296
7297 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
7298 allocate_buffer instead of xmalloc.
7299
7300 * alloc.c (toplevel): Include setjmp.h.
7301 (PURE_POINTER_P): New define.
7302 (enum mem_type) [GC_MARK_STACK]: New enumeration.
7303 (Vdead) [GC_MARK_STACK]: New variable.
7304 (lisp_malloc): Add parameter TYPE, call mem_insert if
7305 GC_MARK_STACK is defined.
7306 (allocate_buffer): New function.
427ec082 7307 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
7308 (free_float) [GC_MARK_STACK]: Set type to Vdead.
7309 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
7310 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
7311 (MEM_NIL) [GC_MARK_STACK]: New define.
7312 (struct mem_node) [GC_MARK_STACK]: New structure.
7313 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
7314 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
7315 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
7316 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
7317 (mark_stack) [GC_MARK_STACK]: New functions.
7318 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
7319 (clear_marks): Removed.
7320 (gc_sweep): Set free conses' car, free floats' type, free
7321 symbols' function to Vdead. Use lisp_free to free buffers.
7322 (init_alloc_once): Initialize Vdead.
7323 (survives_gc_p): Return non-zero for pure objects.
7324
7325 * alloc.c: Add comments throughout the file.
7326
2503c8b1
GM
7327 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
7328 that unblocks alarms.
7329
8389e1e2
GM
7330 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
7331 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
7332 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
7333
10689a01 7334 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 7335
bfc17d18
KH
73362000-02-17 Kenichi Handa <handa@etl.go.jp>
7337
4a09dee0
KH
7338 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
7339 avoid infinite error signaling. Allocate sufficient memory for
7340 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 7341
2b927d02
SM
73422000-02-17 Stefan Monnier <monnier@cs.yale.edu>
7343
7344 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
7345 depends on the previous behavior.
7346
b49cb764
GM
73472000-02-16 Gerd Moellmann <gerd@gnu.org>
7348
7349 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
7350
99e95407
GM
73512000-02-15 Gerd Moellmann <gerd@gnu.org>
7352
7353 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
7354
7355 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 7356 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
7357 write(2).
7358
6ffd3cf7
RS
73592000-02-15 Richard M. Stallman <rms@gnu.org>
7360
7361 * data.c (set_internal): Don't make variable buffer-local
7362 if within a let-binding for the same buffer.
7363 (let_shadows_buffer_binding_p): New function.
7364
7365 * eval.c (specbind): For buffer-local value,
7366 record the current buffer also.
7367 (unbind_to): Cope with that change.
7368
cad53475
GM
73692000-02-15 Gerd Moellmann <gerd@gnu.org>
7370
7371 * window.c (Fsave_window_excursion): Doc fix.
7372
1aa963c8
SM
73732000-02-15 Stefan Monnier <monnier@cs.yale.edu>
7374
7375 * syntax.c (back_comment): Make sure we only consider comment-starters
7376 of the relevant style and return -1 in case of a failure to find the
7377 beginning of the comment.
7378 (Fforward_comment): If back_comment fails, go back to the position just
7379 after the comment-end.
7380 (scan_lists): Add comment describing a very minor bug.
7381
b9b84fd3
SM
73822000-02-14 Stefan Monnier <monnier@cs.yale.edu>
7383
7384 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
7385 `completion-regexp-list' in the docstring.
7386
3a28db80
DL
73872000-02-14 Dave Love <fx@gnu.org>
7388
7389 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
7390
fb4a568d
SM
73912000-02-14 Stefan Monnier <monnier@cs.yale.edu>
7392
7393 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
7394 to Emacs' syntax. Also fix the comment about set/not-set meanings
7395 since Emacs syntax is not the value 0 any more.
7396 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
7397 since it's now part of RE_SYNTAX_EMACS.
7398
1063ebb5
DL
73992000-02-12 Dave Love <fx@gnu.org>
7400
7401 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
7402 Alpha.
7403
fb07a302
GM
74042000-02-12 Gerd Moellmann <gerd@gnu.org>
7405
7406 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
7407
aaf2320c
DL
74082000-02-12 Dave Love <fx@gnu.org>
7409
7410 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
7411
7412 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
7413 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
7414 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
7415
7416 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
7417
7418 * s/nextstep.h: Don't define HAVE_ALLOCA.
7419
7420 * config.in: Add vfork bits.
7421
eedf8bde
GM
74222000-02-12 Gerd Moellmann <gerd@gnu.org>
7423
7424 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
7425 unwind function to undo the effect of stopping atimers.
7426
7427 * keyboard.c (bind_polling_period): Stop all timers except
7428 poll_timer.
7429
7430 * atimer.c (stopped_atimers): New variable.
7431 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
7432 New functions.
7433
7434 * atimer.h (stop_other_atimers, run_all_atimers)
7435 (unwind_stop_other_atimers): Add function prototypes.
427ec082 7436
eedf8bde
GM
7437 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
7438
8476c2f8
KR
74392000-02-11 Ken Raeburn <raeburn@gnu.org>
7440
7441 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
7442 library may depend on jpeg.
7443 (atimer.o): Depends on atimer.c.
7444
0e85e4a3
KH
74452000-02-11 Kenichi Handa <handa@etl.go.jp>
7446
7447 * insdel.c (del_range_1): Call update_compositions.
7448 (del_range_both): Call update_compositions just once..
7449
97fa0cc8
DL
74502000-02-10 Dave Love <fx@gnu.org>
7451
7452 * xfns.c (create_frame_xic): Fix initialization of automatic
7453 aggregates for pcc.
7454
25566a3c
KH
74552000-02-09 Kenichi Handa <handa@etl.go.jp>
7456
7457 * ccl.c (CCL_MAKE_CHAR): New macro.
7458 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
7459 registers by CCL_MAKE_CHAR before calling translate_char.
7460 <CCL_TranslateCharacterConstTbl> Likewise.
7461
69da54ba
DL
74622000-02-08 Dave Love <fx@gnu.org>
7463
7464 * lread.c (__EXTENSIONS__): Define.
7465
f7136ee8
GM
74662000-02-08 Gerd Moellmann <gerd@gnu.org>
7467
7468 * puresize.h (BASE_PURESIZE): Increase to 650000.
7469
7768790b
EZ
74702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
7471
7472 * msdos.c (XMenuActivate): Turn off the cursor after displaying
7473 the help message.
7474
38fd211b
EZ
74752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
7476
7477 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
7478 md, mh, mb, mr, and me to the fake termcap entry.
7479
66e4690f
KR
74802000-02-06 Ken Raeburn <raeburn@gnu.org>
7481
7482 * sound.c (sound_cleanup): Don't call device close routine if the
7483 function pointer is null.
7484
a75dfea0
AI
74852000-02-06 Andrew Innes <andrewi@gnu.org>
7486
7487 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
7488 around image definitions and prototypes.
7489 (gamma_correct) [WINDOWSNT]: New prototype.
7490
7491 * w32term.c (x_make_frame_visible): Replace call to
7492 input_poll_signal with poll_for_input.
7493
7494 * window.c [WINDOWSNT]: Include w32term.h.
7495
7496 * xdisp.c [WINDOWSNT]: Include w32term.h.
7497
7498 * makefile.nt: Add dependencies on w32gui.h.
7499 (OBJ1): Include atimer.obj.
7500 ($(BLD)\atimer.obj): New dependency rule.
7501
7502 * w32.c (sigmask): New function (does nothing).
7503 (sigunblock): Ditto.
7504
7505 * frame.c [WINDOWSNT]: Include w32term.h.
7506
7507 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
7508
7509 * lread.c (syms_of_lread): Fix literal newlines.
7510
7511 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
7512 the string constant limit (2048 bytes) in MSVC.
7513 (main): Ditto.
7514
59ddecde
GM
75152000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
7516
7517 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
7518 area.
7519 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
7520 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
7521 dispatch the event.
7522
07590973
DL
75232000-02-04 Dave Love <fx@gnu.org>
7524
7525 * fileio.c: Remove some unused vars.
7526 (_GNU_SOURCE): Define (for euidaccess).
7527
7528 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
7529
7530 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
7531 gcpro1, gcpro2.
7532 (read_minibuf): Deal with allow_props correctly.
7533
649351f9
EZ
75342000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
7535
7536 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
7537
66e4690f 75382000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
7539
7540 * search.c (compile_pattern): If a cache entry has a nil regexp,
7541 fill in that entry instead of clobbering a previously cached
7542 string regexp.
7543
66e4690f 75442000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
7545
7546 * puresize.h (BASE_PURESIZE): Increase to 610000.
7547
d240a249
GM
75482000-02-02 Gerd Moellmann <gerd@gnu.org>
7549
7550 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
7551 can GC.
7552
ca91fb26
KH
75532000-02-02 Kenichi Handa <handa@etl.go.jp>
7554
25660570
KH
7555 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
7556 instead of incrementing ic directly.
7557 <CCL_WriteExprConst> Likewise.
7558 <ccl_set_expr>: Set ic to jump_address.
7559
ca91fb26
KH
7560 * fileio.c (e_write): Fix the handling of
7561 CODING_FINISH_INSUFFICIENT_SRC.
7562
2ede9689
DL
75632000-02-01 Dave Love <fx@gnu.org>
7564
7565 * editfns.c (Fpropertize): Doc fix.
7566
7567 * process.c (Fstart_process): Doc fix.
7568
7569 * eval.c: Fix various doc strings not to duplicate information
7570 from help-manyarg-func-alist.
7571
7572 * window.c (Fset_window_margins): Don't make interactive. Doc
7573 fix.
7574
7575 * doc.c (Vhelp_manyarg_func_alist): New variable.
7576 (Fdocumentation): Use it.
7577 (syms_of_doc): Define it.
7578
b6680a0e
GM
75792000-01-31 Gerd Moellmann <gerd@gnu.org>
7580
2cb750ba
GM
7581 * xterm.c (xim_open_dpy): Remove unused local variable.
7582
74e9213b
GM
7583 * emacs.c (USAGE): Use term `display options' instead of `X
7584 options'.
7585
7586 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
7587 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
7588
b6680a0e
GM
7589 * fns.c (sweep_weak_table): New function.
7590 (sweep_weak_hash_tables): Use it. Keep on marking until there
7591 is no more change.
7592
994c5afe
GM
75932000-01-30 Gerd Moellmann <gerd@gnu.org>
7594
7595 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
7596 that XTread_socket does not crash by trying to call XNoOp on a
7597 closed display.
427ec082 7598
f00276e3
JR
75992000-01-30 Jason Rumney <jasonr@gnu.org>
7600
7601 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
7602 Change selected_frame to SELECTED_FRAME ().
7603 (w32_console_mouse_position): Remove #ifndef MULE from around
7604 `insist' parameter.
7605
7606 * makefile.nt: Remove dosfns.obj.
7607
7608 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
7609
7610 * w32fns.c (w32_defined_color): Check for valid frame before
7611 applying gamma correction. Eliminate dependency on frame elsewhere.
7612 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
7613 (w32_to_x_font): Use resx and resy not height_in and width_in.
7614 (x_to_w32_font): Doc fix.
7615 (xlfd_strip_height): New function to strip and return font height.
7616 (w32_font_match): Compare height separately from rest of xlfd
7617 spec, using xlfd_strip_height.
7618
7619 * w32term.c (w32_term_init): Swap resx and height_in, resy and
7620 width_in. Use w32_defined_color in place of defined_color.
7621
7622 * w32faces.c: Merge more of DOS and X specifics in preparation for
7623 merge with xfaces.c.
7624 (defined_color): Remove FIXME comment.
7625 (tty_color_name): Provide w32-specific function.
7626 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
7627
7628 * w32console.c (turn_on_face, turn_off_face): Removed.
7629 (w32_face_attributes): New function.
7630 (Global_variables): Reduce scope where possible.
7631 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
7632 fill attribute.
7633 (hl_mode): Don't modify text attributes.
7634 (write_glyphs): Don't do anything if len <= 0. Use
7635 w32_face_attributes to get attributes for drawing. Write
7636 terminating codes using char_attr_normal.
7637 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
7638 (update_begin, update_end): Likewise.
7639 (vga_stdcolor_name): New function.
7640 (initialize_w32_display): Remove char_attr_reverse and char_attr.
7641 (Fset_screen_color): Remove char_attr_reverse.
7642
b08e8bb2
GM
76432000-01-29 Gerd Moellmann <gerd@gnu.org>
7644
7645 * xfns.c (xic_set_preeditarea): Take window parameter and
7646 window-relative pixel-positions.
7647
7648 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
7649 is its frame's selected window.
7650 (xim_instantiate_callback): Likewise.
7651
7652 * xfns.c (x_create_im): Removed.
7653 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
7654 (supported_xim_styles): Renamed from supported_styles.
7655 (best_xim_style): Renamed from best_style.
7656 (create_frame_xic): Renamed from xic_create_frame.
7657 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 7658
b08e8bb2
GM
76592000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
7660
7661 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
7662 our frames, call XFilterEvent with 2nd parameter `None'.
7663 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
7664 returning XBufferOverflow.
7665 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
7666 area.
7667 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
7668 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
7669 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
7670 (xim_initialize, xim_close)
7671 [HAVE_X_I18N && HAVE_X11R6]: New functions.
7672 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
7673 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
7674 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
7675
7676 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
7677 and `xim_styles'.
7678 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
7679 `xic_style' and `xic_xfs'.
7680 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
7681 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
7682 (FRAME_XIM): Removed.
7683
7684 * xfns.c (supported_styles): New variable.
7685 (DEFAULT_STYLE, DEFAULT_FONT): New macros
7686 (xic_create_xfontset, best_style, xic_create_frame)
7687 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
7688 (xic_set_xfontset): New functions.
7689
142e109c
DL
76902000-01-28 Dave Love <fx@gnu.org>
7691
7692 * s/irix6-5.h: Revert last change after change to irix5-0.h.
7693
7694 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
7695
b02786f9
GM
76962000-01-28 Gerd Moellmann <gerd@gnu.org>
7697
d060bc9f
GM
7698 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
7699 for *scratch* if it already existed.
7700
b02786f9
GM
7701 * emacs.c (USAGE): New macro.
7702 (main): Use it to display usage information.
7703
2c52d7e4
EZ
77042000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
7705
7706 Support for the menu-help feature:
7707
7708 * msdos.h: Change prototypes of XMenuAddSelection and
7709 XMenuActivate.
7710
7711 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
7712 part of the line to the termscript file.
7713 (IT_clear_to_end): Clear the entire line, not just its beginning.
7714 (menu_help_message, prev_menu_help_message): New variables.
7715 (IT_menu_make_room): Make room for the help_text member.
7716 (IT_menu_display): New argument disp_help; all callers changed.
7717 If disp_help is non-zero, store the help text of the active menu
7718 item in menu_help_message.
7719 (XMenuAddPane): Initialize the help_text member to NULL.
7720 (XMenuAddSelection): New argument help_text. Store it in the
7721 XMenu structure.
7722 (XMenuActivate): New argument help_callback. If the value of
7723 menu_help_message has changed since the last time, display the
7724 menu help message text while waiting for the mouse to move. Clear
7725 the echo area before exiting.
7726 (XMenuDestroy): Free the help_text member.
7727
ffe0bcd1
GM
77282000-01-27 Gerd Moellmann <gerd@gnu.org>
7729
7730 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
7731 XMenuAddSelection. Pass help callback to XMenuActivate.
7732 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
7733
50dbd23f
EZ
77342000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
7735
7736 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
7737 and EMACS_SET_USECS.
7738
f5941bf8
GM
77392000-01-26 Dave Love <fx@gnu.org>
7740
6c67ddee
DL
7741 * editfns.c (Fchar_after, Fchar_before): Doc fix.
7742
f5941bf8
GM
7743 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
7744 an error may be signalled.
7745
9e49c990
GM
77462000-01-26 Gerd Moellmann <gerd@gnu.org>
7747
fc3cb460
GM
7748 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
7749 LD_SWITCH_SYSTEM inherited from irix5-0.h.
7750
9e49c990
GM
7751 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
7752
d0c037d8
GM
77532000-01-25 Gerd Moellmann <gerd@gnu.org>
7754
7755 * charset.c (Fstring): If there is a multibyte char among
7756 the args, always return a multibyte string.
7757
e12489f9
GM
77582000-01-25 Gerd Moellmann <gerd@gnu.org>
7759
7760 * sysdep.c (sys_select): Turn atimers off and on instead of
7761 recording and restoring old alarm handler
7762
7763 * process.c (toplevel): Include atimer.h.
7764 (create_process_1): Rewritten.
7765 (create_process): Use atimers instead of alarm.
7766 (wait_reading_process_input) [hpux]: Turn atimers off instead
7767 of turning off SIGALRM.
7768 (wait_reading_process_input): Turn off atimers instead off
7769 calling stop_polling.
7770
7771 * emacs.c (main): Call init_atimer.
7772
7773 * keyboard.c (toplevel): Include systime.h and atimer.h.
7774 (polling_for_input): Removed because unused.
7775 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
7776 (poll_timer): New variable.
7777 (poll_for_input, poll_for_input_1): New functions.
7778 (start_polling, stop_polling): Rewritten.
7779
7780 * keyboard.h (polling_for_input): Removed.
427ec082 7781
e12489f9
GM
7782 * atimer.h, atimer.c: New files.
7783
7784 * Makefile.in (obj): Add atimer.o.
7785 (atimer.o): New target.
7786
7787 * blockinput.h (pending_atimers): Add extern declaration.
7788 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
7789
7790 * lisp.h (popup_activated_flag): Add extern declaration.
7791
7792 * xmenu.c (popup_activated_flag): Make externally visible.
7793 (popup_activate_callback) [USE_MOTIF]: Increment
7794 popup_activated_flag.
7795 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
7796
7797 * xterm.c (toplevel): Include atimer.h.
7798 (toolkit_scroll_bar_interaction): New variable.
7799 (Fxt_process_timeouts): Removed.
7800 (x_process_timeouts): New function.
7801 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
7802 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
7803 (x_make_frame_visible): Call poll_for_input_1 instead of
7804 input_poll_signal. Don't call alarm.
7805 (x_initialize): Install timer calling x_process_timeouts.
427ec082 7806
1e5279b9
DL
78072000-01-24 Dave Love <fx@gnu.org>
7808
6c67ddee 7809 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
7810 Don't use -cckr -- apparently not now necessary.
7811
edf6aeb8
EZ
78122000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
7813
7814 * msdos.c (IT_menu_display): Truncate long menu lines at the right
7815 screen boundary.
7816
9badad41
JR
78172000-01-23 Jason Rumney <jasonr@gnu.org>
7818
7819 * w32fns.c (w32_defined_color): Apply gamma correction before
7820 trying to map to the palette.
7821 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
7822 to w32_clear_rect.
7823
7824 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
7825 here. Callers changed to always pass real device context.
7826 (w32_draw_bitmap): Likewise.
7827 (w32_get_glyph_overhangs): Likewise.
7828 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
7829 one.
7830 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
7831 pfnSetScrollInfo and SetScrollRange.
7832 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
7833 back into MULE characters after decoding them.
7834 (x_get_glyph_face_and_encoding): Likewise.
7835 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
7836 GetCharABCWidthsW fails, since this is defined on Windows 9x.
7837 (x_produce_glyphs): Calculate per char metrics for a character
7838 that we know exists in default font when font_not_found_p is true.
7839
63bd786b
JR
78402000-01-22 Jason Rumney <jasonr@gnu.org>
7841
7842 * makefile.nt (intervals.obj, composite.obj): New modules.
7843 (composite.h): Added as dependency where appropriate.
7844
7845 * w32gui.h (XGCValue): New struct for emulating X GCs.
7846
7847 * w32term.h (XCharStruct): New struct for emulating X.
7848
7849 * w32console.c (turn_on_face, turn_off_face): New functions.
7850 (change_line_highlight): New prototype for new redisplay.
7851 (write_glyphs): Support multibyte text. Support faces.
7852
7853 * w32faces.c: Complete rewrite for new redisplay based on new
7854 xfaces.c.
7855
7856 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
7857 throughout. struct frame * in place of FRAME_PTR.
7858 Skeleton support for images, toolbars, tooltips from xfns.c.
7859 (Fx_create_frame): Use system default for default scroll bar
7860 width.
7861 (w32_get_arg): Renamed from x_get_arg.
7862 (Fx_file_dialog): New function.
7863 (w32_list_fonts): Check cache before asking system.
7864 (Vw32_enable_synthesized_fonts): New variable.
7865 (Vw32_enable_italics): Obsolete, removed.
7866
7867 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
7868 Use SELECTED_FRAME macro.
7869
7870 * w32menu.c: Add skeleton support for help strings on menus.
7871 (add_menu_item): Native checkbox and radio support added, but not
7872 yet enabled due to bugs.
7873 (push_menu_item): Add parameters type, selection and help.
7874 Callers updated.
7875 Formatting changes to reduce unnecessary diffs with xmenu.c.
7876
7877 * w32select.c (Fw32_set_clipboard_data): Update call to
7878 find_charset_in_str.
7879
7880 * w32term.c: Complete rewrite for new redisplay based on new
7881 xterm.c with necessary sections merged back in from old w32term.c.
7882
6ffd3cf7 78832000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
7884
7885 * data.c (set_internal): Further fix in same criterion.
7886
6ffd3cf7 78872000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
7888
7889 * data.c (set_internal): Fix the criteria for whether
7890 to swap out the old cached binding.
7891
60af03f1
DL
78922000-01-19 Dave Love <fx@gnu.org>
7893
7894 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
7895
f9be074f
KH
78962000-01-18 Kenichi Handa <handa@etl.go.jp>
7897
7898 * regex.c (re_compile_fastmap): While checking a range table for
7899 `charset', skip flag bits for a character class correctly.
7900
52b8dbf9
GM
79012000-01-17 Gerd Moellmann <gerd@gnu.org>
7902
d36100c9
GM
7903 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
7904
52b8dbf9
GM
7905 * xfns.c (x_window): Call lw_create_widget with new parameter
7906 list.
7907
7908 * widget.c (EmacsFrameSetCharSize): Change size of children first
7909 because of problems with main window geometry management under
7910 Lesstif.
7911
7912 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
7913 MENU_ITEMS_ITEM_.*.
7914 (MENU_ITEMS_ITEM_HELP): New enumerator.
7915 (push_menu_item): Add parameter HELP. Record help in menu_items.
7916 (single_menu_item, single_submenu, list_of_items): Call
7917 push_menu_item with new parameter.
7918 (single_submenu): Set help string in widget value.
7919 (menu_highlight_callback): New function.
7920 (set_frame_menubar): Call lw_create_widget with new
7921 parameter list.
7922 (xmenu_show, xdialog_show): Ditto.
7923
3139018f
GM
79242000-01-13 Gerd Moellmann <gerd@gnu.org>
7925
7926 * sound.c (Fplay_sound): Improve doc string.
7927
83c8f461
RS
79282000-01-11 Richard M. Stallman <rms@gnu.org>
7929
7930 * lisp.h (set_internal): Enter the new arg.
7931
7932 * eval.c (specbind): Record buffer-local variables specially,
7933 indicating which buffer's binding was saved.
7934 (unbind_to): Restore buffer-local variables specially
7935 in the proper buffer.
7936
7937 * data.c (set_internal): New arg BUF.
427ec082 7938
83c8f461
RS
7939 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
7940 * data.c (Fset): Pass new arg to set_internal.
7941 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 7942
1fab1775
GM
79432000-01-11 Gerd Moellmann <gerd@gnu.org>
7944
7945 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
7946 xprintsym.
7947
83c8f461 79482000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
7949
7950 * minibuf.c (Ftry_completion): Doc fix.
7951
7a85e4df
GM
79522000-01-11 Gerd Moellmann <gerd@gnu.org>
7953
7954 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
7955 vector, too.
7956
a970dae4
AS
79572000-01-11 Andreas Schwab <schwab@suse.de>
7958
7959 * coding.c (code_convert_region): Initialize total_skip.
7960
c65d14ee
DL
79612000-01-08 Dave Love <fx@gnu.org>
7962
7963 * eval.c (Fuser_variable_p): Check customizability too.
7964
834938d2
GM
79652000-01-07 Gerd Moellmann <gerd@gnu.org>
7966
7967 * minibuf.c (Fcompleting_read): Doc fix.
7968
e0303cd6
GM
79692000-01-05 Gerd Moellmann <gerd@gnu.org>
7970
8a26744b
GM
7971 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
7972 -L /usr/local/lib.
7973
e0303cd6
GM
7974 * xfns.c (x_create_im): New function to set IM and IC of a frame.
7975 Check that input style is supported before trying to create an
7976 IC for it.
7977 (x_window): Call x_create_im.
427ec082 7978
2e471eb5
GM
79792000-01-04 Gerd Moellmann <gerd@gnu.org>
7980
560a7bd2
GM
7981 * xfns.c (current_gif_memory_src): New variable.
7982 (gif_load): Record the address of the current memory source
7983 in current_gif_memory_src.
7984 (gif_read_from_memory): Use current_gif_memory_src.
7985
f9ee84a3
GM
7986 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
7987 macros statement form.
7988
d1299cde
GM
7989 * sound.c (struct sound): Renamed from struct sound_file.
7990 (struct sound): Add members `data' and `header_size'.
7991 (enum sound_attr): Add SOUND_DATA.
7992 (current_sound, current_sound_device): Variables renamed from
7993 sound_file and sound_device.
7994 (parse_sound): Parse :data.
7995 (parse_sound): Handle sound data in strings.
7996 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 7997 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
7998 needed header size.
7999 (wav_play, au_play): Play sounds from string data.
8000
2e471eb5
GM
8001 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
8002
8003 * lisp.h: Add prototype for allocate_string_data.
8004
8005 * alloc.c (Fgarbage_collect): Return number of live and free
8006 strings.
8007
8008 * alloc.c (mark_buffer): Remove code in #if 0.
8009 (gc_sweep): Ditto.
8010 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
8011 (strings_consed): New variable.
8012 (allocate_string): Set it.
8013 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
8014 (Fmemory_use_counts): Return strings_consed. Use Flist.
8015
8016 * alloc.c: General cleanup in comments etc. Remove conditional
8017 compilation for `standalone'.
8018
8019 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
8020
8021 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
8022 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
8023 (DONT_COPY_FLAG): Removed.
8024 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
8025 (struct sdata, struct sblock): New
8026 (struct string_block): Rewritten.
8027 (STRINGS_IN_STRING_BLOCK): New macro.
8028 (oldest_sblock, current_sblock, total_strings, total_free_strings)
8029 (large_sblocks, string_blocks, string_free_list): New variables.
8030 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
8031 (init_strings): Rewritten.
8032 (allocate_string, allocate_string_data, compact_small_strings)
8033 (free_large_strings, sweep_strings): New functions.
8034 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
8035 (struct string_block_head, current_string_block)
8036 (first_string_block, large_string_blocks, STRING_FULLSIZE)
8037 (STRING_PAD): Removed.
8038 (make_uninit_multibyte_string, make_pure_string): Rewritten.
8039 (Fgarbage_collect): Don't set mark bit in large strings.
8040 (mark_object): Mark strings differently. Mark symbol names
8041 differently.
8042 (survives_gc_p): Test marked strings differently.
427ec082 8043 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
8044 symbol names.
8045 (compact_strings): Removed.
8046
42608ba8
EZ
80472000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
8048
8049 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
8050 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
8051
e0a09e1a
KH
80522000-01-04 Kenichi Handa <handa@etl.go.jp>
8053
dd9f0750 8054 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 8055 in a non-empty buffer.
dd9f0750 8056
3c0f3b15 8057 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 8058
44cd3ae5
GM
80592000-01-03 Gerd Moellmann <gerd@gnu.org>
8060
8061 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
8062 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
8063
8064 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
8065
c182a70f
EZ
80662000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
8067
8068 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
8069 need to test for MSDOS frames.
8070
24480d5b
EZ
80712000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
8072
8073 * dosfns.c (unspecified_colors): Remove.
8074 (msdos_stdcolor_idx): Use global variables unspecified_fg and
8075 unspecified_bg.
8076 (msdos_stdcolor_name): Return strings for unspecified fore- and
8077 back-ground colors.
8078
8079 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 8080 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
8081 (tty_color_name): Return Lisp strings for unspecified fore- and
8082 back-ground colors.
8083 (Finternal_set_lisp_face_attribute): Remove the special treatment
8084 for Qunspecified_{f,b}g.
8085 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
8086 string.
8087
047f434a
GM
80882000-01-03 Gerd Moellmann <gerd@gnu.org>
8089
8090 * xdisp.c (reseat_at_next_visible_line_start): Position before
8091 newline only if ending up on a newline.
8092 (next_element_from_ellipsis): Return success. Handle case of
8093 displaying no ellipsis. Fix case of ellipsis defined in display
8094 table.
8095 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
8096 returns 0.
8097
d684c676
EZ
80982000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
8099
8100 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
8101 (Fcolor_supported_p): Renamed from face-color-supported-p.
8102
5fe1d139
EZ
81032000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
8104
8105 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
8106 list of colors renamed to tty-defined-color-alist.
8107 (tty_color_name): Pass the frame to tty-color-by-index.
8108 (realize_tty_face): tty-color-alist is now a function which
8109 accepts the frame as argument.
8110
8111 * term.c (Ftty_display_color_p): Accept an optional argument
8112 FRAME.
8113
816be8b8
EZ
81142000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
8115
8116 * term.c (insert_glyphs): Pass glyph, not &glyph, to
8117 encode_terminal_code.
8118
b635321e
EZ
81192000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
8120
8121 * dispnew.c (mode_line_string): Support termcap frames as well.
8122
9b784e96
GM
81232000-01-01 Gerd Moellmann <gerd@gnu.org>
8124
27189709
GM
8125 * syntax.c (Fforward_word): Undo previous change.
8126
8127 * editfns.c (Fconstrain_to_field): Don't constrain if
8128 inhibit-field-text-motion is non-nil.
8129 (Fline_beginning_position): Undo previous change.
8130 (Fline_end_position): Ditto.
8131
8132 * syntax.c (Fforward_word): Notice field boundaries only if
8133 inhibit-field-text-motion is nil.
8134
8135 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
8136
8137 * editfns.c (Vinhibit_field_text_motion): New variable.
8138 (inhibit-field-text-motion): New DEFVAR_LISP.
8139 (Fline_beginning_position, Fline_end_position): Notice field
8140 boundaries only if inhibit-field-text-motion is nil.
8141
45158a91
GM
8142 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
8143 All calls adjusted.
8144 (x_build_heuristic_mask): Likewise.
8145 (xbm_load_image_from_file): Change error output.
8146 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
8147 (gif_load, gs_load, x_kill_gs_process): Ditto.
8148
9b784e96
GM
8149 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
8150 color indices when accessing raster pixels.
63cec32f
GM
8151 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
8152 one of :file or :data.
8153 (enum pbm_keyword_index): Add PBM_DATA.
8154 (pbm_format): Add :data.
8155 (pbm_image_p): Allow either :file or :data.
8156 (pbm_read_file): New function.
8157 (pbm_scan_number): Rewritten to read from string.
8158 (pbm_load): Support :data.
9b784e96 8159
2cb085db 8160See ChangeLog.8 for earlier changes.
6922b018
KH
8161
8162;; Local Variables:
49b3bd82 8163;; coding: iso-2022-7bit
6922b018 8164;; End: