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