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