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