(outline-mode): Use `^' and a shy group
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f4a374a1
GM
12001-09-10 Gerd Moellmann <gerd@gnu.org>
2
300e57bd
GM
3 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4
5 * dispnew.c (direct_output_for_insert): Don't change IT's
6 stop_charpos to something in front of its current position.
7
f4a374a1
GM
8 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
9 `format'.
10
7e4cbc91
RS
112001-09-10 Richard M. Stallman <rms@gnu.org>
12
13 * frame.c (Fmouse_position): Doc fix.
14
6afad91e
GM
152001-09-07 Gerd Moellmann <gerd@gnu.org>
16
17 * xdisp.c (init_from_display_pos): Don't compare the result
18 of calling index with NULL.
19
f76e0368
GM
202001-09-06 Gerd Moellmann <gerd@gnu.org>
21
22 * xfns.c (x_set_background_color): Don't change the colors
23 of the X window of scroll bar widgets.
24
9ead1b60
AI
252001-09-05 Andrew Innes <andrewi@gnu.org>
26
27 * w32fns.c (w32_createwindow): Undo last change.
28
c3b497b3
GM
292001-09-05 Gerd Moellmann <gerd@gnu.org>
30
08e1d6df
GM
31 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
32
c3b497b3
GM
33 * xdisp.c (string_buffer_position): Use *single_char_property*
34 functions instead of the *single_property* functions.
35
8f860180
AI
362001-09-04 Andrew Innes <andrewi@gnu.org>
37
38 * w32term.c (w32_read_socket): Add more information to debugging output.
39
40 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
41 from Emacs frames, so that calls to GetClipBox in w32term.c
42 correctly report when part of a frame is visible (including
43 scrollbars, etc). This prevents repeated redrawing of frames when
44 only a scrollbar is visible.
45 (w32_wnd_proc): Add more frame information to debugging output.
46
2ee1aa00
SM
472001-09-03 Stefan Monnier <monnier@cs.yale.edu>
48
49 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
50
e3b22517
GM
512001-09-03 Gerd Moellmann <gerd@gnu.org>
52
7e376260
GM
53 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
54 help-echo for a string which doesn't have help-echo itself, use
55 get-char-property to obtain the help-echo from the string's buffer
56 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
57 have mouse-face, look ``under'' the string for mouse-face from an
58 overlay.
59 (fast_find_position): Add parameter STOP. In the final row, stop
60 before glyphs having STOP as object. Don't consider glyphs that
61 are not from a buffer.
62
e3b22517
GM
63 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
64
9a249bba
EZ
652001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
66
67 * fns.c (Fmd5): Doc fix.
68
c9979669
GM
692001-08-31 Gerd Moellmann <gerd@gnu.org>
70
71 * composite.c (update_compositions): Do nothing if
72 inhibit-modification-hooks is set.
73
9584e63a
GM
742001-08-30 Gerd Moellmann <gerd@gnu.org>
75
986ec8f2 76 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 77 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
78 glyph matrices etc. in a core dump.
79
92a25631
GM
80 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
81 (syms_of_xdisp): Initialize them.
82 (handle_single_display_prop): Don't change point, bind `object',
83 `position', and `buffer-position' instead to the object having the
2ee1aa00 84 `display' property, position in the object and position in the buffer.
92a25631 85
9584e63a
GM
86 * fileio.c (Finsert_file_contents): Don't change the multibyteness
87 of the buffer if REPLACE is non-nil.
88
d38633a3
GM
892001-08-29 Gerd Moellmann <gerd@gnu.org>
90
91 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
92
f4fccc1e
EZ
932001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
94
95 * w32term.c (x_set_glyph_string_background_width)
96 (show_mouse_face): Track the last changes in xterm.c.
97
eaaa65b0
GM
982001-08-28 Gerd Moellmann <gerd@gnu.org>
99
7b0870b2
GM
100 * xterm.c (x_set_glyph_string_background_width): Set the glyph
101 string's background width so that multi-line mouse-face is drawn
102 to the right edge of the window.
103 (show_mouse_face): Set the row's mouse_face_p flag after drawing
104 glyphs.
105
6b6e2422 106 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 107 before inserting/writing glyphs.
6b6e2422 108
eaaa65b0
GM
109 * xdisp.c (display_mode_element): Use string_byte_to_char to
110 determine character positions in strings, use chars_in_text
111 instead of strwidth.
112 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
113 a matrix as parameter; this is easier to use from GDB.
114
9ad62cf8
MB
1152001-08-28 Miles Bader <miles@gnu.org>
116
2ee1aa00
SM
117 * textprop.c (Fprevious_single_char_property_change)
118 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 119
32171635
GM
1202001-08-27 Gerd Moellmann <gerd@gnu.org>
121
47d57b22
GM
122 * fileio.c (Finsert_file_contents): Allocate, restore, and
123 free composition data in the case of REPLACE not being nil.
124
125 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
126 there exist overlay strings with newlines at POS.
127 (text_outside_line_unchanged_p): Return 0 if changes start at
128 START and overlays exist at START. Likewise for END.
129 (try_window_id): Give up if init_to_row_end returns 0.
130
32171635
GM
131 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
132 unconditionally.
133
e1249666
GM
1342001-08-24 Gerd Moellmann <gerd@gnu.org>
135
33954c45
GM
136 * keymap.c (access_keymap): Return the cdr of the binding of
137 a generic character instead of its definition (KEY . BINDING).
138
e1249666
GM
139 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
140 to 0 also in the REPLACE case.
141
fb4c6c96
AC
1422001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
143
144 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
145 open to determine whether file is readable (as for DOS_NT).
146
59ecf80b
GM
1472001-08-23 Gerd Moellmann <gerd@gnu.org>
148
149 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
150 coding.type is coding_type_no_conversion or coding_type_raw_text,
151 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
152 non-nil instead of just setting enable_multibyte_characters in the
153 buffer to nil.
154
40e33037
GM
1552001-08-22 Gerd Moellmann <gerd@gnu.org>
156
374388c3
GM
157 * dispextern.h (struct face_cache): Add member
158 menu_face_changed_p.
159
160 * xfaces.c (menu_face_changed_default): New variable.
161 (menu_face_changed_count): Variable removed.
162 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
163 the menu_face_changed_default flag, otherwise set the FRAME's
164 menu_face_changed_p flag if the `menu' face has been changed.
165 Prevent calling set_font_frame_param if FRAME is t.
166 (make_face_cache): Initialize cache's menu_face_changed_p
167 from menu_face_changed_default.
168 (realize_basic_faces): Look into the frame's face cache to
169 determine if the menu appearance needs updating.
170
40e33037
GM
171 * keymap.c (access_keymap): Fix last change to not consider
172 IDX when it has modifiers.
173
859ea4b8
GM
1742001-08-21 Gerd Moellmann <gerd@gnu.org>
175
176 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
177 . BINDING) exists, where GENERIC-CHAR is the generic character of
178 the charset of IDX, return BINDING unless there exists a binding
179 for IDX itself.
180
e8660d73
GM
1812001-08-16 Gerd Moellmann <gerd@gnu.org>
182
cca1b1d7
GM
183 * xrdb.c (SYSV): Don't define on Solaris 2.
184 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
185
e8660d73 186 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 187 of the screen line, not text line, containing IT's current position.
e8660d73 188
93aba6fc
GM
1892001-08-15 Gerd Moellmann <gerd@gnu.org>
190
288d4e06
GM
191 * window.c (window_scroll_pixel_based): Don't recenter if
192 PT is partially visible in the window.
193
3452efc2
SM
194 * xterm.c (expose_window_tree, expose_window, expose_line):
195 Return 1 when overwriting mouse-face.
82f053ab
GM
196 (expose_frame): If mouse-face was overwritten, redo it.
197
93aba6fc
GM
198 * xfaces.c (x_update_menu_appearance): Don't call
199 set_frame_menubar, let the next redisplay do it.
200
858a55c1
AI
2012001-08-14 Andrew Innes <andrewi@gnu.org>
202
203 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
204 drawing glyph string.
205
3a990b67
EZ
2062001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
207
208 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
209 running HI-UX/MPP.
210
04386463
GM
2112001-08-14 Gerd Moellmann <gerd@gnu.org>
212
213 * xfaces.c (x_update_menu_appearance): Save and restore value of
214 interrupt_input_blocked.
215
3e6385a4
GM
2162001-08-13 Gerd Moellmann <gerd@gnu.org>
217
b0e619b4
GM
218 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
219 a line start, move back to the line start.
3452efc2 220
0de73d5a
GM
221 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
222 exactly when a mini-buffer is active.
223
3e6385a4
GM
224 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
225 in units of 1/8 character on non window-system frames.
226 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
227
d1b5f629
EZ
2282001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
229
230 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
231 a doc string.
232
eaa2319f
GM
2332001-08-09 Gerd Moellmann <gerd@gnu.org>
234
8e3189f0
GM
235 * keyboard.c (Vpre_help_message): New variable.
236 (syms_of_keyboard): Initialize and staticpro it.
237 (show_help_echo): Record current message before displaying a
238 help-echo, and restore that message when clearing the help.
239
eaa2319f
GM
240 * xfns.c (x_create_im): Remove prototype.
241
242 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
243
244 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 245
eaa2319f
GM
2462001-08-08 Gerd Moellmann <gerd@gnu.org>
247
248 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 249 windows whose height has changed, disable partially visible lines.
eaa2319f 250
17fdcfc8
GM
2512001-08-07 Gerd Moellmann <gerd@gnu.org>
252
22d01aed 253 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 254 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 255
17fdcfc8
GM
256 * xdisp.c (start_display): Don't try to determine the continuation
257 lines width if lines are truncated. It's superfluous and leads to
258 incorrect results if POS is not visible in the window after
259 reseating the iterator at the previous line start.
260
8e3fe78e
GM
2612001-08-06 Gerd Moellmann <gerd@gnu.org>
262
263 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
264
98a8938c
GM
2652001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
266
267 * alloc.c (init_stack): Remove declaration.
268
18f9986a
GM
2692001-08-03 Gerd Moellmann <gerd@gnu.org>
270
5e1f85e0
GM
271 * keyboard.c (read_key_sequence): Check that key is an integer
272 before comparing it with quit_char.
273 (add_command_key): Use larger_vector.
274 (read_char_x_menu_prompt): Instead of converting symbol and
275 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 276 which cannot be confused with valid events.
5e1f85e0
GM
277 (read_char): When reading from Vunread_command_events, check for
278 events of the form (EVENT . disabled) instead of
279 (EVENT . nil).
280
18f9986a
GM
281 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
282 a float, determine the max height from the frame's height.
283
fbc7f2a6
GM
2842001-08-02 Gerd Moellmann <gerd@gnu.org>
285
286 * xdisp.c (redisplay_internal): Take message_cleared_p into
287 account only if minibuf_level == 0.
288
81b1a79d
GM
2892001-08-01 Gerd Moellmann <gerd@gnu.org>
290
e5c60873
GM
291 * xdisp.c (redisplay_internal): Add a check for the last
292 displayed message.
3452efc2 293
6e019995
GM
294 * xdisp.c (message_cleared_p): New variable.
295 (clear_message): Set message_cleared_p when clearing the current
296 message.
297 (redisplay_internal): Look at message_cleared_p to capture
298 the case that the echo area should be cleared.
299
308a74d8
GM
300 * keyboard.c (command_loop_1): Fix spelling of
301 resize_echo_area_exactly.
302
3452efc2 303 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
304
305 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
306
81b1a79d
GM
307 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
308 current matrix when the window gets smaller.
309
ada329e6
EZ
3102001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
311
312 * print.c (strout): Cast the character passed to insert_char to
313 unsigned char, to avoid sign extension when it is promoted to int.
314
ed86208c
GM
3152001-07-31 Gerd Moellmann <gerd@gnu.org>
316
317 * fileio.c (Finsert_file_contents): Don't treat a return value
318 of 0 from emacs_read as an IO error.
319
6594ac22
GM
3202001-07-30 Gerd Moellmann <gerd@gnu.org>
321
cef68af5
GM
322 * keyboard.c (abs): New macro.
323 (double_click_fuzz): New variable.
324 (make_lispy_event): Use it to determine what makes a double-click.
325 (syms_of_keyboard): DEFVAR_INT it.
326
6594ac22
GM
327 * xmenu.c (set_frame_menubar): Take into account that
328 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
329 <raeburn@gnu.org>.
330
75c5350a
GM
3312001-07-27 Gerd Moellmann <gerd@gnu.org>
332
333 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
334
335 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
336 of row's visible height.
337
338 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
339 deal with the first overlay string having an image `display' property.
340 (try_window_reusing_current_matrix, compute_line_metrics):
341 Fix computation of row's visible height for the case that part of the
75c5350a
GM
342 row is invisible above and part of the row is at the same time
343 invisible below the window.
344
ac49effe
GM
3452001-07-26 Gerd Moellmann <gerd@gnu.org>
346
347 * xfns.c (x-show-tip): Doc fix.
3452efc2 348
ac49effe
GM
349 * xfns.c (Vx_max_tooltip_size): New variable.
350 (syms_of_xfns): DEFVAR_LISP it.
351 (Fx_show_tip): Set frame's window_width to the width of the
352 window. Use a maximum tooltip size specified by
353 Vx_max_tooltip_size, if that has valid contents.
354 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 355
8c3b00cb
AI
3562001-07-26 Andrew Innes <andrewi@gnu.org>
357
358 * w32term.c (x_display_list): New variable.
359 (w32_term_init): Set it.
360
361 * w32term.h (x_display_list): New extern.
362
16098288
GM
3632001-07-26 Gerd Moellmann <gerd@gnu.org>
364
365 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
366 is non-nil, instead of when redisplaying_p is non-zero.
367 See comment there.
16098288
GM
368 (mark_window_display_accurate_1): Add an assertion.
369
64c5be50
GM
3702001-07-25 Gerd Moellmann <gerd@gnu.org>
371
e743f599
GM
372 * dispextern.h (struct it): Increase size of ctl_chars to 16.
373
563b384d
GM
374 * xfns.c (Fx_file_dialog): Block/unblock input while processing
375 events so that we get a chance of processing expose events.
376
64c5be50
GM
377 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
378
296808a5
GM
3792001-07-24 Gerd Moellmann <gerd@gnu.org>
380
381 * xfns.c (valid_image_p): Protect better against invalid image
382 specifications. Previous code could signal an error.
383
5247262a
GM
3842001-07-23 Gerd Moellmann <gerd@gnu.org>
385
3452efc2 386 * indent.c (current_column): Fix column computation in the
f1004faf
GM
387 presence of display table entries.
388 (current_column_1, Fmove_to_column, compute_motion): Likewise.
389
dd42b31a
GM
390 * dispnew.c (adjust_glyph_matrix): In the optimization for
391 windows whose height has changed, use the new window height
392 to compute which rows to invalidate.
393
9e5a7f2a
GM
394 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
395 (MAX_10_EXP): New macro.
396 (Fformat): Use it.
397
5247262a
GM
398 * coding.c (code_convert_region): Handle the multibyte case if
399 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
400
177ab8ce
GM
4012001-07-20 Gerd Moellmann <gerd@gnu.org>
402
6e07c0a5
GM
403 * dispextern.h (struct face): Change type of `stipple' to
404 int; it's an ID.
405
177ab8ce
GM
406 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
407
b5b80599
GM
4082001-07-19 Gerd Moellmann <gerd@gnu.org>
409
4e2a256b
GM
410 * dispnew.c (update_window): Don't set the cursor at the end
411 of the update if display update has been paused.
412
3452efc2 413 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 414
c1fd9232
KR
4152001-07-18 Ken Raeburn <raeburn@gnu.org>
416
417 * fns.c (Fset_char_table_default): Check that a charset is defined
418 before checking its dimension.
419
928a85c1
KR
4202001-07-17 Ken Raeburn <raeburn@gnu.org>
421
422 * coding.c (setup_coding_system): Don't do any designation based
423 on reg_bits if charset is not yet defined.
424
fb4c6c96 425 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
426 pointer, using eassert.
427
de11c1ea
GM
4282001-07-17 Gerd Moellmann <gerd@gnu.org>
429
3452efc2
SM
430 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
431 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 432
467f1209
GM
4332001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
434
435 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
436
c3d6be34
GM
4372001-07-16 Gerd Moellmann <gerd@gnu.org>
438
c1d61a7d
GM
439 * fileio.c (unwind_read): Function removed.
440 (read_non_regular, read_non_regular_quit): New functions.
441 (Finsert_file_contents): When reading from non-regular files,
442 arrange to catch a `quit' and terminate the loop. Rearrange
443 code so that a `quit' when reading from a regular file doesn't
444 insert text in the buffer.
445
c3d6be34
GM
446 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
447 Clear faces afterwards.
448 (clear_font_table): Take a x_display_info parameter. Don't free
449 fonts being the default font of any frame on the given display.
450
e06aa1f9
GM
4512001-07-13 Gerd Moellmann <gerd@gnu.org>
452
453 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
454 instead of CHAR_STRING which can signal an error.
455
456 * charset.c (char_to_string_1): Extracted from char_to_string.
457 Return -1 instead of signaling an error.
458 (char_to_string): Use it.
459
460 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
461
176c92e6
SM
4622001-07-12 Stefan Monnier <monnier@cs.yale.edu>
463
464 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
465 is t, don't try to append anything to it.
466
1c56232f
EZ
4672001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
468
469 * dired.c (file_name_completion): Pass dp->d_name to
470 Fstring_match, not elt, which is always nil here.
471
1d2b2268
GM
4722001-07-12 Gerd Moellmann <gerd@gnu.org>
473
474 * xselect.c (x_decline_selection_request): Handle errors
475 caused by receivers that have vanished.
476
477 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
478 ignoring events on foreign windows in #if 0. Always dispatch
479 the event after checking it with x_handle_property_notify.
480
481 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
482 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
483 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
484 (toplevel): Add prototypes for file-local functions.
485 (x_atom_to_symbol): Remove DPYINFO parameter.
486
fe5a0162
SM
4872001-07-11 Stefan Monnier <monnier@cs.yale.edu>
488
489 * w32menu.c (menubar_selection_callback, w32_menu_show):
490 Initialize `entry' to nil.
491 (w32_dialog_show): Remove unused `save_wv' variable.
492 (name_is_separator): Recognize "--:foo" and "--foo-bar".
493
a777242c
GM
4942001-07-11 Gerd Moellmann <gerd@gnu.org>
495
8ee5b6a3
GM
496 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
497
d0e2444e
GM
498 * fileio.c (unwind_read): Print a message when discarding inserted
499 text or switching the buffer to unibyte. Change parameter.
500 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 501
a777242c
GM
502 * fileio.c (unwind_read): New function.
503 (Finsert_file_contents): Record it as unwind-function for
504 the case that reading is interrupted by C-g.
505
ae794295
GM
5062001-07-10 Gerd Moellmann <gerd@gnu.org>
507
fe5a0162 508 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
509 update when scrolling_window returns 0.
510
6b05fae3
GM
511 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
512
513 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 514 for the case that x_decode_color signals an error.
6b05fae3 515
ae794295
GM
516 * xdisp.c (add_to_log): Do nothing if called asynchronously.
517
bb6e8cee
GM
5182001-07-09 Gerd Moellmann <gerd@gnu.org>
519
520 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
521 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
522 around ioctls.
523
36b40a8a
EZ
5242001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
525
24b97d4b
EZ
526 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
527 doc string line for dos-timezone-offset.
528
36b40a8a
EZ
529 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
530 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
531 (syms_of_msdos): Add \n\ at the end of a line in the doc string
532 line for dos-unsupported-char-glyph.
36b40a8a
EZ
533
534 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
535
0967b4b0
GM
5362001-07-05 Gerd Moellmann <gerd@gnu.org>
537
f25cfe53
GM
538 * sound.c: Include Emacs' header files with #include "...".
539
0967b4b0
GM
540 * eval.c (specbind): Additionally record the buffer that was
541 current when a buffer-local or frame-local variable was bound.
542
c347a1c3
GM
5432001-07-04 Gerd Moellmann <gerd@gnu.org>
544
545 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
546 to unibyte characters in unibyte buffers.
547
6332ca8a
GM
5482001-07-03 Gerd Moellmann <gerd@gnu.org>
549
38472d44
GM
550 * eval.c (specbind): If SYMBOL has a frame-local binding, record
551 the frame on the binding stack. Change format of entries for
552 local bindings on the binding stack to '(SYMBOL . WHERE)'.
553 (unbind_to): Handle unbinding a frame-local variable.
554
6332ca8a 555 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 556 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
557 (dump_glyph_row): Print row's continuation_lines_width.
558 (try_window_id): Take the shortcut if ZV is visible in the
559 window, but there are actually no changes at ZV.
560
63d1b174
GM
5612001-07-02 Gerd Moellmann <gerd@gnu.org>
562
4c175203
GM
563 * xterm.h (x_free_dpy_colors): Add prototype.
564
565 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
566 right number of arguments.
567
0b54ce28
GM
568 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
569 ($(lwlibdir)TAGS): New target.
4c175203 570 (TAGS): Fix dependency list.
0b54ce28 571
63d1b174
GM
572 * xterm.c (x_list_fonts): Make sure XFreeFont is called
573 with input blocked.
574
d827466c
GM
5752001-06-30 Gerd Moellmann <gerd@gnu.org>
576
577 * emacs.c (main): Remove extern declaration for sys_nerr, which
578 isn't used and causes a compilation error with GCC 3.0 on
579 FreeBSD 4.3.
580
b5cb1ada
GM
5812001-06-27 Gerd Moellmann <gerd@gnu.org>
582
a5d3ec3f 583 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 584 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
585 (toplevel): Include <signal.h> and syssignal.h.
586
b5cb1ada
GM
587 * sound.c (vox_configure, vox_close): Turn off atimers
588 around ioctls.
589
d9bad487
GM
5902001-06-26 Gerd Moellmann <gerd@gnu.org>
591
fdbb67fe
GM
592 * keyboard.c (read_char) <non_reread>: Record the previous idle
593 start time before calling timer_stop_idle.
594 (read_char) <reread_first>: After processing a help-echo event,
595 restore the previous idle start time.
596
d9bad487
GM
597 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
598 the start of invisible text.
599 (setup_for_ellipsis): New function.
600 (next_overlay_string): After all overlay strings have been
601 processed, display an ellipsis if necessary.
602 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
603 (push_it): Initialize display_ellipsis_p on the iterator's stack.
604
605 * dispextern.h (struct iterator_stack_entry): Add member
606 display_ellipsis_p.
607
2b9c25e0
GM
6082001-06-25 Gerd Moellmann <gerd@gnu.org>
609
80de57df
GM
610 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
611 on the value of the wait-for-wm frame parameter.
612
613 * xterm.h (struct x_output): Add member wait_for_wm.
614
615 * xfns.c (Qwait_for_wm): New variable.
616 (x_frame_parms): Add entry for `wait-for-wm".
617 (x_set_wait_for_wm): New function.
618 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
619 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
620
2b9c25e0
GM
621 * xdisp.c (try_window_id) <all changes below window end>: Don't
622 take this shortcut if ZV is visible in the window.
623 (try_window_id): When checking for window start being in changed
624 text, don't check that the buffer's size has changed.
625
f772775c
RS
6262001-06-23 Richard M. Stallman <rms@gnu.org>
627
628 * minibuf.c (Fcompleting_read): Doc fix.
629
fa9090b8
GM
6302001-06-19 Gerd Moellmann <gerd@gnu.org>
631
632 * composite.c (Ffind_composition_internal): Accept ZV
633 and a string's end position as POS.
634
f6f1beba
GM
6352001-06-18 Gerd Moellmann <gerd@gnu.org>
636
637 * composite.c (Ffind_composition_internal): Check POS
638 for validity.
639
0ae83348
EZ
6402001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
641
642 * editfns.c (Fmessage_box): If the frame is not under a window
643 system, output the message in the echo area.
644
e4cdc335
RS
6452001-06-14 Richard M. Stallman <rms@gnu.org>
646
647 * xdisp.c (try_window_id): When EOB is visible, don't treat
648 insertion at EOB as if it were "off the bottom of the screen."
649
a55a5f3c
AI
6502001-06-11 Andrew Innes <andrewi@gnu.org>
651
652 * w32proc.c (create_child): Add new parameter is_gui_app.
653 (w32_executable_type): Add new parameter is_gui_app.
654 (sys_spawnve): Use it.
655 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
656 SIGQUIT. This matches better how the signals are interpreted by
657 MSVC compiled programs.
658 (syms_of_ntproc): Update docstring.
659
1b85dc1c
SM
6602001-06-02 Stefan Monnier <monnier@cs.yale.edu>
661
662 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
663 well otherwise note_mouse_highlight might optimize away highlighting
664 if we pass over that same overlay again.
665
b75f8eab
EZ
6662001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
667
668 * lread.c (Fload): Document that the argument is run via
669 substitute-in-file-name.
670
94843cc1
GM
6712001-05-31 Gerd Moellmann <gerd@gnu.org>
672
b14659e6
GM
673 * Makefile.in (bootstrap-doc): New target.
674 (bootstrap-emacs): Depend on it.
675
0894672f
GM
676 * fileio.c (Fdo_auto_save): Don't try to create the directory of
677 auto-save-list-file-name when shutting down Emacs, because
678 creating the directory might signal an error, and leaves
679 Emacs in a strange state.
680
94843cc1
GM
681 * term.c: (tty_cursor_hidden): New variable.
682 (update_begin): Don't call tty_hide_cursor. Clean up.
683 (update_end, set_terminal_window, set_scroll_region): Clean up.
684 (ring_bell, reset_terminal_modes): Clean up.
685 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
686 on tty_cursor_hidden.
687 (write_glyphs): Call tty_hide_cursor.
688
db3a49a6
SM
6892001-05-30 Stefan Monnier <monnier@cs.yale.edu>
690
691 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
692
8bd189fb
GM
6932001-05-30 Gerd Moellmann <gerd@gnu.org>
694
6f1be3b9
GM
695 * xfns.c (enum image_value_type): New enumerator
696 IMAGE_STRING_OR_NIL_VALUE.
697 (parse_image_spec): Handle it.
698 (xbm_format, pbm_format): Use it for :foreground and :background.
699 (xbm_load, pbm_load): Check for nil color names.
700
8bd189fb
GM
701 * xterm.c (note_mouse_highlight): If an overlapping overlay
702 exists, but we find that we highlight the same overlay as before,
703 don't do the highlighting again.
704
7bdba03c
GM
7052001-05-29 Gerd Moellmann <gerd@gnu.org>
706
4c329aa8
GM
707 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
708 Protect unibyte strings created by replacing their multibyte
709 equivalents in menu_items.
710
e15e2828
GM
711 * keymap.c (Fsingle_key_description): NUL-terminate the string
712 buffer before calling build_string.
713
7bdba03c
GM
714 * callproc.c (Fcall_process): Deal with decode_coding returning
715 CODING_FINISH_INCONSISTENT_EOL.
716
89c8dc6c
GM
7172001-05-28 Gerd Moellmann <gerd@gnu.org>
718
db3a49a6 719 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
720 an item's name with its key description in case the description
721 is a multibyte string.
722
723 * keymap.c (Fsingle_key_description): Create a multibyte string
724 only if necessary.
725
eb04d6cd
GM
726 * macros.c (Fstart_kbd_macro): Doc fix.
727
8bd6307f
GM
728 * xterm.c (cursor_in_mouse_face_p): New function.
729 (x_draw_stretch_glyph_string): Use it to choose a different GC
730 when drawing a cursor within highlighted text.
731
e26c4089
GM
732 * editfns.c (char_property_eq): Put in #if 0.
733
734 * indent.c (string_display_width): Put in #if 0.
735
736 * lread.c (Fload): Remove unused label.
737
89c8dc6c
GM
738 * termcap.c (speeds): Put in #if 0.
739
9a1211f2
GM
7402001-05-18 Gerd Moellmann <gerd@gnu.org>
741
29148a3f
GM
742 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
743
9a1211f2
GM
744 * xfaces.c (xlfd_point_size): Don't divide pixel size from
745 transformation matrix by 10.
746
09393d07
GM
7472001-05-16 Gerd Moellmann <gerd@gnu.org>
748
749 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
750 only if it's equal to the former foreground pixel color.
db3a49a6 751 (x_set_foreground_color, x_set_background_color)
09393d07
GM
752 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
753
460e6bae
GM
7542001-05-16 Dave Love <fx@gnu.org>
755
756 * insdel.c (signal_before_change, signal_after_change): Consider a
757 local change hook which changes the buffer.
99c78ce8
GM
758
759 * process.c (read_process_output): Don't call signal_after_change
760 and update_compositions after insert_from_string_before_markers.
761
dbcf3c03
GM
7622001-05-16 Gerd Moellmann <gerd@gnu.org>
763
a90b3d3c
GM
764 * xfaces.c (split_font_name): Use the right field when
765 checking for `[...]' syntax.
766
1b7818b4
GM
767 * buffer.c (copy_overlays): New function.
768 (clone_per_buffer_values): Use it.
769
770 * buffer.h (OVERLAY_PLIST): New macro.
771
9bae8781
GM
772 * keymap.c (Fsingle_key_description): Replace a build_string with
773 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
774
dbcf3c03
GM
775 * fontset.c (Ffontset_info): Check that face is non-null
776 before accessing its fields.
777
8a1ae4dd
GM
7782001-05-15 Gerd Moellmann <gerd@gnu.org>
779
18a0a39e
GM
780 * keyboard.c (read_key_sequence): Prevent generating a fake
781 prefix key twice.
782
e335b66a
GM
783 * xfaces.c (split_font_name): Handle `[...]' for the right
784 font name fields.
785
8a1ae4dd
GM
786 * ccl.c (ccl_driver): Don't copy remaining bytes in case
787 of CCL_STAT_INVALID_CMD.
788
3cf80731
SM
7892001-05-14 Stefan Monnier <monnier@cs.yale.edu>
790
33568849
SM
791 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
792 in <var> has no default value yet.
793
3cf80731
SM
794 * xfaces.c (try_alternative_families): First try the FAMILY.
795 And if nothing is found in the end, try again with scalable fonts.
796 (try_font_list): Let try_alternative_families do a bit more of
797 the work. Only use FAMILY if it is not nil.
798 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
799
933b0249
GM
8002001-05-14 Gerd Moellmann <gerd@gnu.org>
801
58e5af83
GM
802 * xterm.c (note_mouse_highlight): Avoid changing the mouse
803 pointer shape when show_mouse_face has already done it.
33568849 804
58e5af83 805 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
806 full-width rows.
807
7b16a6bf
GM
808 * xfaces.c (split_font_name): Make sure to leave the loop
809 with the right value of `i'.
3cf80731 810
933b0249
GM
811 * xfaces.c (split_font_name): Handle matrix transformations
812 in the pixel and point size fields of XLFD font names.
813 (xlfd_point_size): Likewise.
814
dddcbf00
EZ
8152001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
816
3cf80731 817 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
818 (x_to_w32_font): Add prototype.
819
7689ef0b
EZ
820 * regex.c (malloc, realloc, free) [emacs]: Undefine before
821 redefining, to avoid compiler warnings.
822
e7c15bba
EZ
823 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
824
dddcbf00
EZ
825 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
826 (w32_get_bdf_glyph): Cast between unsigned char and char when
827 passing arguments to subroutines, to shut up compiler warnings.
828 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
829 GET_HEX_VAL.
830
831 * xfaces.c: Include keyboard.h before frame.h, not after it.
832
833 * widget.c: Include keyboard.h before frame.h.
834
835 * w32term.h (struct image, struct face): Forward declaration, to
836 avoid compiler warnings.
837
7bd2d083
GM
8382001-05-11 Gerd Moellmann <gerd@gnu.org>
839
47e72862
GM
840 * keyboard.c (read_key_sequence): Don't modify events when
841 generating fake prefix keys (mode-line, scroll-bar, ...) since
842 this prevents proper processing of such events when pushed back
843 into unread-command-events.
844
dd5f324b
GM
845 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
846 actually redrawn. Make the function static.
847 (note_mouse_highlight): Fix a case where the mouse cursor
848 was changed back to the text cursor.
849
850 * xterm.h (clear_mouse_face): Remove prototype.
851
d88a79d4
GM
852 * xdisp.c (try_window_id): Fix the fix and set the right
853 window_end_vpos.
854
855 * xdisp.c (try_window_id): Fix computation of window end in the
856 case that lines were deleted at the end of the window. Add some
857 more debug_method_adds.
0416532f 858
7bd2d083
GM
859 * xfaces.c (try_alternative_families): New function.
860 (try_font_list): Use it. If ATTRS specifies a family, check
861 fonts from that family first.
862 (choose_face_font): Remove code setting the family part of
863 the pattern to nil.
864
23fca891
GM
8652001-05-10 Gerd Moellmann <gerd@gnu.org>
866
ff9aa2ca
GM
867 * xdisp.c (try_window_id): Fix case of all changes before
868 the window start.
7b2654b5 869
23fca891
GM
870 * xdisp.c (try_window_id): Add some xasserts.
871
e9726794
GM
8722001-05-09 Gerd Moellmann <gerd@gnu.org>
873
874 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
875
9e53a675
GM
8762001-05-09 Dave Love <fx@gnu.org>
877
878 * xdisp.c (GIVE_UP): Fix for K&R C.
879
0d487c52
GM
8802001-05-09 Gerd Moellmann <gerd@gnu.org>
881
fe88d421
GM
882 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
883
0d487c52
GM
884 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
885 back to the text cursor shape without need.
886
1e9fc92e
GM
8872001-05-07 Gerd Moellmann <gerd@gnu.org>
888
a2a6232e
GM
889 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
890
891 * dispextern.h (inverse_video): Declare extern.
892
1e9fc92e
GM
893 * keyboard.c (delete_kboard): Handle the case that selected_frame
894 has been deleted in the course of x_connection_closed.
895
12949a7f
EZ
8962001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
897
7b2654b5
SM
898 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
899 Fix the change from 2001-04-30.
12949a7f 900
2fa2f461
GM
9012001-05-03 Gerd Moellmann <gerd@gnu.org>
902
a779d213
GM
903 * xfns.c (file_dialog_unmap_cb): New function.
904 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
905 where a dialog is closed via the window manager.
906
7b2654b5 907 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
908 the window start or all below the window end mostly rewritten.
909 (redisplay_window): Move the tests if try_window_id is
910 applicable to try_window_id.
911 (GIVE_UP): New macro.
912
3356df63
GM
9132001-05-02 Gerd Moellmann <gerd@gnu.org>
914
a39202f6 915 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
916 currently being updated, mark the frame garbaged.
917 Fix computation of rows intersecting the exposed rectangle.
a39202f6 918 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 919
3356df63
GM
920 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
921 again if it has already been drawn.
922
a9d2fd1d
SM
9232001-05-01 Stefan Monnier <monnier@cs.yale.edu>
924
925 * syntax.c (update_syntax_table): Check that oldi has the same
926 properties as old_prop before deciding not to invalidate.
927
c95fc5f1
GM
9282001-04-30 Gerd Moellmann <gerd@gnu.org>
929
a9793e45
GM
930 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
931 read-only text that is so because of text properties.
932
c95fc5f1 933 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 934 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
935 windows that are components of a Lucid menu bar.
936
5a5d9185
GM
9372001-04-27 Gerd Moellmann <gerd@gnu.org>
938
939 * term.c (turn_on_face): Fix reverse video handling on terminals
940 that don't support colors.
941
ba973f7a
GM
9422001-04-26 Gerd Moellmann <gerd@gnu.org>
943
944 * editfns.c (save_excursion_restore): Don't use XBUFFER on
945 a non-buffer.
946
8c56a983
GM
9472001-04-25 Gerd Moellmann <gerd@gnu.org>
948
a728644c
GM
949 * term.c (toggle_highlight): New function.
950 (turn_on_face): Change handling of reverse video.
951
7b2654b5
SM
952 * process.c (wait_reading_process_input):
953 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 954
bfd8410f
GM
955 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
956 of the number of overlays to check.
957
be2488ca
GM
958 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
959
8c56a983
GM
960 * xdisp.c (try_window_id): Fix a case where window_end_pos
961 and window_end_bytepos were not adjusted.
962
522d42f7
GM
9632001-04-23 Gerd Moellmann <gerd@gnu.org>
964
965 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
966 zero instead of -1.
967
78c1afb6
EZ
9682001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
969
a9d2fd1d
SM
970 * process.c (wait_reading_process_input) [!subprocesses]:
971 Don't reference waiting_for_user_input_p, it's not defined in the
972 branch without async subprocesses support.
78c1afb6 973
a2fab450
GM
9742001-04-19 Gerd Moellmann <gerd@gnu.org>
975
a122a38e
GM
976 * keyboard.c (delete_kboard): Prevent a dangling reference
977 from current_kboard to KB, which is freed.
978
a9d2fd1d
SM
979 * process.c (wait_reading_process_input):
980 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
981 read_key_sequence aware of buffer changes from under it.
982
0f8d6dc7
GM
9832001-04-18 Gerd Moellmann <gerd@gnu.org>
984
eeffb293
GM
985 * xfaces.c (Qscalable_fonts_allowed): New variable.
986 (realizing_basic_faces_p): Removed.
2fa2f461
GM
987 (x_face_list_fonts): Special handling for realizing_basic_faces_p
988 removed.
eeffb293 989 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
990 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
991 for scalable-fonts-allowed to t.
eeffb293 992
0f8d6dc7
GM
993 * fileio.c (Finsert_file_contents): If the file size returned from
994 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 995 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 996
eec2d1de
EZ
9972001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
998
999 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1000 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1001 (__memalign_hook): Make the two prototypes consistent.
1002
f4f480bd
GM
10032001-04-17 Gerd Moellmann <gerd@gnu.org>
1004
1005 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1006 matrix of mini-windows.
1007
52283633
SM
10082001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1009
1010 * intervals.c (find_interval): Don't rebalance during signal handling.
1011
ec2423c9
GM
10122001-04-11 Gerd Moellmann <gerd@gnu.org>
1013
30cb0001 1014 * fns.c: Include blockinput.h.
52283633 1015
ec2423c9
GM
1016 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1017
719d83ad
GM
10182001-04-10 Gerd Moellmann <gerd@gnu.org>
1019
60f8d735
GM
1020 * fns.c (Fcompare_strings): Fix return values.
1021
afffeb57
GM
1022 * window.c (window_scroll): Change the meaning of N to mean
1023 N screen-fulls or N lines.
1024 (window_scroll_pixel_based, window_scroll_line_based)
1025 (scroll_command, Fscroll_other_window): Change accordingly.
1026
52283633
SM
1027 * window.c (window_scroll_pixel_based, Frecenter):
1028 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
1029 height of the window.
1030
1031 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1032 instead of using it.last_visible_y for the height of the window.
52283633 1033
719d83ad 1034 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 1035 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
1036
1037 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
1038 able to write to hidden and system files. From Dan Holmsand
1039 <dan@eyebee.com>.
719d83ad 1040
8ddf3ee1
GM
1041 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1042 Holmsand <dan@eyebee.com>.
719d83ad 1043
522ed7fb
GM
10442001-04-09 Gerd Moellmann <gerd@gnu.org>
1045
9170e5d4
GM
1046 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1047
522ed7fb
GM
1048 * window.c (window_internal_height): Return 1 less if the
1049 window has a header line.
1050
1051 * xdisp.c (try_window_id): When scrolling on a terminal, take
1052 the change of window_internal_height into account.
1053
ceeb3d7d
EZ
10542001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1055
1056 * gmalloc.c (align): If the argument SIZE would overflow
1057 __malloc_ptrdiff_t, fail right away.
1058
63685b9d
GM
10592001-04-06 Gerd Moellmann <gerd@gnu.org>
1060
1061 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1062 Make sure the tooltip is completely visible.
1063 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1064
1065 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1066
1067 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1068
3ffb33bb
DL
10692001-04-06 Dave Love <fx@gnu.org>
1070
52283633
SM
1071 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1072 Fix test of `from'.
3ffb33bb 1073
869fb12c
GM
10742001-04-06 Gerd Moellmann <gerd@gnu.org>
1075
52283633 1076 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 1077
869fb12c
GM
1078 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1079
441bf856
GM
10802001-04-05 Gerd Moellmann <gerd@gnu.org>
1081
4d664b04
GM
1082 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1083
52283633 1084 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 1085
30ca89f5
GM
1086 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1087 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1088
1089 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1090 shell widget's position only if it is non-null.
1091
52283633
SM
1092 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1093 Set f->output_data.x->widget to null after destroying it.
30ca89f5 1094
81a81c0f
GM
1095 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1096 FILENAME to bring it in synch with the documentation.
1097
441bf856
GM
1098 * xfaces.c (realizing_basic_faces_p): Renamed from
1099 realize_default_face_p.
1100 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1101 (realize_default_face): Don't set the flag.
1102
702a1e8e
GM
11032001-04-04 Gerd Moellmann <gerd@gnu.org>
1104
1013f4e3
GM
1105 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1106
52283633
SM
1107 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1108
1013f4e3
GM
1109 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1110 the buffer that was used for echoing.
1111
702a1e8e
GM
1112 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1113 (first_font_matching): Removed unused function.
1114 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1115 (may_use_scalable_font_p): Remove parameter FONT; rename
1116 parameter NAME to FONT.
1117 (x_face_list_fonts): Fix missing bounds check.
1118 (realizing_default_face_p): New variable.
1119 (realize_default_face): Set and clear that flag.
1120 (x_face_list_fonts): When called during the realization of the
1121 default face, and no matching fonts are found when ignoring
1122 scalable fonts and fonts matching a regexp from
1123 face-ignored-fonts, try without ignoring fonts.
1124
f9dbcda4
GM
11252001-04-03 Gerd Moellmann <gerd@gnu.org>
1126
ad18ffb1
GM
1127 * xfns.c (postprocess_image): New function.
1128 (lookup_image): Call it for all image types except PostScript.
1129 (x_kill_gs_process): Call postprocess_image.
1130
f9dbcda4
GM
1131 * xterm.c (x_use_underline_position_properties): New variable.
1132 (x_draw_glyph_string): Use it.
1133 (syms_of_xterm): DEFVAR_BOOL it.
1134
651f03b6
GM
11352001-04-02 Gerd Moellmann <gerd@gnu.org>
1136
1137 * xterm.c (x_alloc_nearest_color_1): New function.
1138 (x_alloc_nearest_color): Use it.
1139 (x_color_cells): Take a Display as argument, instead of a frame.
1140 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1141 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1142 (x_initialize): Register cvt_string_to_pixel as resource converter
1143 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1144
73d75a62
GM
11452001-03-30 Gerd Moellmann <gerd@gnu.org>
1146
b2046df8
GM
1147 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1148 (set_iterator_to_next): If a string from a display property ends,
1149 consider the case that this might also be the end of an
1150 overlay string having the display property.
1151
52283633 1152 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 1153
87d8eba4
GM
1154 * xdisp.c (reseat_to_string): Undo last change.
1155
73d75a62
GM
1156 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1157 matrix of a window when the header line changes, when
1158 new rows are allocated, or when the width changes.
1159
911a2406
EZ
11602001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1161
52283633 1162 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 1163
aea51abe
EZ
11642001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1165
1166 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1167 deprecated.
1168
176bc847
GM
11692001-03-29 Gerd Moellmann <gerd@gnu.org>
1170
ed31fabf
GM
1171 * data.c (Fsubr_interactive_form): New function.
1172 (syms_of_data): Defsubr it.
1173
176bc847
GM
1174 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1175 (live_float_p, live_misc_p): Return 1 only if the offset of the
1176 pointer in its block is >= 0.
1177
e59d0e9d
GM
11782001-03-28 Paul Eggert <eggert@twinsun.com>
1179
1180 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1181 microseconds calcuation. Avoid double-rounding problem.
1182 In doc string, warn that the result is approximate.
1183
f827b862
GM
11842001-03-28 Gerd Moellmann <gerd@gnu.org>
1185
30a3f61c
GM
1186 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1187 bind `inhibit-eval-during-redisplay' to t.
1188
1189 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1190
1191 * xdisp.c (inhibit_eval_during_redisplay)
1192 (Qinhibit_eval_during_redisplay): New variables.
1193 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1194 don't eval, return nil instead.
1195 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1196 Initialize Qinhibit_eval_during_redisplay.
1197
e719f5ae
GM
1198 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1199 the iterator's multibyte_p flag.
1200
deb2613a
GM
1201 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1202 instead of setting it to zero; it's incremented for each frame
1203 where the menu face is changed.
1204
52283633
SM
1205 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1206 change bottom shadow accordingly.
1207
1208 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
1209 intersections here.
1210 (expose_window): Do it here instead.
52283633 1211 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 1212
f827b862
GM
1213 * bytecode.c (BYTE_CODE_QUIT): New macro.
1214 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1215
4bde0ebb
GM
12162001-03-27 Gerd Moellmann <gerd@gnu.org>
1217
607ec83c
GM
1218 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1219 Give up if matrix starts in an ellipsis.
1220 (init_from_display_pos): Do nothing if POS doesn't specify
1221 a dpvec_index but the iterator has such a position.
1222
0245398f
GM
1223 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1224
aba25348
GM
1225 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1226 x/y position is (0, 0) after destroying the menu bar, restore
1227 its original position.
1228
4bde0ebb
GM
1229 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1230 (init_from_display_pos): Use it.
1231 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1232
8cdb267e
GM
12332001-03-26 Gerd Moellmann <gerd@gnu.org>
1234
1235 * xdisp.c (try_window_id): Undo last change.
1236
9948db79
EZ
12372001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1238
1239 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1240
1241 * buffer.c (syms_of_buffer): Doc fix.
1242
2eddf899
GM
12432001-03-26 Gerd Moellmann <gerd@gnu.org>
1244
1245 * xfaces.c (x_update_menu_appearance): Use local variable
1246 popup_path for setting font resources.
1247
6c145d35
EZ
12482001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1249
6a65b1b5
EZ
1250 * frame.c (Fframe_list): Don't reference tip_frame if
1251 HAVE_WINDOW_SYSTEM is not defined.
1252
6c145d35
EZ
1253 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1254 <wl@gnu.org>.
1255
d74c1900
GM
12562001-03-25 Gerd Moellmann <gerd@gnu.org>
1257
20fbd925
GM
1258 * xdisp.c (init_from_display_pos): Test invisible property
1259 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 1260
927c5b3b
GM
1261 * xdisp.c (redisplay_internal) <update one window>: Make sure
1262 last_arrow_position and last_arrow_string are set.
1263
d74c1900
GM
1264 * frame.c (Fframe_list): Don't return a tooltip frame.
1265
091f8878
GM
12662001-03-23 Gerd Moellmann <gerd@gnu.org>
1267
52283633
SM
1268 * xdisp.c (mark_window_display_accurate_1): New function,
1269 extracted from mark_window_display_accurate.
1270 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
1271 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1272 (mark_window_display_accurate): Use it.
1273 (redisplay_internal): Use it for the selected window.
1274 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1275 for the selected frame.
1276
ac90c44f
GM
1277 * xdisp.c Use make_number, for readability.
1278 (try_window_id): Disable rows below the window end.
1279 (try_window_reusing_current_matrix): Use cursor_row_p.
1280 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1281 of rows.
1282 (init_from_display_pos): If POS specifies a position in a display
1283 vector, maybe get the iterator set up for that ellipsis.
43c09969 1284
091f8878
GM
1285 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1286
991786dd
EZ
12872001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1288
1289 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1290
6c29b43c
GM
12912001-03-23 Gerd Moellmann <gerd@gnu.org>
1292
1293 * xfaces.c (x_update_menu_appearance): Use a different path
1294 for Lucid popup menus.
1295
d8731202
SM
12962001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1297
1298 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1299
1300 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1301 (string_buffer_position): Use `make_number'.
1302
f61a541b
GM
13032001-03-22 Gerd Moellmann <gerd@gnu.org>
1304
3c9e997b
GM
1305 * xfaces.c (x_update_menu_appearance): Renamed from
1306 x_set_menu_face_resources. Use different resources for popups.
1307
1308 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1309 (GC_CHECK_STRING_BYTES): Don't define.
1310
364cd450
GM
1311 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1312 Removed, together with subroutines.
1313 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 1314 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 1315
d8731202
SM
1316 * dispextern.h (x_set_menu_resources_from_menu_face):
1317 Remove prototype.
364cd450 1318
d8731202 1319 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1320 Remove calls to x_set_menu_resources_from_menu_face.
1321
d8731202
SM
1322 * xfaces.c (xm_set_menu_resources_from_menu_face):
1323 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1324
1325 * xmenu.c: Include widget.h.
1326 (single_submenu): Return int. Some cleanup.
1327 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1328
140330de
GM
13292001-03-21 Gerd Moellmann <gerd@gnu.org>
1330
1331 * xterm.c (x_update_window_end): Handle overwritten mouse face
1332 also for tool bar windows.
1333 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1334 DRAW is DRAW_IMAGE_RAISED.
1335
1741905c
GM
13362001-03-20 Gerd Moellmann <gerd@gnu.org>
1337
fa88947e
GM
1338 * print.c (syms_of_print): Doc fixes.
1339
1741905c
GM
1340 * fns.c (Fmd5): Doc fix.
1341
ade0bee1
GM
13422001-03-19 Gerd Moellmann <gerd@gnu.org>
1343
357e7376
GM
1344 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1345 Clear area of the frame not occupied by the scroll bar.
1346
c2c097cc
GM
1347 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1348 tip frame's root window buffer to *tip* right after creating
1349 the frame.
1350
ade0bee1
GM
1351 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1352 is an integer don't have to be for space characters.
1353
88c6e37e
GM
13542001-03-16 Gerd Moellmann <gerd@gnu.org>
1355
52283633
SM
1356 * indent.c (current_column, current_column_1, Fmove_to_column)
1357 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1358
c62eed76
KH
13592001-03-15 Kenichi Handa <handa@etl.go.jp>
1360
1361 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1362 drawing glyph string.
1363
c899e7e6
GM
13642001-03-15 Gerd Moellmann <gerd@gnu.org>
1365
d0bbfc99
GM
1366 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1367 (command_loop_1): Undo last change.
1368
03d1a189
GM
1369 * xterm.c (fast_find_position): Return the correct vpos.
1370
c899e7e6 1371 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1372 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1373 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1374 Call store_symval_forwarding with BUF null.
1375 (set_internal): Call store_symval_forwarding with the BUF
1376 parameter passed to set_internal. Formerly, the value was always
1377 set in the current buffer; the buffer recorded in specbind for
1378 this case wasn't used.
1379 (arith_driver): Reindent.
1380
52283633
SM
1381 * buffer.c (swap_out_buffer_local_variables):
1382 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1383
1384 * lisp.h (store_symval_forwarding): Change prototype.
1385
1386 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1387
57ac7c81
GM
13882001-03-14 Gerd Moellmann <gerd@gnu.org>
1389
697617d9
GM
1390 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1391 FOR_DELETION. Avoid resizing the mini-window of the selected
1392 frame if FOR_DELETION is set.
1393 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1394 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1395 signature.
1396
1397 * window.c (Fset_window_configuration): Change call to
1398 do_switch_frame to new format.
1399
1400 * keyboard.c (quit_throw_to_read_char): Change call to
1401 do_switch_frame to new format.
1402
1403 * lisp.h (do_switch_frame): Change prototype.
1404
819dce0f
GM
1405 * frame.c (Fframe_parameters): In the `buffer-list' frame
1406 parameter, store the buffer list of FRAME, not the list of the
1407 selected frame.
1408
57ac7c81
GM
1409 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1410 box just because the glyph row's full_width_p flag is set.
1411
65008712
GM
14122001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1413
1414 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1415 skip the padding blanks inserted in extend_face_to_end_of_line,
1416 before checking for trailing whitespace.
1417
159cf431
GM
14182001-03-13 Gerd Moellmann <gerd@gnu.org>
1419
52283633 1420 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1421 Remove special handling for LessTif/Motif.
1422 (toplevel): Don't include Xm/Xm.h.
1423
52283633
SM
1424 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1425 Remove workaround code for LessTif; it doesn't work anymore.
1426
2564ea1b 1427 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1428 Xm/ScrollBarP.h.
afcdc0a1 1429
52283633
SM
1430 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1431 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1432 contemporary LessTif.
1433
52283633
SM
1434 * xfaces.c (xm_set_menu_resources_from_menu_face):
1435 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1436
159cf431
GM
1437 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1438 removing button grabs.
1439
c6f7429a
KH
14402001-03-13 Kenichi Handa <handa@etl.go.jp>
1441
cb82d767
KH
1442 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1443 and clip-large-size-font as obsolete.
1444
c6f7429a
KH
1445 * lread.c (read_multibyte): Check the validity of multibyte
1446 sequence. If invalid, return the first byte.
1447
760cefb5
GM
14482001-03-12 Gerd Moellmann <gerd@gnu.org>
1449
1450 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1451 before running the command; timer functions or process
1452 filters may have set it.
1453
5141f9d0
EZ
14542001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1455
1456 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1457 Doc fix.
1458
b6a15240
GM
14592001-03-12 Gerd Moellmann <gerd@gnu.org>
1460
1461 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1462 to sprintf.
1463
95522746
GM
14642001-03-09 Gerd Moellmann <gerd@gnu.org>
1465
db14cfc5
GM
1466 * dispextern.h (string_buffer_position): Add prototype.
1467
52283633 1468 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1469 (single_display_prop_string_p): New functions.
1470
1471 * xterm.c (note_mouse_highlight): If there's no help-echo on
1472 a string, look at the buffer text ``under'' it.
1473
1474 * keyboard.c (make_lispy_event): Add string info to the event,
1475 analogous to what's done on mode lines.
1476 (read_key_sequence): For a click on a string, consider `local-map'
1477 and `keymap' of that string.
1478
52283633
SM
1479 * keyboard.c (make_lispy_event, make_lispy_movement):
1480 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1481
1482 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1483
1484 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1485 POS; return void.
1486
95522746
GM
1487 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1488 flags argument to emacs_open; it seems to conflict with O_EXCL.
1489
898a399d
KH
14902001-03-09 Kenichi Handa <handa@etl.go.jp>
1491
28cd4910
KH
1492 * composite.h (struct composition): Change types of members;
1493 glyph_len to unsigned, width to unsigned short.
898a399d 1494
4cdf6a6c
AI
14952001-03-08 Andrew Innes <andrewi@gnu.org>
1496
1497 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1498 menu titles.
1499
129004d3
GM
15002001-03-08 Gerd Moellmann <gerd@gnu.org>
1501
221dd3e7
GM
1502 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1503 instead of nil.
1504
52283633 1505 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1506 help-echo in strings.
1507 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1508 (fast_find_string_pos): New function.
1509
52283633
SM
1510 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1511 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1512
1513 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1514 Handle `mouse-face'.
1515
1516 * dispextern.h (face_at_string_position): Change prototype.
1517
52283633 1518 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1519
129004d3
GM
1520 * keyboard.c (make_lispy_event): Avoid generating drag events
1521 if the mouse hasn't actually moved to another buffer position.
52283633 1522
80c8ab8c
DL
15232001-03-08 Dave Love <fx@gnu.org>
1524
129004d3 1525 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1526
989521fd
GM
15272001-03-08 Gerd Moellmann <gerd@gnu.org>
1528
1529 * process.c (Fset_process_window_size): Fix a typo.
1530
bb5c338d
KH
15312001-03-08 Kenichi Handa <handa@etl.go.jp>
1532
1533 * coding.c (detect_coding_sjis): Do more rigid check.
1534 (detect_coding_big5): Likewise.
1535 (decode_coding_sjis_big5): Likewise.
1536 (Fdetect_coding_region): Call detect_coding_system with tailing
1537 anchor byte `\0' for more rigid detection.
52283633 1538 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1539 (Fdetect_coding_string): Likewise.
1540
8b8f9197
SM
15412001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1542
1543 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1544 a string before extracting its data.
1545
3bdf2660
GM
15462001-03-07 Gerd Moellmann <gerd@gnu.org>
1547
1548 * window.c (Frecenter): Rewrite code handling negative values
1549 of ARG on graphical frames.
1550
15512001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1552
1553 * window.c (displayed_window_lines): If W->start is outside the
1554 accessible portion of the buffer, call start_display with BEGV or
1555 ZV instead of W->start.
1556
471f86b9
GM
15572001-03-07 Gerd Moellmann <gerd@gnu.org>
1558
2ab62c6c
GM
1559 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1560
471f86b9
GM
1561 * process.c (Fset_process_filter): Don't crash if the input
1562 file descriptor of PROCESS is closed.
1563 (Fset_process_window_size): Likewise.
1564
101922c3
GM
15652001-03-06 Kenichi Handa <handa@etl.go.jp>
1566
1567 * xterm.c (XTflash): Make the timeout of select shorter, and call
1568 select repeatedly until the desired time expires.
1569
45d051a7
GM
15702001-03-06 Gerd Moellmann <gerd@gnu.org>
1571
1572 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1573
1574 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1575
1576 * lisp.h (Vwindow_list): Declare extern.
1577
8f372c46
EZ
15782001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1579
1580 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1581
f16a7aa5
GM
15822001-03-06 Gerd Moellmann <gerd@gnu.org>
1583
157ae273
GM
1584 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1585 to detect a case where we have to highlight a different region
1586 despite not having left the currently highlighted region.
1587 Set mouse_face_overlay in the x_display_info.
45d051a7 1588 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1589
1590 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1591
1592 * buffer.c (mouse_face_overlay_overlaps): New function.
1593
1594 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1595 (Qmouse_face): Declare extern.
1596
f16a7aa5
GM
1597 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1598 if face_change_count is non-zero.
1599
827afcac
KH
16002001-03-06 Kenichi Handa <handa@etl.go.jp>
1601
1602 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1603 that the source is unibyte.
1604
14c7242e
DL
16052001-03-05 Dave Love <fx@gnu.org>
1606
827afcac 1607 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1608
c28b847b
GM
16092001-03-05 Gerd Moellmann <gerd@gnu.org>
1610
1611 * minibuf.c (read_minibuf): Clean up the binding stack if
1612 called noninteractively.
1613
b86644f2
KH
16142001-03-05 Kenichi Handa <handa@etl.go.jp>
1615
1616 * coding.c (syms_of_coding): Docstring modified.
1617
203682cc 16182001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1619
1620 * charset.c (char_to_string): If a single byte char has modifier
1621 bits that can't be reflected to the character code, ignore them
45d051a7 1622 instead of signaling an error.
b86644f2 1623
e30bd7b7
EZ
16242001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1625
1626 * s/msdos.h: Update copyright notice.
1627
1628 * dosfns.h: Update copyright notice.
1629
1630 * dosfns.c: Update copyright notice.
1631
1632 * msdos.c: Update copyright notice.
1633
b52b65bd
GM
16342001-03-02 Gerd Moellmann <gerd@gnu.org>
1635
1636 * xterm.c (glyph_rect): New function.
1637 (XTmouse_position): Use it to raise the threshold for mouse
1638 movement event generation.
1639
53c4b1e6
EZ
16402001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1641
1642 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1643 specifies (reverse . t), reverse the initial screen colors.
1644 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1645 but we are reversing the colors, set bg_set, not fg_set.
1646 Likewise for setting background-color and reversing: set fg_set.
1647 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1648 in effect.
1649
1650 * xfaces.c (Finternal_set_lisp_face_attribute)
1651 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1652 parameters alist.
1653
f964b4d7
GM
16542001-03-02 Gerd Moellmann <gerd@gnu.org>
1655
ef53d75e
GM
1656 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1657 to a single slash in the middle of file names.
1658
52283633 1659 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1660 Accept only alphanumeric time zone names.
1661
f964b4d7
GM
1662 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1663 or width area.
1664 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1665 a widget to zero height.
52283633 1666
c3c45f65
GM
16672001-03-01 Gerd Moellmann <gerd@gnu.org>
1668
1669 * window.c (Fwindow_end): Call move_it_past_eol only if
1670 ending up on a partially visible line.
1671
028d739a
DL
16722001-03-01 Dave Love <fx@gnu.org>
1673
1674 * ccl.c (Fccl_execute): Doc fix.
1675
57c5889c
GM
16762001-03-01 Gerd Moellmann <gerd@gnu.org>
1677
35f59f6b
GM
1678 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1679 of the tool bar before calling x_figure_window_size.
1680
f84ff02c
GM
1681 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1682 NULL after destroying it, otherwise XTread_socket can access a
1683 destroyed widget when input is unblocked.
1684
8b8f9197 1685 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1686
57c5889c
GM
1687 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1688 same name as before, although there was a change in fontsets.
1689
224227d1
KR
16902001-02-28 Ken Raeburn <raeburn@gnu.org>
1691
4560730a
KR
1692 * lisp.h (Fframe_parameter): Declare.
1693
224227d1 1694 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1695 Lisp_Object.
224227d1 1696
ece93c02
GM
16972001-02-28 Gerd Moellmann <gerd@gnu.org>
1698
11ef99b9
GM
1699 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1700 NULL instead.
1701
1702 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1703 NULL instead.
1704
ece93c02
GM
1705 * alloc.c (toplevel): Include process.h.
1706 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1707 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1708 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1709 (allocate_vector, allocate_hash_table, allocate_window)
1710 (allocate_frame, allocate_process, allocate_other_vector):
1711 New functions.
ece93c02
GM
1712 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1713 (mark_maybe_pointer): New function.
52283633 1714 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1715 remain and not Lisp_Objects.
1716 (min_heap_address, max_heap_address): New variables.
1717 (mem_find): Return MEM_NIL if START is below min_heap_address or
1718 above max_heap_address.
1719 (mem_insert): Compute min_heap_address and max_heap_address.
1720
1721 * process.c (make_process): Use allocate_process.
1722
1723 * frame.c (make_frame): Use allocate_frame.
1724
1725 * window.c (make_window, make_dummy_parent): Use allocate_window.
1726 (Fcurrent_window_configuration): Use allocate_other_vector.
1727
1728 * lisp.h (allocate_vectorlike): Remove prototype.
1729 (allocate_vector, allocate_other_vector, allocate_frame)
1730 (allocate_window, allocate_process, allocate_hash_table):
1731 Add prototypes.
1732
1733 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1734 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1735
063af457
KH
17362001-02-27 Kenichi Handa <handa@etl.go.jp>
1737
1738 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1739 treat the produced bytes as a valid multibyte sequence.
1740
1741 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1742 (ccl_driver) <CCL_WriteMultibyteChar2>:
1743 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1744 <ccl_finish>: Set ccl->eight_bit_control properly.
1745
1746 * ccl.h (struct ccl_program): New member eight_bit_control.
1747
f58c6494
SM
17482001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1749
1750 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1751 accessible_keymaps_char_table.
1752 (accessible_keymaps_char_table): Obey `is_metized'.
1753 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1754 Lisp_Object.
1755
c596c392
GM
17562001-02-26 Gerd Moellmann <gerd@gnu.org>
1757
1758 * dispnew.c: Check HAVE_TERM_H before including term.h.
1759
425de386
AI
17602001-02-24 Andrew Innes <andrewi@gnu.org>
1761
1762 * makefile.w32-in: Update copyright notice.
1763
2ba11bbd
SM
17642001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1765
1766 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1767
66c56ed1
KH
17682001-02-24 Kenichi Handa <handa@etl.go.jp>
1769
4c1593ce
KH
1770 * Makefile.in (lisp): Add international/utf-8.elc.
1771
66c56ed1
KH
1772 * fontset.c (Fnew_fontset): Fix handling of the case that an
1773 element of FONTLIST is a cons of family and registry.
1774
796ead7e
JR
17752001-02-23 Jason Rumney <jasonr@gnu.org>
1776
1777 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1778 to height unconditionally.
1779
1780 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1781 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1782 (x_insert_glyphs): Call window_box_left to obtain the left
1783 x-coordinate of the area to shift.
1784
1785 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1786 safe_run_hooks.
1787
f6839838
AI
17882001-02-22 Andrew Innes <andrewi@gnu.org>
1789
52283633 1790 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1791 ($(BLD)\dispnew.obj):
1792 ($(BLD)\editfns.obj):
1793 ($(BLD)\fileio.obj):
1794 ($(BLD)\filelock.obj):
1795 ($(BLD)\keyboard.obj):
1796 ($(BLD)\w32proc.obj):
1797 ($(BLD)\process.obj):
1798 ($(BLD)\sysdep.obj): Ditto.
1799
1800 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1801 header files.
52283633
SM
1802 ($(BLD)/dispnew.$(O)):
1803 ($(BLD)/editfns.$(O)):
1804 ($(BLD)/fileio.$(O)):
1805 ($(BLD)/filelock.$(O)):
1806 ($(BLD)/keyboard.$(O)):
1807 ($(BLD)/w32proc.$(O)):
1808 ($(BLD)/process.$(O)):
f6839838
AI
1809 ($(BLD)/sysdep.$(O)): Ditto.
1810
c224f70b
GM
18112001-02-22 Gerd Moellmann <gerd@gnu.org>
1812
51695746
GM
1813 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1814 at the start of the function, check that the \n in it->c is
1815 from the iterator's current position.
52283633 1816
a61b7058
GM
1817 * xdisp.c (handle_single_display_prop): Add parameter
1818 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1819 properties which replace the display of text with something else.
1820 (handle_display_prop): Call handle_single_display_prop with
1821 additional argument saying if we already replaced text display
1822 with something else. Use AREF.
52283633 1823 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1824 (decode_mode_spec_coding): Use AREF and ASIZE.
1825
3473f362
GM
1826 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1827 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1828 * vmstime.h: Files removed.
52283633 1829
2bb58df3
GM
1830 * unexencap.c, unexfx2800.c: Files removed.
1831
c224f70b
GM
1832 * dispnew.c (direct_output_for_insert): Give up if we are showing
1833 a message or just cleared the message because we might need to
1834 resize the echo area window or display an empty echo area.
1835
ffc9ff0c
GM
18362001-02-21 Gerd Moellmann <gerd@gnu.org>
1837
0528abe1
GM
1838 * xdisp.c (redisplay_internal): Do the
1839 mark_window_display_accurate after all windows have been
1840 redisplayed because this call resets flags in buffers which are
1841 needed for proper redisplay.
1842
52283633
SM
1843 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1844 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1845 the old names.
1846
52283633
SM
1847 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1848 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1849
1850 * msdos.h (struct x_output): Rename busy_window to
1851 hourglass_window, busy_p to hourglass_p.
1852
52283633
SM
1853 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1854 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1855
1856 * xfns.c: Rename everything containing *busy_cursor* and similar
1857 to *hourglass*.
1858 (syms_of_w32fns): Rename x-busy-pointer-shape to
1859 x-hourglass-pointer-shape, display-busy-cursor to
1860 display-hourglass, busy-cursor-delay to hourglass-delay.
1861
1862 * w32fns.c: Rename everything containing *busy_cursor* and similar
1863 to *hourglass*.
1864 (syms_of_w32fns): Rename x-busy-pointer-shape to
1865 x-hourglass-pointer-shape, display-busy-cursor to
1866 display-hourglass, busy-cursor-delay to hourglass-delay.
1867
1868 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1869 of its busy_p flag.
1870
1871 * dispextern.h (start_hourglass, cancel_hourglass)
1872 (display_hourglass_p): Renamed from *busy_cursor*.
1873
ab2c5f0a
GM
18742001-02-20 Gerd Moellmann <gerd@gnu.org>
1875
d17e49a8
GM
1876 * keyboard.c (read_char): When an event from unread-command-events
1877 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1878
fa97adf6
GM
1879 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1880 equal to the current buffer.
1881
ab2c5f0a
GM
1882 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1883 nil, otherwise we're left with truncate_lines t when a message
1884 is printed with message-truncate-lines bound to t.
1885
aeac019e
GM
18862001-02-19 Gerd Moellmann <gerd@gnu.org>
1887
c8bc6f65
GM
1888 * window.c (Fmove_to_window_line): Undo last change.
1889 (displayed_window_lines): Call line_bottom_y to determine
1890 the line's bottom position.
1891
1892 * dispextern.h (line_bottom_y): Add prototype.
1893
52283633 1894 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1895 (pos_visible_p): Use it.
1896
980a2d69
GM
1897 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1898 set redisplaying_p to 0 here instead of in Frecursive_edit.
1899 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1900 set redisplaying_p.
1901
52283633 1902 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1903 New variables.
1904 (syms_of_xdisp): Initialize new variables.
1905 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1906 Specbind `inhibit-menubar-update' when updating the menu bar.
1907
65048e97
GM
1908 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1909 safe_run_hooks.
1910
1911 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1912 safe_run_hooks.
1913
a57c4026
GM
1914 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1915 is null.
1916
aeac019e
GM
1917 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1918 to the start of the file.
1919
76846b31
GM
19202001-02-16 Gerd Moellmann <gerd@gnu.org>
1921
f3f053f3 1922 * window.c (set_window_buffer): Fix last change.
52283633 1923
f3f053f3
GM
1924 * window.c (set_window_buffer): Set window's vscroll to 0.
1925
dad75588
GM
1926 * window.c (coordinates_in_window): Increase width of area
1927 where the vertical line can be dragged.
1928
c220b753
GM
1929 * xterm.c (x_set_glyph_string_background_width): Extend the
1930 background face to the end of the drawing area in the text
1931 area, only.
1932
c56b1c1b
GM
1933 * xdisp.c (handle_single_display_prop): Set iterator's position
1934 to where the `display' property starts, like for images.
1935 (dump_glyph): New function.
1936 (dump_glyph_row): Use it. Dump info about marginal areas.
1937
1938 * dispnew.c (direct_output_for_insert): Recognize more cases where
1939 glyphs can be written instead of being inserted.
1940
1941 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1942 the left x-coordinate of the area to shift.
1943
76846b31
GM
1944 * dired.c (directory_files_internal): Set result list to nil
1945 before retrying.
1946
0fc71a77
KH
19472001-02-15 Kenichi Handa <handa@etl.go.jp>
1948
1949 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1950 invalid multibyte sequence, treat *SRC as a character of
1951 eight-bit-graphic.
1952
25078b54
EZ
19532001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1954
1955 * textprop.c (Fset_text_properties): Doc fix.
1956
8399f8a0
GM
19572001-02-15 Gerd Moellmann <gerd@gnu.org>
1958
1959 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1960
9a2a6f73
DL
19612001-02-14 Dave Love <fx@gnu.org>
1962
1963 * coding.c: Doc and message fixes.
1964
bf853fee
AI
19652001-02-14 Andrew Innes <andrewi@gnu.org>
1966
1967 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1968 Emacs frame above the screen size.
1969
78c663d8
GM
19702001-02-14 Gerd Moellmann <gerd@gnu.org>
1971
1972 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1973
7cc9f69f
GM
19742001-02-13 Gerd Moellmann <gerd@gnu.org>
1975
0a411995
GM
1976 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1977 case that TO ends up beyond ZV after running before-change-functions.
1978
5ddc1b75
GM
1979 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1980 the selected window if it is showing the buffer in question.
1981
7cc9f69f
GM
1982 * dired.c (directory_files_internal): Initialize errno.
1983 (toplevel): Include errno.h.
1984
2e6621ca
GM
19852001-02-13 Kenichi Handa <handa@etl.go.jp>
1986
1987 * xfaces.c (best_matching_font): New parameter width_ratio.
1988 Multiply avgwidth by width_ratio.
1989 (choose_face_font): Call best_matching_font with width_ratio
1990 calculated from the column width of C.
1991
60222d69
AI
19922001-02-12 Andrew Innes <andrewi@gnu.org>
1993
1994 The following changes are to draw box lines inside characters area
1995 if line-width is negative.
52283633 1996
60222d69
AI
1997 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1998 face->box_line_width is negative.
1999 (x_produce_stretch_glyph): Likewise.
2000 (x_produce_glyphs): Likewise.
2001 (x_estimate_mode_line_height): Likewise.
2002 (x_draw_glyph_string_background): Likewise.
2003 (x_draw_glyph_string_foreground): Likewise.
2004 (x_draw_composite_glyph_string_foreground): Likewise.
2005 (x_draw_glyph_string_box): Likewise.
2006 (x_draw_image_foreground): Likewise.
2007 (x_draw_image_relief): Likewise.
2008 (x_draw_image_foreground_1): Likewise.
2009 (x_draw_image_glyph_string): Likewise.
2010
9804b846
KH
20112001-02-09 Kenichi Handa <handa@etl.go.jp>
2012
2013 The following changes are to draw box lines inside characters area
2014 if line-width is negative.
52283633 2015
9804b846
KH
2016 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2017 face->box_line_width is negative.
2018 (x_produce_stretch_glyph): Likewise.
2019 (x_produce_glyphs): Likewise.
2020 (x_estimate_mode_line_height): Likewise.
2021 (x_draw_glyph_string_background): Likewise.
2022 (x_draw_glyph_string_foreground): Likewise.
2023 (x_draw_composite_glyph_string_foreground): Likewise.
2024 (x_draw_glyph_string_box): Likewise.
2025 (x_draw_image_foreground): Likewise.
2026 (x_draw_image_relief): Likewise.
2027 (x_draw_image_foreground_1): Likewise.
2028 (x_draw_image_glyph_string): Likewise.
2029
2030 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2031 and :line-width can be negative.
52283633 2032 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 2033
49be9f70
JR
20342001-02-09 Jason Rumney <jasonr@gnu.org>
2035
2036 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2037 characters the same as ASCII and latin-1.
2038 (x_display_and_set_cursor): Check for the focus frame's selected
2039 window instead of selected_window.
2040 (x_after_update_window_line): Don't clear if frame's internal
2041 border width is zero.
2042 (x_new_font): Don't change a tooltip's size.
2043 (w32_initialize): Set char_ins_del_ok to 1.
2044
2045 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2046 (x_set_font): If font hasn't changed, avoid recomputing
2047 faces and other things.
52283633
SM
2048 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2049 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
2050 (x_create_tip_frame): Prevent changing the tooltip's
2051 background color by specifying a color for the default font
2052 in .Xdefaults.
2053 (Qcancel_timer): New variable.
2054 (syms_of_w32fns): Initialize and staticpro it.
2055 (Fx_hide_tip, Fx_show_tip): Use it.
2056 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2057 the timer.
2058 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2059
2060 * w32.c (init_environment): Duplicate local string before putenv.
2061
555e35d2
SZ
20622001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2063
2064 * charset.c (Fstring): A typo.
2065
19c92c94
KH
20662001-02-09 Kenichi Handa <handa@etl.go.jp>
2067
e47a1c33
KH
2068 * charset.c (Fstring): If all arguments are less than 256, return
2069 a unibyte string.
2070
2071 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2072 return a unibyte string.
2073
19c92c94
KH
2074 * coding.c (code_convert_region): After detecting a coding, if
2075 nothing found, set coding->composing to COMPOSITION_NO.
2076 (decode_coding_string): Likewise.
2077
d8e675f5
SM
20782001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2079
2080 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2081 to avoid overflow.
2082
bd503487
KH
20832001-02-07 Kenichi Handa <handa@etl.go.jp>
2084
2085 * charset.c (parse_str_to_multibyte): New function.
2086
2087 * charset.h (parse_str_to_multibyte): Extern it.
2088
2089 * print.c (print_string): If we are going to print a unibyte
2090 string into a multibyte buffer, convert the string to multibyte by
2091 str_to_multibyte.
2092
a8370d72
AI
20932001-02-06 Andrew Innes <andrewi@gnu.org>
2094
2095 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2096 been created. It seems we can get sent window messages such as
2097 WM_ERASEBKGND before we properly update a frame.
2098
c363a1d6
GM
20992001-02-06 Gerd Moellmann <gerd@gnu.org>
2100
2101 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2102 Avoid some unnecessary cursor positioning.
2103
a08332c0
GM
21042001-02-05 Gerd Moellmann <gerd@gnu.org>
2105
52283633 2106 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
2107 (LFACE_AVGWIDTH): New macro.
2108 (LFACEP): Use AREF.
2109 (check_lface_attrs): Check LFACE_AVGWIDTH.
2110 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2111 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2112 (merge_face_vectors): Check LFACE_AVGWIDTH.
2113 (Finternal_make_lisp_face): Use AREF.
2114 (xm_set_menu_resources_from_menu_face)
2115 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2116 (Finternal_lisp_face_empty_p): Use AREF.
2117 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2118 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2119 Compare average widths..
2120 (best_matching_font): Arrange for comparing average widths.
2121
52283633
SM
2122 * dispextern.h (enum lface_attribute_index):
2123 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2124
5cb3c8d4
DL
21252001-02-05 Dave Love <fx@gnu.org>
2126
2127 * puresize.h: Revert last change following loadup.el change.
2128
193fba87
AI
21292001-02-05 Andrew Innes <andrewi@gnu.org>
2130
2131 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2132 invocation of temacs, to work with Windows 2000.
2133 (bootstrap-emacs): Ditto.
2134
e16f52ce
GM
21352001-02-05 Gerd Moellmann <gerd@gnu.org>
2136
7a58ab59
GM
2137 * xterm.c (x_display_and_set_cursor): Check for the focus
2138 frame's selected window instead of selected_window.
2139
e89aaabd
GM
2140 * xdisp.c (try_scrolling): If point is in the line below the
2141 window, make sure to move the iterator at least a canonical
2142 char height down.
2143
52283633 2144 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 2145
789ce875
KH
21462001-02-05 Kenichi Handa <handa@etl.go.jp>
2147
52283633
SM
2148 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2149 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
2150 (ccl_driver): If the CCL program is terminated because of
2151 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2152 destination instead of throwing them away.
2153
20b28f82
GM
21542001-02-02 Gerd Moellmann <gerd@gnu.org>
2155
79fb38c0
GM
2156 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2157 faces and other things.
2158
20b28f82
GM
2159 * xdisp.c (get_next_display_element): Fix case of empty
2160 display table entry.
2161
5a72551e
EZ
21622001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2163
eb24d0bf
EZ
2164 * editfns.c (Fconstrain_to_field): Doc fix.
2165
6a3f48c7
EZ
2166 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2167 into `thoroughly', to make it consistent with the doc string.
2168
5a72551e
EZ
2169 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2170
01acdb05
GM
21712001-02-01 Gerd Moellmann <gerd@gnu.org>
2172
0353b28f
GM
2173 * search.c (search_buffer): Call set_search_regs with a byte
2174 position, not a character position.
2175
01acdb05
GM
2176 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2177 minibuffer-only,
2178
e86b5133
EZ
21792001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2180
2181 * frame.c (Fmodify_frame_parameters): Doc fix.
2182
7442878f
GM
21832001-01-31 Gerd Moellmann <gerd@gnu.org>
2184
01acdb05
GM
2185 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2186 identifier which is not reserved by Standard C.
52283633 2187
7442878f
GM
2188 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2189
2190 * window.c (enum window_part): New enumeration.
2191 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2192 Qright_bitmap_area.
2193 (coordinates_in_window): Return an enumerator from enum
2194 window_part. Fix handling of right scroll bar.
2195 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2196 `right-fringe' instead of `left-bitmap-area' and
2197 `right-bitmap-area'. Use enumerators from enum window_part
2198 instead of hard-coded integers.
52283633
SM
2199 (check_window_containing, window_from_coordinates):
2200 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
2201 (syms_of_window): Replace Qleft_bitmap_area and
2202 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2203
7c132cba
EZ
22042001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2205
2206 * editfns.c (Fformat_time_string): Doc fix.
2207
c359dd9e
SM
22082001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2209
2210 * keymap.c (Fwhere_is_internal): Use the first valid binding
2211 if no ascii binding is found (when firstonly is t).
2212
ce070307
GM
22132001-01-31 Gerd Moellmann <gerd@gnu.org>
2214
b4f30ec5
GM
2215 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2216 instead of Finteractive_p.
2217
2218 * lisp.h (interactive_p): Add prototype.
2219
2220 * eval.c (interactive_p): New function.
2221 (Finteractive_p): Use it.
2222
ce070307
GM
2223 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2224
f57b6e64
DL
22252001-01-31 Dave Love <fx@gnu.org>
2226
d61c7afe
DL
2227 * .gdbinit (hook-run): Define to run xreload.
2228
f57b6e64
DL
2229 * textprop.c (Fset_text_properties): Fix newline in doc string.
2230
eef93f99
GM
22312001-01-30 Gerd Moellmann <gerd@gnu.org>
2232
52283633
SM
2233 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2234 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
2235
2236 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 2237 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
2238 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2239
2240 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2241 height.
2242
d9c1f6f9
DL
22432001-01-30 Dave Love <fx@gnu.org>
2244
2245 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2246 AFTER_POTENTIAL_GC.
2247
e8f044a0
GM
22482001-01-29 Gerd Moellmann <gerd@gnu.org>
2249
52283633
SM
2250 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2251 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 2252
8e1db7b3
EZ
22532001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2254
2255 * textprop.c (Fset_text_properties): Doc fix.
2256
4eefd9d2
GM
22572001-01-29 Gerd Moellmann <gerd@gnu.org>
2258
2259 * xdisp.c (forward_to_next_line_start): Remove xassert.
2260
fccb8288
EZ
22612001-01-29 Jason Rumney <jasonr@gnu.org>
2262
4eefd9d2 2263 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
2264 returning without releasing it.
2265
76581eab
KH
22662001-01-29 Kenichi Handa <handa@etl.go.jp>
2267
2268 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2269 for '^', '$', and '\0'.
2270
83a96b4d
AC
22712001-01-28 Andrew Choi <akochoi@i-cable.com>
2272
5604ec34
AC
2273 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2274 regex for '^', '$', and '\0'.
2275
83a96b4d
AC
2276 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2277 only if current_sblock has been initialized.
2278
2279 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2280 terminal frame even if it is the only visible frame.
2281
c09a6440
KH
22822001-01-28 Kenichi Handa <handa@etl.go.jp>
2283
2284 * fontset.c (font_family_registry): Even if FONTNAME conform to
2285 XLFD, if it specifies other fields than family and registry,
52283633 2286 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 2287 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
2288 a signle byte character. Don't set FAMILY part to nil here.
2289 It is handled by the caller choose_face_font.
c09a6440
KH
2290 (Fnew_fontset): Call font_family_registry with FORCE 0.
2291 (Fset_fontset_font): Likewise.
2292
4dcd74e6
GM
22932001-01-27 Gerd Moellmann <gerd@gnu.org>
2294
2295 * xdisp.c (display_line): Don't treat a newline as fitting
2296 on the line.
2297
d2906bf8
GM
22982001-01-26 Gerd Moellmann <gerd@gnu.org>
2299
0130fe1a
GM
2300 * window.c (size_window): Set the window's orig_top to nil when
2301 changing heights, so that a future shrink_mini_window won't
2302 restore a bogus height.
2303
550f0e6a
GM
2304 * frame.c (do_switch_frame): If selected frame has a mini-window,
2305 resize that to exact size.
2306
b7b20fbd
GM
2307 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2308
a47b7816
GM
2309 * xdisp.c (display_line): Simplify check for glyphs fitting
2310 entirely in the line.
2311
d2906bf8
GM
2312 * xfns.c (xic_style): New variable.
2313 (create_frame_xic): Move static variable to global scope for
550f0e6a 2314 the case that `static' gets defined away.
d2906bf8 2315
73df2b1e
KH
23162001-01-26 Kenichi Handa <handa@etl.go.jp>
2317
2318 * coding.c (decode_coding): Set a flag for inhibiting
2319 inconsistent eol.
2320 (code_convert_region): Always set saved_coding_symbol.
2321 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2322 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2323
6613cfc4
GM
23242001-01-25 Gerd Moellmann <gerd@gnu.org>
2325
c5e6e06b
GM
2326 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2327 XClearArea.
2328
2329 * xterm.c (x_after_update_window_line): Don't clear if frame's
2330 internal border width is zero.
2331 (x_clear_area): New function.
2332 (x_after_update_window_line, x_clear_end_of_line)
2333 (x_scroll_bar_create, x_scroll_bar_set_handle)
2334 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2335 instead of XClearArea.
2336
2337 * xterm.h (x_clear_area): Add prototype.
2338
6613cfc4
GM
2339 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2340 which doesn't seem necessary anymore with Lesstif 0.92.
2341
650cc6cc
DL
23422001-01-25 Dave Love <fx@gnu.org>
2343
34ac3367
DL
2344 * puresize.h (BASE_PURESIZE): Up to 720000.
2345
650cc6cc
DL
2346 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2347
5e37dc22
GM
23482001-01-25 Gerd Moellmann <gerd@gnu.org>
2349
e1e441f9
GM
2350 * xdisp.c (echo_area_display): Don't call redisplay_internal
2351 when Emacs is shutting down. We can't run hooks etc. that
2352 would be necessary to do a redisplay.
2353
5e37dc22
GM
2354 * lread.c (read_integer): Use type EMACS_INT instead of int.
2355
0fb94c7f
EZ
23562001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2357
2358 * ccl.c (ccl_driver): Fix last change.
2359
e3778624
KH
23602001-01-25 Kenichi Handa <handa@etl.go.jp>
2361
2362 * ccl.h (sturct ccl_program): New member suppress_error.
2363
bb264518 2364 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2365 insert error message to the output.
2366 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2367
2368 * coding.h (struct coding_system): New member suppress_error.
2369
2370 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2371 (Fset_terminal_coding_system_internal): Set the member
2372 suppress_error to 1.
2373 (Fset_safe_terminal_coding_system_internal): Likewise.
2374
245ed2b1
SM
23752001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2376
2377 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2378 as if it was a `charset'.
2379
f9aaedb6
GM
23802001-01-24 Gerd Moellmann <gerd@gnu.org>
2381
2382 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2383 value in where_is_cache; the next lookup in the cache returns
2384 something bogus if we do.
2385
c3902c3e
EZ
23862001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2387
2388 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2389 if HAVE_WINDOW_SYSTEM isn't defined.
2390
3497f73e
GM
23912001-01-24 Gerd Moellmann <gerd@gnu.org>
2392
e7e41584
GM
2393 * fns.c (sweep_weak_table): Fix code taking items out of
2394 the hash collision chain. Some cleanup.
2395
3497f73e
GM
2396 * xterm.c (x_new_font): Don't change a tooltip's size.
2397
2398 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2399 background color by specifying a color for the default font
2400 in .Xdefaults.
2401
3d48e687
KH
24022001-01-24 Kenichi Handa <handa@etl.go.jp>
2403
96531b20
KH
2404 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2405 a workaround for SunOS 4's cc.
2406 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2407 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2408 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2409 statement.
3d48e687 2410
a30629d2
GM
24112001-01-23 Gerd Moellmann <gerd@gnu.org>
2412
2413 * xterm.c (x_set_window_size_1): New function extracted from
2414 x_set_window_size.
2415 (x_set_window_size): Use it.
2416 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2417 doesn't have a widget, like tooltips.
2418
5a43decf
EZ
24192001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2420
52283633 2421 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2422
b0e98867
KH
24232001-01-23 Kenichi Handa <handa@etl.go.jp>
2424
2425 * fns.c (Fset_char_table_default): Fix to make sub char-table
2426 correctly.
2427
50606b4c
GM
24282001-01-22 Gerd Moellmann <gerd@gnu.org>
2429
cb2ddc53 2430 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2431 a desired tool bar string, even if there are no tool bar items.
2432
57c28064
GM
2433 * xdisp.c (Ftool_bar_lines_needed): New function.
2434 (syms_of_xdisp): Defsubr it.
2435
50606b4c
GM
2436 * editfns.c (Fformat): Don't extend text properties from arguments
2437 to padding chars in the result.
2438
2f169c38
EZ
24392001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2440
2441 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2442
0f32f023
AI
24432001-01-20 Andrew Innes <andrewi@gnu.org>
2444
52283633 2445 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2446 (w32_initialize): Don't set term hooks that aren't actually needed
2447 in windowed mode.
2448
2449 * xfaces.c (realize_default_face):
2450 (realize_face):
2451 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2452
2453 * xdisp.c (handle_single_display_prop): Remove references to
2454 FRAME_W32_CONSOLE_P.
2455
52283633 2456 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2457
2458 * frame.h (output_method): Remove output_w32_console method.
2459 (FRAME_W32_CONSOLE_P): Remove macro.
2460
2461 * frame.c (Qw32_console): Remove variable.
2462 (Fframep): Remove references to it.
2463 (syms_of_frame): Ditto.
2464 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2465
2466 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2467 redefinition.
2468
7173eada
KH
24692001-01-20 Kenichi Handa <handa@etl.go.jp>
2470
2471 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2472
755b45ce
AI
24732001-01-19 Andrew Innes <andrewi@gnu.org>
2474
2475 * w32.c (init_environment): Add a version-independent site-lisp
2476 directory to EMACSLOADPATH, after the version dependent one.
2477
0a949811
GM
24782001-01-19 Gerd Moellmann <gerd@gnu.org>
2479
8501998a
GM
2480 * editfns.c (Fbuffer_substring): Doc fix.
2481
52283633
SM
2482 * xdisp.c (message_dolog, message2, message2_nolog):
2483 Rename parameter LEN to NBYTES.
0a949811 2484
e6ebcbbe
KH
24852001-01-19 Kenichi Handa <handa@etl.go.jp>
2486
200ecca2
KH
2487 * charset.c (strwidth): Use c_string_width.
2488 (c_string_width): New function.
2489 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2490 Caller changed.
2491
2492 * charset.h (c_string_width, lisp_string_width): Extern them.
2493
52283633 2494 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2495
e6ebcbbe
KH
2496 * indent.c (check_composition): Check validity of composition.
2497
200ecca2
KH
2498 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2499 characters by calling c_string_width.
2500 (x_consider_frame_title): Get byte length of frame tile string
2501 correctly.
2502 (display_mode_element): Pay attention to width of non-ASCII
2503 characters by calling strwidth.
2504
8692ca92
GM
25052001-01-18 Gerd Moellmann <gerd@gnu.org>
2506
8962e303
GM
2507 * xfns.c (Qcancel_timer): New variable.
2508 (syms_of_xfns): Initialize and staticpro it.
2509 (Fx_hide_tip, Fx_show_tip): Use it.
2510 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2511 the timer.
2512 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2513
91523be9
GM
2514 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2515
2516 * window.h (WINDOW_LIVE_P): New macro.
2517
b0b7ed0e
GM
2518 * window.c (window_size_fixed): New variable.
2519 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2520 the doc string.
2521
06bccf8e
GM
2522 * eval.c (specbind): If binding a per-buffer variable which
2523 doesn't have a buffer-local value in the current buffer, change
2524 the global value by changing the value of the symbol bound in all
2525 buffers not having their own value, to make it consistent with
2526 what happens with other buffer-local variables.
2527
8692ca92
GM
2528 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2529
2530 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2531 when searching for a newline.
2532
bb3a3b50
KH
25332001-01-18 Kenichi Handa <handa@etl.go.jp>
2534
2535 * xdisp.c (display_string): Fix previous change.
2536
c2cc16fa
JR
25372001-01-18 Jason Rumney <jasonr@gnu.org>
2538
2539 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2540 GLYPH_DEBUG is defined.
2541 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2542 true for images with `:ascent 100'.
2543 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2544 meantime, use face MOUSE_FACE_ID.
2545 If first glyph isn't a character glyph, use the ASCII NUL
2546 character to determine the face.
2547 (expose_area): Do not treat left margin specially.
2548 (note_mode_line_highlight): If no local_map, check global keymap.
2549 (note_mouse_highlight): Initialize overlay.
52283633 2550 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2551 (show_scroll_bars): Remove unused function.
2552 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2553 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2554 Clip to row.
52283633 2555 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2556 (x_free_frame_resources): Unload relief colors.
2557
9c11f79e
GM
25582001-01-17 Gerd Moellmann <gerd@gnu.org>
2559
3aec8722 2560 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2561 get_next_display_element when the newline is already found.
2562 This may change the iterator's position, when its current position is
3aec8722
GM
2563 equal to the iterator's stop_charpos.
2564
f3ffc2c3
GM
2565 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2566 zero, use this method only at the end of a line.
2567
52283633 2568 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2569 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2570 if SCALABLE_FONTS_P is set.
52283633 2571
d26d6fd9
GM
2572 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2573 so that scalable fonts are included.
2574
9c11f79e
GM
2575 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2576 In the cache, use a key containing the information if scalable
2577 fonts are included.
2578 (x_load_font): Adapt to change of keys in the font cache.
2579
25802001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2581
d26d6fd9
GM
2582 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2583 XListFonts to take advantage of font caching.
2584
9c11f79e
GM
2585 * xterm.c (x_list_fonts): Ensure caching font information when
2586 called for a null frame, which is the case frequently when Emacs
2587 starts.
2588
51446987
GM
25892001-01-17 Gerd Moellmann <gerd@gnu.org>
2590
f864120f
GM
2591 * xfns.c (QCconversion): Replaces QCalgorithm.
2592
2593 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2594
2595 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2596 of :algorithm.
52283633 2597
e37d1417
GM
2598 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2599 not everything could be displayed.
2600
51446987
GM
2601 * line.h, x-list-font.c: Files removed because unused.
2602
9ad4f3e5
AI
26032001-01-17 Andrew Innes <andrewi@gnu.org>
2604
2605 * dired.c (directory_files_internal): Convert result from readdir
2606 to a unibyte string initially, to avoid possible misinterpretation
2607 of some bytes as the internal form of Emacs characters.
2608
2eda09b5
KH
26092001-01-17 Kenichi Handa <handa@etl.go.jp>
2610
2611 * fns.c (concat): Be sure to avoid putting the same `composition'
2612 property on the adjacent regions.
2613
826f3788
GM
26142001-01-16 Gerd Moellmann <gerd@gnu.org>
2615
52283633 2616 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2617 (Fscroll_right, Fscroll_left): Set it here instead, if called
2618 interactively.
2619
d57b83b3
GM
2620 * buffer.c (Fset_buffer_modified_p): Set buffer's
2621 prevent_redisplay_optimizations_p flag.
2622
826f3788 2623 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2624 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2625 with additional arg.
2626
2627 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2628 Change prototype.
826f3788 2629
826f3788
GM
2630 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2631 FROM_WHERE, for debugging.
2632
261d788b
KH
26332001-01-16 Kenichi Handa <handa@etl.go.jp>
2634
2635 * ccl.c (Fregister_ccl_program): Handle the return value of
2636 resolve_symbol_ccl_program correctly.
52283633 2637 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2638
bccee4f2
GM
26392001-01-15 Gerd Moellmann <gerd@gnu.org>
2640
e4ded23c
GM
2641 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2642 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2643
2644 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2645 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2646 the display; we didn't open it.
2647
bccee4f2
GM
2648 * dispnew.c (save_or_restore_current_matrices): Function removed.
2649 (save_current_matrix, restore_current_matrix): New functions.
2650 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2651 restore the frame's current matrix. Due to the glyph pointer
2652 setup done in adjust_glyph_matrix, there is no easy way to make
2653 saving the current matrix in the desired matrix generally correct,
2654 so don't try it.
2655
ebeccffa
KH
26562001-01-15 Kenichi Handa <handa@etl.go.jp>
2657
2658 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2659 truncation glyphs.
2660 (display_line): Optimize for wide characters.
e4ded23c 2661 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2662 partially. On ttys, produce more than one truncation glyph for
2663 multi-column characters that don't fit on the line.
2664
64388126
KH
26652001-01-13 Kenichi Handa <handa@etl.go.jp>
2666
52283633
SM
2667 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2668 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2669
8edb0a6f
JR
26702001-01-13 Jason Rumney <jasonr@gnu.org>
2671
2672 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2673 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2674 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2675 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2676
52283633
SM
2677 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2678 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2679 (x_draw_image_glyph_string): Adapt to change of image margins.
2680
2681 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2682 variables.
2683
2684 * w32bdf.c (search_file_line, get_cached_font_char)
2685 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2686
2687 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2688
2689 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2690 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2691 (Fw32_send_sys_command): Remove unused variables.
2692 (w32_msg_pump): Add parentheses.
2693
2694 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2695 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2696 Add parentheses.
2697
4956d1ef
GM
26982001-01-12 Gerd Moellmann <gerd@gnu.org>
2699
b30623be
GM
2700 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2701 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2702 being a pair of margins.
2703 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2704 to DEFVAR_LISP. Extend doc.
2705
2706 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2707 margins.
2708 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2709 pair of integers `(X . Y)', use X for the horizontal and Y for the
2710 vertical margin.
2711 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2712 (parse_image_spec): Check it.
52283633
SM
2713 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2714 (tiff_format, gif_format, gs_format):
2715 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2716
52283633
SM
2717 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2718 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2719 (x_draw_image_glyph_string): Adapt to the change of image margins.
2720
2721 * dispextern.h (struct image): Replace member `margin' with
2722 `hmargin' and `vmargin'.
2723
4554cc79
GM
2724 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2725 and GLYPHS.
2726
2727 * dispnew.c (update_text_area): Put code which decrements the
2728 stop position when the row's face extends to the end of the
3bffc665 2729 line in #if 0.
4554cc79 2730
3cccce8d
GM
2731 * xfns.c (x_set_mouse_color): Fix color allocation.
2732
4956d1ef
GM
2733 * keyboard.c: Call get_local_map with new argument list.
2734
2735 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2736
2737 * intervals.h (enum map_property): Removed.
2738 (get_local_map): Change prototype.
2739
2740 * keymap.c: Call get_local_map with new argument list.
2741 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2742
2c2ff7f2
GM
27432001-01-11 Gerd Moellmann <gerd@gnu.org>
2744
a23887b9
GM
2745 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2746 of the size needed for the tool bar string. For the last image,
2747 use a `display' property that reaches to the end of the string.
2748
a7ee2d2e
GM
2749 * xselect.c (selection_request_dpyinfo): New variable.
2750 (x_handle_selection_request): Set it.
2751 (x_selection_request_lisp_error): Don't call
2752 x_decline_selection_request if selection request's display has
2753 been closed.
2754
52283633
SM
2755 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2756 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2757
457b792c
GM
27582001-01-10 Dave Love <fx@gnu.org>
2759
2760 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2761 ${SOME_MACHINE_LISP}, not ${lisp}.
2762
c1efd260
GM
27632001-01-10 Gerd Moellmann <gerd@gnu.org>
2764
52283633
SM
2765 * xdisp.c (display_line): On ttys, produce more than one truncation
2766 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2767
ac95a621
GM
2768 * xselect.c (x_reply_selection_request): Add a comment.
2769
c1efd260
GM
2770 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2771 XkbGetNames instead of XkbGetKeyboard.
2772
1bfb1345
DL
27732001-01-10 Dave Love <fx@gnu.org>
2774
2775 * sysdep.c (random): Revert the declaration.
2776
38119822
GM
27772001-01-09 Gerd Moellmann <gerd@gnu.org>
2778
52283633
SM
2779 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2780 Call function string_bytes.
35f464a7
GM
2781 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2782
2783 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2784 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2785 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2786 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2787 the current sblock.
2788 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2789 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2790 after sweeping strings, and at the end.
2791 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2792
38119822
GM
2793 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2794 ensure that pop_message is called.
2795
2796 * keyboard.c (Fexecute_extended_command): Use a
2797 record_unwind_protect to ensure that pop_message is called.
2798
2799 * lisp.h (push_message_unwind): Add prototype.
2800
2801 * xdisp.c (push_message_unwind): New function.
2802
2803 * fileio.c (do_auto_save_unwind): Do the pop_message here
2804 instead of in Fdo_auto_save.
2805 (Fdo_auto_save): Don't call pop_message.
2806
f47a9ec4
KR
28072001-01-08 Ken Raeburn <raeburn@gnu.org>
2808
2809 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2810 in inner block.
2811
a758f97d
GM
28122001-01-08 Gerd Moellmann <gerd@gnu.org>
2813
6d0afc03
GM
2814 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2815 when increasing window's vscroll.
2816
a758f97d
GM
2817 * macros.c (Qkbd_macro_termination_hook): New variable.
2818 (syms_of_macros): Initialize and staticpro it.
2819 (pop_kbd_macro): Run kbd-macro-termination-hook.
2820
2821 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2822
1bfb1345 28232001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2824
2825 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2826 arglist, for documentation's sake.
2827
0dac6924
AI
28282001-01-06 Andrew Innes <andrewi@gnu.org>
2829
2830 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2831 of *.pdb.
2832
8182406a
AI
28332001-01-05 Andrew Innes <andrewi@gnu.org>
2834
2835 * term.c (update_end): Don't check updating_frame; for some reason
2836 this can be 0 sometimes, such as after dismissing a popup menu,
2837 and isn't necessary given the explicit frame argument.
2838
3828218c
GM
28392001-01-05 Gerd Moellmann <gerd@gnu.org>
2840
2841 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2842 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2843
2f5ded21
GM
28442001-01-04 Gerd Moellmann <gerd@gnu.org>
2845
52283633 2846 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2847
2848 * xfns.c (x_create_tip_frame): Preserve the value of
2849 face_change_count around the creation of the tip frame.
52283633 2850
2f5ded21
GM
2851 * xfns.c (last_show_tip_args): New variable.
2852 (compute_tip_xy): New function.
2853 (Fx_show_tip): Reuse an existing tip frame, if possible.
2854 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2855
dfad65fa
DL
28562001-01-04 Dave Love <fx@gnu.org>
2857
64d4ec0f
DL
2858 * editfns.c (Fformat): Doc fix.
2859
dfad65fa
DL
2860 * systime.h (set_file_times): Prototype.
2861
2862 * widget.h (EmacsFrameSetCharSize_): Prototype.
2863
2864 * sysdep.c (random, srandom): Declare explicitly.
2865
2866 * dispextern.h (move_it_vertically_backward): Declare.
2867
85fe3b5e
GM
28682001-01-04 Gerd Moellmann <gerd@gnu.org>
2869
0f2ac578
GM
2870 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2871 like in Fx_create_frame.
2872
482cca61
GM
2873 * xfaces.c (set_font_frame_param): Don't do anything for
2874 non-graphical frames.
2875
85fe3b5e
GM
2876 * window.c (Fdelete_other_windows): Set window's window_end_valid
2877 to nil when changing the window's start. Don't change the
2878 window's start when its top position hasn't changed. If we do,
2879 this will set the window's optional_new_start, which act's like a
2880 force_start during redisplay with C-x 1 M-> under particular
2881 circumstances (see report from Per Starback to emacs-pretest-bug
2882 from 2000-12-13.).
2883
3e99d3b4
GM
28842001-01-03 Gerd Moellmann <gerd@gnu.org>
2885
a77dc1ec
GM
2886 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2887 short cut at the start of the function. Add an assertion.
2888 (reseat_at_next_visible_line_start): Add an assertion.
2889
2f3cad6c
GM
2890 * window.c (Frecenter): When changing the window start, set the
2891 window's window_end_valid to nil.
2892 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2893
2894 * dispextern.h (move_it_past_eol): Add prototype.
2895
2896 * xdisp.c (move_it_past_eol): New function.
2897
3e99d3b4
GM
2898 * window.c (Fwindow_end): Doc fix.
2899
29002001-01-03 Dave Love <fx@gnu.org>
2901
52283633 2902 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2903
bafb434c
GM
29042001-01-03 Gerd Moellmann <gerd@gnu.org>
2905
2906 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2907 the enabled_p flag of the glyph row at window_end_vpos to 0.
2908 (handle_single_display_prop): Fix last change.
2909
5297fb00
RS
29102001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2911
2912 * window.c (Frecenter): Doc fix.
2913
13d6a61c
AI
29142001-01-02 Andrew Innes <andrewi@gnu.org>
2915
2916 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2917
2918 * frame.h (output_method): Add output_w32_console method.
2919 (FRAME_W32_CONSOLE_P): New macro.
2920
2921 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2922 use output_w32_console method.
2923 (Qw32_console): New Lisp_Object.
2924 (Fframep): Return it.
2925 (syms_of_frame): Init it.
52283633 2926 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2927
2928 * xfaces.c (realize_default_face): Set face foreground and
2929 background to unspecified for w32_console frames.
2930 (realize_face): Realize face cache for w32_console frames.
2931 (realize_tty_face): Accept w32_console frames.
2932
52283633 2933 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2934 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2935 necessary, even if running interactively.
2936
2937 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2938 w32_console frames.
2939
52283633
SM
2940 * w32term.c (x_update_begin):
2941 (x_update_end):
2942 (x_clear_frame):
2943 (x_ins_del_lines):
2944 (x_change_line_highlight):
2945 (x_delete_glyphs):
2946 (w32_ring_bell):
2947 (x_update_begin):
2948 (x_update_end):
2949 (w32_reassert_line_highlight):
2950 (w32_frame_rehighlight):
13d6a61c
AI
2951 (w32_frame_raise_lower): Do nothing if not w32 frame.
2952
2953 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2954
2955 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2956 system doesn't tell us directly.
2957 (Fx_display_visual_class): Implement properly.
2958
d6bb0c0d
GM
29592001-01-02 Gerd Moellmann <gerd@gnu.org>
2960
2961 * window.c (Frecenter): Handle centering in graphical frames
2962 specially. Centering on the basis of line counts doesn't work
2963 reliably with variable-height lines.
52283633 2964
315f5865
EZ
29652001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2966
2967 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2968 and al[].
2969
52283633 2970 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2971 (update_compositions): Remove unused variable `hook'.
2972
2973 * intervals.c (get_local_map): Remove unused variable `tem'.
2974
2975 * doprnt.c (doprnt1): Remove unused variable `size'.
2976
2977 * fns.c (Flength): Remove unused variable `tail'.
2978 (Fdelete): Remove unused variable `size'.
2979
2980 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2981 and `gcpro2'.
2982
52283633 2983 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2984
2985 * data.c (find_symbol_value): Remove extra 3rd argument in the
2986 call to swap_in_symval_forwarding.
2987
52283633 2988 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2989
2990 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2991 (trivial_regexp_p): Remove unused variable `c'.
2992 (boyer_moore): Remove unused variable `k'.
2993
2994 * indent.c (current_column): Remove unused variable `stopchar'.
2995 (Fcompute_motion): Remove unused variable `contin'.
2996
2997 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2998
2999 * dired.c (directory_files_internal): Fix a typo in a comment.
3000 Remove an unused variable `handler'.
52283633 3001 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
3002 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3003 on BSD4_2.
3004
52283633 3005 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
3006
3007 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3008 and `buf'.
3009 (Fmarker_insertion_type): Remove unused variable `buf'.
3010
3011 * insdel.c (make_gap): Remove unused variable `result'.
3012
52283633 3013 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
3014 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3015 (menu_bar_items): Remove unused function-scope variable `tem'.
3016
3017 * fontset.c (fontset_ref): Remove unused variable `i'.
3018 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 3019 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
3020 (make_fontset_for_ascii_face): Remove unused variable `name'.
3021 (fs_load_font): Remove unused variable `font_idx'.
52283633 3022 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
3023 (list_fontsets): Remove unused variable `tail'.
3024 (Fnew_fontset): Remove unused variables `family' and `registry'.
3025 (accumulate_font_info): Remove unused variable `tmp'.
3026 (Ffontset_font): Remove unused variable `id'.
3027 (syms_of_fontset): Remove unused variable `i'.
3028
3029 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3030 to x_term_init.
3031 (lookup_image): Remove unused variable `file'.
3032 (xbm_load): Remove unused variables `bitmap_data', `height', and
3033 `width'. Remove function-local variable `i', leave the
3034 block-local one.
3035 (gif_load): Remove unused variable `inc'.
3036
52283633 3037 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
3038 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3039 leave only the one in the inner block.
3040
3041 * xfaces.c (face_fontset, realize_default_face): Remove unused
3042 variable `fontset'.
3043 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3044
3045 * term.c (encode_terminal_code): Remove unused variable `c'.
3046
3047 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3048 char *' instead of `char *'.
3049
3050 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 3051 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
3052 (Fchar_category_set): Remove unused variables `val', `charset',
3053 `c1' and `c2'.
3054
52283633
SM
3055 * coding.c (detect_coding_iso2022, setup_coding_system):
3056 Remove unused variable `i'.
315f5865
EZ
3057 (detect_coding_mask): Remove unused variable `idx'.
3058 (detect_coding): Remove unused variable `i'.
3059 (ccl_coding_driver): Remove unused variable `result'.
3060 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 3061 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
3062 (encode_coding_string): Remove unused variables `gcpro1' and
3063 `saved_coding_symbol'.
3064 (Ffind_coding_systems_region_internal): Remove function-local
3065 variable args[], leave only the block-local one.
3066 (code_convert_region1): Remove unused variable `len'.
3067
3068 * charset.c (char_printable_p): Remove unused variable `chars'.
3069 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3070 (str_to_multibyte): Remove unused variable `c'.
3071
3072 * window.c (size_window): Remove block-local variable `min_size'.
3073
3074 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3075 `header_line_height'.
3076 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3077 enum display_element_type.
3078
1a8a9daf
GM
30792001-01-02 Gerd Moellmann <gerd@gnu.org>
3080
6dde6abc 3081 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
3082 statements that call X. Save away the error message in a local copy.
3083
1883b2c6
GM
3084 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3085 the start.
3086
a13be207
GM
3087 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3088 in or at the start of invisible text.
3089
1a8a9daf
GM
3090 * dispnew.c (update_window): Don't check_current_matrix_flags.
3091
3608c0f9
JR
30922001-01-01 Jason Rumney <jasonr@gnu.org>
3093
3094 * w32fns.c (x_figure_window_size): Do not allow new_height and
3095 new_width of frame to override specified values.
3096
abb1acc4
KH
30972000-12-30 Kenichi Handa <handa@etl.go.jp>
3098
52283633 3099 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 3100
762a68ec
GM
31012000-12-29 Gerd Moellmann <gerd@gnu.org>
3102
52283633 3103 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
3104 (update_window) [GLYPH_DEBUG]: Call it.
3105 (scrolling_window): Prevent including current rows which are below
3106 what's displayed in the window.
3107
3108 * xdisp.c (try_window_reusing_current_matrix)
3109 <new start <= old start>: Disable rows in the current matrix
3110 which are below the window after scrolling.
52283633 3111
762a68ec
GM
3112 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3113 is zero. It's not worth the complexity.
3114 (invisible_text_between_p): Put in #if 0 because unused.
3115
2d5912c1
GM
31162000-12-28 Gerd Moellmann <gerd@gnu.org>
3117
46f6a258
GM
3118 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3119 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3120
89f93679
GM
3121 * keyboard.c (echo_char): If C is an integer, always call
3122 push_key_description. Former code could signal an invalid
3123 character error.
3124
3125 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3126 If set, print multibyte text.
3127 (Fsingle_key_description): Call push_key_description with
3128 FORCE_MULTIBYTE set.
3129 (describe_buffer_bindings): Likewise.
3130
3131 * lisp.h (push_key_description): Add prototype.
3132
c06017fb
GM
3133 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3134 around the call to redisplay_internal.
3135
f1d2ce7f
GM
3136 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3137
2d5912c1
GM
3138 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3139
9371f831
KH
31402000-12-28 Kenichi Handa <handa@etl.go.jp>
3141
3142 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3143 (ccl_driver): New local variable `extra_bytes'.
3144
3145 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3146
52283633
SM
3147 * coding.c (setup_coding_system):
3148 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
3149 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3150
0c80628a
KH
31512000-12-28 Kenichi Handa <handa@etl.go.jp>
3152
3153 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3154 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3155 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3156 (decode_composition_emacs_mule): New function.
3157 (decode_coding_emacs_mule): Decode composition sequence by calling
3158 decode_composition_emacs_mule.
3159 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
3160 (encode_coding_emacs_mule): Changed from macro to function.
3161 If a text contains compositions, encode them correctly.
0c80628a
KH
3162 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3163 that decoding and encoding are required.
3164
3e32cc27
GM
31652000-12-27 Gerd Moellmann <gerd@gnu.org>
3166
5e25feee
GM
3167 * xfaces.c (PT_PER_INCH): New macro.
3168 (xlfd_point_size): Compute real point size from font's pixel size.
3169 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3170 instead of 72.
3171
892d8fcd
GM
3172 * .gdbinit: Comment out the line pointing to the Lesstif source
3173 directory.
3174
12c8b416
GM
3175 * window.c (Frecenter): Use displayed_window_lines instead
3176 of window_internal_height.
3177
6061fbf0
GM
3178 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3179 instead of x-toolkit-scroll-bars-p.
3180 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3181
3182 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3183 instead of x-toolkit-scroll-bars-p.
3184 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 3185
3e32cc27
GM
3186 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3187 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
3188 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3189 New variables.
3190 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
3191 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3192 (build_frame_matrix_from_leaf_window): Remove unused code.
3193 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3194 redisplay history.
3195 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3196 (update_window) [GLYPH_DEBUG]: Likewise.
3197 (syms_of_display): Defsubr dump-redisplay-history.
3198
31798cfe
GM
31992000-12-23 Gerd Moellmann <gerd@gnu.org>
3200
f717c2ba
GM
3201 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3202 the end of the prompt. Set echo_after_prompt to the offset
3203 of echoptr in echobuf.
3204
aeb2b8fc
GM
3205 * xdisp.c (init_from_display_pos): Pop until the iterator's
3206 stack is empty; there may be frames for stretch or images
3207 on the stack.
3208
31798cfe
GM
3209 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3210 (save_or_restore_current_matrix): New function for the same
3211 purpose, but more efficient.
3212 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3213
f8156156
EZ
32142000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3215
3216 * xdisp.c (syms_of_xdisp): Fix last change.
3217
bdd6d4e8
GM
32182000-12-23 Gerd Moellmann <gerd@gnu.org>
3219
3220 * xdisp.c (syms_of_xdisp): Doc fix.
3221
3222 * xdisp.c (redisplay_window): Remove label restore_buffers;
3223 use finish_scroll_bars instead to make sure that scroll bars
3224 are redeemed. If we don't do this, flickering can result from
3225 scroll bars being destroyed and recreated.
3226
9436cdf9
JR
32272000-12-22 Jason Rumney <jasonr@gnu.org>
3228
3229 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3230 in the wrong colors when the foreground is not black.
3231 (expose_window): Don't redraw the window that's currently being
3232 updated.
3233
951f9df5
GM
32342000-12-22 Gerd Moellmann <gerd@gnu.org>
3235
856ff7a7
GM
3236 * window.c (size_window): When setting the window's too_small_ok
3237 flag, compare old size with minimum size depending on WIDTH_P,
3238 don't compare with window_min_width.
52283633 3239
951f9df5
GM
3240 * window.c (delete_window): Simplify somewhat.
3241 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3242 freeing window matrices. The flag windows_or_buffers_changed is
3243 set, so the next redisplay will consider all windows; this should
3244 suffice.
3245
886bc933
KH
32462000-12-22 Kenichi Handa <handa@etl.go.jp>
3247
3248 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3249
3250 * ccl.h (struct ccl_program): New member cr_consumed.
3251
3252 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3253 (CCL_READ_CHAR): Handle EOL conversion here.
3254 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3255
177f4e88
GM
32562000-12-21 Gerd Moellmann <gerd@gnu.org>
3257
52283633 3258 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
3259
3260 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3261 otherwise tabs of different size compare equal.
3262
3263 * callint.c (Fcall_interactively): Prevent a compiler warning.
3264
3265 * print.c (print_unwind): Return nil.
3266 (PRINTDECLARE): Initialize all local variables.
3267 (print_preprocess): Add a default case.
3268
8e15274f
GM
3269 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3270
3271 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3272
52283633 3273 * window.c (delete_window, Fsplit_window)
177f4e88
GM
3274 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3275
3276 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3277
3278 * dispnew.c (ensure_frame_matrix): Removed.
3279 (save_frame_matrix, restore_frame_matrix): New functions.
3280 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3281
3282 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3283 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3284
99012074
AI
32852000-12-21 Andrew Innes <andrewi@gnu.org>
3286
3287 * w32term.c (x_update_begin): Regenerate the palette here, rather
3288 than for each window.
3289
3290 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3291 palette is NULL, since this corrupts memory! Also get
3292 display_info reference from frame.
3293
29ef7d2d
JR
32942000-12-21 Jason Rumney <jasonr@gnu.org>
3295
3296 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3297
3298 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3299 to avoid returning without releasing it.
3e27fa1f 3300
3f9d67a6
KH
33012000-12-21 Kenichi Handa <handa@etl.go.jp>
3302
587fc3f9
KH
3303 * keymap.c (push_key_description): Don't convert eight-bit-control
3304 and eight-bit-graphic to multibyte character.
3305
3f9d67a6
KH
3306 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3307 generic character and CODE1 is nil, return the smallest character
3308 in CHARSET.
3309
774ba8c9
DL
33102000-12-20 Dave Love <fx@gnu.org>
3311
3312 * s/osf5-0.h (NSIG): Don't redefine.
3313
88416888
SM
33142000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3315
3316 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3317 excluding menu-bar and tool-bar.
3318 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3319 (menu_item_p): Remove.
3320 (where_is_internal_1): Don't ignore menu-items.
3321
a6426c6f
GM
33222000-12-20 Gerd Moellmann <gerd@gnu.org>
3323
03ff8aab
GM
3324 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3325 into account.
3326
3327 * window.c (make_window): Initialize window's min_hscroll.
3328 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3329 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3330 to zero.
3331 (struct saved_window): New member min_hscroll.
3332 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3333 (Fset_window_configuration): Set window's min_hscroll.
3334 (save_window_save): Save window's min_hscroll.
3335 (compare_window_configurations): Compare min_hscroll values.
3336
3337 * window.h (struct window): New member min_hscroll.
3338
3339 * keyboard.c (echo_prompt): Prevent a compiler warning.
3340
8de4aaf8
GM
3341 * xdisp.c (try_cursor_movement): Fix last change. The real
3342 condition is that PT is at the end of the row, and should
3343 be displayed at the start of the next row.
52283633 3344
3f7e3031
GM
3345 * xdisp.c (try_cursor_movement): If we end on a partially
3346 visible line, end we already decided to scroll, return -1.
3347
a6426c6f
GM
3348 * dispextern.h (ensure_frame_matrix): Add prototype.
3349
3350 * window.c (delete_window, Fsplit_window)
3351 (Fset_window_configuration): Call ensure_frame_matrix.
3352
52283633
SM
3353 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3354 New functions.
a6426c6f
GM
3355 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3356 completed, call fake_current_matrices instead of marking frame
3357 garbaged.
3358
57fa2774
JR
33592000-12-20 Jason Rumney <jasonr@gnu.org>
3360
3361 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3362
d925df90
EZ
33632000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3364
3365 * fns.c (Frequire): Doc fix.
3366
7b93a85b
GM
33672000-12-19 Gerd Moellmann <gerd@gnu.org>
3368
52283633 3369 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3370
c74e645b
GM
3371 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3372 currently displaying a message.
3373
7b93a85b
GM
3374 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3375 xterm.h.
3376 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3377
90d97e64
AI
33782000-12-18 Andrew Innes <andrewi@gnu.org>
3379
3380 * w32.c (w32_strerror): New function.
3381
3382 * w32.h (w32_strerror): New extern.
3383
3384 * w32fns.c (Fw32_shell_execute): Use it.
3385
91c9e6ce
GM
33862000-12-18 Gerd Moellmann <gerd@gnu.org>
3387
3388 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3389
6f4745e2
EZ
33902000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3391
3392 * msdos.c (IT_set_face): Obey inverse_video.
3393
c9e088ce
KH
33942000-12-18 Kenichi Handa <handa@etl.go.jp>
3395
3396 * dired.c (directory_files_internal): Always return decoded filenames.
3397
c3695f5f
GM
33982000-12-18 Gerd Moellmann <gerd@gnu.org>
3399
52d8e4ff
GM
3400 * xterm.c (x_connection_closed): Prevent being called recursively
3401 because of an error condition in XtCloseDisplay.
52283633 3402
62be9979
GM
3403 * xdisp.c (init_iterator): If noninteractive, and the frame's
3404 face cache is null, make one.
3405
52283633 3406 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3407
c3695f5f
GM
3408 * process.c (wait_reading_process_input): Check for pending
3409 input when running timers.
3410
78555fbe
EZ
34112000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3412
52283633 3413 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3414
b2b36264
KH
34152000-12-18 Kenichi Handa <handa@etl.go.jp>
3416
3417 * process.c (read_process_output): Don't run a filter if the code
3418 decoder produces nothing but carryover.
3419
9c543fbf
AI
34202000-12-17 Andrew Innes <andrewi@gnu.org>
3421
3422 * w32.c (sys_rename): Only check errno against EEXIST, and not
3423 EACCES, when determining whether rename failed because the target
3424 exists. This was resulting in indefinite looping on Windows 9x if
3425 the source file was locked by another process.
3426
3427 * w32fns.c (Ffile_system_info): New function.
3428 (syms_of_w32fns): Defsubr it.
3429
10c2b5a8
GM
34302000-12-17 Gerd Moellmann <gerd@gnu.org>
3431
b0228ace
GM
3432 * window.c (coordinates_in_window): Fix computation for
3433 position on vertical line between mode lines.
3434
10c2b5a8
GM
3435 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3436 Don't alter tip_frame or tip_window.
3437 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3438 was deleted.
3439
c844a81a
GM
3440 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3441 Don't alter tip_frame or tip_window.
3442 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3443 was deleted.
3444
6c825f8e
EZ
34452000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3446
3447 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3448 be consistent with the doc string. Reported by NAKAJIMA Mikio
3449 <minakaji@osaka.email.ne.jp>.
3450
af4bb4c8
KH
34512000-12-16 Kenichi Handa <handa@etl.go.jp>
3452
3453 * xfaces.c (Vface_ignored_fonts): New variable.
3454 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3455 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3456
8062e53a
GM
34572000-12-15 Gerd Moellmann <gerd@gnu.org>
3458
e87b8809
GM
3459 * dispnew.c (update_window): Detect pending input every nth line
3460 updated, i.e. do it depending on real work done, and not on the
3461 vpos of the line.
3462
3463 * xterm.c (expose_window): Don't redraw the window that's
3464 currently being updated.
3465
a6768cc5
GM
3466 * window.c (Fset_window_point): Remove test for
3467 cursor_in_non_selected_windows.
3468
4ea7fdca
GM
3469 * lread.c (read1): Recognize end of file after `\\'.
3470
8062e53a
GM
3471 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3472 not unwind_create_frame.
3473
bb7959c1
GM
34742000-12-15 Dave Love <fx@gnu.org>
3475
3476 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3477 bcopy & al.
3478
3479 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3480
ced04c42
KH
34812000-12-15 Kenichi Handa <handa@etl.go.jp>
3482
c5443913
KH
3483 * coding.c (setup_coding_system): Clear all members of the struct
3484 coding_system at first.
bc137305
KH
3485 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3486 argument.
3487 (code_convert_region): Don't override coding->src_multibyte and
3488 coding->dst_multibyte.
c5443913 3489
ced04c42
KH
3490 * fns.c (Fmd5): Docstring improved.
3491
c2d7f289
MB
34922000-12-15 Miles Bader <miles@gnu.org>
3493
3494 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3495 are actually marked as mode-lines; otherwise use
3496 estimate_mode_line_height.
3497
9d7d9263
GM
34982000-12-14 Gerd Moellmann <gerd@gnu.org>
3499
3500 * editfns.c (Fformat): Prevent a buffer overrun when the format
3501 specifies a precision.
3502
7cf0153a
EZ
35032000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3504
3505 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3506 argument is outside the range [2..3].
3507
1de0f662
AI
35082000-12-14 Andrew Innes <andrewi@gnu.org>
3509
3510 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3511 nothing to do. Bind inhibit-quit.
3512 (tip_frame): Make it a Lisp_Object.
3513 (x_create_tip_frame): Set tip_frame after it has been added to
3514 Vframe_list.
3515 (Fx_show_tip): Don't set tip_frame here.
52283633 3516 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3517 (unwind_create_frame, unwind_create_tip_frame): New functions.
3518 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3519 while a frame is only partially constructed.
3520
3521 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3522 (x_free_frame_resources): New function.
3523 (x_destroy_window): Use it.
3524
02387dcc
GM
35252000-12-14 Gerd Moellmann <gerd@gnu.org>
3526
3527 * xfns.c (Fx_backspace_delete_keys_p): New function.
3528 (syms_of_xfns): Defsubr it.
3529
3530 * config.in (HAVE_XKBGETKEYBOARD): Add.
3531
0544ef49
KH
35322000-12-14 Kenichi Handa <handa@etl.go.jp>
3533
98d62747
KH
3534 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3535 Always store string in multibyte representation in echobuf.
3536 (echo_char): Always store string in multibyte representation in
3537 echobuf.
3538 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3539 (read_key_sequence): Adjusted for the change of echo_prompt.
3540
a20193cd
KH
3541 * fns.c (Fmd5): Docstring improved.
3542
191b83b6
KH
3543 * lisp.h (detect_coding_system): Prototype adjusted.
3544
0544ef49
KH
3545 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3546 (detect_coding_emacs_mule, detect_coding_iso2022,)
3547 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3548 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3549 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3550 (detect_coding_mask, detect_coding_system): New argument
3551 MULTIBYTEP. Callers changed.
1da1bb05
KH
3552 (decode_coding_string): Set coding->src_multibyte and
3553 coding->dst_multibyte before calling detect_coding and detect_eol.
3554 Update them after some coding system is detected.
52283633 3555
d5b3eb1b
SM
35562000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3557
3558 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3559
3560 * keyboard.c (menu_bar_items, tool_bar_items):
3561 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3562
f7f8bb69
GM
35632000-12-13 Gerd Moellmann <gerd@gnu.org>
3564
52283633 3565 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3566 New variables.
3567 (unwind_create_frame, unwind_create_tip_frame): New functions.
3568 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3569 while a frame is only partially constructed.
3570
3571 * xterm.h (x_free_frame_resources): Declare.
3572
3573 * xterm.c (x_free_frame_resources): New function.
3574 (x_destroy_window): Use it.
3575
e10da507
GM
3576 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3577 don't interrupt the update for pending input initially, i.e.
3578 update at least some lines.
3579
3580 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3581
d5b3eb1b 3582 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3583
3584 * xfns.c (gray_bitmap_bits): Declare `char *'.
3585
90aa2856
GM
35862000-12-12 Gerd Moellmann <gerd@gnu.org>
3587
3588 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3589 lines start with a relief line.
3590
a308c9cd
DL
35912000-12-12 Dave Love <fx@gnu.org>
3592
3593 * window.c (Fdisplay_buffer): Doc fix.
3594 (Fwindow_list): Remove unused var.
3595
3596 * buffer.h (mmap_set_vars): Declare.
3597
3598 * window.h (Fset_window_point): Declare.
3599
d575011f
EZ
36002000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3601
bf6282d2 3602 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3603 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3604 variable `area'. When looking for a row under (X,Y), give up if some
3605 of the previous rows is not enabled.
d575011f 3606
ecf4d726
GM
36072000-12-12 Gerd Moellmann <gerd@gnu.org>
3608
2ebf6139
GM
3609 * window.c (Fset_window_point): If displaying cursors in windows
3610 other than the selected window, make sure redisplay updates
3611 other windows to show the new value of point in the window.
3612
3613 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3614
bfdb75ee
GM
3615 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3616 the buffer is the sole visible buffer when in the mini-buffer.
3617
52283633 3618 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3619 Bind `inhibit-read-only' to t.
3620 (unwind_with_echo_area_buffer): Use AREF.
3621
c0006262
GM
3622 * xfns.c (Fx_hide_tip): Simplified.
3623
52283633
SM
3624 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3625 instead of `1'.
e9a59cad 3626
ecf4d726
GM
3627 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3628
e5959a9a
GM
36292000-12-11 Gerd Moellmann <gerd@gnu.org>
3630
a3642e49 3631 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3632
44b5a125
GM
3633 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3634 nothing to do. Bind inhibit-quit.
3635 (tip_frame): Make it a Lisp_Object.
3636 (x_create_tip_frame): Set tip_frame after it has been added to
3637 Vframe_list.
3638 (Fx_show_tip): Don't set tip_frame here.
3639
3640 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3641
3642 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3643 Lisp_Object.
3644
3645 * dispextern.h: Change external declaration of tip_frame.
3646
d990421f
GM
3647 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3648 return an empty string.
3649
4db87380
GM
3650 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3651 of the window's update_mode_line flag, since the former is set by
3652 force-mode-line-update, not the latter. This makes
3653 column-number-mode slightly faster.
52283633 3654
e5959a9a
GM
3655 * xdisp.c (try_window_id) <all changes above window start>:
3656 Set the cursor.
3657
169fe44e
GM
36582000-12-11 Paul Eggert <eggert@twinsun.com>
3659
3660 * config.in (HAVE_FTELLO): Remove.
3661 (HAVE_FSEEKO): Add.
3662 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3663 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3664 HAVE_FTELLO.
3665 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3666 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3667
59ec59ae
MB
36682000-12-11 Miles Bader <miles@gnu.org>
3669
3670 * window.c (displayed_window_lines): Don't round up when
3671 converting empty space at bottom to lines.
ff904dd6
MB
3672 Handle non-newline-terminated final lines properly.
3673 (Fwindow_text_height): New function (used to be in lisp).
3674 (syms_of_window): Initialize it.
59ec59ae 3675
42ebfa31
SM
36762000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3677
3678 * syntax.c (scan_lists): Check that the right quote char has the
3679 right Sstring syntax when jumping over strings.
3680 (init_syntax_once): Use Smax rather than 13.
3681
5cdb3cf3
MB
36822000-12-09 Miles Bader <miles@gnu.org>
3683
3684 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3685 with PARTIALLY, inverting the sense.
3686 (window_scroll_pixel_based): Scroll partially visible lines into
3687 place if we hit the beginning or end of the buffer.
a12167c5
MB
3688 (displayed_window_lines): Don't include partially visible lines.
3689 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3690
842b2a94
GM
36912000-12-08 Gerd Moellmann <gerd@gnu.org>
3692
3693 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3694
3695 * tparam.c (tparam1): Change the way buffers are reallocated to be
3696 portable and less obfuscated.
3697
3698 * termcap.c (tgetent): Change the way buffers are reallocated to
3699 be portable and less obfuscated.
3700
3701 * macros.c (store_kbd_macro_char): Change the way buffers are
3702 reallocated to be portable and less obfuscated.
3703
3704 * lread.c (read1): Change the way buffers are reallocated to be
3705 portable and less obfuscated.
3706
3707 * doc.c (Fsubstitute_command_keys): Change the way buffers
3708 are reallocated so that it is portable.
3709
137cad7c
EZ
37102000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3711
3712 * dosfns.c (Ffile_system_info): New function.
3713 (syms_of_dosfns): Defsubr it.
3714
5c7f629c
SM
37152000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3716
3717 * alloc.c (gc_sweep): Add comment.
3718
959e647d
GM
37192000-12-07 Gerd Moellmann <gerd@gnu.org>
3720
52283633
SM
3721 * sound.c (vox_configure): Change order of ioctls.
3722 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3723 Ignore errors when changing volume.
3724 (vox_close): Don't reset the device.
3725
926b7e5e
GM
3726 * process.c (read_process_output): Make sure the process marker's
3727 position is valid when the process buffer is changed in
3728 after-change functions. W3 does that.
52283633 3729
959e647d
GM
3730 * xfns.c (x_free_gcs): New function.
3731
3732 * xterm.h (x_free_gcs): Add prototype.
3733
3734 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3735 freeing GCs here.
3736
3737 * xterm.c (x_destroy_window): Call x_free_gcs so that
3738 resources of non-toolkit X windows will be freed.
3739
478ea067
AI
37402000-12-07 Andrew Innes <andrewi@gnu.org>
3741
3742 * w32fns.c (xlfd_charset_of_font): Fix last change.
3743
fbee3231
DL
37442000-12-06 Dave Love <fx@gnu.org>
3745
67292061
DL
3746 * md5.h (__P): Don't define -- it comes from config.h.
3747
fbee3231
DL
3748 * strftime.c: Change some #if foo to #ifdef foo.
3749
4ee87dbb
AI
37502000-12-06 Andrew Innes <andrewi@gnu.org>
3751
3752 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3753
52283633 3754 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3755 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3756 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3757
9765b4a4
GM
37582000-12-06 Gerd Moellmann <gerd@gnu.org>
3759
d285b373
GM
3760 * alloc.c (gc_sweep): Prevent symbols read during loadup
3761 from being freed.
3762
384333ee
GM
3763 * xdisp.c (underlying_face_id): New function.
3764 (handle_face_prop, face_before_or_after_it_pos): Use it
3765 to determine the face ``under'' a string. Let strings inherit
3766 the face of the buffer under them.
3767
3768 * xfaces.c (face_at_string_position): Update function comment.
52283633 3769
d4b72d58
GM
3770 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3771 matrix if the window's left position has changed; we need to
3772 redraw it in this case.
3773
3774 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3775
e1d05387
GM
3776 * window.c (coordinates_in_window): Check mouse on mode-line or
3777 header-line first.
3778
eb1b0c74
GM
3779 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3780 advertized by the function documentation.
3781
d94d636f
GM
3782 * window.c (syms_of_window): Doc fix.
3783
3887b449
GM
3784 * sound.c (vox_configure): Set volume for left and right channel.
3785 (sound_cleanup): Return nil.
3786
efc8f57a
GM
3787 * xdisp.c (move_it_by_lines): Fix paren typo.
3788
9765b4a4
GM
3789 * xterm.c (x_load_font): Don't use the font's max_bounds for
3790 computing the height of the font. If max_bounds' ascent or
3791 descent are greater than the font's ascent or descent, this means
3792 glyphs overlap, which should be handled now by redisplay.
3793
6529ed87
GM
3794 * window.c (Veven_window_heights): New variable.
3795 (syms_of_window): DEFVAR_LISP it.
3796 (Fdisplay_buffer): Check Veven_window_heights before evening the
3797 window heights.
52283633 3798
0eb2ecde
MB
37992000-12-06 Miles Bader <miles@gnu.org>
3800
3801 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3802 update `default-frame-alist' instead of setting no frame parameters.
3803
03d7a167
KH
38042000-12-06 Kenichi Handa <handa@etl.go.jp>
3805
3806 * composite.c (update_compositions): Fix typo (use the correct
3807 variable).
3808
5f8803c2
JR
38092000-12-05 Jason Rumney <jasonr@gnu.org>
3810
3811 * md5.h: Remove underscores from function declarations.
3812 (__attribute__, __alignof__) [!__GNUC__]: Define.
3813
3814 * md5.c: Delay include of md5.h until after namespace cleaning.
3815
c28a075b
JR
3816 * makefile.w32-in (fns.o): Depend on md5.h
3817 (md5.o): New target.
3818 (sunfns.o): Remove.
3819
3820 * makefile.nt: Likewise.
3821
ff3c7056
JR
38222000-12-05 Jason Rumney <jasonr@altavista.net>
3823
3824 * w32term.c (expose_area): Complete last change.
3825
0c21eeeb
KR
38262000-12-05 Ken Raeburn <raeburn@gnu.org>
3827
3828 * minibuf.c: Include intervals.h.
3829
f201d732
JR
38302000-12-05 Jason Rumney <jasonr@gnu.org>
3831
3832 * w32term.c (x_produce_glyphs): If a font for a component of
3833 a composition is not found, use 1 pixel dot ascent and 0 dot
3834 descent value to avoid displaying terribly tall empty boxes.
3835 (expose_area): Pass x-coordinate relative to the exposed
3836 area to x_draw_glyphs instead of a window-relative coordinate.
3837
21999ab9
GM
38382000-12-05 Gerd Moellmann <gerd@gnu.org>
3839
4d2036e4
GM
3840 * xdisp.c (next_element_from_ellipsis): Save face before selective
3841 display in saved_face_id, and set face_before_selective_p.
3842 (reseat_1): Reset face_before_selective_p.
3843 (append_space, extend_face_to_end_of_line): If iterator's
3844 face_before_selective_p is set, use the face from saved_face_id.
3845 (extend_face_to_end_of_line): For tty frames, make sure to
3846 use the right face id when producing spaces at the end of
3847 the line.
3848
3849 * dispextern.h (struct it): Add face_before_selective_p.
3850
52be17cc
GM
3851 * keyboard.c (record_char): Don't record identical help-echo
3852 events in recent_keys.
3853
8a4f36cc
GM
3854 * xterm.c [USE_X_TOOLKIT]: Close the display.
3855 (xim_close_dpy): Handle case that the display has been closed.
3856
57d6e381
GM
3857 * xterm.c (x_destroy_window): Reset the frame's X window after
3858 destroying it.
3859
21999ab9
GM
3860 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3861 variable window_width.
3862 (line_draw_cost): Fix code skipping over spaces at the end of the
3863 line when must_write_spaces is not set.
3864 (scrolling_window): Fix code inserting runs in list of all runs.
3865
91372bb7
KH
38662000-12-05 Kenichi Handa <handa@etl.go.jp>
3867
3868 * coding.c (setup_coding_system): Be sure to initialize
3869 coding->category_idx.
3870
6c083b4c
GM
38712000-12-04 Gerd Moellmann <gerd@gnu.org>
3872
0c68ce6f 3873 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3874
6452929e
GM
3875 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3876 area to x_draw_glyphs instead of a window-relative coordinate.
3877
d7f31e22
GM
3878 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3879 error in the message.
3880
ae18aa3b
GM
3881 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3882 timer after having read a key. It's not good for code reading
3883 several keys in a loop, like an input method.
3884
caa15ef7
GM
3885 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3886 record undo information for format-decode.
3887
3888 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3889 current buffer is read-only, not if it isn't.
3890
6c083b4c
GM
3891 * keyboard.c (record_char): Record `help-echo' input events
3892 in recent_keys only if they display some help. Don't record
3893 `help-echo' events as macro char.
3894
caa15ef7
GM
38952000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3896
3897 * editfns.c (save_excursion_restore): Don't move point
3898 in another window if it is showing the wrong buffer.
3899 Avoid the call to Fwindow_live_p, for speed.
3900
5a13529b
KH
39012000-12-04 Kenichi Handa <handa@etl.go.jp>
3902
e225faa7
KH
3903 * xfaces.c (struct font_name): New member registry_priority.
3904 (split_font_name): Initialize the above member to zero.
3905 (concat_font_list): New function.
3906 (font_list): Include fonts of all alternative registries.
3907 (FONT_POINT_SIZE_QUANTUM): New macro.
3908 (better_font_p): Ignore point size difference less than
3909 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3910
e89648b4
KH
3911 * xterm.c (x_produce_glyphs): If a font for a component of
3912 a composition is not found, use 1 pixel dot ascent and 0 dot
3913 descent value to avoid displaying terribly tall empty boxes.
3914
5a13529b
KH
3915 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3916
d7935eb6
KR
39172000-12-03 Ken Raeburn <raeburn@gnu.org>
3918
3919 * coding.h (code_convert_string1): Declare.
3920
3921 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3922
52283633 3923 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3924
0dd5e255
JR
39252000-12-02 Jason Rumney <jasonr@gnu.org>
3926
3927 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3928 correctly for single byte character case.
3929 (w32_per_char_metric): Do not try to make any assumptions about
3930 the metrics of BDF fonts.
250cfece 3931 (x_estimate_mode_line_height): If `mode-line' face
52283633 3932 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3933 (note_mouse_highlight): Change the cursor shape on the vertical
3934 border between windows [not enabled].
3935
3936 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3937
3938 * w32fns.c (Fx_create_frame): Reintroduce the call to
3939 face-set-after-frame-defaults.
3940 (Vx_window_horizontal_drag_shape): New variable.
3941 (syms_of_xfns): DEFVAR_LISP it.
3942 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3943 enabled].
0dd5e255 3944
b5d8d2ca
GM
39452000-12-02 Simon Josefsson <simon@josefsson.org>
3946
3947 * fns.c (Fmd5): Use a different logic to decide the coding system
3948 to use.
3949
3950 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3951
fbb87147
EZ
39522000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3953
52283633 3954 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3955
447e9da0
GM
39562000-12-01 Gerd Moellmann <gerd@gnu.org>
3957
7708ced0
GM
3958 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3959 height for YNegative.
3960 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3961 height; also see comment there.
3962
447e9da0
GM
3963 * window.c (coordinates_in_window): Handle computations for
3964 positions on the vertical bar and fringes differently for
3965 window-system frames. Consider some pixels near the vertical bar
3966 as on the bar if the frame doesn't have vertical scroll bars.
3967 Associate positions between mode or header lines with the
3968 right window, the left one.
3969
86d1db20
JR
39702000-12-01 Jason Rumney <jasonr@gnu.org>
3971
3972 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3973
3974 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3975 invalid frame.
3976
a1d58e5b
GM
39772000-12-01 Gerd Moellmann <gerd@gnu.org>
3978
52283633 3979 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3980 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3981 (save_window_save, Fset_window_configuration): Save/restore
3982 window's orig_top and orig_height.
3983
89c609af
JR
39842000-12-01 Jason Rumney <jasonr@gnu.org>
3985
4d177746 3986 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3987
89c609af
JR
3988 * w32fns.c (x_set_cursor_color): Fix last change.
3989
eccc05db
GM
39902000-11-30 Gerd Moellmann <gerd@gnu.org>
3991
31b6671b
GM
3992 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3993 sure that the next redisplay displays the minibuffer, so that
3994 the cursor will be replaced with what the minibuffer wants.
3995
eccc05db
GM
3996 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3997 #ifndef instead of using #if.
3998 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3999 USE_TOOLKIT_SCROLL_BARS is defined.
4000
162de750
JR
40012000-11-30 Jason Rumney <jasonr@gnu.org>
4002
4003 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4004 x_display_cursor.
4005
693c4692
GM
40062000-11-30 Gerd Moellmann <gerd@gnu.org>
4007
4008 * fns.c (Fmd5): Doc fix.
4009
b5d8d2ca 40102000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
4011
4012 * fns.c (Fmd5): New function.
4013 (syms_of_fns): Defsubr md5.
4014
4015 * Makefile.in (obj): Add md5.o
4016
b02cd40b
GM
40172000-11-30 Gerd Moellmann <gerd@gnu.org>
4018
edfb795e
GM
4019 * md5.h, md5.c: New files, taken from glibc.
4020
df3aedcf
GM
4021 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4022
b02cd40b 4023 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 4024 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 4025
8b5176cd
SM
40262000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4027
4028 * eval.c (Frun_hooks): Allow 0 arguments.
4029
346598f1
GM
40302000-11-29 Gerd Moellmann <gerd@gnu.org>
4031
f9396e03
GM
4032 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4033 is over the menu bar widget, say it's not on the frame.
4034
4a967a9b
GM
4035 * xfns.c (Fx_create_frame): Reintroduce the call to
4036 face-set-after-frame-defaults.
4037
346598f1
GM
4038 * eval.c (Fsignal): Reset handling_signal.
4039
222456a1
JR
40402000-11-28 Jason Rumney <jasonr@gnu.org>
4041
4042 * w32menu.c (add_menu_item): Reset menu item text when changing
4043 type to radio button.
4044
8049ddc0
GM
40452000-11-28 Gerd Moellmann <gerd@gnu.org>
4046
346598f1 4047 * xselect.c: Update copyright.
f4f4ee4d 4048
bebe4a2c
GM
4049 * window.c (coordinates_in_window): If on a mode or header line,
4050 but sufficiently close to its start, return ``on vertical
4051 border''. This gives us a way to drag windows horizontally when
4052 using toolkit scroll bars.
4053
4054 * xterm.c (note_mouse_highlight): Change the cursor shape
4055 on the vertical border between windows.
4056
4057 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4058
4059 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4060 (syms_of_xfns): DEFVAR_LISP it.
4061 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4062
8d2c2642
GM
4063 * textprop.c (text_read_only): New function.
4064 (verify_interval_modification): Use it instead of signaling
4065 `text-read-only'. This makes it easier to catch this error
52283633 4066 with a breakpoint.:
8d2c2642 4067
52283633 4068 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
4069 not end of line, which includes CR.
4070
5a2bae6c
KH
40712000-11-28 Kenichi Handa <handa@etl.go.jp>
4072
4073 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4074 include no-conversion.
4075
ae31f84d
JR
40762000-11-27 Jason Rumney <jasonr@gnu.org>
4077
4078 * w32fns.c (w32_load_system_font): Always mark font as double byte
4079 if codepage is unicode.
4080
67f1cf4c
GM
40812000-11-27 Gerd Moellmann <gerd@gnu.org>
4082
4a74d071 4083 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 4084 just consume it to avoid unintended skipping over invisible text below.
4a74d071 4085
902ae620
GM
4086 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4087 `vertical-line', `mode-line' and `header-line' events.
4088
4089 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
4090 of a character, a TAB for instance. This is easier than to set
4091 up the iterator exactly, and it's not a frequent case, so the
4092 additional effort wouldn't really pay off.
4093
c1e279c2
AC
40942000-11-26 Andrew Choi <akochoi@i-cable.com>
4095
67f1cf4c 4096 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
4097 init_window_once.
4098
a609568a
JR
40992000-11-25 Jason Rumney <jasonr@gnu.org>
4100
52283633
SM
4101 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4102 Args to window_from_coordinates should be pixel coordinates.
48b21762 4103
a609568a
JR
4104 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4105 redisplay handles them properly.
4106
a658d039
MB
41072000-11-25 Miles Bader <miles@gnu.org>
4108
4109 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4110
d3416cca
JR
41112000-11-24 Jason Rumney <jasonr@gnu.org>
4112
4113 * w32.c (init_environment): Set LANG environment variable based on
4114 locale settings, if not set.
4115
4116 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4117 making tool bar smaller. When clearing the frame, also
4118 clear current matrices. Clear frame when tool bar disappears.
4119 Don't use more lines for the tool-bar than is available.
4120 (x_change_window_heights): New function.
4121
ba193890
GM
41222000-11-24 Gerd Moellmann <gerd@gnu.org>
4123
2be8f184
GM
4124 * xdisp.c (init_from_display_pos): If POS says we're already after
4125 an overlay string ending at POS, make sure to pop the iterator
4126 because it will be in front of that overlay string. When POS is
4127 ZV, we've thereby also ``processed'' overlay strings at ZV.
4128
ba193890
GM
4129 * xfaces.c (lface_from_face_name): Function comment fix.
4130
1862a24e
MB
41312000-11-24 Miles Bader <miles@gnu.org>
4132
4133 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4134 apply `mode-line-inverse-video' -- zero means force display using
4135 the default face, non-zero means display using the specialized face.
4136 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4137
f07fa1b8
KH
41382000-11-23 Kenichi Handa <handa@etl.go.jp>
4139
4140 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4141 hard coded `4'.
4142
2bcdf662
EZ
41432000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4144
4145 * coding.c (decode_coding_emacs_mule): Fix the case of
4146 CODING_EOL_LF, which used uninitialized value of c.
4147
ba8299ff
SM
41482000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4149
4150 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4151
f4117c4d
GM
41522000-11-22 Gerd Moellmann <gerd@gnu.org>
4153
03e757c1
GM
4154 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4155 buffer object.
4156
f4117c4d
GM
4157 * frame.h (struct frame): Replace desired_tool_bar_items,
4158 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 4159 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
4160
4161 * frame.c (make_frame): Change initialization of tool bar
4162 items accordingly.
4163
4164 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 4165 Change references to members deleted from struct frame to use the
f4117c4d
GM
4166 new ones.
4167
4168 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 4169 references to members deleted from struct frame to use the new ones.
f4117c4d 4170
52283633 4171 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
4172
4173 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4174
4175 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 4176 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
4177 from struct frame to use the new ones.
4178
f8e2f3f2
MB
41792000-11-23 Miles Bader <miles@gnu.org>
4180
4181 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4182 the face's inverse-video attribute, rather than overriding it.
4183
60e8e0a5
GM
41842000-11-22 Gerd Moellmann <gerd@gnu.org>
4185
4186 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4187 making tool bar smaller.
4188
92dd1b29
DL
41892000-11-22 Dave Love <fx@gnu.org>
4190
4191 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4192
e672fdce
MB
41932000-11-22 Miles Bader <miles@gnu.org>
4194
3a17d6cc
MB
4195 * keyboard.c (Vminibuffer_message_timeout): New variable.
4196 (command_loop_1): Use it to determine message timeout.
4197 (syms_of_keyboard): Initialize it.
4198
60e8e0a5 4199 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 4200
e9655d81
KH
42012000-11-22 Kenichi Handa <handa@etl.go.jp>
4202
4203 * sysdep.c: Move the code for declaring h_errno after #include
4204 <netdb.h>.
4205
77270fac
GM
42062000-11-21 Gerd Moellmann <gerd@gnu.org>
4207
cd913aae
GM
4208 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4209 the menu bar when the tooltip is unmapped.
4210
77270fac
GM
4211 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4212 sole visible buffer when we're currently in the mini-buffer, and
4213 give up if so.
52283633 4214
556635d6
JR
42152000-11-21 Jason Rumney <jasonr@gnu.org>
4216
4217 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4218 put on the clipboard.
4219 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4220 copy of what Emacs last put there. If they are the same, do not
52283633 4221 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 4222
5b7bde64
MB
42232000-11-22 Miles Bader <miles@gnu.org>
4224
4225 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4226 (syms_of_minibuf): Initialize it.
4227 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4228 to prompt, don't make read-only.
4229
ff23e1dd
GM
42302000-11-21 Gerd Moellmann <gerd@gnu.org>
4231
52283633
SM
4232 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4233 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 4234
7aaf4388
GM
4235 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4236
f5f47add 4237 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 4238
ff23e1dd
GM
4239 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4240
37c35586
KH
42412000-11-21 Kenichi Handa <handa@etl.go.jp>
4242
4243 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4244 ... #endif scope.
4245
ff9ab414
GM
42462000-11-20 Gerd Moellmann <gerd@gnu.org>
4247
52283633 4248 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
4249 screen supports it.
4250
29a01b72
GM
4251 * s/gnu-linux.h: Don't use `#cpu'.
4252
09dfdf85
GM
4253 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4254 not defined in mman.h.
4255
52283633 4256 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
4257 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4258 and store an index in the XClientMessageEvent. Storing a
4259 Lisp_Object or pointer can fail on a 64 bit system, since X only
4260 transfers 32 bits.
52283633
SM
4261 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4262
81459ac9
DL
42632000-11-20 Dave Love <fx@gnu.org>
4264
4265 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4266
56c13ae6
GM
42672000-11-20 Gerd Moellmann <gerd@gnu.org>
4268
4269 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4270
495a6df3
KH
42712000-11-20 Kenichi Handa <handa@etl.go.jp>
4272
2bcf3714
KH
4273 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4274 by WIDTH.
4275
495a6df3
KH
4276 * alloc.c (make_string): Fix previous change. Be sure to make
4277 unibyte string correctly.
4278
6d950f4c
GM
42792000-11-19 Gerd Moellmann <gerd@gnu.org>
4280
39b39373
GM
4281 * window.c (Fwindow_list): Change parameter list to be XEmacs
4282 compatible.
4283 (window_list_1): New function.
4284 (window_loop): Use it instead of Fwindow_list.
4285
b95b34e5
GM
4286 * sysdep.c (emacs_ospeed): New variable.
4287 (toplevel): Don't declare ospeed extern.
4288 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4289
4290 * termcap.c (ospeed): Remove.
4291 (tputs) [!emacs]: Remove unused code.
4292 (tgetent): Avoid a compiler warning.
4293
e83dc917
GM
4294 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4295 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 4296 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
4297
4298 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4299 removed.
4300 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4301 Take the X display as additional argument.
4302 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4303 `Widget' is a pointer type that's not easily stored in Lisp_Object
4304 form in a portable way.
52283633 4305
6d950f4c
GM
4306 * dispnew.c (update_text_area): Fix last change.
4307
e47306e6
GM
43082000-11-18 Gerd Moellmann <gerd@gnu.org>
4309
fb3cd89b
GM
4310 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4311
4312 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4313 clear current matrices.
4314
edaa9aed
GM
4315 * buffer.c (mmap_enlarge): Don't print a message on stderr
4316 if mapping new memory at the end of the existing region fails.
4317
e47306e6
GM
4318 * dispnew.c (update_text_area): Don't skip over equal glyphs
4319 when the last current glyph overlaps the glyph to its right.
4320
509633e3
MB
43212000-11-18 Miles Bader <miles@gnu.org>
4322
4323 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4324 lines that *end* with "..." too (that's the most common case!).
4325
d392e9c5
GM
43262000-11-18 Gerd Moellmann <gerd@gnu.org>
4327
67988445
GM
4328 * xdisp.c (resize_mini_window): Temporarily change to the
4329 mini-window's buffer if necessary.
1bfdbe43 4330
d392e9c5
GM
4331 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4332 the tooltip obscures less text under it.
4333
43342000-11-17 Gerd Moellmann <gerd@gnu.org>
4335
4336 * puresize.h (BASE_PURESIZE): Increase to 700000.
4337
92bb977f
JR
43382000-11-18 Jason Rumney <jasonr@gnu.org>
4339
4340 * w32term.c (w32_draw_bitmap): Use face to set colors.
4341
26fbf20b
DL
43422000-11-17 Dave Love <fx@gnu.org>
4343
4344 * lread.c (Fload): Fix #ifdef for pcc.
4345
100b593b
GM
43462000-11-17 Gerd Moellmann <gerd@gnu.org>
4347
4348 * xdisp.c (pos_visible_p): Compute the default character height
4349 differently.
4350
a288d0d1
GM
43512000-11-16 Gerd Moellmann <gerd@gnu.org>
4352
cac94de6 4353 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4354 knowing the line's height; use the default font's height in that case.
cac94de6 4355
a288d0d1
GM
4356 * xfaces.c (weight_table): Add `demi' with the same meaning as
4357 `demibold'.
4358
981fb6f6
KH
43592000-11-16 Kenichi Handa <handa@etl.go.jp>
4360
2cca872d 4361 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4362 (clear_glyph_row): Delete local static variable null_row.
4363
e5fa381b
JR
43642000-11-15 Jason Rumney <jasonr@gnu.org>
4365
4366 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4367 (w32_alloc_lighter_color): Use new brightness calculations from
4368 xterm.c. Scale delta to be in the range expected by W32.
4369 (w32_draw_relief_rect): Use frame relief colors.
4370
8e42f043
GM
43712000-11-15 Gerd Moellmann <gerd@gnu.org>
4372
6d133d1f
GM
4373 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4374 (Qinhibit_default_face_x_resources): New variable.
4375 (syms_of_frame): Initialize it.
4376 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4377
4378 * xdisp.c (pos_visible_p): Improve function comment.
4379
4380 * lisp.h (BINDING_STACK_SIZE): New macro.
4381
8e42f043
GM
4382 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4383 reading the directory if readdir returns null and errno is EAGAIN
4384 or EINTR.
4385
e8c87124
SM
43862000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4387
4388 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4389 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4390 Set amount_to_scroll to max of dx and scroll_step so that
4391 scroll-conservatively doesn't defeat scroll-step>1.
4392 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4393 scroll-conservatively for line-at-a-time scrolling.
4394
5f0c971d
GM
43952000-11-14 Gerd Moellmann <gerd@gnu.org>
4396
4397 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4398 extra argument.
4399
4400 * xdisp.c (current_mode_line_height, current_header_line_height):
4401 New variables.
4402 (init_xdisp): Initialize them.
4403 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4404 and use exact mode line heights if it is set.
4405
4406 * lisp.h (pos_visible_p): Change prototype.
4407
4408 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4409 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4410 and current_header_line_height first.
52283633
SM
4411 (current_mode_line_height, current_header_line_height):
4412 Declare extern.
5f0c971d 4413
d7361edf
MB
44142000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4415
4416 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4417 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4418 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4419
ee5e440a
MB
44202000-11-14 Miles Bader <miles@gnu.org>
4421
4422 * xterm.c (x_alloc_lighter_color): Include an additive component
4423 too for dark colors, because FACTOR isn't enough.
4424 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4425 New macros.
4426
5ca020fc
GM
44272000-11-13 Gerd Moellmann <gerd@gnu.org>
4428
4429 * keyboard.c (show_help_echo): Call message3_nolog with number of
4430 bytes in the help string as 2nd parameter, instead of the number
4431 of characters.
4432
9d348294
MB
44332000-11-13 Miles Bader <miles@gnu.org>
4434
4435 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4436 (Fload): Use new openp return protocol.
4437 Don't try to use Vload_source_file_function to load .elc files.
4438 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4439 openp return protocol.
4440 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4441
1729bb9a
KH
44422000-11-11 Kenichi Handa <handa@etl.go.jp>
4443
4e677396
KH
4444 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4445
4446 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4447 Defined these macros.
4448 (NLIST_STRUCT): Avoid re-defining it.
4449
1729bb9a
KH
4450 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4451 -I/usr/contrib/X11R6/include.
4452 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4453
a82fe213
JR
44542000-11-10 Jason Rumney <jasonr@gnu.org>
4455
4456 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4457
4458 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4459 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4460
4461 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4462 (Qw32_charset_vietnamese): New symbol.
4463 (xlfd_charset_of_font): New function.
4464 (w32_load_system_font): Use it.
4465 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4466 when Vw32_charset_info_alist is nil to ensure default face always
4467 has font. Use Fcar and Fcdr for safety.
4468 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4469 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4470 pseudo-codepages for special cases.
4471 (w32_to_x_font): New parameter to allow charset portion to be
4472 specified where there is many to one mapping. Callers changed.
4473 (w32_list_fonts): Avoid listing fonts that won't display.
4474
52d89894
GM
44752000-11-10 Gerd Moellmann <gerd@gnu.org>
4476
4477 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4478 (font_list_1): Renamed from font_list.
4479 (font_list): New function, trying alternative registries from
4480 Vface_alternative_font_registry_alist.
4481 (Finternal_set_alternative_font_registry_alist): New function.
4482 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4483 Vface_alternative_font_registry_alist.
4484 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4485
651cd3da
KR
44862000-11-09 Ken Raeburn <raeburn@gnu.org>
4487
4488 * lisp.h (Flooking_at): Declare.
4489
388ac098
GM
44902000-11-09 Gerd Moellmann <gerd@gnu.org>
4491
778fbc46 4492 * dired.c (directory_files_internal): Fix a braino.
52283633 4493
388ac098
GM
4494 * dired.c (directory_files_internal): Add missing GCPRO's.
4495 Some cleanup.
4496
ecaedde1
GM
44972000-11-08 Gerd Moellmann <gerd@gnu.org>
4498
f7eb32aa
GM
4499 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4500 (resize_mini_window): Return quickly if Vresize_mini_window is
4501 nil. Don't return if Vmax_mini_window_height is nil.
4502
4503 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4504 (syms_of_xdisp): Initialize them.
4505 (resize_mini_window): Act according to the setting of
4506 Vresize_mini_window.
4507 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4508
ecaedde1
GM
4509 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4510 scroll bar widget after configuring it, so that it will appear at
4511 the right position from the start.
4512 (XTredeem_scroll_bar): Cleaned up.
4513
3747ef2c
KH
45142000-11-08 Kenichi Handa <handa@etl.go.jp>
4515
4516 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4517 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4518 division by two.
4519
4520 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4521
03391420
DL
45222000-11-07 Dave Love <fx@gnu.org>
4523
7758f1c1 4524 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4525
4526 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4527
b5de343d
GM
45282000-11-07 Gerd Moellmann <gerd@gnu.org>
4529
acad3c0b
GM
4530 * window.c (Fset_window_configuration): Don't try to preserve
4531 point in the current buffer, if that buffer is displayed in more
4532 than one window.
4533
b5de343d
GM
4534 * xfaces.c (lookup_named_face): If default face isn't realized,
4535 try to realize it. Return -1 if not successful.
4536 (Fx_list_fonts): Handle case that face cannot be determined.
4537 (Fface_font): Likewise.
4538
cdb1fe49
GM
45392000-11-06 Gerd Moellmann <gerd@gnu.org>
4540
4541 * window.c (displayed_window_lines): Detect partially
4542 visible lines at the bottom correctly.
4543
d3a67486
SM
45442000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4545
4546 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4547 when ensuring we don't do visit in indirect buffer.
4548
ff8dd5d5
KH
45492000-11-06 Kenichi Handa <handa@etl.go.jp>
4550
4551 * composite.h (compose_chars_in_text): Add prototype.
4552
4553 * composite.c (Vcomposition_function_table): New variable.
4554 (Qcomposition_function_table): New variable.
4555 (run_composition_function): Call
4556 Vcompose_chars_after_function with three arguments.
4557 (compose_chars_in_text): New function.
4558 (syms_of_composite): Modified the doc-string of
4559 Vcompose_chars_after_function. Declare composition-function-table
4560 as a lisp variable, and initialize it.
4561
4562 * xfns.c (x_encode_text): Suppress producing escape sequences for
4563 composition.
4564
4565 * xselect.c: Include composite.h.
4566 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4567
d1145f85
AI
45682000-11-05 Andrew Innes <andrewi@gnu.org>
4569
4570 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4571
4572 * sysdep.c (read_input_waiting): Remove extraneous argument to
4573 read_socket_hook.
4574
4575 * w32fns.c (Fx_server_version): Include w32_build_number in the
4576 return list.
4577
4578 * w32heap.c (w32_build_number): New variable.
4579 (cache_system_info): Set it.
4580
4581 * w32heap.h (w32_build_number): Add extern.
4582
4583 * emacs.c (syms_of_emacs): Update docstring for
4584 system-configuration, to reflect the actual usage on MS-Windows.
4585
e85ee976
GM
45862000-10-31 Gerd Moellmann <gerd@gnu.org>
4587
26dcb81b
GM
4588 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4589 process idle timers while waiting for another event.
4590
52283633 4591 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4592 the default face are colored.
4593
e85ee976
GM
4594 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4595 window height hasn't changed.
4596
01b220b6
JR
45972000-10-31 Jason Rumney <jasonr@gnu.org>
4598
4599 * w32term.c (x_produce_glyphs): Handle composite characters.
4600 (x_draw_glyph_string_foreground)
4601 (x_draw_composite_glyph_string_foreground): Restore old font.
4602
4e6b7204
MB
46032000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4604
4605 * minibuf.c (read_minibuf): Reset the undo history just before
4606 starting the recursive-edit.
4607
d4358b37
GM
46082000-10-30 Gerd Moellmann <gerd@gnu.org>
4609
563f68f1
GM
4610 * xfaces.c (menu_face_change_count): New variable.
4611 (Finternal_set_lisp_face_attribute): Increment it for changes
4612 of the `menu' face.
4613 (realize_basic_faces): Reflect changes in the `menu' faces
4614 in menu bars.
4615
82e274d1
GM
4616 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4617 dy obtained from the iterator's y-position after moving from
4618 scroll_margin_pos to PT; see comment there.
52283633 4619
0dbf9fd2
GM
4620 * xdisp.c (safe_eval_handler): Call add_to_log.
4621
906b3b14
GM
4622 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4623 is not a symbol or string.
4624
d4358b37
GM
4625 * xdisp.c (echo_area_display): Don't perform a display update from
4626 inside redisplay. The update will happen anyway at the end of
4627 redisplay, and it can confuse redisplay (GC messages while
4628 redisplaying, for instance.)
4629
70c825df
SM
46302000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4631
cf9b4b0b
SM
4632 * xrdb.c (x_load_resources): Use the class name in the defaults.
4633
70c825df
SM
4634 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4635 (regex_compile): Catch bogus \(\1\).
4636
a1d34b1e
GM
46372000-10-30 Gerd Moellmann <gerd@gnu.org>
4638
cae71efe
GM
4639 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4640 RGB values.
52283633 4641
35efe0a1
GM
4642 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4643 we have a color cache, check that the cached color equals the
4644 allocated color. If not, clear the color cache.
4645
1d3baf74
GM
4646 * window.c (displayed_window_lines): Change buffers if necessary.
4647 Fix computation of displayed lines.
4648
a1d34b1e
GM
4649 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4650 update_menu_bindings to DEFVAR_BOOL.
4651
70737ea9
KH
46522000-10-30 Kenichi Handa <handa@etl.go.jp>
4653
70c825df 4654 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4655
fa0cb51d
KH
4656 * puresize.h (BASE_PURESIZE): Increase to 680000.
4657
70737ea9
KH
4658 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4659
0e4c08e8
JR
46602000-10-29 Jason Rumney <jasonr@gnu.org>
4661
4662 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4663
4664 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4665 (w32_cache_char_metrics): Handle possibility that 'x' does not
4666 exist in a BDF font.
4667 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4668
4669 * w32bdf.h (bdffont): Add nchars.
4670
4671 * w32bdf.c (set_bdf_font_info): Set it.
4672 (w32_BDF_TextOut): Swap byte order of double byte characters.
4673 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4674
45b84006
EZ
46752000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4676
4677 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4678 don't override the colors in frame's param_alist, unless they are
4679 unspecified.
4680
4681 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4682 reverse the effect of the highlight flag.
4683
caf9deee
KR
46842000-10-27 Ken Raeburn <raeburn@gnu.org>
4685
4686 * window.h (Fwindow_live_p): Declare.
4687
ae0b9b46
KR
4688 * undo.c (record_delete): Check that last_undo_buffer is really a
4689 buffer before applying XBUFFER to it.
4690
4691 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4692 Faref.
4693
02067692
SM
46942000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4695
4696 * lisp.h (KEYMAPP): New macro.
4697 (get_keymap): Remove.
4698 (get_keymap_1): Rename get_keymap.
4699
4700 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4701
4702 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4703
4704 * xmenu.c (single_submenu): Use KEYMAPP.
4705 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4706 Use KEYMAPP rather than Fkeymapp.
4707
4708 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4709
4710 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4711 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4712 Use KEYMAPP rather than Fkeymapp.
4713 (single_submenu): Use KEYMAPP.
4714 (w32_menu_show, w32_dialog_show): Use TRUE.
4715
4716 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4717
4718 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4719 (Fkeymapp): Use KEYMAPP.
4720 (get_keymap): Rename from get_keymap_1. Remove old def.
4721 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4722 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4723 (Fminor_mode_key_binding): Don't raise an error if the binding
4724 is not a keymap.
4725 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4726 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4727
4728 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4729 Allow Vspecial_event_map to be autoloaded.
4730 (menu_bar_items): Fetch the keymap rather than using keymapp.
4731 (menu_bar_one_keymap): No need to follow func-indirect any more.
4732 (parse_menu_item): get_keymap_1 -> get_keymap.
4733 (tool_bar_items): Fetch the keymap rather than using keymapp.
4734 (read_key_sequence): Use KEYMAPP.
4735
4736 * intervals.c (get_local_map): Use get_keymap rather than following
4737 function-indirections explicitly.
4738
4739 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4740
f9d80af3
JR
47412000-10-27 Jason Rumney <jasonr@gnu.org>
4742
4743 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4744 point, as Windows has oversized fonts.
4745
4746 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4747
a3ba27da
GM
47482000-10-27 Gerd Moellmann <gerd@gnu.org>
4749
4750 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4751 (freehook, reallochook): Handle null pointer arguments.
4752 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4753
aa3b80cc
SM
47542000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4755
4756 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4757 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4758 Giving in to popular pressure to shut up the compiler with casts.
4759
e24e84cc
GM
47602000-10-27 Gerd Moellmann <gerd@gnu.org>
4761
4762 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4763 signed value, and use a default value computed from the font's
4764 maximum descent.
4765
05ea7ef2
MB
47662000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4767
4768 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4769 that specify a negative underline position can still use underlines.
4770
4771 * window.c (Fpos_visible_in_window_p): Make POS default to
4772 WINDOW's point, not the current buffer's point.
4773
0b95284b
DL
47742000-10-26 Dave Love <fx@gnu.org>
4775
4776 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4777 when it's necessary.
4778
6c5b90af
GM
47792000-10-26 Gerd Moellmann <gerd@gnu.org>
4780
8b6d9dc9
GM
4781 * window.c (size_window): Compute size difference from sum of old
4782 child window sizes instead of from parent's size.
4783
6bc92b2e
GM
4784 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4785 Handle obscured lines at the top of the window.
4786
4787 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4788 down after the last error condition check.
4789
6c5b90af
GM
4790 * frame.c (Fdelete_frame): Run delete-frame-hook.
4791
42f92d4d
KH
47922000-10-26 Kenichi Handa <handa@etl.go.jp>
4793
4794 * coding.c (decode_coding): Fix previous change (check also
4795 CODING_MODE_LAST_BLOCK).
4796
d97151cb
SM
47972000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4798
e7efc503
SM
4799 * regex.c: More `unsigned char' -> `re_char' changes.
4800 Also change several `int' into `re_wchar_t'.
4801 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4802 (PUSH_FAILURE_POINTER): Don't cast any more.
4803 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4804 We want GCC to complain, since this piece of code makes
4805 re_match non-reentrant, which *should* be fixed.
4806 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4807 (EXTEND_BUFFER): Use RETALLOC.
4808 (SET_LIST_BIT): Don't cast.
4809 (re_wchar_t): New type.
4810 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4811 that those two functions will always properly return.
4812 (IMMEDIATE_QUIT_CHECK): Cast to void.
4813 (analyse_first): Use recursion rather than an explicit stack.
4814 (re_compile_fastmap): Can't fail anymore.
4815 (re_search_2): Don't check re_compile_fastmap for failure.
4816 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4817 Now also sets the new value (passed in a new argument).
4818 (re_match_2_internal): Use it.
4819 Also, use a new var `reg' of type size_t when looping through regs
4820 rather than reuse the inappropriate `mcnt'.
4821
d97151cb
SM
4822 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4823 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4824 (where_is_internal): Renamed from Fwhere_is_internal.
4825 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4826 (Fwhere_is_internal): New function wrapping where_is_internal.
4827 (where_is_internal_1): Handle the case where we're filling the cache.
4828 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4829
d5789b65
MB
48302000-10-25 Miles Bader <miles@gnu.org>
4831
4832 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4833
4ecda532
GM
48342000-10-25 Gerd Moellmann <gerd@gnu.org>
4835
4836 * window.c (pos_fully_visible_p): Removed.
4837 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4838 if position is visible and/or fully visible.
4839
4840 * lisp.h (pos_visible_p): Add prototype.
4841
4842 * xdisp.c (pos_visible_p): New function.
4843
68c3a137
KH
48442000-10-25 Kenichi Handa <handa@etl.go.jp>
4845
4846 * process.c (send_process): If OBJECT is t, it means that the data
4847 is from C string, but we should encode it. Before calling
4848 setup_raw_text_coding_system, be sure to flush out data by the
4849 previous coding system.
4850
7ae1c032
MB
48512000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4852
ff4dcd4b
MB
4853 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4854 assignment of startpos to prev when startpos == pos.
4855
7ae1c032
MB
4856 * editfns.c (find_field): Set the field stickiness correctly from
4857 overlay fields. Use renamed `text_property_stickiness'.
4858 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4859 Only check text properties, not overlays.
7ae1c032
MB
4860 * textprop.c (get_char_property_and_overlay): New function.
4861 (Fget_char_property): Use it.
4862 * intervals.h (get_char_property_and_overlay): Add declaration.
4863
49801145
SM
48642000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4865
4866 * keymap.c: Use AREF, ASET and ASIZE macros.
4867 (Fmake_sparse_keymap): Docstring fix.
4868 (synkey): Remove.
4869 (shadow_lookup): Move up.
4870 Handle the case where lookup-key returns an integer.
4871 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4872 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4873 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4874 Simplify/rewrite the keymap-finding code.
4875 Add check for command shadowing, using shadow_lookup.
4876
39e776cd
SM
48772000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4878
4879 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4880 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4881 a symbol.
4882
2488aba5
AI
48832000-10-24 Andrew Innes <andrewi@gnu.org>
4884
4885 * dired.c (directory_files_internal_unwind): New function.
4886 (directory_files_internal): Use it to ensure closedir is called
4887 even if expand-file-name or file-attributes throw, eg. because of
4888 a user interrupt. Also enable immediate_quit while calling
4889 re_search, so that matching can be interrupted as well.
4890
b94fdf61
AI
48912000-10-24 Andrew Innes <andrewi@gnu.org>
4892
4893 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4894 NT-Emacs only.
4895 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4896 so that re_search functions only quit when callers expect them to.
4897
48982000-10-24 Kenichi Handa <handa@etl.go.jp>
4899
4900 * regex.c (regex_compile): Change the way of handling a range from
4901 a char less than 256 to a char not less than 256.
4902
1946f901
GM
49032000-10-24 Gerd Moellmann <gerd@gnu.org>
4904
7ae2f10f
GM
4905 * window.c (size_window): Prevent setting window's width or
4906 height to a negative value (esp. with XSETFASTINT).
4907
5dcab13e
GM
4908 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4909 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4910 (protect_malloc_state) [GC_MALLOC_CHECK &&
4911 GC_PROTECT_MALLOC_STATE]: New function.
4912 (PROTECT_MALLOC_STATE): New macro.
4913 (__malloc_initialize, morecore, _malloc_internal)
4914 (_free_internal) _realloc_internal): Use it to make _heapinfo
4915 read-only outside of gmalloc.
4916
63e1b552
GM
4917 * keymap.c: Update copyright.
4918
1946f901
GM
4919 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4920 a symbol.
4921
4fa09beb
GM
49222000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4923
4924 * filelock.c (unlock_all_files): Use unlock_file to expand each
4925 buffer's file_truename before trying remove its lock file.
4926
23afac01
EZ
49272000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4928
4929 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4930 or CRLF, decode EOLs.
4931
04448b95
KH
49322000-10-24 Kenichi Handa <handa@etl.go.jp>
4933
4934 * window.c (Fdisplay_buffer): Fix doc.
4935
3090a5a5
JR
49362000-10-23 Jason Rumney <jasonr@gnu.org>
4937
4938 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4939 ASCII font of default fontset on Windows.
4940
4941 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4942 xterm.c comment below).
4943
4944 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4945
a83fee2c
GM
49462000-10-23 Gerd Moellmann <gerd@gnu.org>
4947
4948 * xterm.c (x_connection_closed): Reset handling_signal.
4949
52283633 4950 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4951
6ffdb539
MB
49522000-10-23 Miles Bader <miles@gnu.org>
4953
4954 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4955 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4956 maintain old behavior.
4957 * minibuf.c (Fminibuffer_complete): Likewise.
4958
7f1c969b
MB
49592000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4960
4961 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4962 that when a font can't be exactly centered, it errs up rather than
4963 down.
4964
23afac01 49652000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4966
52283633 4967 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4968
1a578e9b
AC
49692000-10-23 Andrew Choi <akochoi@i-cable.com>
4970
4971 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4972
4973 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4974 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4975
4976 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4977 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4978 syms_of_search, x_term_init, and init_keyboard before calling
4979 init_window_once. Also, call syms_of_xmenu.
4980
4981 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4982 default fontset to Monaco.
4983
4984 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4985 NewMacWindow and DisposeMacWindow.
4986 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4987 instead of calling NewMacWindow and setting fields of
4988 f->output_data.mac directly. Call init_frame_faces.
4989 (Fdelete_frame) [macintosh]: Remove unused code.
4990 (Fmodify_frame_parameters) [macintosh]: Call
4991 x_set_frame_parameters instead of mac_set_frame_parameters.
4992
4993 * frame.h [macintosh]: Define menu_bar_lines field in struct
4994 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4995
4996 * keyboard.c [macintosh]: Include macterm.h.
4997 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4998 and menu_bar_activate_event type events as for X and NT.
4999 (make_lispy_event) [macintosh]: Construct lisp events of type
5000 MENU_BAR_EVENT as for X and NT.
5001
5002 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5003 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5004 (sys_subshell) [macintosh]: Remove definition entirely.
5005 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5006 Vwindow_system_version here. Remove initialization of
5007 Vx_bitmap_file_path.
5008 (read_input_waiting): Correct the number of parameters passed to
5009 read_socket_hook.
5010 Move all Macintosh functions to mac/mac.c.
5011
5012 * term.c [macintosh]: Include macterm.h.
5013
5014 * window.c [macintosh]: Include macterm.h.
5015
5016 * xdisp.c [macintosh]: Include macterm.h. Declare
5017 set_frame_menubar and pending_menu_activation.
5018 (echo_area_display) [macintosh]: Do not return if terminal frame
5019 is the selected frame.
5020 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5021 Allow only the selected frame to set menu bar.
5022 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5023 calling FRAME_EXTERNAL_MENU_BAR (f).
5024 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5025
5026 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5027 and check_x. Declare XCreateGC. Define x_create_gc and
5028 x_free_gc. Initialize font_sort_order.
5029 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5030 but call x_list_fonts instead of w32_list_fonts.
5031 (Finternal_face_x_get_resource) [macintosh]: Do not call
5032 display_x_get_resource.
5033 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5034 (realize_x_face) [macintosh]: Load the font if it is specified in
5035 ATTRS.
52283633 5036 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 5037
1ffbabe3
SM
50382000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5039
5040 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5041 is nil: since we go to the end of submap anyway, we'd end up
5042 setting nil to nil.
5043 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5044 doesn't obey autoload.
5045
bed43f1d
EZ
50462000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5047
1ffbabe3 5048 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 5049
ea4233a7
JR
50502000-10-21 Jason Rumney <jasonr@gnu.org>
5051
5052 * w32term.c (w32_cache_char_metrics): Double check that font is
5053 really fixed pitch before trusting tmPitchAndFamily.
5054
f3d3c491
AI
50552000-10-21 Andrew Innes <andrewi@gnu.org>
5056
5057 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5058
5059 * w32term.h: Extern decl for w32_cache_char_metrics.
5060
5061 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5062
5063 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5064 (w32_unload_font): Free per_char array if present.
5065
5066 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5067 cached information in emulated XFontStruct to handle common cases
5068 quickly. Do not allocate XCharStruct for return.
5069 (w32_native_per_char_metric): New function.
5070 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5071 allocating one.
5072 (x_produce_glyphs): Don't get an HDC. Change calls to
5073 w32_per_char_metric to match arg change above. Remove calls to
5074 free results.
5075 (w32_get_glyph_overhangs): Ditto.
5076 (w32_cache_char_metrics): New function.
5077
5078 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5079 ($(BLD)/casefiddle.$(O)): Remove compile command.
5080 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
5081 ($(BLD)/dispnew.obj):
5082 ($(BLD)/keyboard.obj):
5083 ($(BLD)/w32inevt.obj):
5084 ($(BLD)/w32bdf.obj):
5085 ($(BLD)/alloc.obj):
5086 ($(BLD)/buffer.obj):
5087 ($(BLD)/editfns.obj):
5088 ($(BLD)/emacs.obj):
5089 ($(BLD)/fileio.obj):
5090 ($(BLD)/fns.obj):
5091 ($(BLD)/indent.obj):
5092 ($(BLD)/insdel.obj):
5093 ($(BLD)/intervals.obj):
5094 ($(BLD)/minibuf.obj):
5095 ($(BLD)/print.obj):
5096 ($(BLD)/scroll.obj):
5097 ($(BLD)/sysdep.obj):
5098 ($(BLD)/textprop.obj):
5099 ($(BLD)/widget.obj):
f3d3c491
AI
5100 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5101 ($(BLD)/term.obj): Add dependency on dispextern.h.
5102
52283633
SM
5103 * makefile.nt ($(BLD)\dispnew.obj):
5104 ($(BLD)\keyboard.obj):
5105 ($(BLD)\w32inevt.obj):
5106 ($(BLD)\w32bdf.obj):
5107 ($(BLD)\alloc.obj):
5108 ($(BLD)\buffer.obj):
5109 ($(BLD)\editfns.obj):
5110 ($(BLD)\emacs.obj):
5111 ($(BLD)\fileio.obj):
5112 ($(BLD)\fns.obj):
5113 ($(BLD)\indent.obj):
5114 ($(BLD)\insdel.obj):
5115 ($(BLD)\intervals.obj):
5116 ($(BLD)\minibuf.obj):
5117 ($(BLD)\print.obj):
5118 ($(BLD)\scroll.obj):
5119 ($(BLD)\sysdep.obj):
5120 ($(BLD)\textprop.obj):
5121 ($(BLD)\widget.obj):
f3d3c491
AI
5122 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5123 ($(BLD)\term.obj): Add dependency on dispextern.h
5124
18ad4821
EZ
51252000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5126
5127 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5128 with an additional argument of Qt.
5129
de54681a
MB
51302000-10-21 Miles Bader <miles@gnu.org>
5131
5132 * window.c (pos_fully_visible_in_window_p): New function.
5133 (Fpos_visible_in_window_p): Add FULLY argument.
5134 Use pos_fully_visible_in_window_p.
5135 (window_scroll_pixel_based, window_scroll_line_based): Update
5136 calls to Fpos_visible_in_window_p.
5137 * lisp.h (Fpos_visible_in_window_p): Update prototype
5138
13c844fb
GM
51392000-10-20 Gerd Moellmann <gerd@gnu.org>
5140
5141 * alloc.c (toplevel): Conditionalize compilation of mem_*
5142 functions differently.
52283633 5143
d9506268
JR
51442000-10-20 Jason Rumney <jasonr@gnu.org>
5145
5146 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5147 mem_init where it used to be. mem_z etc not defined otherwise.
5148
8094989b
GM
51492000-10-20 Gerd Moellmann <gerd@gnu.org>
5150
5151 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5152 GC_MALLOC_CHECK.
5153 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5154 structure definition and related variabled to the top of the file.
5155 Include this code when GC_MALLOC_CHECK is defined.
5156 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5157 register/unregister allocated region.
5158 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5159 which isn't allocated.
5160 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5161 something which is already in use.
5162 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5163 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5164 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5165 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5166
5167 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5168 _malloc_internal instead of malloc.
5169 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5170 of free.
5171
ea456eb4
AI
51722000-10-20 Andrew Innes <andrewi@gnu.org>
5173
5174 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5175 Windows.
5176 (my_strftime) <macro>: Don't use macro arg list when redefining as
5177 _strftime_copytm.
5178 (my_strftime) <function>: Supply 0 as ut argument.
5179
e64c3a75
JR
51802000-10-19 Jason Rumney <jasonr@altavista.net>
5181
5182 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5183 including dispextern.h, as it stops faces from working.
5184
5185 * w32fns.c (Fx_create_frame): Don't bother calling
5186 face-set-after-frame-default since the caller does it for us
5187 anyway. Clean up calls to x_get_arg to be consistent with X.
5188
5189 * w32term.c (x_produce_glyphs): Handle
5190 unibyte_display_via_language_environment correctly.
5191 (w32_draw_box_rect): Fix the calculation of width and height.
5192
5193 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5194 as it has stopped working.
5195 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5196 menu-bar.
5197
17401c97
GM
51982000-10-19 Gerd Moellmann <gerd@gnu.org>
5199
5200 * eval.c (skip_debugger): Prevent a compiler warning.
5201 (Fcondition_case): Likewise.
5202 (Fbacktrace_frame): Use a null interactive spec.
5203
773272d8
KH
52042000-10-19 Kenichi Handa <handa@etl.go.jp>
5205
5206 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5207
a42943e9
GM
52082000-10-18 Gerd Moellmann <gerd@gnu.org>
5209
e50517d9
GM
5210 * strftime.c: Sync with glibc, file version 1.78.
5211 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5212 should no longer be used according to ISO 8601.
5213
9035a35a
GM
5214 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5215 no map for meta_prefix_char, don't try to use it as a keymap.
5216 Instead, if T_OK is non-zero, look up a default binding, if any,
5217 otherwise, if T_OK is zero, return nil.
5218
a42943e9
GM
5219 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5220 (x_to_xcolors, png_load): Use x_query_color.
5221
52283633
SM
5222 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5223 New functions.
a42943e9
GM
5224 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5225 which can be slow.
5226 (x_copy_color, x_alloc_lighter_color): Likewise.
5227
5228 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5229 (x_query_color, x_query_colors): Add prototype.
5230
5231 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5232 check_string_bytes only if not noninteractive, increase count to 50.
5233
00de2987
MB
52342000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5235
5236 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5237 markers correctly.
5238
54918e2b
GM
52392000-10-17 Gerd Moellmann <gerd@gnu.org>
5240
1f0b3fd2
GM
5241 * alloc.c (pure_bytes_used): Renamed from pureptr.
5242 (ALIGN): New macro.
5243 (pure_alloc): New function.
5244 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5245 Use it.
5246 (Fpurecopy): Use PURE_POINTER_P.
5247
68c5d1db
GM
5248 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5249 PT has moved backward.
52283633 5250
9a038881
GM
5251 * xdisp.c (cursor_row_p): Take continued lines into account.
5252
361b097f
GM
5253 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5254 string's size_byte.
5255 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5256 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5257 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5258 string allocated.
5259
54918e2b
GM
5260 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5261 of selective display off while searching for the next line start.
5262
03ed0806
KH
52632000-10-17 Kenichi Handa <handa@etl.go.jp>
5264
5265 * Makefile.in (term.o): Depend on dispextern.h.
5266
7e05cdaf
SM
52672000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5268
5269 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5270
a6801fd1
GM
52712000-10-16 Gerd Moellmann <gerd@gnu.org>
5272
483de32b
GM
5273 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5274 the iterator at the beginning, so that they can be set later on,
5275 for instance in reseat_at_next_visible_line_start, without being
5276 overwritten.
5277
a6801fd1
GM
5278 * xfns.c (pbm_format): Add :foreground and :background keywords.
5279 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 5280 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 5281
dbf1fcc1
EZ
52822000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5283
5284 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5285
52283633 5286 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
5287
5288 * msdos.c (IT_set_face): Compare highlighted face with the default
5289 face, and invert colors if these faces' colors are identical.
5290 (Fmsdos_remember_default_colors): Don't swap foreground and
5291 background colors in initial_colors[].
5292 (IT_set_frame_parameters): Don't swap frame's foreground and
5293 background pixels. If ALIST includes "(reverse . t)", swap
5294 foreground-color and background-color properties in frame's
5295 param_alist. If the original frame's param_alist doesn't specify
5296 the colors, store unspecified-fg and unspecified-bg, reversed if
5297 required.
5298
5299 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5300 the colors are unspecified and reversed, reverse fore- and back-
5301 ground in the returned value.
5302 (Fframe_parameter): Ditto.
5303
b41fe2c3 53042000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 5305
3a6b59d9
GM
5306 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5307 get_last_unchanged_at_beg_row.
5308 (find_first_unchanged_at_end_row): Renamed from
5309 get_first_unchanged_at_end_row.
5310 (find_first_unchanged_at_end_row): Convert assertions to
5311 unconditional tests which abort. When looking for a row in
5312 unchanged text, don't go further back than first_text_row.
5313
b41fe2c3
GM
5314 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5315 Don't add in the last line's height when deciding if the new
5316 position is below the scroll margin.
9d1af64f 5317
b41fe2c3 53182000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5319
5320 * editfns.c (Fconstrain_to_field): Check carefully for field
5321 boundaries if either OLD_POS or NEW_POS has a non-nil field
5322 property, even if they're the same.
5323
c412cb7b
KH
53242000-10-16 Kenichi Handa <handa@etl.go.jp>
5325
5326 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5327 height for XFillRectangle.
5328
5586f3eb
SM
53292000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5330
5331 * syntax.c (Fstring_to_syntax): New function extracted from
5332 Fmodify_syntax_entry.
5333 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5334 (skip_chars, Fforward_comment): Remove unused variables.
5335 (syms_of_syntax): Add defsubr for string-to-syntax.
5336 (describe_syntax): Add code for comment and string fences.
5337
db785038
SM
53382000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5339
5340 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5341 Do the meta->esc mapping. Call get_keyelt before returning.
5342 Start scanning from the second element (the first is always `keymap')
5343 to make it easier to detect when we reach a parent map.
5344 Handle the case of inheriting from a symbol whose function is a map.
5345 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5346 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5347 (get_keyelt, Flookup_key): Update call to access_keymap.
5348 Remove the meta->esc mappings.
5349 (define_as_prefix): Delete old disabled code.
5350 (menu_item_p): New function.
5351 (where_is_internal_1): Skip over the few remaining menu items.
5352 * lisp.h (access_keymap): Update prototype.
5353 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5354 Update call to access_keymap.
5355 (follow_key, read_key_sequence): Update calls to access_keymap.
5356 Remove the meta->esc mappings.
5357
cafafe0b
GM
53582000-10-13 Gerd Moellmann <gerd@gnu.org>
5359
a2e2a7f6
GM
5360 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5361 with additional argument.
5362
cafafe0b
GM
5363 * xdisp.c (cursor_row_p): New function.
5364 (try_cursor_movement, display_line): Use it.
52283633 5365
cafafe0b
GM
5366 * xdisp.c (append_space): Also save/restore iterator's current
5367 character and its length.
5368
5369 * xdisp.c (init_from_display_pos): Add an assertion.
5370 (handle_stop): Don't set iterator's add_overlay_start.
5371 (handle_invisible_prop): Likewise.
5372 (load_overlay_strings): If text under an overlay is invisible,
5373 take both before- and after-strings into account when the iterator
5374 is positioned either at the start or at the end of the overlay.
5375 (forward_to_next_line_start): Rewritten.
5376 (reseat_at_next_visible_line_start): Rewritten.
5377 (set_iterator_to_next): Add parameter RESEAT_P.
5378
5379 * dispextern.h (struct it): Remove member add_overlay_start.
5380 (set_iterator_to_next): Change prototype.
5381
c744452b
KH
53822000-10-13 Kenichi Handa <handa@etl.go.jp>
5383
5384 * coding.c (code_convert_region): Be sure to initialize
5385 coding->category_idx.
e4a3f4e1
KH
5386 (decode_coding_string): Set coding->src_multibyte and
5387 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5388 (encode_coding_string): Set coding->src_multibyte and
5389 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5390
321fd26f
SM
53912000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5392
5393 * xfns.c (Fx_create_frame): Don't bother calling
5394 face-set-after-frame-default since the caller does it for us anyway.
5395
76832439
EZ
53962000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5397
5398 * window.c (coordinates_in_window): Fix detection of vertical line
5399 on character terminals.
5400
2483cf58
GM
54012000-10-12 Gerd Moellmann <gerd@gnu.org>
5402
5403 * editfns.c (save_excursion_save): Additionally record the
5404 selected window.
5405 (save_excursion_restore): If buffer was visible in a window, and a
5406 different window was selected, and the old selected window is
5407 still live, restore point in that window.
5408
eb991b25
KH
54092000-10-12 Kenichi Handa <handa@etl.go.jp>
5410
8a0eba09
KH
5411 * xterm.c (x_produce_glyphs): Handle
5412 unibyte_display_via_language_environment correctly.
5413
20401fcc
KH
5414 * regex.c (regex_compile): Change the way of handling a range from
5415 unibyte char to multibyte char.
5416
5417 * syntax.c (skip_chars): Change the way of handling a range from
5418 unibyte char to multibyte char.
5419
eb991b25
KH
5420 * process.c (read_process_output): Cancel previous change.
5421
365dd325
EZ
54222000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5423
c1b096cb
EZ
5424 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5425
365dd325
EZ
5426 * charset.c (Ffind_charset_string): Doc fix.
5427 (Ffind_charset_region): Doc fix.
5428
eb483c2b
KH
54292000-10-11 Kenichi Handa <handa@mule.m17n.org>
5430
5431 * process.c (read_process_output): Fix previous change. Adjust
5432 multibyteness of text to insert in a buffer by
52283633 5433 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5434
b40bfb99
AS
54352000-10-10 Andreas Schwab <schwab@suse.de>
5436
5437 * alloc.c (mark_object): Remove all workarounds installed on
5438 1993-08-08.
5439
caff31d4
KH
54402000-10-10 Kenichi Handa <handa@etl.go.jp>
5441
52283633 5442 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5443 (base64_encode_1): Make it work for a text of multibyte form.
5444 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5445 case. Don't call str_to_multibyte because base64_decode_1
5446 produces correct multibyte form for eight-bit codes.
52283633 5447 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5448 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5449 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5450 codes.
5451
5452 * charset.h (CHAR_STRING): Optimized for single byte characters.
5453
cba026ef
AS
54542000-10-09 Andreas Schwab <schwab@suse.de>
5455
5456 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5457 -1 after socket is closed, to fall through to error processing.
5458
1e21fe48
EZ
54592000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5460
5461 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5462 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5463 background-color, change also the colors of the default face for
5464 this frame.
5465
a640322e
EZ
54662000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5467
5468 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5469 them extern (they are defined on xfaces.c).
5470 (syms_of_msdos): Don't intern and don't staticpro
5471 Qbackground_color and Qforeground_color.
5472
a115794c
EZ
54732000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5474
5475 * frame.c (Fframe_parameter): For non-windowed frames, if
5476 f->param_alist says foreground or background color is unspecified,
5477 call tty_color_name to return the color name computed from the
5478 frame's current colors.
5479
f5533b63
DL
54802000-10-06 Dave Love <fx@gnu.org>
5481
5482 * terminfo.c (ospeed): Don't declare.
5483
5484 * sysdep.c: Don't include string.h.
5485 (h_errno): Declare conditional also on TRY_AGAIN.
5486
5487 * charset.c (Ffind_charset_string): Doc fix.
5488
52283633 5489 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5490 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5491 error messages.
5492
2b06561a
DL
54932000-10-05 Dave Love <fx@gnu.org>
5494
5495 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5496 position like menu-bar.
5497
ca839c85
GM
54982000-10-05 Gerd Moellmann <gerd@gnu.org>
5499
5500 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5501
5502 * xdisp.c (handle_single_display_prop): Use safe_call1.
5503 (safe_call): Renamed from call_function.
5504 (safe_call1): New function.
5505 (handle_fontified_prop): Use safe_call1 instead of call1.
5506 (safe_eval): Renamed from eval_form.
5507 (safe_eval_handler): Renamed from eval_handler.
5508 (handle_single_display_prop, display_mode_element): Use safe_eval
5509 instead of eval_form.
5510
5511 * xfaces.c (merge_face_heights): Use safe_call instead of
5512 call_function.
5513
5514 * keyboard.c (show_help_echo): Use safe_call instead of
5515 call_function; use safe_eval instead of eval_form.
5516
5517 * lisp.h (safe_call): Renamed from call_function.
5518 (safe_eval): Renamed from eval_form.
5519 (safe_call1): Add prototype.
5520
a3489ece
MB
55212000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5522
5523 * xfns.c (image_ascent): Rearrange ascent calculation for the
5524 has-a-font case.
5525
35810b6f
SM
55262000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5527
5528 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5529 (where_is_internal_1): Don't bother ignoring menu-items any more.
5530
3dc78168
GM
55312000-10-04 Gerd Moellmann <gerd@gnu.org>
5532
5533 * keyboard.c (update_menu_bindings): New variable.
5534 (parse_menu_item): Use AREF. If update_menu_bindings
5535 is 0, don't update menu bindings.
5536 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5537
1efc2bb9
EZ
55382000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5539
5540 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5541 to `mark_object'.
5542
3f679f55
SM
55432000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5544
5545 * syntax.c (forw_comment): Match nestedness of ender/starter.
5546 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5547 (prev_char_comstart_first): Remove.
5548 (back_comment): Check two-char comment markers more carefully
5549 to better handle overlapping cases like *//* or /* */* */ ...
5550 Match nestedness of ender/starter.
5551
2021ab61
DL
55522000-10-02 Dave Love <fx@gnu.org>
5553
5554 * config.in (HAVE_GAI_STRERROR): Add undef.
5555
5556 * process.c (Fopen_network_stream): Use it.
5557
5558 * m/alpha.h (NO_REMAP): Don't define.
5559
64e6cc18
GM
55602000-10-02 Gerd Moellmann <gerd@gnu.org>
5561
5562 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5563 return with a string converted to an integer or vice versa when
5564 Vmocklisp_arguments is t.
5565 (Fsignal): Likewise. The function can return for `quit'.
5566 (struct gcpro): Declare member `var' to point to a volatile
5567 Lisp_Object.
5568
5569 * eval.c (error): Prevent compiler warning.
5570
b1904cd9
SM
55712000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5572
5573 * keymap.c (keymap_memberp): New function.
5574 (Fset_keymap_parent): Use it.
5575 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5576 Use keymap_memberp to avoid creating cycles.
5577 (access_keymap): Use KEYMAPP.
5578
71c9ec51
GM
55792000-09-30 Gerd Moellmann <gerd@gnu.org>
5580
5581 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5582 gai_strerror. Make sure xerrno is set if connect fails. Improve
5583 error recovery.
71c9ec51 5584
c70c6b58
JR
55852000-09-29 Jason Rumney <jasonr@gnu.org>
5586
5587 * w32term.c (w32_char_font_type, w32_encode_char)
5588 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5589 (w32_bdf_per_char_metric): New function.
5590 (w32_per_char_metric): Use it.
5591 (x_draw_glyph_string_background): Always draw background for BDF
5592 glyphs.
5593
5594 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5595 GDI object which is a scarce resource.
5596
5597 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5598 (get_quoted_string): Fix limit on memchr search.
5599 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5600 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5601 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5602 (get_cached_font_char, cache_char_offset): Use macro
5603 BDF_CODEPOINT_RANGE_COVER_P.
5604 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5605 (clear_cached_bitmap_slots): New function.
5606 (GET_HEX_VALUE): G-Z, g-z are not hex.
5607 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5608 (get_bitmap_with_cache): Use new cache implementation.
5609 (create_offscreen_bitmap): New function.
5610 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5611
5612 * w32term.c (x_produce_glyphs): If the distance from the current
5613 position to the next tab stop is less than a canonical character
5614 width, use the tab stop after that.
5615 (x_draw_glyphs): Handle case START and END are out of bounds more
5616 carefully.
5617 (x_clear_mouse_face): Block/unblock input.
5618 (x_display_and_set_cursor): Don't show a hollow box cursor for
5619 buffers whose cursor_type is nil.
5620
fe01239f
GM
56212000-09-29 Gerd Moellmann <gerd@gnu.org>
5622
52283633 5623 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5624
5625 * dispextern.h (updating_frame): Declare extern.
5626
e7c52f1f
AS
56272000-09-29 Andreas Schwab <schwab@suse.de>
5628
5629 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5630
de6e1f7c
GM
56312000-09-29 Gerd Moellmann <gerd@gnu.org>
5632
25126faa
GM
5633 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5634 use its function definition.
5635 (tool_bar_items): Likewise.
5636
de6e1f7c 5637 * lisp.h (fatal): Declare NO_RETURN.
52283633 5638
454ee39b
KH
56392000-09-29 Kenichi Handa <handa@etl.go.jp>
5640
5641 * keymap.c: Remove the line "#undef NULL".
5642
96301c5f
GM
56432000-09-28 Gerd Moellmann <gerd@gnu.org>
5644
52283633 5645 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5646
efffeeb4
DL
56472000-09-28 Dave Love <fx@gnu.org>
5648
ecb8b666
DL
5649 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5650
dc3cd20f
DL
5651 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5652
5653 * .gdbinit (xreload): Note its need on GNU/Linux.
5654
efffeeb4
DL
5655 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5656 r_alloc, r_alloc_free.
5657
8610d903
KH
56582000-09-28 Kenichi Handa <handa@etl.go.jp>
5659
5660 * syntax.c (skip_chars): Handle negation correctly.
5661
8901d1ac
GM
56622000-09-27 Gerd Moellmann <gerd@gnu.org>
5663
6f22f1ad
GM
5664 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5665 with non-zero FORCE_P argument.
5666
52283633 5667 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5668 Add assertions.
5669
5670 * xdisp.c (window_box_height): Add an assertion.
5671
5672 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5673 tool-bar than is available.
5674 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5675
36f1966f
DL
56762000-09-27 Dave Love <fx@gnu.org>
5677
efffeeb4 5678 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5679
31d929e5
GM
56802000-09-26 Gerd Moellmann <gerd@gnu.org>
5681
c98863bf
GM
5682 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5683 instead of BITS_PER_INT.
5684 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5685 EMACS_UINT, respectively.
5686 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5687
5688 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5689
5690 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5691
77072ab1
GM
5692 * window.c (freeze_window_starts): Construct last argument for
5693 foreach_window differently.
5694
5695 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5696
5697 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5698 EMACS_UINT instead of `int' and `unsigned int'.
5699 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5700
5701 * frame.h (struct frame): Make the `nothing' member of union
5702 output_data an EMACS_INT.
5703
52283633 5704 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5705 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5706 size in the sdata structure.
5707 (SDATA_NBYTES, SDATA_DATA): New macros.
5708 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5709 differently for the different layout of the sdata structure.
5710 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5711 in sdata.
5712 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5713 Check that size recorded in the string size and size recorded in
5714 the sdata structure agree.
5715
3e60b029
DL
57162000-09-25 Dave Love <fx@gnu.org>
5717
5718 * buffer.c: Include stdio.h.
5719
5720 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5721
3e60b029
DL
5722 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5723
5724 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5725 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5726 (__malloc_extra_blocks): Declare as __malloc_size_t.
5727
8ff16b4e
GM
57282000-09-25 Gerd Moellmann <gerd@gnu.org>
5729
755a2ccd
GM
5730 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5731
d8b4516f
GM
5732 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5733 (read_char): If help-echo is showing, preserve the echo area
5734 when redisplaying.
5735
5736 * xdisp.c (help_echo_showing_p): New variable.
5737 (set_message): Reset it to 0.
5738 (init_xdisp): Initialize help_echo_showing_p.
5739
5740 * dispextern.h (help_echo_showing_p): Declare extern.
5741
5742 * config.in: Fix typo in __GNUC_MINOR__.
5743
5744 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5745
b11af2dd
GM
5746 * s/freebsd.h (POSIX_SIGNALS): Define.
5747
8ff16b4e
GM
5748 * xterm.c (x_clear_mouse_face): Block/unblock input.
5749
844eb643
DL
57502000-09-24 Dave Love <fx@gnu.org>
5751
5752 * fns.c (base64_encode_1): Fix last change.
5753
b30ab1b3
GM
57542000-09-22 Gerd Moellmann <gerd@gnu.org>
5755
5756 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5757
5758 * xdisp.c (try_window_reusing_current_matrix): More fixes
5759 for the case window has a header-line.
5760
c6cbe5f0
DL
57612000-09-22 Dave Love <fx@gnu.org>
5762
4c7c1f3f
DL
5763 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5764 a doc string.
5765
5766 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5767
c6cbe5f0
DL
5768 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5769
550a625e
GM
57702000-09-21 Gerd Moellmann <gerd@gnu.org>
5771
4c7c1f3f 5772 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5773 for GCC >= 2.5.
5774
52283633
SM
5775 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5776 Declare NO_RETURN.
fca99116 5777
80d26f99
GM
5778 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5779 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5780 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5781 warnings.
52283633 5782
80d26f99
GM
5783 * marker.c (byte_char_debug_check): Return void.
5784
623a0aae
GM
5785 * xfns.c (Fx_create_frame): Set default frame parameter value
5786 for tool-bar-lines to 1.
5787
5788 * dispnew.c (scrolling_window): Compare y-positions of rows
5789 equal at the start. Some simplification.
5790
5791 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5792 reused rows' y-position in the case window has a header-line, and
5793 new window start is greater than old window start.
5794
42ac0ae5
GM
5795 * process.c (process_sent_to): New variable.
5796 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5797 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5798 Declare more parameters volatile.
5799
550a625e
GM
5800 * lread.c (Vrecursive_load_depth_limit): New variable.
5801 (Fload): Check recursive loads whose recursion depth exceeds
5802 Vrecursive_load_depth_limit.
5803 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5804
8320414c
GM
58052000-09-20 Gerd Moellmann <gerd@gnu.org>
5806
f46c275e
GM
5807 * fileio.c (Fread_file_name): Doc fix.
5808
5809 * editfns.c (Fmessage_or_box): Doc fix.
5810
5811 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5812
b7e11c5b 5813 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5814
8320414c
GM
5815 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5816 symbols are specified, add color translations to the cache.
52283633 5817 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5818 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5819 xpm_cache_color.
5820 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5821 structures to xpm_init_color_cache.
5822
da1608d9
GM
58232000-09-19 Gerd Moellmann <gerd@gnu.org>
5824
52283633 5825 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5826
6badfa25
AI
58272000-09-19 Andrew Innes <andrewi@gnu.org>
5828
5829 * makefile.nt (bootstrap-emacs): Don't change directory.
5830
3a5f42bb
KH
58312000-09-19 Kenichi Handa <handa@etl.go.jp>
5832
1b7649bd
KH
5833 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5834
3a5f42bb
KH
5835 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5836 If output buffer is too small, signal an appropriated error.
5837
9f83cf0b
DL
58382000-09-18 Dave Love <fx@gnu.org>
5839
52283633 5840 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5841 (current_active_maps): Remove redundant get_local_map call.
5842
28c7826c
GM
58432000-09-18 Gerd Moellmann <gerd@gnu.org>
5844
5cefa566
GM
5845 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5846 cursor for buffers whose cursor_type is nil.
52283633 5847
6fed3546
GM
5848 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5849 a feature to implement that is already implemented.
5850 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5851 warnings.
5852
5853 * xfns.c (x_clear_image_1): New function.
5854 (x_clear_image): Use it.
52283633 5855 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5856
05b1f851
GM
5857 * dispnew.c (update_window): Move test for invisible lines
5858 at the top to update_window_line.
5859 (update_window_line): Handle invisible lines here.
5860
f4779de9
GM
5861 * xfns.c (clear_image_cache): Clear current matrices of all
5862 frames sharing an image cache. Block input while freeing
5863 images. Fix timestamp comparison.
5864 (x_clear_image): Also free the mask.
5865
28c7826c
GM
5866 * xfns.c (lookup_image): Block input while loading the image so
5867 that we won't get interrupted in a state where the image isn't yet
5868 set up completely.
5869 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5870 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5871 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5872 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5873
b7412313
GM
58742000-09-16 Gerd Moellmann <gerd@gnu.org>
5875
5876 * dispnew.c (update_window): Make sure to make desired rows
5877 current even if they are completely invisible at the top
5878 of a window.
5879
47e351a3
GM
58802000-09-15 Gerd Moellmann <gerd@gnu.org>
5881
7f8f1edc
GM
5882 * xfns.c (lookup_image): Build mask before applying an algorithm.
5883 Recognize algorithm `disabled'.
5884 (cross_disabled_images): New variable.
5885 (COLOR_INTENSITY): New macro.
5886 (x_detect_edges): Use COLOR_INTENSITY.
5887 (x_disable_image): New function.
5888 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5889
5890 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5891 disabled state, don't apply an image transformation algorithm if
5892 the user specified an image for the disabled state. Use
28c7826c 5893 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5894 user hasn't specified an image.
5895
ebb8f116
GM
5896 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5897 allocation functions with the XPM lib.
5898 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5899 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5900 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5901 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5902 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5903 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5904 functions, if possible, because these handle color allocation
5905 failure more gracefully.
5906 (Fimage_mask_p): New function.
5907
47e351a3
GM
5908 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5909 (Qedge_detection, Qheuristic): New symbols.
5910 (syms_of_xfns): Initialize new symbols.
5911 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5912 `algorithm (edge-detection ...)'.
5913 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5914 (tiff_format, gif_format, gs_format): Add `:mask'.
5915 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5916 (GIF_MASK, GS_MASK): New enumerators.
5917 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5918 (emboss_matrix, laplace_matrix): New variables.
5919 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5920 (x_edge_detection): New functions.
5921 (x_laplace): Rewritten in terms of x_detect_edges.
5922 (x_build_heuristic_mask): If image has a mask, free it.
5923
fe83b953
AI
59242000-09-14 Andrew Innes <andrewi@gnu.org>
5925
5926 * makefile.w32-in: Revert to Unix line endings.
5927
3021e816
AI
59282000-09-14 Andrew Innes <andrewi@gnu.org>
5929
5930 * makefile.w32-in: Standardize indentation somewhat.
5931 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5932 cater for differences between shells.
5933
5934 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5935
2a32b5ea
GM
59362000-09-14 Gerd Moellmann <gerd@gnu.org>
5937
5938 * xterm.c (x_produce_glyphs): If the distance from the current
5939 position to the next tab stop is less than a canonical character
5940 width, use the tab stop after that.
5941
b4331e96
DL
59422000-09-14 Dave Love <fx@gnu.org>
5943
5944 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5945
ef9e4345
GM
59462000-09-14 Gerd Moellmann <gerd@gnu.org>
5947
085536c2
GM
5948 * xdisp.c (handle_fontified_prop): While running fontification
5949 functions, bind `fontification-functions' and
5950 `after-change-functions' to nil.
5951
ef9e4345
GM
5952 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5953 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5954
5955 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5956
5957 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5958 USE_MMAP_FOR_BUFFERS.
5959
5960 * insdel.c (make_gap): Use enlarge_buffer_text.
5961
5962 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5963 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5964 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5965 from former r_alloc_* functions in ralloc.c.
52283633 5966 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5967 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5968 (mmap_init) [REL_ALLOC_MMAP]: New function.
5969 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5970 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5971 BUFFER_FREE.
5972
5973 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5974 (enlarge_buffer_text): Add prototype.
5975
5976 * ralloc.c: Remove everything having to do with the use of mmap.
5977
f8608968
GM
59782000-09-13 Gerd Moellmann <gerd@gnu.org>
5979
2a494b2d
GM
5980 * sound.c (Fplay_sound): Doc fix.
5981
8c907a56
GM
5982 * keyboard.c: Avoid some more compiler warnings.
5983 (parse_tool_bar_item): Ignore cached key bindings.
5984
f8608968
GM
5985 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5986 and allocation of Lisp data.
5987
6ab70e9a
GM
59882000-09-12 Gerd Moellmann <gerd@gnu.org>
5989
d12d0a9b
GM
5990 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5991 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5992 defaults first.
5993
6ab70e9a
GM
5994 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5995
63c36c3c
KH
59962000-09-12 Miyashita Hisashi <himi@meadowy.org>
5997
5998 * ccl.c: Comment fixed.
5999 (MAX_MAP_SET_LEVEL): Increased to 30.
6000 (PUSH_MAPPING_STACK): Enclose with do-while block.
6001 (POP_MAPPING_STACK): Likewise.
6002 (stack_idx_of_map_multiple): New variable.
6003 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6004 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 6005 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
6006 (ccl_driver) <CCL_MapSingle>: Likewise.
6007 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6008 with the case where looking up process reaches to the end of
6009 map-set, and call CCL programs as the above change.
6010
7ee3bd7b
GM
60112000-09-11 Gerd Moellmann <gerd@gnu.org>
6012
8ec8a5ec
GM
6013 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6014 that might be clobbered by longjmp.
6015 (check_x_display_info, x_decode_color, create_frame_xic)
6016 (Fx_display_backing_store, Fx_display_visual_class)
52283633 6017 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 6018
f74b0705
GM
6019 * lread.c (init_lread): Set Vloads_in_progress to nil.
6020 (Fload): Show list of recursively loaded files, when signaling an
6021 error.
6022
7ee3bd7b
GM
6023 * lread.c (Vloads_in_progress): New variable.
6024 (record_load_unwind): New function.
6025 (Fload): Check for recursive loads.
6026 (syms_of_lread): Initialize Vloads_in_progress.
6027 (read_integer, read1): Avoid some compiler warnings.
6028
6029 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6030 compiler warnings.
6031
974e1e5b
MB
60322000-09-11 Miles Bader <miles@gnu.org>
6033
6034 * editfns.c (Fbuffer_string): Doc fix.
6035
9824c4e3
GM
60362000-09-10 Gerd Moellmann <gerd@gnu.org>
6037
6038 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6039
6a72fdd1
KR
60402000-09-09 Ken Raeburn <raeburn@gnu.org>
6041
6042 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6043 whether to include other header files.
6044
28e6fb66
GM
60452000-09-09 Gerd Moellmann <gerd@gnu.org>
6046
52283633 6047 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 6048 by Fmemq as a boolean.
28e6fb66 6049
7f8b6551
SM
60502000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6051
6052 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6053
a8710abf
GM
60542000-09-08 Gerd Moellmann <gerd@gnu.org>
6055
d1a02881
GM
6056 * ralloc.c (mmap_fd): Remove initializer which can make it
6057 read-only in a dumped Emacs.
6058 (mmap_fd_1): New variable.
6059 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6060 restore it from there.
6061 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6062 unconditionally so that mmap_fd can be initialized there.
6063 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6064 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6065 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6066
c454aac1
GM
6067 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6068
6069 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 6070 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 6071
fc653ef2
GM
6072 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6073
3015eec0
GM
6074 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6075 inheritance.
6076
bfe0ee88
GM
6077 * xdisp.c (try_window_id): When trying to locate cursor in
6078 unchanged rows at the top, handle the case that we can't find it.
6079
a8710abf
GM
6080 * xterm.c (x_draw_glyphs): Handle case START and END are out
6081 of bounds more carefully.
6082
6b7d4ae4
DL
60832000-09-08 Dave Love <fx@gnu.org>
6084
423193c5
DL
6085 * s/sol2.h (REL_ALLOC_MMAP): Define.
6086 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6087
6088 * ralloc.c: Don't include string.h (redundant).
6089 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6090 [!MAP_ANON]: Include fcntl.h.
6091 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6092 (r_alloc, r_re_alloc, r_alloc_free)
6093 (mmap_enlarge, mmap_set_vars): Use it.
6094 (r_alloc_init_fd): New function.
6095 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6096 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6097 malloc type.
6098
6099 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6100 Remove vm-limit.o.
6101
6b7d4ae4
DL
6102 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6103 change to __NetBSD__.
6104
44d31981
KH
61052000-09-08 Kenichi Handa <handa@etl.go.jp>
6106
6107 * search.c (compile_pattern): Check the multibyteness of cached
6108 string and PATTERN.
6109
aad40737
MB
61102000-09-08 Miles Bader <miles@gnu.org>
6111
6112 * xfaces.c (default_face_vector): Function removed.
6113 (Finternal_merge_in_global_face): Restore old global/local
6114 attribute override order. Use inline loop instead of calling
6115 default_face_vector.
6116
91a211b5
GM
61172000-09-07 Gerd Moellmann <gerd@gnu.org>
6118
6119 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6120 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6121 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6122 where necessary, in case POINTER_TYPE is `void'.
6123
03419440
EZ
61242000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6125
6126 * frame.c (make_terminal_frame): Initialize frame foreground and
6127 background colors to unspecified, for the initial instance of an
6128 MSDOS frame.
6129
f46f845b
GM
61302000-09-07 Gerd Moellmann <gerd@gnu.org>
6131
24f76fbf
GM
6132 * ralloc.c (mmap_find): Fix overlap computation.
6133 (mmap_enlarge): Compute nbytes before trying to find an
6134 overlapping region.
6135
f46f845b
GM
6136 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6137 instead of `!='.
6138
6139 * lread.c (syms_of_lread): Change value of regexp
6140 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6141
6142 * xmenu.c (xdialog_show): When looking up the selection in
6143 menu_items, take `quote' boundaries into account; this corresponds
6144 to a nil ITEM in x-popup-dialog.
6145
3c014385
KH
61462000-09-07 Kenichi Handa <handa@etl.go.jp>
6147
fd6f711b
KH
6148 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6149 not 0x81.
6150 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6151
3c014385 6152 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
6153 encoding, not decoding. Fix the handling of latin-jisx0201.
6154 Check for the charset katakana-jisx0201 too.
3c014385 6155 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 6156 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 6157
0da3ecef
GM
61582000-09-07 Gerd Moellmann <gerd@gnu.org>
6159
ab0ee409
GM
6160 * xfaces.c (Vparam_value_alist): New variable.
6161 (syms_of_xfaces): Initialize it.
6162 (Finternal_set_lisp_face_attribute): Avoid more consing.
6163
6164 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6165 specially.
6166 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6167 (Qbackground_mode): New variable.
6168 (syms_of_frame_1): Initialize Qbackground_mode.
6169
6170 * lisp.h (Qdisplay): Declare extern.
1091dd67 6171
0da3ecef
GM
6172 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6173 change face on all frames, and change the default for new frames.
6174
b14654b9
DL
61752000-09-07 Dave Love <fx@gnu.org>
6176
6177 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6178
d24fd56f
KH
61792000-09-07 Kenichi Handa <handa@etl.go.jp>
6180
794f3670
KH
6181 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6182
0fddd0dc
KH
6183 * charset.c: Include composite.h
6184 (lisp_string_width): New function.
6185 (Fstring_width): Call lisp_string_width instead of strwidth.
6186
6187 * Makefile.in (charset.o): Depends on composite.h.
6188
d24fd56f
KH
6189 * process.c (read_process_output): Before inserting the decoded
6190 text in the buffer, adjust the multibyteness.
6191
fa0b693c
GM
61922000-09-06 Gerd Moellmann <gerd@gnu.org>
6193
52283633 6194 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
6195 buffer's text buffer is null, map new memory.
6196
0a58f946
GM
6197 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6198 POINTER_TYPE and size_t.
6199 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6200 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6201 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6202 [REL_ALLOC_MMAP]: New macros.
6203 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6204 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6205 [REL_ALLOC_MMAP]: New functions.
6206
6207 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6208 before and after unexec.
6209
6210 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6211 text buffers if necessary.
6212
6213 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6214 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6215 in prototypes.
6216
fa0b693c
GM
6217 * config.in (HAVE_MMAP): Add #undef.
6218
877055f6
GM
62192000-09-05 Gerd Moellmann <gerd@gnu.org>
6220
08ba3862
GM
6221 * frame.c (Qdisplay_type): New variable.
6222 (syms_of_frame_1): Initialize it.
6223 (Fframe_parameter): New function that avoids consing.
6224 (syms_of_frame): Defsubr it.
6225
66ffe51c
GM
6226 * buffer.c (Fother_buffer): Consider buffers as invisible when
6227 they are displayed in a window on an invisible frame.
6228
877055f6
GM
6229 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6230 get-largest-window always return nil.
6231
bb970e67
GM
62322000-09-04 Gerd Moellmann <gerd@gnu.org>
6233
6234 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6235 variable; recognize Emacs 19 elc files.
6236
7a3d0e0e
MB
62372000-09-04 Miles Bader <miles@gnu.org>
6238
6239 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6240 before initially popping up the menu, so the menu doesn't flash
52283633 6241 when the face settings are significantly different from the defaults.
7a3d0e0e 6242
14473664
SM
62432000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6244
6245 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6246 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6247 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6248 (BIT_UNIBYTE): Remove.
6249 (re_match_2_internal): Delete corresponding code and streamline the
6250 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6251 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6252 (re_wctype_t): New type.
6253 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6254 (regex_compile): Use them and fix handling of overly long char classes.
6255
c1174479
AI
62562000-09-03 Andrew Innes <andrewi@gnu.org>
6257
f8803e97
AI
6258 * makefile.w32-in: Change to DOS line endings.
6259
c1174479
AI
6260 * s/ms-w32.h (ORDINARY_LINK): New define.
6261
6262 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6263 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6264
6265 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6266 (distclean): Delete them here instead.
6267
44ef7cf6
AI
6268 * w32proc.c (compare_env): Convert to uppercase for comparison,
6269 not lowercase, to match how the native Windows shell works.
6270
49b3bd82
JR
62712000-09-03 Jason Rumney <jasonr@gnu.org>
6272
6273 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6274 CVS changes the line-ends when checking in/out on DOS/Windows.
6275
6276 * makefile.nt (emacs): Do not change directory to run temacs, as
6277 the load-path is set relative to current directory.
6278
a3d35a39
MB
62792000-09-03 Miles Bader <miles@gnu.org>
6280
6281 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6282
d276b0cf
GM
62832000-09-02 Gerd Moellmann <gerd@gnu.org>
6284
715e84c9
GM
6285 * xdisp.c (redisplay_mode_lines): New function.
6286 (display_mode_lines): Return number of mode lines displayed.
6287 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6288 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6289
8892f40b
GM
6290 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6291 string.h and strings.h.
6292 (index) [HAVE_INDEX]: Add prototype.
6293
d276b0cf
GM
6294 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6295 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6296
6297 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6298 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6299
38404229
GM
63002000-09-01 Gerd Moellmann <gerd@gnu.org>
6301
6302 * lread.c (read1): Accept `?' as symbol constituent, for
6303 compatiblity with XEmacs.
6304
c0f9ea08
SM
63052000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6306
6307 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6308 (struct re_pattern_buffer): Remove newline_anchor.
6309 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6310 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6311 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6312 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6313 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6314 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6315 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6316 Get rid of references to newline_anchor.
6317 (regcomp): Allocate and precompute a fastmap.
6318
8c0f83fe
GM
63192000-08-31 Gerd Moellmann <gerd@gnu.org>
6320
6321 * lread.c (openp): GCPRO local variable `filename'.
6322
4bb91c68
SM
63232000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6324
6325 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6326
6327 * regex.c: Merge some changes from GNU libc. Add prototypes.
6328 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6329 Use memcmp and memcpy instead of bcopy and bcmp.
6330 (init_syntax_once): Use ISALNUM.
6331 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6332 (REG_UNSET_VALUE): Remove. Use NULL instead.
6333 (REG_UNSET, re_match_2_internal): Use NULL.
6334 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6335 New macros.
6336 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6337 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6338 (regex_compile): In handle_interval, return an error rather than try to
6339 unfetch the interval if we can't find the closing brace.
6340 Obey the RE_NO_GNU_OPS syntax bit.
6341 (TOLOWER): New macro.
6342 (regcomp): Use it.
6343 (regexec): Allocate regs.start and regs.end as one block.
6344
5226a931
GM
63452000-08-30 Gerd Moellmann <gerd@gnu.org>
6346
868dd24b
GM
6347 * xdisp.c (echo_area_display): Check display_completed instead
6348 of calling detect_input_pending.
6349
6350 * dispnew.c (update_frame): Only set display_completed here; move
6351 the update_begin and update_end calls here from update_frame_1.
6352 (update_frame_1): Don't set display_completed here, don't call
6353 update_begin/update_end.
6354
5226a931
GM
6355 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6356 instead of store_frame_param.
6357
2a8bd25f
GM
63582000-08-29 Gerd Moellmann <gerd@gnu.org>
6359
6360 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6361 desired window matrix hasn't been displayed, use the current row
6362 instead. Make sure that only those frame rows are updated for
6363 which there exists a corresponding enabled desired row.
52283633 6364
ba3478d9
MB
63652000-08-29 Miles Bader <miles@gnu.org>
6366
6367 * xfaces.c (default_face_vector): New function.
6368 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6369
87d0f685
GM
63702000-08-29 Gerd Moellmann <gerd@gnu.org>
6371
6372 * lread.c (openp): Prevent temporary string passed to
6373 Ffile_readable_p from being garbage collected.
6374
6fa86045
DL
63752000-08-28 Dave Love <fx@gnu.org>
6376
6377 * keymap.c (store_in_keymap): Add `static' to declaration.
6378
bb17930d
GM
63792000-08-28 Gerd Moellmann <gerd@gnu.org>
6380
6381 * emacs.c, callint.c, doc.c, editfns.c
6382 (toplevel) [HAVE_STRING_H]: Include string.h.
6383 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6384 (index): Remove prototypes which might conflict with non-standard
6385 definitions of index/strchr.
6386
6387 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6388 (rindex): Define only if !HAVE_RINDEX.
6389
6390 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6391
6392 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6393
87188200
MB
63942000-08-28 Miles Bader <miles@gnu.org>
6395
6396 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6397 made inconsistent by a font-related attribute in FROM.
6398 (merge_face_inheritance): Add function comment.
6399
41a68aef
KH
64002000-08-28 Kenichi Handa <handa@etl.go.jp>
6401
6402 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6403 the 4th arg (PREV_EVENT) Qt to suppress input method.
6404
f7c436c1
SM
64052000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6406
0b32bf0e
SM
6407 * regex.c: Indent cpp directives and remove parens after `defined'.
6408 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6409 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6410 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6411 (re_compile_pattern): Use size_t for length.
6412 (init_syntax_once): Move to a better place.
6413 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6414 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6415
f7c436c1
SM
6416 * syntax.c (back_comment): Detect cases where a comment-starter is
6417 actually inside another comment as in: /* a // b */ c // d \n.
6418 Make it clear that `comstart_pos' is unused for nested comments.
6419
6420 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6421 (KEYMAPP): New macro.
6422 (Fkeymap_parent, Fset_keymap_parent): Use it.
6423 (fix_submap_inheritance): Mark it static.
6424 (define_as_prefix, describe_buffer_bindings, describe_command)
6425 (describe_translation, describe_map): Complete prototypes.
6426
6427 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6428
6429 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6430 to better match the key-lookup behavior.
6431
6288c62f
GM
64322000-08-27 Gerd Moellmann <gerd@gnu.org>
6433
6434 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6435 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6436
e931344e
EZ
64372000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6438
6439 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6440 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6441 (xterm.o): Depend on coding.h
6442
d10dfeef
KH
64432000-08-26 Kenichi Handa <handa@etl.go.jp>
6444
6445 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6446 the corresponding '#endif'.
6447
2d73e8d3
MB
64482000-08-26 Miles Bader <miles@gnu.org>
6449
6450 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6451 * xfaces.c (QCinherit): New variable.
6452 (syms_of_xfaces): Initialize it.
6453 (LFACE_INHERIT): New macro.
6454 (Finternal_get_lisp_face_attribute)
52283633 6455 (merge_face_vector_with_property)
2d73e8d3
MB
6456 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6457 (check_lface_attrs): Allow new types of face height. Check
6458 inherit attribute.
6459 (CYCLE_CHECK): New macro.
6460 (merge_face_inheritance): New function.
6461 (merge_face_vectors): Merge inherited faces too. Add F and
6462 CYCLE_CHECK arguments.
6463 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6464 (lookup_named_face, lookup_derived_face, realize_named_face)
6465 (face_at_string_position, face_at_buffer_position): Supply
6466 new F and CYCLE_CHECK arguments to merge_face_vectors.
6467 (merge_face_heights): New function.
52283633 6468 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6469 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6470 handle relative face heights.
6471 (lface_same_font_attributes_p): Compare heights using EQ.
6472
6ce974d4
KH
64732000-08-26 Kenichi Handa <handa@etl.go.jp>
6474
6475 * charset.c (char_to_string): Check the character validity.
52283633 6476 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6477
dc1e502d
SM
64782000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6479
6480 * regex.c (PUSH_FAILURE_COUNT): New macro.
6481 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6482 Handle popping of a register's or a counter's data.
6483 (POP_FAILURE_POINT): Use the new name.
6484 (re_match_2_internal): Push counter data on the stack for succeed_n,
6485 jump_n and set_number_at and remove misleading dead code in succeed_n.
6486
bd9d0f3f
GM
64872000-08-25 Gerd Moellmann <gerd@gnu.org>
6488
6489 * xdisp.c (redisplay_internal): If considering all windows on all
6490 frames, update the display for each frame as soon as possible,
6491 instead of first building all desired matrices for all frames, and
6492 then updating them all.
6493 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6494
aa5b8e15
GM
64952000-08-24 Gerd Moellmann <gerd@gnu.org>
6496
17494071
GM
6497 * bytecode.c (mark_byte_stack): Add a comment.
6498
52283633
SM
6499 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6500 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6501 a graphical frame.
6502
c543db81
KH
65032000-08-24 Kenichi Handa <handa@etl.go.jp>
6504
d246d5f5
KH
6505 * minibuf.c (do_completion): Always use compare-string, not
6506 string-equal because the latter doesn't pay attention to
6507 multibyteness of strings.
6508
c543db81
KH
6509 * process.c (create_process): Don't setup raw-text coding here.
6510 (Fopen_network_stream): Don't set coding->src_multibyte and
6511 coding->dst_multibyte here.
6512 (read_process_output): For process filter, return unibyte string
6513 if default-enable-multibyte-characters is nil.
6514 (send_process): If OBJECT is multibyte text, be sure to encoded it
6515 by the specified coding system for the process. Otherwise, setup
6516 raw-text coding.
52283633 6517 (init_process): Don't initialize default-process-coding-system here.
c543db81 6518
9b47cfe0
EZ
65192000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6520
6521 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6522 <scroll-down-aggressively>: Likewise.
6523
f5a36960
KH
65242000-08-23 Kenichi Handa <handa@etl.go.jp>
6525
6526 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6527 zero. Set coding->produced_char correctly.
6528
69a7ffa7
AI
65292000-08-22 Andrew Innes <andrewi@gnu.org>
6530
6531 * makefile.w32-in: New file.
6532
6533 * unexw32.c (unexec): Ignore old_name, and use the actual location
6534 of the current executable instead. Base new_name on this.
6535
6536 * w32proc.c (create_child): Remove reference to security
6537 descriptor, which isn't needed and doesn't compile with mingw32.
6538
6539 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6540 up dllimport attributes.
6541 (x_update_window_end): Update prototype.
6542
6543 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6544 extern, which screws up dllimport attributes.
6545
6546 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6547 up dllimport attributes.
6548
6549 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6550 screws up dllimport attributes.
6551
6552 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6553 up dllimport attributes.
6554 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6555 screws up dllimport attributes.
6556
6557 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6558 up dllimport attributes.
6559
6560 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6561 screws up dllimport attributes.
6562
6563 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6564 screws up dllimport attributes.
6565
6566 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6567 up dllimport attributes.
6568
6569 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6570 unnecessary extern, which screws up dllimport attributes.
6571 (main): Ditto.
6572
6573 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6574 up dllimport attributes.
6575
6576 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6577 unnecessary extern, which screws up dllimport attributes.
6578
6579 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6580 screws up dllimport attributes.
6581
6582 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6583 up dllimport attributes.
6584
6585 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6586
52283633
SM
6587 * w32bdf.c (search_file_line):
6588 (set_bdf_font_info):
6589 (seek_char):
6590 (w32_get_bdf_glyph):
69a7ffa7
AI
6591 (w32_BDF_to_x_font): Fix compile warnings.
6592
52283633 6593 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6594
6595 * w32select.c: Include keyboard.h before frame.h.
6596
6597 * w32fns.c (max): Define macro.
6598 (JOHAB_CHARSET): Define if not known.
6599 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6600 (Fx_show_tip): Synch with X version.
6601
6602 * w32xfns.c: Include keyboard.h before frame.h.
6603
6604 * w32fns.c: Include keyboard.h before frame.h.
6605
6606 * w32term.c: Include keyboard.h before frame.h.
6607
6608 * fontset.c: Include keyboard.h before frame.h.
6609
6610 * w32inevt.c: Include keyboard.h before frame.h.
6611 (MOUSE_MOVED): Define if not known.
6612
6613 * minibuf.c: Include keyboard.h before frame.h.
6614
6615 * keyboard.c: Include keyboard.h before frame.h.
6616
6617 * indent.c: Include keyboard.h before frame.h.
6618
6619 * dispnew.c: Include keyboard.h before frame.h.
6620
6621 * buffer.c: Include keyboard.h before frame.h.
6622
6623 * alloc.c: Include keyboard.h before frame.h.
6624
6625 * print.c: Include keyboard.h before frame.h.
6626
6627 * process.c: Include keyboard.h before frame.h.
6628
6629 * scroll.c: Include keyboard.h before frame.h.
6630
6631 * sysdep.c: Include keyboard.h before frame.h.
6632
6633 * term.c: Include keyboard.h before frame.h.
6634
6635 * window.c: Include keyboard.h before frame.h.
6636
6637 * xdisp.c: Include keyboard.h before frame.h.
6638 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6639
6640 * frame.c: Include keyboard.h before frame.h.
6641
6642 * w32heap.h: Undefine min, max.
6643
6644 * w32gui.h: Undefine min, max.
6645
6646 * unexw32.c: Change PUCHAR to PCHAR.
6647 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6648 (relocate_offset):
6649 (get_section_info):
69a7ffa7
AI
6650 (copy_executable_and_dump_data): Remove unnecessary static defs.
6651 (copy_executable_and_dump_data): Fix compile warnings.
6652
6653 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6654
6655 * w32console.c (min): Define macro.
6656 (clear_frame, write_glyphs): Fix compile warning.
6657
52283633 6658 * w32proc.c (compare_env):
69a7ffa7
AI
6659 (find_child_console): Fix compile warning.
6660
6661 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6662 sys_errlist instead of _sys_errlist.
6663 (get_emacs_configuration_options): New function.
6664
6665 * s/ms-w32.h (sys_nerr): Provide default definition.
6666 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6667 name with _ prepended.
6668 (NSIG): Define if not known.
6669 (get_emacs_configuration): Provide extern declaration.
6670 (get_emacs_configuration_options): Provide extern declaration.
6671 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6672
6673 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6674 (map_w32_filename):
69a7ffa7
AI
6675 (read_unc_volume): Fix compile warning.
6676
6677 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6678 definitions from being used.
6679
6680 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6681
52283633 6682 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6683 (open_unc_volume): Make arg const.
6684
6685 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6686 (read_input_waiting): Remove excess parameter.
6687
6688 * w32.c (init_environment): Call _access.
6689 (check_windows_init_file): Call _close.
6690 (init_user_info): Call _putenv.
6691 (init_environment): Call _putenv and _strdup.
6692 (init_ntproc): Reset volume info cache on startup.
6693
6694 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6695 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6696 cannot override the CRT malloc.
6697
6698 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6699 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6700
6701 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6702 unless we are linking with a static CRT.
6703 (RVA_TO_PTR): Cast result to unsigned char*.
6704
6705 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6706 (add_volume_info): Use xstrdup.
6707
25060080
SM
67082000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6709
6710 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6711 (do_completion, Fminibuffer_complete_word): Use it.
6712 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6713 var so it can take non-boolean values.
6714
6917e6bb
GM
67152000-08-21 Gerd Moellmann <gerd@gnu.org>
6716
acb7cc89 6717 * editfns.c (find_field): Formatting changes.
52283633 6718 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6719 changed to prototypes, some new protypes added, some functions
6720 made static.
6721
6722 * lisp.h (set_time_zone_rule): Add prototype.
6723 (use_dialog_box): External declaration.
6724
0bbfdc25
GM
6725 * keyboard.c (gen_help_event): Add parameter SIZE.
6726 (kbd_buffer_events_waiting): Slightly rewritten.
6727 (clear_event): New function.
6728 (kbd_buffer_get_event): Use it, and clear the input_events of
6729 HELP_EVENTs.
6730 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6731 don't fill the newly created array with nils.
6732 (toplevel): Convert some old-style function forward declarations
6733 to prototypes.
6734
6735 * keyboard.h (gen_help_event): Change prototype.
6736
6737 * xterm.c (XTread_socket): Change calls to gen_help_event.
6738
6739 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6740
6917e6bb
GM
6741 * eval.c (Fmacroexpand): Doc fix.
6742
e5cd3d11
JR
67432000-08-20 Jason Rumney <jasonr@gnu.org>
6744
6745 * w32term.h (x_display_info_for_display): Remove as this function
6746 does not exist on W32.
6747
6748 * w32term.c (help_echo_window): New variable.
6749 (syms_of_w32term): staticpro it.
6750 (note_mode_line_highlight): Set it.
6751 (XTextExtents16): Removed as there is no equivalent on W32.
6752 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6753 the X way of doing this will not work for W32.
6754 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6755 (x_draw_image_foreground): Avoid drawing outside of the clip area
6756 when image doesn't have a mask.
6757 (note_mouse_highlight): Process overlays in the right order of
6758 priority. Set help_echo_window.
6759 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6760 because that's more visible for large images.
6761
6762 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6763 name to single_keymap_panes.
6764 (w32_menu_show): Set wv->title when dealing with titles.
6765 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6766
6e69ab8c
MB
67672000-08-21 Miles Bader <miles@gnu.org>
6768
6769 * minibuf.c (do_completion): Try again if we rewrite the input
6770 string, but no completion was done, so that any completion message
6771 will be correct.
6772
511bd4eb
GM
67732000-08-20 Gerd Moellmann <gerd@gnu.org>
6774
6775 * xfaces.c (lface_equal_p): Compare strings differently.
6776 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6777 (realize_tty_face): Use them.
6778 (syms_of_xfaces): Initialize new variables.
6779 (map_tty_color): New function, extracted from realize_tty_face.
6780 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6781 foreground or background color, store the new color name in the
6782 realized face; previous code trying to do this had no effect.
6783 (realize_tty_face): Use map_tty_color.
6784 (Fclear_face_cache): Set face_change_count and ensure thorough
6785 redisplay.
6786
1433385f
GM
67872000-08-19 Gerd Moellmann <gerd@gnu.org>
6788
511bd4eb
GM
6789 * undo.c (record_first_change, record_marker_adjustment): Don't
6790 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6791
419ac0a2
KH
67922000-08-18 Kenichi Handa <handa@etl.go.jp>
6793
6794 * coding.c (decode_coding_string): Set members consumed,
6795 consumed_char, produced, produced_char of *coding correctly. If
6796 decode_coding doesn't consume any byte, don't try anymore.
6797 (encode_coding_string): Likewise.
6798
7eb9e30d
GM
67992000-08-18 Gerd Moellmann <gerd@gnu.org>
6800
511bd4eb
GM
6801 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6802 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6803
6804 * xdisp.c (redisplay_internal): Compare windows for equality with
6805 EQ, instead of applying XWINDOW to something that might not
6806 be a window.
52283633 6807
dd34a735
KH
68082000-08-18 Kenichi Handa <handa@etl.go.jp>
6809
6810 * fontset.c (Finternal_char_font): Search only the selected frame
6811 for a window of the current buffer.
6812
385ff9e3
GM
68132000-08-18 Gerd Moellmann <gerd@gnu.org>
6814
511bd4eb 6815 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6816 Lisp_Objects.
6817
385ff9e3
GM
6818 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6819 second half of a HELP_EVENT is found at the start of kbd_buffer.
6820
d6abb4c7
MB
68212000-08-18 Miles Bader <miles@gnu.org>
6822
4618074a
MB
6823 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6824
d6abb4c7
MB
6825 * editfns.c (save_restriction_save): Rewrite to use markers.
6826 (save_restriction_restore): Rewrite to understand new form of data
6827 saved by save_restriction_save.
6828 (Fsave_restriction): Remove cautionary note in doc-string.
6829
a7b28523
GM
68302000-08-17 Gerd Moellmann <gerd@gnu.org>
6831
6832 * fileio.c (build_annotations): Add a comment explaining the
6833 return value of format-annotate-function. Replace a spurious call
6834 to Flength with a CONSP test. Call format-annotate-function with
6835 a fifth arg specifying how many times the function is been called
6836 in a row, to let it choose temporary buffers appropriately.
6837
03c9ed77
DL
68382000-08-17 Dave Love <fx@gnu.org>
6839
6840 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6841 declare make_temp_name twice.
6842
52283633 6843 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6844 (unreadpure): Give it an arg.
6845
6846 * unexalpha.c: Prototype fatal_unexec, mark_x,
6847 update_dynamic_symbols. Declare unexec as void.
6848
6849 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6850 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6851
6852 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6853 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6854
6855 * alloca.c: Use #error.
6856 [POINTER_TYPE]: Use it.
6857
6858 * eval.c (Fdefvar): Doc fix.
6859
6860 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6861 INITIALIZE_INTERVAL.
6862
6863 * buffer.h: Avoid DECLARE_INTERVALS.
6864
6865 * config.in: Add size_t.
6866
aae41d97
EZ
68672000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6868
6869 * w16select.c (set_clipboard_data): If there's not enough memory
6870 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6871 expects. In case of other failures, return 3.
6872 (system_error_msg): New error message.
6873 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6874 system_error_msg.
6875
65aa5e85
GM
68762000-08-16 Gerd Moellmann <gerd@gnu.org>
6877
6878 * term.c (write_glyphs): Also turn off inverse video after turning
6879 off other appearances in case TS_exit_attribute_mode is not equal
6880 to TS_end_standout_mode.
6881 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6882 with the same face.
6883 (turn_off_face): Reset standout_mode only if
6884 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6885 is equal to TS_end_standout_mode.
6886
ece23901
KH
68872000-08-16 Kenichi Handa <handa@etl.go.jp>
6888
9d7bcb2e
KH
6889 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6890 sequence at the end of the source block.
6891
ece23901
KH
6892 * ccl.c (Fccl_program_p): Docstring modified.
6893 (Fccl_execute): Likewise.
6894 (Fccl_execute_on_string): Likewise.
6895
5e30eaa2
EZ
68962000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6897
6898 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6899
290602fd
KH
69002000-08-16 Kenichi Handa <handa@etl.go.jp>
6901
6902 The following changes are mainly to fix bugs of
6903 encode/decode-coding-string failing if encoding/decoding return
6904 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6905 variable conversion_buffer.
6906
6907 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6908 decrement dst_end to avoid buffer overflow in the later call of
6909 string_as_multibyte
6910
6911 * coding.h (conversion_buffer_size, conversion_buffer)
6912 (get_conversion_buffer): Extern deleted.
6913
6914 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6915 (conversion_buffer, conversion_buffer_size): Variables deleted.
6916 (get_conversion_buffer): Function deleted.
6917 (struct conversion_buffer): New structure.
6918 (MAX_ALLOCA): New macro.
6919 (allocate_conversion_buffer): New macro.
6920 (extend_conversion_buffer, free_conversion_buffer): New functions.
6921 (ccl_coding_driver): Set coding->result.
6922 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6923 this is the last block of source.
6924 (encode_coding): Likewise. Handle the source block as the last
6925 one only when the whole source text is consumed.
6926 (decode_coding_string): Handle the case that the output buffer is
6927 too small to decode the whole source text. Use
6928 allocate_conversion_buffer, extend_conversion_buffer and
6929 free_conversion_buffer, not get_conversion_buffer.
6930 (encode_coding_string): Likewise.
6931 (init_coding): Function deleted.
52283633 6932 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6933
6934 * emacs.c (main): Don't call init_coding.
6935
52283633 6936 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6937
6938 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6939 (insert_glyphs): Likewise.
6940
6941 * w32console.c (write_glyphs): Use a locally declared
6942 conversion_buffer.
6943
b9f80d41
EZ
69442000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6945
6946 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6947 member of display_info is NULL.
6948
32dc52f7
GM
69492000-08-15 Gerd Moellmann <gerd@gnu.org>
6950
52283633 6951 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6952
32dc52f7 6953 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6954 appearances with capability `me'.
32dc52f7
GM
6955 (write_glyphs): Switch on inverse video before each face change.
6956
4eb22d33
DL
69572000-08-14 Dave Love <fx@gnu.org>
6958
6959 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6960 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6961 (lisp_free): Declare and make static.
6962
6963 * window.c: Fix embedded comment.
6964 (syms_of_window): Fix doc string.
6965
90cbf47e
GM
69662000-08-14 Gerd Moellmann <gerd@gnu.org>
6967
52283633 6968 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6969 make sure to print `C-' before `M-', like in the manual.
6970
440fc135
GM
69712000-08-11 Gerd Moellmann <gerd@gnu.org>
6972
6973 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6974 since they aren't relocated anymore.
52283633 6975 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6976
6977 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6978 partially visible line which is smaller than the window's height.
440fc135 6979
6e264fad
KH
69802000-08-11 Kenichi Handa <handa@etl.go.jp>
6981
6982 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6983 the multibyte form of eight-bit-control characters.
6e264fad
KH
6984 (Fccl_execute_on_string): Initialize ccl->multibyte.
6985
6986 * ccl.h (struct ccl_program): New member multibyte.
6987
6988 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6989
c371f69a
KH
69902000-08-11 Kenichi Handa <handa@etl.go.jp>
6991
6992 * regex.c (regex_compile) <normal_char>: Pay attention to
6993 multibyteness.
6994 (analyse_first) <exactn>: Setup fastmap correctly for
6995 eight-bit-control characters.
6996
69972000-08-11 Kenichi Handa <handa@etl.go.jp>
6998
52283633 6999 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
7000
7001 * keyboard.c (make_lispy_event): Handle the new event type
7002 multibyte_char_keystroke.
7003
7004 * xterm.c: Include coding.h.
7005 (XTread_socket): Work around a bug of XmbLookupString. If the
7006 input is from XIM, decode it according to the current locale. In
7007 that case, generate multibyte_char_keystroke events.
7008
b8ddbe71
KH
70092000-08-11 Kenichi Handa <handa@etl.go.jp>
7010
7011 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7012 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7013
47589c8c
GM
70142000-08-10 Gerd Moellmann <gerd@gnu.org>
7015
7016 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7017 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7018 (move_it_in_display_line_to): Record iterator's ascent and descent
7019 before producing glyphs, and restore them when we know the glyph
7020 doesn't fit on the line.
7021 (move_it_to): Restructured so that it's easier to debug. If
7022 moving to a vpos, and not moving to an x or character position,
7023 stop as soon as the specified vpos is reached; don't move further
7024 into that line because that might change the computed line height.
7025 (try_cursor_movement): New function, extracted from the cursor
7026 movement branch of redisplay_window. If ending on a partially
7027 visible line, don't try to scroll if the cursor line is taller
7028 than the window.
7029 (redisplay_window): Use try_cursor_movement.
7030
7031 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7032 because that function doesn't cope with variable-height lines.
7033
7034 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7035 box cursor because that's better visible for large images.
52283633 7036
c51bacd6
MB
70372000-08-10 Miles Bader <miles@gnu.org>
7038
7039 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7040
bea56df7
GM
70412000-08-10 Gerd Moellmann <gerd@gnu.org>
7042
7043 * xdisp.c (Vmessages_buffer_name): New variable.
7044 (message_dolog): Use it.
7045 (syms_of_xdisp): Initialize it.
7046
99cd7364
EZ
70472000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7048
52283633 7049 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
7050 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7051 redundant now that keyboard.h is included.
7052
7d093d56
EZ
70532000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7054
7055 * keyboard.c (kbd_buffer_events_waiting): New function.
7056
7057 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7058
7059 * msdos.c: Include keyboard.h.
7060 (XMenuActivate): Empty no_event events from the event buffer. If
7061 no events are left after that, call clear_input_pending.
7062 (mouse_clear_clicks): New function, code moved from mouse_init.
7063 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7064 mouse driver to ``forget'' any past clicks.
7065
7066 * Makefile.in (msdos.o): Depend on keyboard.h.
7067
41e757a6
GM
70682000-08-09 Gerd Moellmann <gerd@gnu.org>
7069
8e7bd231
GM
7070 * lisp.h (input_pending): External declaration.
7071
7072 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 7073
8e7bd231
GM
7074 * xdisp.c (echo_area_display): Display thoroughly if input is
7075 pending. Bind redisplay-dont-pause to t during the redisplay.
7076 in case input is pending.
7077
7078 * dispnew.c (Qredisplay_dont_pause): New variable.
7079 (syms_of_display): Initialize and staticpro it.
7080 (update_frame_1): Don't interrupt the display for pending input if
7081 redisplay_dont_pause is set.
52283633 7082
43028b7e
GM
7083 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7084
41e757a6
GM
7085 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7086
2f2174fa
KH
70872000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7088
7089 * callproc.c (Fcall_process): Terminate the unwind-protect around
7090 the post-read-conversion of coding system.
7091
0a6fd67e
MB
7092 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7093 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7094 * buffer.h (overlays_at): Update prototype.
7095 * xdisp.c (next_overlay_change): Update call to overlays_at.
7096 * xfaces.c (face_at_buffer_position): Likewise.
7097 * textprop.c (Fget_char_property): Likewise.
7098 * xterm.c (note_mouse_highlight): Likewise.
7099
0c80756e
MB
7100 * minibuf.c (do_completion): Don't consider a simple change of
7101 case as `completion'.
7102
975f250a
KR
71032000-08-08 Ken Raeburn <raeburn@gnu.org>
7104
52283633 7105 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
7106 * undo.c (record_delete): Make sure last_point_position_buffer is
7107 a buffer before comparing pointers.
7108
7109 * coding.h (decode_coding_string): Declare.
7110
7111 * intervals.h (Fprevious_single_char_property_change): Declare.
7112
7113 * textprop.c (Fprevious_single_char_property_change): Don't do
7114 arithmetic directly on lisp objects.
7115
52283633 7116 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
7117
7118 * keyboard.h (menu_item_eval_property): Declare.
7119
7120 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7121 reuse as buffer name, instead of recreating (and discarding) every
7122 time a message is logged.
7123 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
7124 (current_message_1, truncate_message_1, set_message_1)
7125 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7126 (current_message, truncate_echo_area, display_echo_area)
7127 (resize_echo_area_axactly): Changed calls.
b347b3fd 7128
975f250a 7129 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 7130 Lisp object.
975f250a 7131 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 7132 must be an integer, not a Lisp object.
975f250a 7133
46dc9912
KH
71342000-08-08 Kenichi Handa <handa@etl.go.jp>
7135
7136 * charset.c (Fchar_width): Doc fix.
7137
9f6d1a6c
GM
71382000-08-08 Gerd Moellmann <gerd@gnu.org>
7139
7140 * charset.c (Fstring_width): Doc fix.
7141
ff3d9573
GM
71422000-08-07 Gerd Moellmann <gerd@gnu.org>
7143
41e757a6 7144 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
7145 line, clear ascent and descent members of the iterator structure;
7146 the height of the continued line does not affect the height of the
7147 continuation line.
7148 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7149 line taller than the window.
7150 (redisplay_window) <forced window start>: Handle case that the
7151 middle of the window is not found in any row.
7152 (dump_glyph_row): Show more information.
7153 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7154 first text line in a glyph matrix.
7155
7156 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7157 of the clip area when image doesn't have a mask.
7158
70fc58b3
GM
7159 * fns.c (sweep_weak_table): Fix survival conditions for
7160 key-or-value and key-and-value weakness.
7161
7162 * .gdbinit (xhashtable): New command.
7163
ac0e96ee
GM
7164 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7165 tables out of the list of all weak hash tables.
7166
ff3d9573
GM
7167 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7168 a new buffer is created, make sure echo_area_buffer[] references
7169 the new buffer.
7170
e0d8827b
EZ
71712000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7172
7173 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7174 the doc string.
7175
c6f35378
KH
71762000-08-07 Kenichi Handa <handa@etl.go.jp>
7177
7178 * syntax.c (skip_chars): Fix previous change. Make the handling
7179 of unibyte string consistent with that of regex search.
7180
1fd4c450
GM
71812000-08-05 Gerd Moellmann <gerd@gnu.org>
7182
e49aa397
GM
7183 * xmenu.c (popup_get_selection): Use xfree instead of free.
7184
7185 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7186
7187 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7188
7189 * callproc.c (child_setup): Use xfree instead of free.
7190
7191 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7192 instead of malloc.
7193 (run_mac_command, closedir): Use `xfree' instead of `free'.
7194
7195 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7196
7197 * eval.c (error): Use xfree instead of free.
7198
1fd4c450
GM
7199 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7200
7201 * fns.c: Replace `illegal' with `invalid'.
e49aa397 7202 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 7203
82d497fc
KH
72042000-08-05 Kenichi Handa <handa@etl.go.jp>
7205
7206 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7207 conversion.
7208
59f953a2
NF
72092000-08-04 Noah Friedman <friedman@splode.com>
7210
7211 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7212 docstring.
7213
688351f2
GM
72142000-08-04 Gerd Moellmann <gerd@gnu.org>
7215
7216 * syntax.c (skip_chars): Fix typo in error message.
7217
2dad51cc
AS
72182000-08-04 Andreas Schwab <schwab@suse.de>
7219
7220 * m/ia64.h: Moved from s/ia64.h.
7221
99bb2c60
KH
72222000-08-04 Kenichi Handa <handa@etl.go.jp>
7223
082a1df2
KH
7224 * process.c (read_process_output): Big simplification. Handle
7225 composition and post-read-conversion of coding system correctly.
7226 (send_process): Handle composition correctly.
7227
7228 * callproc.c (Fcall_process): Handle post-read-conversion of
7229 coding system if any.
7230
99bb2c60
KH
7231 * coding.c (decode_coding_iso2022): More strict check for handling
7232 single shifting.
082a1df2
KH
7233 (coding_restore_composition): Pay attention to the case that
7234 cmp_data is not set properly (because of invalid code in the
7235 source text).
7236 (run_pre_post_conversion_on_str): Include text properties in the
7237 resulting string.
7238 (decode_coding_string): Set members of coding correctly.
99bb2c60 7239
f4988be7
GM
72402000-08-03 Gerd Moellmann <gerd@gnu.org>
7241
7242 * s/ia64.h: New file.
7243
7244 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7245 Use NULL instead of 0 at the end of variable argument list of
7246 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7247 sizeof (int) < sizeof (void *).
7248
7249 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7250 of variable argument lists of XtVaGetValues and XtVaSetValues.
7251
7252 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7253 variable argument lists of XtVaGetValues and XtVaSetValues.
7254
ead53494
GM
72552000-08-02 Gerd Moellmann <gerd@gnu.org>
7256
7257 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7258 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7259
7260 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7261 prototype.
7262
7263 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7264 in call to Fsingle_key_description.
7265
7266 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7267 Callers changed.
7268
72692000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7270
7271 * window.c (display_buffer_reuse_frames): New variable.
7272 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7273 frames displaying BUFFER.
52283633 7274 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 7275
10b0f752
MB
72762000-08-01 Miles Bader <miles@gnu.org>
7277
7278 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7279 when to constrain NEW_POS (they were pretty screwed up before).
7280
16425c4a
EZ
72812000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7282
7283 * msdos.c (run_msdos_command): Save and restore the master
7284 environment, for the case that child_setup signals an error.
7285 When mirroring slashes in DOS shell commands, don't fail when
7286 argv[2] has embedded blanks.
da288c14
EZ
7287 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7288 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7289 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
7290
7291 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7292 using alloca; free it after run_msdos_command returns.
7293
27f73852
DL
72942000-07-27 Dave Love <fx@gnu.org>
7295
52283633
SM
7296 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7297 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
7298
7299 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7300
c0261b5e
EZ
73012000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7302
7303 * editfns.c (lisp_time_argument): Fix last change.
7304
b548072f
GM
73052000-07-27 Gerd Moellmann <gerd@gnu.org>
7306
3ab82477
GM
7307 * fns.c (Fdelete): Make it work on vectors and strings in addition
7308 to lists.
7309
b548072f
GM
7310 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7311 (syms_of_fns): Initialize new variables.
52283633 7312 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
7313 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7314 weakness, with t meaning the same as `key-and-value'.
7315
91ae8751
KH
73162000-07-27 Kenichi Handa <handa@etl.go.jp>
7317
7318 * coding.h (struct coding_system): Member safe_charset deleted.
7319
7320 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7321 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7322 New variables.
91ae8751
KH
7323 (coding_safe_chars): New function.
7324 (CODING_SAFE_CHAR_P): New macro.
7325 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7326 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7327 (detect_coding_iso2022): New local variable safe_chars.
7328 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7329 safe_charsets member of the coding system.
7330 (decode_coding_iso2022): New local variable safe_chars.
7331 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7332 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7333 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7334 (ENCODE_UNSAFE_CHARACTER): New macro.
7335 (encode_coding_iso2022): New local variable safe_chars. Check
7336 unsafe chars.
7337 (setup_coding_system): Delete the code to initialize
7338 coding->safe_charses
7339 (intersection, find_safe_codings): New functions.
7340 (Ffind_coding_systems_region_internal): New function.
7341 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7342 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7343 variable and initialize it.
7344
7345 * fns.c (char_table_ref_and_index): New function.
7346
7347 * lisp.h (char_table_ref_and_index): Add prototype.
7348
34a7a267
SS
73492000-07-26 Sam Steingold <sds@gnu.org>
7350
7351 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7352 (Ffloat_time): New built-in Lisp function.
34a7a267 7353
a95cb10a
GM
73542000-07-26 Gerd Moellmann <gerd@gnu.org>
7355
3353ef5a
GM
7356 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7357 for the character code.
7358
7359 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7360 GNU/Linux.
7361
a95cb10a
GM
7362 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7363 if called for a popup menu.
7364 (xmenu_show): Store help string in widget values.
7365
b4a12321
DL
73662000-07-26 Dave Love <fx@gnu.org>
7367
7368 * syswait.h: Move some definitions.
7369 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7370 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7371 perspicuous definitions.
7372 (WTERMSIG): Fix bit pattern used.
7373
13f5ad37
KH
73742000-07-26 Kenichi Handa <handa@etl.go.jp>
7375
7376 * print.c (print_object): If vector printing is truncated, print
7377 "..." to indicate it as well as the case of list printing.
7378
070fe99c
GM
73792000-07-25 Gerd Moellmann <gerd@gnu.org>
7380
969065c3
GM
7381 * xdisp.c (next_element_from_display_vector): Improve comments.
7382
7383 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7384 for the character code, and the rest for the face id as in 20.x.
7385 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7386
7387 * window.c (window_display_table): Cleaned up.
7388
070fe99c
GM
7389 * syntax.c (Fforward_word): Add last arg nil in call of
7390 Fconstrain_to_field.
7391
bad77ef7
EZ
73922000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7393
969065c3 7394 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7395 identical but for the letter-case, don't call
7396 barf_or_query_if_file_exists.
bad77ef7 7397
c28da489
MB
73982000-07-25 Miles Bader <miles@gnu.org>
7399
7400 * editfns.c (find_field): Honor special `boundary' fields.
7401 (Qboundary): New variables.
7402 (syms_of_editfns): Initialize Qboundary.
7403 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7404 Use scan_buffer instead of find_before_next_newline, because it
7405 allows us to detect the boundary case where there's a newline at
7406 the search limit.
7407 * lisp.h (Fconstrain_to_field): Update external declaration.
7408
e3c31fd5
GM
74092000-07-24 Gerd Moellmann <gerd@gnu.org>
7410
7411 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7412 if that is nil.
c28da489 7413
c66c29a2
DL
74142000-07-24 Dave Love <fx@gnu.org>
7415
7416 * s/sunos4-0.h, s/sol2.h:
7417 (LIBS_TERMCAP): Move from m/sparc.h.
7418
7419 * m/sparc.h (TERMINFO): Moved to system files (probably only
7420 relevant for sunos4 judging by its vintage).
7421 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7422 __arch64__.
7423
fbe0a958
EZ
74242000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7425
7426 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7427 name to single_keymap_panes.
7428
7d88e5c9
AS
74292000-07-24 Andreas Schwab <schwab@suse.de>
7430
7431 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7432
e024b101
GM
74332000-07-24 Gerd Moellmann <gerd@gnu.org>
7434
7435 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7436 parameters instead of using int parameters. Expect FN to accept
7437 EMACS_INT parameters.
7438 (display_echo_area, resize_echo_area_axactly, current_message)
7439 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7440 with new argument list.
7441 (resize_mini_window_1): New callback function.
7442 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7443 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7444
25c1a9ce
KH
74452000-07-24 Kenichi Handa <handa@etl.go.jp>
7446
7447 * fontset.c (fontset_ref): Remove INLINE declaration.
7448 (fontset_ref_via_base): Likewise.
7449 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7450 to downcase.
7451
7f987ac0
EZ
74522000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7453
7454 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7455 correct order of priority. If help echo was found in an overlay,
7456 use that overlay as the object in which the help echo was found.
7457
e2db3069
MB
74582000-07-22 Miles Bader <miles@gnu.org>
7459
7460 * textprop.c (Fprevious_single_char_property_change): The initial
7461 property value should be from the position preceding POSITION, not
7462 following it.
7463
5e3203e4
EZ
74642000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7465
7466 * coding.c (syms_of_coding): Doc fix for
7467 inhibit-iso-escape-detection.
7468
62145073
GM
74692000-07-21 Gerd Moellmann <gerd@gnu.org>
7470
c20aeb83
GM
7471 * xterm.c (note_mouse_highlight): Process overlays in the right
7472 order of priority.
34a7a267 7473
743934db
GM
7474 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7475
7476 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7477 overlay, use that overlay as the object in which the help was found.
743934db 7478
d1dc7e43 7479 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7480
62145073
GM
7481 * window.c (foreach_window): Instead of a fake variable argument
7482 list, take one USER_DATA argument.
7483 (foreach_window_1): Likewise, and call callback functions with two
7484 args, the window and USER_DATA.
7485 (struct check_window_data): New struct.
7486 (check_window_containing): Use it.
7487 (window_from_coordinates): Set up a struct check_window_data for
7488 foreach_window.
7489 (add_window_to_list, freeze_window_start): Change parameters
7490 according to new calling convention.
7491
7492 * window.h (foreach_window): Change prototype.
7493
7494 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7495
74962000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7497
7498 * xmenu.c (menu_help_callback): Call show_help_echo with
7499 additional arguments OBJECT and POS.
7500
11270583
KH
75012000-07-21 Kenichi Handa <handa@etl.go.jp>
7502
07b14857
KH
7503 * data.c (Faset): Allow storing any multibyte character in a
7504 string. Convert unibyte string to multibyte if necessary.
7505
11270583
KH
7506 * xfns.c (x_encode_text): New function.
7507 (x_set_name): Use x_encode_text.
7508 (x_set_title): Likewise.
7509
7510 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7511
7512 * xterm.h (x_encode_text): Add prototype.
7513
bc75b4fd
DL
75142000-07-20 Dave Love <fx@gnu.org>
7515
7516 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7517 xfree, not free.
7518
48c14970
EZ
75192000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7520
7521 * msdos.c (help_echo_window): New variable.
7522 (syms_of_msdos): Initialize and staticpro it.
7523 (IT_note_mode_line_highlight): Set help_echo_window.
7524 (IT_note_mouse_highlight): Ditto.
7525 (dos_rawgetc): Store help_echo_window in the second event produced
7526 for HELP_EVENTs.
7527
7528 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7529 Record the object that generated the help echo and the position of
7530 that object in help_echo_object and help_echo_pos. Record that
7531 some glyphs in a row are displayed in mouse-face.
7532 (IT_update_begin): Don't clear mouse highlight unless one of the
7533 enabled glyph rows is marked as being displayed in mouse-face.
7534 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7535 and position recorded in help_echo_object and help_echo_pos to the
7536 event queue.
7537 (IT_menu_display): Accept a new argument PN: the pane number of
7538 the current menu pane. Record the pane number and the item
7539 number of the item which has associated help string.
7540 (XMenuActivate): Update the prototype for help_callback in
7541 function declaration. Call IT_menu_display with the current menu
7542 pane number as an additional argument. Call help_callback with
7543 two additional arguments: the pane number and the item number of
7544 the menu item associated with the help text.
7545 (help_echo_object, help_echo_pos): New variables.
7546 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7547
7548 * msdos.h (XMenuActivate): Update prototype.
7549
4279296d
GM
75502000-07-19 Gerd Moellmann <gerd@gnu.org>
7551
47db06aa
GM
7552 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7553 Add some more prototypes.
7554
7555 * xterm.c, xterm.h: Add some more prototypes.
7556
7557 * lisp.h (Fnext_single_char_property_change): Add prototype.
7558
7559 * dispnew.c (direct_output_for_insert): Remove confusing
7560 outer local variable mouse_face_overwritten_p.
7561 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7562
4279296d
GM
7563 * alloc.c (allocate_string_data): Don't copy old string contents.
7564
670acd62
KH
75652000-07-19 Kenichi Handa <handa@etl.go.jp>
7566
7567 * coding.c (code_convert_region): Delete text properties before
7568 shrinking the conversion region.
7569
7cea38bc
GM
75702000-07-18 Gerd Moellmann <gerd@gnu.org>
7571
dc1cac59
GM
7572 * dispnew.c (update_text_area): Write the whole row if it
7573 has mouse-face in it.
7574
85a8aca9
GM
7575 * xfaces.c (face-alternative-font-family-alist): Remove
7576 DEFVAR_LISP; staticpro instead.
7577
34a7a267 7578 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7579 new arguments.
7580
7581 * keyboard.c (show_help_echo): Add parameter WINDOW.
7582 (read_char): Call show_help_echo with window extracted from Lisp
7583 help event.
7584 (gen_help_event): Add parameter WINDOW.
7585
7586 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7587
7588 * xterm.c (help_echo_window): New variable.
52283633 7589 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7590 (XTread_socket): Pass help_echo_window to gen_help_event.
7591 (syms_of_xterm): Initialize and staticpro help_echo_window.
7592
f8276b77
DL
75932000-07-18 Dave Love <fx@gnu.org>
7594
52283633 7595 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7596
088831a6
GM
75972000-07-18 Gerd Moellmann <gerd@gnu.org>
7598
3d6cd763
GM
7599 * alloc.c (allocate_string_data): If string had already data
7600 assigned, copy old contents to new string data.
7601
7602 * coding.c (syms_of_coding): Fix typo in spelling of variable
7603 `inhibit-iso-escape-detection'.
7604
088831a6
GM
7605 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7606
7607 * Makefile.in: Add dependencies on dispextern.h.
7608 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7609 `free'; both can conflict with system header files.
7610
bc8a8d55
KH
76112000-07-18 Kenichi Handa <handa@etl.go.jp>
7612
7613 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7614 undefined.
7615
069f5950
DL
76162000-07-18 Dave Love <fx@gnu.org>
7617
7618 * window.c (Fwindow_list): Declare arg `window'.
7619
aa96c820
KH
76202000-07-18 Kenichi Handa <handa@etl.go.jp>
7621
7622 * coding.c (setup_coding_system): Don't override the explicitly
7623 specified designations.
7624
06be8d32
MB
76252000-07-15 Miles Bader <miles@gnu.org>
7626
7627 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7628 from `text_property_eq' and `text_property_stickiness', respectively.
7629 (find_field, Fconstrain_to_field, char_property_eq)
7630 (char_property_stickiness): Changed to call char-property functions
7631 instead of text-property-only ones.
7632
7633 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7634 `next_single_char_property_change'). Do more error checking, and
7635 cleanup limit behavior.
7636 (Fprevious_single_char_property_change): New function.
7637 (syms_of_textprop): Initialize new subrs.
7638
7639 * xdisp.c (display_prop_end, invisible_text_between_p):
7640 Call Fnext_single_char_property_change instead of
7641 next_single_char_property_change.
7642
3fddcdc3
JR
76432000-07-15 Jason Rumney <jasonr@gnu.org>
7644
7645 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7646 after menu is finished with.
7647 (add_menu_item): Only consider wv->title as a menu title.
7648 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7649
7650 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7651 null title.
7652 (FONT_REGEXP): Remove unused macro, and its sub-components.
7653 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7654
7655 * w32term.c (help_echo_object, help_echo_pos): New variables.
7656 (note_mode_line_highlight): Store additional information about the
7657 help-echo in help_echo_object and help_echo_pos. Check both
7658 `local-map' and `keymap' properties for changing the cursor
7659 (note_mouse_highlight): Store additional information about the
7660 help-echo in help_echo_object and help_echo_pos.
7661 (note_tool_bar_highlight): Set help_echo_object to nil and
7662 help_echo_pos to -1.
7663 (w32_read_socket): Use gen_help_event instead of filling
7664 input_events manually.
7665 (syms_of_w32term): Staticpro help_echo_object.
7666 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7667 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7668 (x_clear_mouse_face): New function.
7669 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7670 (x_update_window_begin): No need to turn off the mouse
7671 highlight here.
7672 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7673 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7674 (x_fill_stretch_glyph_string): Consume runs of stretch
7675 glyphs instead of a single one.
7676 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7677 with new argument list.
7678 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7679 (x_append_glyph, x_append_composite_glyph)
7680 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7681 changes in struct glyph starting 1999-12-27. See comments for
7682 xterm.c on 2000-07-05.
7683
178c5d9c
SS
76842000-07-14 Sam Steingold <sds@gnu.org>
7685
7686 * xfaces.c (realize_x_face): Fix the last patch:
7687 check `default_face' before dereferencing.
7688
6fe533f6
DL
76892000-07-14 Dave Love <fx@gnu.org>
7690
069f5950 7691 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7692
dd7b81cf
KH
76932000-07-14 Kenichi Handa <handa@etl.go.jp>
7694
0693904a 7695 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7696 default_face's fontset, not using the default fontset.
0693904a 7697
dd7b81cf
KH
7698 * coding.c (inhibit_iso_escape_detection): New variable.
7699 (syms_of_coding): Make it a Lisp variable.
7700 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7701 nonzero, ignore ISO2022's escape sequence.
7702
d5aa31d8
GM
77032000-07-14 Gerd Moellmann <gerd@gnu.org>
7704
e5acf0ca
GM
7705 * alloca.c (malloc) [emacs]: Define as xmalloc.
7706
bd23a692
GM
7707 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7708 use that instead of the mouse position. Add parameters DX and DY.
7709
7710 * dispextern.h (Fx_show_tip): Adjust number of parameters
7711 in prototype.
7712
9662da0b
GM
7713 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7714 if HELP is a function, call it with OBJECT and POS as parameters
7715 to get the help to display.
7716 (gen_help_event, kbd_buffer_store_help_event): New functions.
7717 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7718 (read_char): Call show_help_echo with new parameters.
7719
178c5d9c 7720 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7721 Add prototypes.
7722
7723 * xterm.c (help_echo_object, help_echo_pos): New variables.
7724 (note_mode_line_highlight): Store additional information about the
7725 help-echo in help_echo_object and help_echo_pos. Check both
7726 `local-map' and `keymap' properties for changing the cursor
7727 (note_mouse_highlight): Store additional information about the
7728 help-echo in help_echo_object and help_echo_pos.
7729 (note_tool_bar_highlight): Set help_echo_object to nil and
7730 help_echo_pos to -1.
7731 (XTread_socket): Use gen_help_event instead of filling
7732 input_events manually.
7733 (syms_of_xterm): Staticpro help_echo_object.
7734
7735 * xmenu.c (menu_highlight_callback): Use
7736 kbd_buffer_store_help_event instead of setting up and input_event
7737 structure manually.
7738
7739 * xdisp.c (eval_form): GCPRO argument sexpr.
7740 (call_function): New function.
7741 (handle_single_display_prop): Use call_function and FUNCTIONP
7742 instead of checking whether if font_height is a symbol and
7743 using eval_form.
7744
7745 * eval.c (internal_condition_case_2): New function.
7746
7747 * lisp.h (FUNCTIONP): New macro.
7748 (internal_condition_case_2, call_function): Add prototypes.
7749
d5aa31d8
GM
7750 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7751 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7752 Always set `arg' member of input_events.
7753 (construct_menu_click): Unused function removed.
7754
7755 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7756
7757 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7758 (construct_drag_n_drop, x_scroll_bar_handle_click)
7759 (w32_read_socket): Always set `arg' member of input_events.
7760
7761 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7762
7763 * lisp.h (eval_form): Add prototype.
7764
7765 * xdisp.c (eval_form): Make it externally visible.
7766
0f1a9b23
GM
77672000-07-13 Gerd Moellmann <gerd@gnu.org>
7768
7769 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7770 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7771 consing. For prefix events, store the frame in the `arg' slot of
7772 the event, otherwise store the key there.
7773 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7774 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7775
7776 * xmenu.c (menu_highlight_callback): Store help string in the
7777 `arg' member of the input event; don't cons.
7778 (menubar_selection_callback): Use the `arg' slot of input events
7779 to queue additional information, instead of consing.
7780
7781 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7782
7783 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7784 TOOL_BAR_EVENTs.
7785 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7786
7787 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7788 input events to queue additional information, instead of consing.
7789
7790 * keyboard.c (kbd_buffer_gcpro): Renamed from
7791 kbd_buffer_frame_or_window. Now used for all Lisp objects
7792 referenced from the input queue.
7793 (kbd_buffer_store_event): Always use structure assignment for
7794 copying input events. Record all Lisp objects referenced from
7795 events in kbd_buffer_gcpro.
7796 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7797 differently from input events. Test for prefix menu_bar_events
7798 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7799 event in kbd_buffer_gcpro to nil.
7800 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7801 frame_or_window is equal to its arg member as prefix events.
7802 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7803 used by an input event to nil.
7804 (init_keyboard): Use two times the size of the input queue
7805 for kbd_buffer_gcpro.
7806 (syms_of_keyboard): Likewise.
7807
52283633
SM
7808 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7809 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7810
7811 * termhooks.h (struct input_event): Add member `arg'.
7812 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7813 (USER_SIGNAL_EVENT): Renamed from user_signal.
7814
7815 * xfaces.c (ASET): Remove definition.
7816
7817 * lisp.h (AREF, ASET, ASIZE): New macros.
7818
7819 * fontset.c (AREF, ASIZE): Remove definitions.
7820
7821 * fns.c (AREF): Remove definition.
178c5d9c 7822
0f1a9b23
GM
7823 * composite.c (AREF): Remove definition.
7824
712eaef2
GM
78252000-07-12 Gerd Moellmann <gerd@gnu.org>
7826
d8ee7803
GM
7827 * dispnew.c (redraw_overlapped_rows): Add missing local.
7828 (scrolling_window): Remove debug code.
7829
712eaef2
GM
7830 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7831 Before scrolling, turn off a mouse-highlight in the window
7832 being scrolled.
7833
7834 * xterm.c (x_update_window_end): Add parameter
7835 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7836 redisplay in XTframe_up_to_date.
7837 (x_clear_mouse_face): New function.
7838 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7839
7840 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7841 current glyph row.
7842 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7843 it when any row is written to that contains glyphs highlighted in
7844 mouse-face.
7845 (update_window): Call the window update end hook with new
7846 parameter MOUSE_FACE_OVERWRITTEN_P.
7847 (direct_output_for_insert): Give up if row contains mouse-face.
7848
7849 * dispextern.h (struct redisplay_interface): Add parameter
7850 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7851 (clear_mouse_face): New function pointer member.
7852
02010917
SM
78532000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7854
7855 * syntax.c (back_comment): Use one switch rather than a few `if's.
7856 Obey open_paren_in_column_0_is_defun_start.
7857 When reverting to the `slow' method, try to nicely handle the case
7858 of nested comments by checking that the comment-starter we found
7859 does indeed match the comment-ender.
7860 (scan_sexps_forward, scan_sexps_forward):
7861 Ignore excessive opening parenthesis rather than throwing an error.
7862
d76c03ea
GM
78632000-07-11 Gerd Moellmann <gerd@gnu.org>
7864
7865 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7866 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7867
7868 * dispnew.c (direct_output_forward_char): Give up if currently
7869 displaying a message instead of the minibuffer contents.
7870
7871 * xterm.c (x_update_window_begin): No need to turn off the mouse
7872 highlight here.
7873 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7874 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7875
7876 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7877 compare the mouse_face_p flags of both rows.
7878
7879 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7880
d55ead18
EZ
78812000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7882
7883 * keyboard.c (show_help_echo): Accept additional parameter
7884 ok_to_overwrite_keystroke_echo.
7885 (read_char): Call show_help_echo with a zero
7886 ok_to_overwrite_keystroke_echo argument.
52283633 7887 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7888 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7889 ok_to_overwrite_keystroke_echo argument.
7890 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7891 non-zero ok_to_overwrite_keystroke_echo argument.
7892
df75b1a3
GM
78932000-07-10 Gerd Moellmann <gerd@gnu.org>
7894
4b92c49a
GM
7895 * xdisp.c (try_window_id): If changes are all below what is
7896 displayed in the window, and point is in the window, we still
7897 might have to find point on the display.
7898
7899 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7900 glyphs instead of a single one.
7901 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7902 with new argument list.
7903 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7904
df75b1a3
GM
7905 * keymap.c (get_keymap_1): Add comment that this function can GC.
7906 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7907 comment that functions can GC.
7908 (Fset_keymap_parent): GCPRO arg KEYMAP.
7909
4314cf3e
EZ
79102000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7911
7912 * msdos.c (XMenuActivate): After exiting the menu, restore the
7913 echo area message and erase it.
7914
ab49ce15
KH
79152000-07-10 Kenichi Handa <handa@etl.go.jp>
7916
7917 * fontset.c (Ffontset_info): Make the return value more compatible
7918 with that of Emacs 20.
7919
090a072f
GM
79202000-07-07 Gerd Moellmann <gerd@gnu.org>
7921
7922 * eval.c (Fsignal): Handle case that backtrace_list is null.
7923
f92de4a6
KH
79242000-07-07 Kenichi Handa <handa@etl.go.jp>
7925
7926 * ccl.c (Fccl_execute): Typo fixed.
7927
dd8888a1
GM
79282000-07-06 Gerd Moellmann <gerd@gnu.org>
7929
e5c81191 7930 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7931
dd8888a1
GM
7932 * window.c (Fwindow_list): Reverse list at the end.
7933 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7934 means allow windows on OWINDOW's frame, only.
7935 (window_loop): Simplified; use Fwindow_list.
7936
7937 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7938
485266d0
GM
79392000-07-05 Gerd Moellmann <gerd@gnu.org>
7940
7941 * xterm.c (XTread_socket): Increment handling_signal at the start,
7942 decrement it at the end.
7943
7944 * eval.c (handling_signal): New variable.
7945 (Fsignal): Abort if handling_signal is non-zero.
7946
7947 * lisp.h (handling_signal): External declaration.
178c5d9c 7948
485266d0
GM
7949 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7950
80fcd514
KR
79512000-07-05 Ken Raeburn <raeburn@gnu.org>
7952
7953 Sound support for NetBSD through "Linux emulation" support:
7954 * config.in (HAVE_SOUNDCARD_H): Undef.
7955 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7956 * Makefile.in (LIBSOUND): New variable.
7957 (LIBES): Include it.
52283633
SM
7958 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7959 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7960 (vox_open): Use DEFAULT_SOUND_DEVICE.
7961 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7962
d5c5cddd
GM
79632000-07-05 Gerd Moellmann <gerd@gnu.org>
7964
7965 * print.c (print_error_message): If Vsignaling_function is set,
7966 show it in *Messages*.
7967
7968 * lisp.h (Vsignaling_function): External declaration.
7969
7970 * eval.c (Vsignaling_function): New variable.
7971 (Fsignal): Compute it.
7972 (syms_of_eval): Staticpro it.
7973
65171e3a
DL
79742000-07-05 Dave Love <fx@gnu.org>
7975
7976 * syswait.h: Use the autoconf recommended approach. Old code
7977 #if'd out in case we need to revert.
7978
178c5d9c 7979 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7980
e2c46326
AI
79812000-07-05 Andrew Innes <andrewi@gnu.org>
7982
7983 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7984 when non-NULL instead of __morecore, to take account of buffer
7985 memory. This also solves a problem with spurious memory warnings
7986 on Windows.
7987
7988 * ralloc.c: Make real_morecore non-static.
7989
7990 * eval.c (internal_condition_case): Comment out abort if
7991 interrupt_input_blocked is not zero.
7992
7993 * makefile.nt: Add support for `bootstrap' and related targets.
7994 Include minimal debug info in emacs.exe in release build.
7995 Remove all dependencies on lisp.h, and fixup some others.
7996
7997 * w32.c (init_environment): Install code from 20.7 for providing
7998 default values for environment variables, based on the
7999 executable's own location.
52283633 8000 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
8001 (sys_socket): Install socket inheritance bug fix from 20.7.
8002
8003 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8004 here via blockinput.h).
8005
a027a91b
SM
80062000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8007
e4b31601
SM
8008 * w32menu.c (w32_menu_display_help):
8009 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
8010
8011 * keyboard.h (show_help_echo): Declare.
8012
8013 * keyboard.c (show_help_echo): New function, extracted from read_char.
8014 Feval its `msg' argument if it's a cons cell.
8015 (read_char): Use it.
4cf8d9d5 8016 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 8017
178c5d9c 8018 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 8019 (note_tool_bar_highlight, XTread_socket):
178c5d9c 8020 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
8021 (dos_rawgetc):
8022 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8023 (note_tool_bar_highlight, w32_read_socket):
8024 Do not gratuitously ignore non-string `help-echo' properties.
8025
88d75730
GM
80262000-07-05 Gerd Moellmann <gerd@gnu.org>
8027
969f7e79
GM
8028 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8029
71201b00
GM
8030 * window.c (delete_all_subwindows): Reset Vwindow_list.
8031
88d75730
GM
8032 * xterm.c (x_append_glyph, x_append_composite_glyph)
8033 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8034 changes in struct glyph starting 1999-12-27. Some bit-fields of
8035 struct glyph were not set, which made glyphs unequal when compared
8036 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8037 effects were the result. This also depended on the contents of
8038 memory returned by xmalloc. If flickering happens again, activate
8039 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 8040 gone with that, chances are that it is caused by something similar.
88d75730
GM
8041
8042 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 8043
88d75730
GM
8044 * dispextern.h: Add some comments.
8045
8046 * window.c (add_window_to_list): Add parameter LIST.
8047 (window_list): Order list so that, for each frame, windows are
8048 in canonical order, and so that frames appear in the list in
8049 the order given by Vframe_list.
8050 (next_window): Reverse the handling of NEXT_P.
8051
53654733
GM
80522000-07-04 Gerd Moellmann <gerd@gnu.org>
8053
87efd256
GM
8054 * window.c (Vwindow_list): New variable.
8055 (make_window, delete_window): Set Vwindow_list to nil.
8056 (check_window_containing): New function.
8057 (window_from_coordinates): Rewritten.
8058 (add_window_to_list, window_list, candidate_window_p)
8059 (decode_next_window_args, next_window): New functions.
52283633 8060 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
8061 (Fwindow_list): New function.
8062 (Fother_window): Cleaned up.
8063 (foreach_window): Add a longer "variable argument list". Let
8064 callback function return 0 to indicate that cycling over windows
8065 should stop.
8066 (foreach_window_1): Likewise.
8067 (freeze_window_start): Return int.
8068 (init_window): New function.
8069 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8070
8071 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8072 input_event with bzero.
8073 (main): Call init_window.
8074
53654733
GM
8075 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8076 a menu filter.
8077
4a8c194f
KH
80782000-07-04 Kenichi Handa <handa@etl.go.jp>
8079
8080 * composite.h (make_composition_value_copy): Extern it.
8081
8082 * composite.c (make_composition_value_copy): New function.
8083
8084 * editfns.c (Fformat): While copying text properties, make each
8085 composition property value a copy.
8086
8087 * fns.c (concat): While copying text properties, make each
8088 composition property value a copy.
8089
831a6cb0
GM
80902000-07-03 Gerd Moellmann <gerd@gnu.org>
8091
2f516940
GM
8092 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8093
178c5d9c 8094 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
8095 marked already.
8096
831a6cb0
GM
8097 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8098 include those frames as candidates which have their focus
8099 redirected to the minibuffer frame.
8100
d9c4f922
SM
81012000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8102
8103 * fns.c (Fputhash): Return `value' rather than nil.
8104
3780bc22
GM
81052000-06-30 Gerd Moellmann <gerd@gnu.org>
8106
97d176db
GM
8107 * frame.c (next_frame): Don't check focus redirection in case
8108 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
8109 unless their focus is redirected, which contradicts the
8110 specification of next-frame, and leads to infinite loops in
8111 certain situations when cycling through windows with next-window.
8112
dca9961d
KH
81132000-06-30 Kenichi Handa <handa@etl.go.jp>
8114
8115 * coding.c (code_convert_region): Even if the length of text is
8116 zero, try to convert it if coding->type is coding_type_ccl.
8117 (decode_coding_string, encode_coding_string): Likewise.
8118
d5483ab1
GM
81192000-06-28 Gerd Moellmann <gerd@gnu.org>
8120
af5c25e1 8121 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 8122 the display if windows_or_buffers_changed.
af5c25e1
GM
8123
8124 * dispnew.c (struct row_entry): New structure.
8125 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8126 (row_table_size, old_lines, new_lines, old_lines_size)
8127 (new_lines_size, run_pool, runs_size, runs): New variables.
8128 (add_row_entry): New function.
8129 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 8130 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
8131 holding them in local variables. Use a larger hash table whose
8132 size depends on glyph matrix sizes. Don't use bzero to clear the
8133 hash table; instead, clear used slots only.
8134
8135 * fns.c (next_almost_prime): Make it externally visible.
8136
8137 * lisp.h (next_almost_prime): Add prototype.
8138
d5483ab1
GM
8139 * s/isc4-0.h (sigunblock): Define.
8140
8141 * s/sco5.h (sigunblock): Define.
8142
93e40f40
DL
81432000-06-27 Dave Love <fx@gnu.org>
8144
8145 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8146 (moved to osf5-0.h).
8147 [!NOT_C_CODE]: Protect string.h stuff.
8148
8149 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8150 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8151
3c4b7685
GM
81522000-06-27 Gerd Moellmann <gerd@gnu.org>
8153
97d176db 8154 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
8155 below the last line from the needed window height.
8156
32cad0aa
SM
81572000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8158
8159 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8160 (Fwidget_get): Use it.
8161 (syms_of_fns): Defsubr it.
8162
2c69ced2
GM
81632000-06-26 Gerd Moellmann <gerd@gnu.org>
8164
178c5d9c 8165 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
8166 display info for XIM.
8167 (xim_open_dpy): Likewise.
8168 (xim_close_dpy): Don't free the display info's XIM.
8169
8170 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8171
8172 * config.in (USE_XIM): New define.
8173
3fc720e4
GM
8174 * keymap.c (get_keyelt): For menu-items containing a `:filter
8175 FILTER', apply FILTER to the menu-item's definition to get the
8176 real definition to use.
8177
8178 * lisp.h (QCfilter): External declaration.
8179
2c69ced2
GM
8180 * xfns.c (Fimage_size): New function.
8181 (syms_of_xfns): Defsubr it.
8182
f978b2a2
AS
81832000-06-26 Andreas Schwab <schwab@suse.de>
8184
8185 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8186 Fstring_as_unibyte.
8187
94cc7892
DL
81882000-06-25 Dave Love <fx@gnu.org>
8189
52283633 8190 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
8191
8192 * Makefile.in (blockinput.h): Depend on atimer.h.
8193 (atimer.h): Depend on systime.h.
8194
52283633 8195 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 8196
52283633 8197 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
8198
8199 * lisp.h (swap_in_global_binding): Declare.
8200
b8c24556
KR
82012000-06-24 Ken Raeburn <raeburn@gnu.org>
8202
8203 * process.c (Fopen_network_stream): Turn off atimers for duration
8204 of call to connect. (Patch from Gerd.)
8205
8cf8560b
DL
82062000-06-23 Dave Love <fx@gnu.org>
8207
511c7541
DL
8208 * ralloc.c: Maybe include unistd.h
8209
8cf8560b
DL
8210 * emacs.c (setgrp): Undefine before defining.
8211 (malloc_warning, set_time_zone_rule, index): Prototype.
8212
8213 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8214 HAVE_STRUCT_TIMEZONE.
8215
8216 * s/osf1.h: Move string.h hack here from alpha.h and make it
8217 conditional.
8218 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8219 _XOPEN_SOURCE.
8220 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8221 (SOCKLEN_TYPE): Don't define.
8222
8223 * m/alpha.h: Remove string.h hack.
8224
8225 * s/osf5-0.h: New file.
8226
8227 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8228 include time.h, done by systime.h.
8229 [__FreeBSD__]: Remove redundant includes.
8230
3fc720e4 8231 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
8232 (delete_temp_file): Return Qnil to avoid warning.
8233
8234 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8235
8236 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8237 HAVE_X_WINDOWS.
8238
8239 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8240
8241 * composite.h (compose_text): Declare.
8242
8243 * xterm.c: Don't include sys/types.h unconditionally. Don't
8244 protect its inclusion with !USG (following xmenu.c).
8245
ea055732
GM
82462000-06-23 Gerd Moellmann <gerd@gnu.org>
8247
8248 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8249 in x_create_frame.
8250
74b01b80
EZ
82512000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8252
8253 * coding.c (decode_eol_post_ccl): Special handling for undecided
8254 and inconsistent EOL types.
8255
64f3a166
GM
82562000-06-22 Gerd Moellmann <gerd@gnu.org>
8257
16cf31f7
GM
8258 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8259 trough color and main window's background color.
8260
52283633 8261 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
8262
8263 * xterm.h (Xt_app_con): External declaration.
8264
8265 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 8266
486a103d
GM
8267 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8268
64f3a166
GM
8269 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8270 (handle_invisible_prop): Record the start of invisible text in
8271 it->add_overlay_start.
8272 (struct overlay_entry): Add member `overlay'.
8273 (handle_overlay_change): Simplify.
8274 (next_overlay_string): After having processed overlay strings at the
8275 end of the buffer, record that fact in
8276 it->overlay_strings_at_end_processed_p.
8277 (compare_overlay_entries): If before- and after-strings come
8278 from the same overlay, let before-strings come first.
8279 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8280 (load_overlay_strings): Take it->add_overlay_start into account
8281 when adding overlay strings.
8282
8283 * dispextern.h (struct it): Add member add_overlay_start.
8284
bb746ea6
DL
82852000-06-22 Dave Love <fx@gnu.org>
8286
8287 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8288
8289 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8290
a8f573f3
KH
82912000-06-22 Kenichi Handa <handa@etl.go.jp>
8292
8293 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8294 is greater than 0.
8295
9f2bbc92
DL
82962000-06-21 Dave Love <fx@gnu.org>
8297
178c5d9c 8298 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 8299
3ee5041c
SM
83002000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8301
8302 * syntax.c (back_comment): Simplify string-parity counting (with
8303 the added benefit of handling multiple string-styles as long as
8304 they are not intertwined).
8305 Jump to the slow code as soon as a comment starter is found in
8306 a "string_lossage" position. Fixes the case: " /* " /* " */.
8307
4c343001
DL
83082000-06-21 Dave Love <fx@gnu.org>
8309
8310 * Makefile.in: Use GETLOADAVG_LIBS.
8311
8312 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8313 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8314
e6365855
SM
83152000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8316
8317 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8318 (Fforward_comment, scan_lists):
8319 Check the comstyle of single-char comment-starters.
8320 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8321 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8322 Check the comstyle of single-char comment-starters.
8323 Clarify control-flow around the Scomment case.
e6365855 8324
5700d2cc
DL
83252000-06-20 Dave Love <fx@gnu.org>
8326
d355bd8a
SM
8327 * fns.c (make_hash_table, maybe_resize_hash_table):
8328 Cast arg of next_almost_prime.
5700d2cc 8329
178c5d9c 8330 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8331
8332 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8333 and unistd.h.
8334
4a27bdfb
GM
83352000-06-20 Gerd Moellmann <gerd@gnu.org>
8336
a61d762c 8337 * keyboard.c (adjust_point_for_property): Check if display
52283633 8338 property should be treated as intangible by looking at its value.
a61d762c 8339
178c5d9c 8340 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8341 (display_prop_intangible_p): New functions.
8342
8343 * dispextern.h (display_prop_intangible_p): Add prototype.
8344
8345 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8346
4a27bdfb
GM
8347 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8348 argument to sigprocmask.
8349
8350 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8351 argument to sigprocmask.
8352
8353 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8354 sigprocmask_set, and pass a pointer to it to sigprocmask.
8355
8356 * sysdep.c (sigprocmask_set): New variable.
8357
8358 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8359 report_file_error.
8360
427ec082
SS
83612000-06-20 Sam Steingold <sds@gnu.org>
8362
8363 * xrdb.c: Don't declare xmalloc, xrealloc.
8364
8972fe79 83652000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8366
8367 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8368 (re_comp): Cast gettext return value to avoid complaints when
8369 !HAVE_LIBINTL.
8370
074b6efe
DL
83712000-06-20 Dave Love <fx@gnu.org>
8372
52283633 8373 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8374
5700d2cc 8375 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8376
d355bd8a 8377 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8378
8379 * m/alpha.h: Don't declare xmalloc, xrealloc.
8380
0af4f205
DL
8381 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8382
8383 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8384
8385 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8386
8387 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8388 HAVE_GETWD.
8389
074b6efe
DL
8390 * keyboard.h (poll_for_input_1): Declare.
8391
8392 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8393
8394 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8395
8396 * doprnt.c: Don't declare xmalloc, xrealloc.
8397
8398 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8399 (getenv, ctime, getwd): Removed.
8400 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8401
8402 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8403 x_set_tool_bar_lines.
8404
8405 * config.in: Add HAVE_GETWD. Move some definitions above
8406 machine/system includes.
8407
68a5e97b
KH
84082000-06-20 Kenichi Handa <handa@etl.go.jp>
8409
95417e1e
KH
8410 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8411
68a5e97b
KH
8412 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8413 contain information about ENCODING.
8414
8415 * fontset.c (FONTSET_ASCII): Use the first element of char table
8416 for an ASCII font, not defalt slot.
8417 (fontset_ref_via_base): If FONTSET doesn't contain information for
8418 C, try the default fontset.
8419 (make_fontset): Don't copy the default fontset.
8420 (fontset_font_pattern): Likewise.
8421 (accumulate_font_info): If ELT is nil, use the corresponding
8422 element in the default fontset.
8423
3b4fa1b2
DL
84242000-06-19 Dave Love <fx@gnu.org>
8425
943e731c
DL
8426 * syntax.c (Fparse_partial_sexp): Doc fix.
8427
8428 * regex.h: Test PROTOTYPES as well as __STDC__.
8429
3b4fa1b2
DL
8430 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8431 errno, strerror. Put text after #endif in comment.
8432
52283633 8433 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8434
8435 * xterm.c (x_frame_of_widget): Likewise.
8436
cdf0357b
GM
84372000-06-19 Gerd Moellmann <gerd@gnu.org>
8438
8439 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8440 to Vfundamental_mode_abbrev_table.
8441
8442 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8443 bogus objects are marked. This slows down GC by ~80 percent, but
8444 it might be worth trying when debugging GC-related problems.
8445 This feature requires conservative stack marking to be enabled.
8446
8447 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8448 returns XLookupChars, reset `modifiers' to zero.
8449
998e9f8c
DL
84502000-06-19 Dave Love <fx@gnu.org>
8451
8452 * mktime.c: Unprotoized.
8453
18e21ce8 84542000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8455
8456 * data.c (set_internal): If variable is frame-local,
8457 store the new value immediately into the frame parameter alist.
8458
140c4ac6
KR
84592000-06-19 Ken Raeburn <raeburn@gnu.org>
8460
14358466
KR
8461 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8462 in the custom handler pointer.
8463
140c4ac6
KR
8464 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8465 value, or checks for CHAR_META can fail when Lisp_Object is a
8466 union type.
8467 * keymap.c (get_keyelt): Likewise.
8468
10d7bf84
KH
84692000-06-19 Kenichi Handa <handa@etl.go.jp>
8470
8471 * ccl.h (struct ccl_program): New member eol_type.
8472 (struct ccl_spec): New member cr_carryover.
8473
8474 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8475 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8476
8477 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8478 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8479 (decode_eol_post_ccl): New function.
8480 (decode_coding): Don't detect EOL format here for CCL based coding
8481 systems.
8482 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8483 decode_eol_post_ccl after running the CCL program.
8484 (code_convert_region): Don't detect EOL format here for CCL based
8485 coding systems.
8486 (decode_coding_string): Likewise.
8487
52e386c2
KR
84882000-06-18 Ken Raeburn <raeburn@gnu.org>
8489
8490 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8491 when treating it as an integer.
8492
8493 * coding.h (encode_coding_string): Declare.
8494
8495 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8496 it as an integer.
8497
8498 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8499 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8500 to be passed to get_local_map.
8501
8502 * sound.c (Fplay_sound): Don't call make_number on
8503 Frun_hook_with_args count argument.
8504
8505 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8506 for lisp objects in X event structure data field, when lisp
8507 objects are represented with unions.
8508 (x_scroll_bar_to_input_event): Ditto.
8509
b357b9d4
KR
85102000-06-16 Ken Raeburn <raeburn@gnu.org>
8511
8512 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8513 termination of string. Fix sense of test whether
8514 Vline_number_display_limit is an integer.
b357b9d4 8515
a871441d
GM
85162000-06-16 Gerd Moellmann <gerd@gnu.org>
8517
a9021acd
GM
8518 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8519 only if HAVE_X_WINDOWS.
8520
6344985d
GM
8521 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8522 of titles.
8523
427ec082 8524 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8525 out of bounds.
8526
228b083e
EZ
85272000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8528
8529 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8530 of its headers.
8531
c25b53a2
KH
85322000-06-15 Kenichi Handa <handa@etl.go.jp>
8533
8534 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8535 start of the while loop.
8536
a6981b11
GM
85372000-06-15 Gerd Moellmann <gerd@gnu.org>
8538
e9924e52
GM
8539 * atimer.c (alarm_signal_handler): Add forward declaration.
8540
a6981b11
GM
8541 * data.c (set_internal): Remove debug code.
8542
25fa6deb
GM
85432000-06-14 Gerd Moellmann <gerd@gnu.org>
8544
dce6b995
GM
8545 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8546
9f817ea4
GM
8547 * unexec.c (toplevel) [COFF]: Include coff.h.
8548
8549 * s/lynxos.h: New file.
8550
8551 * keymap.c (Fsingle_key_description): Enclose function key and
8552 event symbol names in angle brackets.
8553
8a4e3c0c
GM
8554 * xdisp.c (setup_echo_area_for_printing): Call
8555 message_log_maybe_newline if message_buf_print is not set.
8556
8557 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8558 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8559 function does something useful even when message_buf_print is
8560 already set.
8561
52283633
SM
8562 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8563 New variables.
25fa6deb
GM
8564 (ensure_echo_area_buffers): Initialize echo buffer's
8565 truncate lines setting to nil.
8566 (with_echo_area_buffer): Don't set the echo buffer's truncate
8567 lines setting here.
8a4e3c0c 8568 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8569 of message_truncate_lines.
8570 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8571 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8572 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8573
8574 * keyboard.c (read_char): Bind message-truncate-lines to t
8575 while displaying a help-echo.
8576
8577 * lisp.h (Qmessage_truncate_lines): External declaration.
8578
163dcff3
GM
85792000-06-13 Gerd Moellmann <gerd@gnu.org>
8580
1681ead6
GM
8581 * xdisp.c (Vline_number_display_limit): Renamed from
8582 line_number_display_limit.
8583 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8584 Extend documentation string. Initialize
8585 Vline_number_display_limit to nil meaning no limit.
8586 (decode_mode_spec): Use Vline_number_display_limit with its new
8587 meaning.
8588
163dcff3
GM
8589 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8590
18e21ce8 85912000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8592
8593 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8594
163dcff3
GM
8595 * xfns.c (x_set_frame_parameters): Comment fix.
8596
8597 * frame.c (store_frame_param): Call swap_in_global_binding if the
8598 variable's current binding was chosen based on this frame.
8599
8600 * data.c (swap_in_global_binding): New function.
8601
a704139d
EZ
86022000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8603
8604 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8605 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8606
9b6610db
EZ
86072000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8608
8609 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8610
c68833d2
JR
86112000-06-12 Jason Rumney <jasonr@gnu.org>
8612
8613 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8614
8615 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8616
8617 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8618
8619 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8620
ed1056b3
GM
86212000-06-12 Gerd Moellmann <gerd@gnu.org>
8622
8623 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8624 (syms_of_xfaces): Defsubr Sdump_colors.
8625 (x_free_colors): Don't treat b&w specially on default visual.
8626 (x_free_dpy_colors): New function.
8627 (free_face_colors): Don't check visual class; it's done
8628 in x_free_colors.
8629
8630 * xterm.c (x_frame_of_widget): New function.
8631 (x_alloc_nearest_color_for_widget): Use it.
8632 (x_copy_dpy_color): New function.
8633 (x_destroy_window): Free various colors.
8634
5050a2ef
KH
86352000-06-12 Kenichi Handa <handa@etl.go.jp>
8636
8637 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8638
8639 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8640
8641 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8642
8643 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8644
8645 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8646
fb1b041d
DL
86472000-06-11 Dave Love <fx@gnu.org>
8648
8649 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8650
ff96b5f4
EZ
86512000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8652
8653 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8654
db8eeecd
GM
86552000-06-11 Gerd Moellmann <gerd@gnu.org>
8656
ed1056b3 8657 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8658 to `XEvent *'.
8659
49b71c5f
KH
86602000-06-10 Kenichi Handa <handa@etl.go.jp>
8661
c479bd55
KH
8662 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8663 (regex_compile): Fix the code for handling the case of single byte
8664 char and multibyte char being mixed in a range within [...].
8665
ff6a65c2
KH
8666 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8667 and dst_multibyte members of coding.
8668
49b71c5f
KH
8669 * charset.c (update_charset_table): Update the table
8670 bytes_by_char_head.
8671 (init_charset_once): Initialize elements of bytes_by_char_head to
8672 1 except for leading codes for private charases.
8673
8674 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8675 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8676
9e80b57d
KR
86772000-06-09 Ken Raeburn <raeburn@gnu.org>
8678
8679 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8680 access the data it doesn't point to.
8681
f83fe4b4
GM
86822000-06-08 Gerd Moellmann <gerd@gnu.org>
8683
8684 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8685 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8686 event queue. This is necessary because Emacs otherwise won't
8687 perform a switch-frame to a new frame until some other event, for
8688 example a keystroke event, forces it to do so. This has various
8689 effects, one visible being that the cursor of a frame created with
8690 C-x 5 2 or switched to with a window manager key binding like
8691 A-TAB stays hollow because selected_window isn't on the newly
8692 focused frame until the switch-frame is performed.
8693
8694 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8695 generating a switch-frame event if necessary.
8696
8697 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8698
8699 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8700 it's an integer.
8701
0890801b
KH
87022000-06-08 Kenichi Handa <handa@etl.go.jp>
8703
52283633 8704 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8705
173cbca8
GM
87062000-06-07 Gerd Moellmann <gerd@gnu.org>
8707
3091c2a6
GM
8708 * window.c (displayed_window_lines): Take empty lines at
8709 the bottom of a window into account.
427ec082 8710
f38952fe
GM
8711 * window.c (displayed_window_lines): New function.
8712 (Fmove_to_window_line): Use displayed_window_lines to determine
8713 the number of lines to move, instead of using the window's height.
8714
8715 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8716 to stop reading, even if the form read sets point to a different
8717 value when evaluated.
8718
427ec082 8719 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8720 put the cursor.
8721
6ba6c818
KH
87222000-06-07 Kenichi Handa <handa@etl.go.jp>
8723
8724 * fileio.c (e_write): Free composition data if stored in
8725 coding->cmp_data.
8726
5f1aea9a
GM
87272000-06-06 Gerd Moellmann <gerd@gnu.org>
8728
666852af
GM
8729 * xdisp.c (display_line): Set row's and iterator's
8730 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8731 Set cursor even if row ends in the middle of a character.
8732 (dump_glyph_row): Print values of new flags.
8733 (redisplay_window) <cursor movement in unchanged window>: When
8734 point has been moved forward, and PT is at the end of the cursor
8735 row, don't place the cursor in the next row if the cursor row ends
8736 in the middle of a character or at ZV.
8737
8738 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8739 (struct glyph_row): Add starts_in_middle_of_char_p and
8740 ends_in_middle_of_char_p.
8741 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8742 ends_in_middle_of_char_p flag.
8743 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8744
d13f3e2e
GM
8745 * term.c (append_glyph): Revert change of 2000-06-06.
8746
8747 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8748 padding glyph not fitting on line as whole character not
8749 fitting on line.
8750
5f1aea9a
GM
8751 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8752 this isn't true for images with `:ascent 100'.
8753
10cda9b0
KH
87542000-06-06 Kenichi Handa <handa@etl.go.jp>
8755
ed00559d
KH
8756 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8757 as modified if it is originally unmodified.
8758
10cda9b0
KH
8759 * term.c (encode_terminal_code): Change the way to check if
8760 terminal coding does any conversion.
8761 (append_glyph): Set glyph->pixel_width correctly.
8762
8763 * xdisp.c (display_line): While checking line continuation, pay
8764 attention to a padding glyph.
8765
1969fae2
GM
87662000-06-05 Gerd Moellmann <gerd@gnu.org>
8767
8768 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8769
162ccef4
DL
87702000-06-05 Dave Love <fx@gnu.org>
8771
f19f32dd
DL
8772 * xdisp.c: Include fontset.h.
8773
8774 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8775
8776 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8777
8778 * dispnew.c: Conditionally include term.h.
8779
8780 * coding.h: Declare code_convert_string_norecord.
8781
8782 * frame.h (struct frame): Use volatile unconditionally.
8783
8784 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8785
8786 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8787
8788 * systime.h: Protect against multiple inclusion.
8789 (timezone) [USG5_4]: Define as time_t.
8790
8791 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8792 (Foptimize_char_table, make_temp_name): Declare.
8793
8794 * Makefile.in (xdisp.o): Depend on fontset.h.
8795
8796 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8797
8798 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8799 (Foptimize_char_table, make_temp_name): Declare.
8800
427ec082 8801 * s/irix4-0.h:
162ccef4
DL
8802 * s/irix5-0.h:
8803 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8804
2082fe81
DL
88052000-06-02 Dave Love <fx@gnu.org>
8806
8807 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8808
dcf671d2
GM
88092000-06-02 Gerd Moellmann <gerd@gnu.org>
8810
8811 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8812 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8813 be freed.
8814
8815 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8816 glyph, use the ASCII NUL character to determine the face.
8817
d42122a3
DL
88182000-06-02 Dave Love <fx@gnu.org>
8819
8820 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8821 (VFORK_RETURN_TYPE): Remove.
427ec082 8822
d42122a3
DL
8823 * config.in: Add NO_MATHERR.
8824
dd432f16
DL
88252000-06-01 Dave Love <fx@gnu.org>
8826
90aa4ea8
DL
8827 * cmds.c (internal_self_insert): Don't check
8828 Vbefore_change_function, Vafter_change_function.
8829
8830 * insdel.c (signal_before_change, signal_after_change): Likewise.
8831
8832 * buffer.c (Vbefore_change_function, Vafter_change_function):
8833 Variables and their initializations deleted.
8834
2330c9d4
DL
8835 * callint.c (Fcall_interactively): Doc fix.
8836
dd432f16
DL
8837 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8838
bf9e8804
DL
88392000-05-31 Dave Love <fx@gnu.org>
8840
8841 * textprop.c: Revert last change -- duplicated.
8842
3694b4ab
GM
88432000-05-31 Gerd Moellmann <gerd@gnu.org>
8844
8845 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8846 in #if 0.
8847
8848 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8849
f14156cd
JR
88502000-05-31 Jason Rumney <jasonr@gnu.org>
8851
8119aab8
JR
8852 * search.c (Fre_search_forward, Fre_search_backward)
8853 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8854
f14156cd
JR
8855 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8856
4aab9be3
JR
88572000-05-30 Jason Rumney <jasonr@gnu.org>
8858
8859 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8860 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8861
52283633 8862 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8863
8864 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8865 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8866 expand a nil default_filename.
8867
8868 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8869 pointer to glyph_to_pixel_coords, not a frame.
8870
8871 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8872 coding.h to dependencies.
8873
8874 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8875
8876 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8877 window pointer to be consistent with w32term.c and xterm.c.
8878
8879 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8880 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8881 (Qline_spacing, Qcenter): New variables.
8882 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8883 (x_set_line_spacing): New function.
52283633 8884 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8885 (x_specified_cursor_type): New function.
8886 (x_set_cursor_type): Use it.
8887 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8888 and icon strings.
8889 (validate_x_resource_name, x_get_resource_string): Measure lengths
8890 of external strings in bytes.
8891 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8892 GetTextExtentPoint32 with NULL title.
8893 (Fx_create_frame): Initialize Qline_spacing.
8894 (w32_load_system_font): Initialize font->double_byte_p.
8895 (x_to_w32_charset): Use Vw32_charset_info_alist.
8896 (Image, busy cursor, tooltip functions): Merged changes from
8897 xfns.c. Not yet functional on Windows.
8898
8899 * w32gui.h (W32FontStruct): Add double_byte_p member.
8900
8901 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8902 (emacs_button_translation): Use it.
8903 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8904 in `mask' to be set.
8905
8906 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8907 menu strings.
8908
8909 * w32term.c: Format and doc changes to bring closer to xterm.c.
8910 (w32_char_font_type): New enum.
8911 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8912 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8913 (w32_encode_char): New function.
8914 (x_encode_char): Removed.
8915 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8916 x_encode_char and w32_font_is_double_byte.
8917 (x_produce_image_glyph): Use image_ascent.
8918 (x_produce_glyphs): Use new version of w32_per_char_metric and
8919 handle NULL return value. Allow extra line spacing.
8920 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8921 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8922 w32_font_type member of glyph instead.
8923 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8924 (fast_find_position): Make sure not to consider rows not visible
8925 in the window.
8926 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8927 w32_menu_display_help with input blocked, as it can abort.
8928 (x_display_and_set_cursor): Choose cursor depending
8929 on buffer-local value of cursor_type.
8930 (x_draw_bar_cursor): Add parameter WIDTH.
8931
8932 * w32term.h (CP_DEFAULT): Define.
8933 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8934
10fc3187
GM
89352000-05-30 Gerd Moellmann <gerd@gnu.org>
8936
8937 * search.c (Fre_search_forward, Fre_search_backward)
8938 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8939
d0555360
KH
89402000-05-30 Kenichi Handa <handa@etl.go.jp>
8941
8942 * coding.c (detect_coding_iso2022): Fix code for checking
8943 CODING_CATEGORY_MASK_ISO_8_2.
8944
f1ad044f
SM
89452000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8946
8947 * regex.c (PREFETCH_NOLIMIT): New function.
8948 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8949
84ec3b4b
GM
89502000-05-29 Gerd Moellmann <gerd@gnu.org>
8951
66254a13
GM
8952 * syntax.c (find_defun_start): Move test for
8953 open_paren_in_column_0_is_defun_start outside of the loop.
8954
49e70dec
GM
8955 * xdisp.c (redisplay_window): Really switch buffers when
8956 displaying mode lines, and temporarily set selected_frame to the
8957 frame of the window that's redisplayed.
8958
84ec3b4b
GM
8959 * xfaces.c (free_realized_faces): Block/unblock input.
8960 (free_realized_multibyte_face): Ditto.
8961
869a3a14
DL
89622000-05-29 Dave Love <fx@gnu.org>
8963
8964 * textprop.c (Qkeymap): New variable.
8965 (syms_of_textprop): Intern it.
8966
8967 * keymap.c: Include intervals.h.
8968 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8969
8970 * Makefile.in (keymap.o): Depend on intervals.h.
8971
8972 * keyboard.c (menu_bar_items, tool_bar_items)
8973 (Fexecute_extended_command): Deal with `keymap' property.
8974 (read_key_sequence): Track map from `keymap' property as well as
8975 `local_map'.
8976
8977 * intervals.c (get_local_map): Extra arg to allow looking for
8978 `keymap' too.
8979
8980 * intervals.h (map_property): New enum.
8981 (get_local_map): Extra arg using it.
8982 (Qkeymap): Declare.
8983
84ec3b4b 8984 * lisp.h (get_local_map): Don't declare here.
869a3a14 8985
89d0c844
KH
89862000-05-29 Kenichi Handa <handa@etl.go.jp>
8987
8988 * Makefile.in (callproc.o): Depend on composite.h.
8989
8990 * callproc.c: Include composite.h.
8991 (Fcall_process): Handle composition correctly.
8992
8993 * coding.h (coding_allocate_composition_data): Extern it.
8994 (coding_restore_composition): Likewise.
8995
8996 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8997 yet allocated, finish decoding with result
8998 CODING_FINISH_INSUFFICIENT_CMP.
8999 (coding_allocate_composition_data): Make it non-static.
9000 (coding_restore_composition): Likewise.
9001
797a084a
EZ
90022000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9003
9004 * charset.c (syms_of_charset): Revert last change.
9005
cf872af5
EZ
90062000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9007
9008 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
9009 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9010 Handa.
cf872af5 9011
5b1ae051
EZ
90122000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9013
9014 * charset.c (syms_of_charset): Set width of character sets
9015 eight-bit-control and eight-bit-graphic to 1 column.
9016
34ec9ebe
GM
90172000-05-26 Gerd Moellmann <gerd@gnu.org>
9018
9019 * config.in (HAVE_SPEED_T): New define.
9020
9021 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9022 `extern speed_t'.
9023
dd854dc2
DL
90242000-05-26 Dave Love <fx@gnu.org>
9025
9026 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9027
9028 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9029 (Fsubr_arity): New function.
9030 (syms_of_data): Install them.
9031
ba9f8f95
KH
90322000-05-26 Kenichi Handa <handa@etl.go.jp>
9033
0f3e0672
KH
9034 * charset.c (init_charset_once): Set the table bytes_by_char_head
9035 correctly.
9036
cebefb44
KH
9037 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9038 the default fontset to what Emacs uses by default.
0f3e0672
KH
9039 (check_registry_encoding): This function deleted.
9040 (Fset_fontset_font): Remove the adhoc condition for the default
9041 fontset. Allow cons in FONTNAME.
cebefb44 9042
0f3e0672
KH
9043 * fns.c (map_char_table): Ignore char-table entries for
9044 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 9045
7a18af49
KR
90462000-05-25 Ken Raeburn <raeburn@gnu.org>
9047
9048 * emacs.c (main): Initialize keyboard syms before initializing
9049 window code, so face names are available.
9050
d2af47df
SM
90512000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9052
9053 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9054 of an anchor at the beginning of a shy-group.
9055
fc6a6a4e
GM
90562000-05-25 Gerd Moellmann <gerd@gnu.org>
9057
9058 * xdisp.c (handle_invisible_prop): Don't try to skip over
9059 invisible text if end of text is already reached.
9060
005f0d35
DL
90612000-05-25 Dave Love <fx@gnu.org>
9062
02513cdd
DL
9063 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9064
005f0d35
DL
9065 * coding.c (encode_eol): Add null statement after label.
9066
89f6ca4e
EZ
90672000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9068
9069 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9070 2000-05-20.
9071
a4e1759e
KH
90722000-05-25 Kenichi Handa <handa@etl.go.jp>
9073
9074 * ccl.c (ccl_driver): Fix previous change.
9075
eacfd7fe
KH
90762000-05-25 Kenichi Handa <handa@etl.go.jp>
9077
46ab33a9
KH
9078 * coding.c (run_pre_post_conversion_on_str): Set point to the
9079 beginning of buffer before calling coding->post_read_conversion.
9080 (decode_coding_string): Give correct args to
9081 run_pre_post_conversion_on_str.
9082 (encode_coding_string): Likewise.
9083
eacfd7fe
KH
9084 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9085 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9086 eight-bit-graphic correctly.
9087
f8569325
DL
90882000-05-24 Kenichi HANDA <handa@etl.go.jp>
9089
9090 * fileio.c (Finsert_file_contents): Even if a file is not found,
9091 execute codes for setting up coding system. Call
9092 after-insert-file-functions unconditionally.
9093
04545643
GM
90942000-05-24 Gerd Moellmann <gerd@gnu.org>
9095
9096 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9097 BSD_PGRPS are not defined.
9098
747d90ea
KH
90992000-05-24 Kenichi Handa <handa@etl.go.jp>
9100
9101 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9102 DESCRIPTION.
9103 (syms_of_charset): Avoid building same strings.
9104
716e3b88
GM
91052000-05-23 Gerd Moellmann <gerd@gnu.org>
9106
9107 * lread.c (Fload): Add a comment about the meaning of
9108 Vuser_init_file being t.
9109
9110 * puresize.h (BASE_PURESIZE): Increase to 675000.
9111
9112 * s/gnu-linux.h (setpgrp): Don't define it here because this
9113 prevents compilation on GNU/Linux systems with glib 2.2.
9114
9115 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9116 as setpgid.
427ec082 9117
9aeb39fa
EZ
91182000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9119
9120 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9121 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9122 version.
9123 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9124
29ced61b
KH
91252000-05-23 Kenichi Handa <handa@etl.go.jp>
9126
52283633 9127 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 9128
3d80f24d
KH
9129 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9130
52283633 9131 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 9132
29ced61b
KH
9133 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9134
d7e00792
KH
91352000-05-22 Kenichi Handa <handa@etl.go.jp>
9136
c9d80d38
KH
9137 * keyboard.c (read_char): Allow character codes 128..255 to be
9138 handled by input-method-function.
9139
d7e00792
KH
9140 * insdel.c (adjust_markers_for_replace): Fix previous change.
9141 (adjust_after_replace): If PREV_TEXT is nil, call
9142 adjust_markers_for_insert, not adjust_markers_for_replace.
9143
087121cc 91442000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 9145
087121cc
GM
9146 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9147 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9148 [HAVE_GRANDPT]: Define.
9149 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9150
9151 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9152 like SYSV_PTYS.
9153
9154 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9155
9156 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9157
c9671f81
KH
91582000-05-20 Kenichi Handa <handa@etl.go.jp>
9159
9160 The following changes are to handle 8-bit characters in a
9161 multibyte buffer/string without facing with byte combining
9162 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9163 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9164
9165 * Makefile.in (fns.o): Depend on charset.h.
9166
9167 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9168 convert it to unibyte.
9169 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9170
9171 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9172 apparent char boundary.
9173 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9174 0x80..0x9F to/from multibyte form.
9175
9176 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9177 to unibyte.
9178
9179 * callproc.c (Fcall_process): Always encode an argument string if
9180 it is multibyte. Setup src_multibyte and dst_multibyte members of
9181 process_coding properly.
ce75fd23 9182
c9671f81
KH
9183 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9184 SPLIT_NON_ASCII_CHAR.
9185
9186 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9187 as is.
9188 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9189
52283633 9190 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 9191 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 9192 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
9193 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9194 and eight-bit-graphic.
9195 (char_to_string): Likewise. Signal an error for too large
9196 character code.
9197 (char_printable_p): Return 0 for 8-bit characters.
9198 (update_charset_table): Update iso_charset_table only when a final
9199 character is non-negative.
9200 (find_charset_in_text): Renamed from find_charset_in_str.
9201 Arguments and return value changed. Callers changed.
9202 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9203 be -1 if CHARSET is used only internally.
9204 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9205 eight-bit-graphic.
9206 (Fcharset_after): Simplified.
9207 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9208 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9209 (multibyte_chars_in_text): Simplified by assuming there's no
9210 invalid multibyte sequence.
52283633
SM
9211 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9212 (str_as_unibyte): New functions.
9213 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
9214 (init_charset_once): Initialization for
9215 LEADING_CODE_8_BIT_CONTROL.
9216 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9217 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9218 eight-bit-control and eight-bit-graphic.
9219
52283633
SM
9220 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9221 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
9222 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9223 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9224 (CHARSET_REVERSE_CHARSET): Likewise.
9225 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9226 eight-bit-graphic.
9227 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9228 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9229 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9230 encounter an invalid multibyte sequence.
9231 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9232 sequence is always valid.
9233 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 9234 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
9235 (CHAR_STRING): For 8-bit characters, call char_to_string.
9236 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9237 multibyte sequence is always valid.
9238 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
9239 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9240 (str_as_unibyte): Extern them.
c9671f81 9241 (BCOPY_SHORT): Fix a bug.
52283633 9242 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
9243 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9244 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9245 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9246
bd4bde7f 9247 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 9248 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
9249 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9250 (EMIT_BYTES): New macros.
9251 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9252 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
9253 macros deleted.
9254 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9255 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9256 check the validity of multibyte sequence.
9257 (decode_coding_emacs_mule): New function.
9258 (encode_coding_emacs_mule): New macro.
9259 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9260 the source.
9261 (DECODE_ISO_CHARACTER): Just return a character code.
9262 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9263 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9264 EMIT_CHAR to produced decoded characters. Exit the loop only by
9265 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9266 block here.
9267 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9268 only position codes for an invalid character.
9269 (encode_designation_at_bol): Return new destination pointer. 5th
9270 arg DSTP is changed to DST.
9271 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9272 from the source by ONE_MORE_CHAR. Don't handle the case of last
9273 block here.
9274 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9275 macros deleted.
52283633
SM
9276 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9277 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
9278 TWO_MORE_BYTES to fetch a byte from the source.
9279 (encode_eol): Pay attention to coding->src_multibyte.
9280 (detect_coding, detect_eol): Preserve members src_multibyte and
9281 dst_multibyte.
9282 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9283 (encoding_buffer_size): Set magnification to 3 for all coding
9284 systems that require encoding.
9285 (ccl_coding_driver): For decoding, be sure that the result is
9286 valid multibyte sequence.
9287 (decode_coding): Initialize coding->errors and coding->result.
9288 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9289 and raw-text, always call decode_eol. Handle the case of last
9290 block here. If not coding->dst_multibyte, convert the resulting
9291 sequence to unibyte.
9292 (encode_coding): Initialize coding->errors and coding->result.
9293 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9294 and raw-text, always call encode_eol. Handle the case of last
9295 block here.
9296 (shrink_decoding_region, shrink_encoding_region): Detect cases
9297 that we can't skip data more rigidly.
9298 (code_convert_region): Setup src_multibyte and dst_multibyte
9299 members of coding. For decoding, if the buffer is multibyte,
9300 convert the source sequence to unibyte in advance. For encoding,
9301 if the buffer is multibyte, convert the resulting sequence to
9302 multibyte afterward.
9303 (run_pre_post_conversion_on_str): New function.
9304 (code_convert_string): Deleted and divided into the following two.
9305 (decode_coding_string, encode_coding_string): New functions.
9306 (code_convert_string1, code_convert_string_norecord): Call one of
9307 above.
9308 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9309 MAKE_NON_ASCII_CHAR.
52283633
SM
9310 (Fset_terminal_coding_system_internal)
9311 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
9312 and dst_multibyte members.
9313 (init_coding_once): Initialize iso_code_class with new enum
9314 ISO_control_0 and ISO_control_1.
9315
9316 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9317 devided into ISO_control_0 and ISO_control_1.
9318 (struct coding_system): New members src_multibyte, dst_multibyte,
9319 errors, and result. Delete member fake_multibyte.
9320 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9321 nonzero.
9322 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9323 nonzero.
9324
9325 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9326 (Faset): Likewise.
9327
9328 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9329 multibyte form.
9330 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9331 combining occurs.
9332 (Ftranspose_region): Delete codes for handling byte combining.
9333
9334 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9335 dst_multibyte members of coding. On handling REPLACE on unibyte
9336 buffer, convert the result of decode_coding to unibyte. On
9337 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9338 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9339 multibyteness of the source (buffer or string).
9340
9341 * fns.c (concat): Handle 8-bit characters correctly.
9342 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9343 unibyte in the result.
9344 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9345 valid multibyte form in the result.
9346 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9347 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9348 return -1, signal an error.
9349 (base64_encode_1): New arg MULTIBYTE. Get each character by
9350 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9351 character is found, return -1.
9352 (Fbase64_decode_region): Delete codes for handling byte-combining.
9353 Treat each decoded byte as a unibyte character.
9354 (Fbase64_decode_string): Return unibyte string.
9355 (Fcompare_strings, concat, string_byte_to_char): Use
9356 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9357 FETCH_STRING_CHAR_ADVANCE.
9358 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9359 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9360
9361 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9362 SPLIT_NON_ASCII_CHAR.
9363 (fontset_ref_via_base, fontset_set): Likewise
9364
9365 * insdel.c (adjust_markers_for_record_delete): Deleted.
9366 (adjust_markers_for_insert): Argument changed. Caller changed.
9367 (adjust_markers_for_replace): Likewise.
52283633
SM
9368 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9369 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9370 (copy_text): Delete unused local varialbe c_save. For converting
9371 to multibyte, be sure to make all 8-bit characters in valid
9372 multibyte form.
9373 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9374 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9375 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9376 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9377 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9378 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9379 handling byte combining.
9380 (adjust_before_replace): Deleted.
427ec082 9381
c9671f81
KH
9382 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9383 SPLIT_NON_ASCII_CHAR.
9384 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9385 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9386 (Fkey_description): Likewise.
9387
9388 * lread.c (read1): On reading multibyte string, be sure to make
9389 all 8-bit chararacters in valid multibyte form.
9390 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9391
9392 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9393 unconditionally.
9394
9395 * process.c (Fstart_process): GCPRO current_dir before calling
9396 Ffind_operation_coding_system. Encode arguments here.
9397 (create_process): Don't encode arguments here. Setup
9398 src_multibyte and dst_multibyte members of struct coding.
9399 (read_process_output): Setup src_multibyte and dst_multibyte
9400 members of struct coding. If the output is to multibyte buffer,
9401 always decode the output of the process. Adjust the
52283633 9402 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9403 (send_process): Setup coding->src_multibyte according to the
9404 multibyteness of the source.
9405
52283633 9406 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9407 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9408 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9409
52283633 9410 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9411
9412 * w16select.c (Fw16_set_clipboard_data): Setup members
9413 src_multibyte and dst_multibyte of coding. Adjusted for the
9414 change for find_charset_in_str.
9415 (Fw16_get_clipboard_data): Likewise.
9416
9417 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9418 dst_multibyte of coding.
9419 (x_to_w32_font): Likewise.
9420
9421 * w32select.c (Fw32_set_clipboard_data): Setup members
9422 src_multibyte and dst_multibyte of coding. Adjusted for the
9423 change for find_charset_in_str.
9424 (Fw32_get_clipboard_data): Likewise.
9425
9426 * xdisp.c (get_next_display_element): Handle 8-bit characters
9427 correctly.
52283633
SM
9428 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9429 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9430
9431 * xselect.c (selection_data_to_lisp_data): Setup members
9432 src_multibyte and dst_multibyte of coding. Adjusted for the
9433 change for find_charset_in_str.
9434 (lisp_data_to_selection_data): Likewise.
9435
5f64c9e0
GM
94362000-05-19 Gerd Moellmann <gerd@gnu.org>
9437
52283633 9438 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9439
5f64c9e0
GM
9440 * dispextern.h (Vimage_types): Add extern declaration.
9441
9442 * xdisp.c (Vimage_types): Moved here from xfns.c.
9443 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9444
9445 * xfns.c (Vimages_types): Moved to xdisp.c.
9446 (syms_of_xfns): Move `image-types' to xdisp.c.
9447
9448 * w32fns.c (Vimage_types): Removed.
9449 (syms_of_w32fns): Remove `image-types'.
9450
813086ea
KH
94512000-05-18 Kenichi Handa <handa@etl.go.jp>
9452
9453 * fns.c (map_char_table): Pay attention to character number of
9454 charset. Check the validity of charset at the first level. For
9455 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9456 the default value.
9457
9458 * fontset.c: Include "buffer.h".
9459 (fs_load_font): If the face has fontset, record the face ID in
9460 that fontset.
9461 (Finternal_char_font): New function.
9462 (accumulate_font_info): New function.
9463 (Ffontset_info): Rewritten for the new fontset implementation.
9464 (syms_of_fontset): Register Vdefault_fontset in the first element
9465 of Vfontset_table. Include Vdefault_fontset in
9466 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9467 function.
9468
bdaebbf0
DL
94692000-05-16 Dave Love <fx@gnu.org>
9470
9471 * m/iris5d.h: Deleted -- unused.
9472
cb613bb8
GM
94732000-05-16 Gerd Moellmann <gerd@gnu.org>
9474
b15f3b77
GM
9475 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9476 `invalid' instead of `illegal'.
9477
9478 * indent.c (Fmove_to_column): When ending within a tab, insert
9479 spaces first so that markers at the end of the tab get adjusted.
9480
835c1b36
GM
9481 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9482 buffer list that wasn't selected in that frame.
9483
cb613bb8
GM
9484 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9485 is needed on mescaline, use a 2 char prefix, and call
9486 make_temp_name with second arg non-zero.
9487
9488 * fileio.c (make_temp_name): New function, extracted from
9489 Fmake_temp_name.
9490 (Fmake_temp_name): Use it.
9491
f685bea9
EZ
94922000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9493
52283633 9494 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9495
a1b8d58b
GM
94962000-05-15 Gerd Moellmann <gerd@gnu.org>
9497
9498 * Makefile.in (lisp): Add env.elc.
9499
9500 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9501
a265079f
GM
95022000-05-12 Gerd Moellmann <gerd@gnu.org>
9503
9504 * search.c (Freplace_match): Handle case of `\N' in the
9505 replacement when there's no group N.
9506
da4496b6
GM
95072000-05-11 Gerd Moellmann <gerd@gnu.org>
9508
0ace421a
GM
9509 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9510 of the message to message_dolog.
9511
1172eb8d
GM
9512 * keyboard.c (read_char): Don't clear current message for help
9513 events; let the code handling help events handle this. Change
9514 code detecting help events that should be ignored.
9515
da4496b6
GM
9516 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9517 we're interating over a string.
9518
0623e40f
DL
95192000-05-09 Dave Love <fx@gnu.org>
9520
9521 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9522 that offset before writing. Move gcpro region past call of
9523 Ffile_regular_p.
9524
bae2503b
DL
95252000-05-04 Dave Love <fx@gnu.org>
9526
9527 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9528
ec82fb2f
GM
95292000-05-04 Gerd Moellmann <gerd@gnu.org>
9530
9531 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9532 of inserted characters when BUF equals the current buffer, and PT
9533 is in front of or equal to FROM.
9534
cbf18892
GM
95352000-05-03 Gerd Moellmann <gerd@gnu.org>
9536
4ff40dd0
GM
9537 * xdisp.c (handle_single_display_prop): If display property value
9538 is invalid, or something not supported on the frame, restore
9539 iterator's position to what it was initially. Make sure to return
9540 0 for invalid and unsupported property values.
9541
cbf18892
GM
9542 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9543 that x_per_char_metric returns null.
9544
1b0672c3
GM
95452000-05-02 Gerd Moellmann <gerd@gnu.org>
9546
576da55d
GM
9547 * xterm.h (struct face): Add forward declaration.
9548 (struct image): Ditto.
9549 (image_ascent): Add prototype.
9550
9551 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9552 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9553 image_ascent instead of using IMAGE_ASCENT.
9554
9555 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9556 (IMAGE_ASCENT): Removed.
9557
9558 * xfns.c (Qcenter): New variable.
9559 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9560 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9561 (image_ascent): New function.
9562 (lookup_image): Recognize `:ascent center'.
9563 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9564 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9565 (xbm_load): Don't set image's ascent here.
9566 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9567 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9568 check ascent values here.
9569 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9570 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9571 (syms_of_xfns): Initialize Qcenter.
9572
1b0672c3
GM
9573 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9574 to the limits, increase the limits.
9575
0d7811ed
KH
95762000-05-01 Kenichi Handa <handa@etl.go.jp>
9577
9578 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9579 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9580
a943a5ca
GM
95812000-04-28 Gerd Moellmann <gerd@gnu.org>
9582
9583 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9584 taller than the window.
9585
5dba1e29
KH
95862000-04-28 Kenichi Handa <handa@etl.go.jp>
9587
9588 * xfaces.c (realize_x_face): Fix the argument of the second
9589 xassert. BASE_FACE may not be a face for ASCII.
9590
353964e3
GM
95912000-04-27 Gerd Moellmann <gerd@gnu.org>
9592
c76e04a8
GM
9593 * print.c (print_object): Treat print-length < 0 as nil.
9594
9595 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9596
9597 * s/freebsd.h (TERMCAP_OBJ): Removed.
9598 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9599
9600 * lread.c (read1): Don't treat period followed by certain
9601 characters as symbol start.
9602
9603 * xfns.c (slurp_file): New function.
9604 (xbm_image_p): Handle case of in-memory XBM files.
9605 (xbm_scan): Rewritten to work on memory buffers instead of files.
9606 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9607 Work on memory buffers instead of files. If DATA is null test
9608 if buffer looks like an in-memory XBM file.
9609 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9610 memory buffers instead of files.
9611 (xbm_file_p): New function.
9612 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9613
353964e3
GM
9614 * lread.c (end_of_file_error): New function.
9615 (read1): Call it instead of signaling `end-of-file' directly.
9616
427ec082 9617 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9618 with Fprinc instead of Fprin1.
9619
24d744ac
KR
96202000-04-26 Ken Raeburn <raeburn@gnu.org>
9621
9622 * window.c (freeze_window_start): Check that minibuffer scroll
9623 window isn't nil before extracting the window structure pointer
9624 from it.
9625
9626 * undo.c (record_delete): If we hit the end of the undo list, stop
9627 picking elements apart.
9628
7464346d
GM
96292000-04-26 Gerd Moellmann <gerd@gnu.org>
9630
9631 * xdisp.c (display_line): If lines are continued, restore
9632 iterator's ascent/descent information to the values before the
9633 first glyph not fitting on the line.
9634
612839b6
GM
96352000-04-25 Gerd Moellmann <gerd@gnu.org>
9636
9637 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9638 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9639
9640 * dispnew.c (increment_matrix_positions): Renamed from
9641 increment_glyph_matrix_buffer_positions.
9642 (increment_row_positions): Renamed from
9643 increment_glyph_row_buffer_positions.
9644
9645 * dispextern.h: Change names of renamed functions from dispnew.c
9646 in prototypes.
9647
cc181e95
GM
96482000-04-24 Gerd Moellmann <gerd@gnu.org>
9649
abfcc168
GM
9650 * fileio.c (Fdo_auto_save): Create directories for auto-save
9651 list file if necessary.
9652
cc181e95
GM
9653 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9654 from buffer or frame.
9655 (automatic_hscrolling_p): New variable.
9656 (hscroll_windows): Scroll windows horizontally only if automatic
9657 hscrolling is allowed.
9658 (syms_of_xdisp): New variable `automatic-hscrolling'.
9659
9660 * frame.h (struct frame): Add member extra_line_spacing.
9661
9662 * xfns.c (x_set_line_spacing): New function.
9663 (Fx_create_frame): Set line spacing from resources.
9664 (Qline_spacing): New variable.
9665 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9666
cc181e95
GM
9667 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9668
9669 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9670 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9671 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9672 extra_line_spacing from default value.
9673 (init_buffer_once): Initialize default value of extra_line_spacing.
9674
9675 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9676 and extra3.
9677
9678 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9679 prompt_width. Add extra line spacing.
9680
9681 * term.c (produce_glyphs): Remove reference to struct it's
9682 prompt_width.
9683
9684 * dispextern.h (struct it): Remove member prompt_width, add
9685 extra_line_spacing.
9686
58827478
GM
96872000-04-22 Gerd Moellmann <gerd@gnu.org>
9688
9689 * dispnew.c (update_frame_line): When writing a whole line, make
9690 sure cursor is in the right row afterwards, otherwise a use of
9691 capability `ch' in cmgoto might leave the cursor in the row below.
9692
25a87f42
GM
96932000-04-21 Gerd Moellmann <gerd@gnu.org>
9694
9695 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9696
9697 * keyboard.c (timer_check): Fix typo in comment.
9698
54edf5c2
KH
96992000-04-21 Kenichi Handa <handa@etl.go.jp>
9700
9701 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9702 name change: ch -> character.
9703
3a64eef5
GM
97042000-04-20 Gerd Moellmann <gerd@gnu.org>
9705
9706 * keyboard.c (echo_message_buffer): New variable.
9707 (echo_now): Set echo_message_buffer to the echo area buffer used
9708 to display the echo.
9709 (cancel_echoing): Reset echo_message_buffer to nil.
9710 (read_char): Code rewritten that handles canceling an echo or
9711 echoing a dash, respectively.
9712
9713 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9714 directory doesn't exist.
9715
6142fdcb
DL
97162000-04-19 Dave Love <fx@gnu.org>
9717
9718 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9719 (concat): Don't allow numeric args.
9720 (Fconcat): Doc change.
6142fdcb 9721
ac6b5352
SM
97222000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9723
9724 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9725 instead define end_match(1|2) more carefully.
9726 Use GET_CHAR_BEFORE_2 for `begline'.
9727
cb9215e4
GM
97282000-04-19 Gerd Moellmann <gerd@gnu.org>
9729
5e3dac3f
GM
9730 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9731 on 64-bit systems where NULL is defined as `0'.
9732
9733 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9734 the `variable argument list' to make it work on Alpha.
9735
cb9215e4
GM
9736 * m/alpha.h (_LP64) [!_LP64]: Define.
9737 (ORDINARY_LINK): Define for NetBSD.
9738
9739 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9740
f532dca0
DL
97412000-04-19 Dave Love <fx@gnu.org>
9742
c750667e
DL
9743 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9744 change.
9745
9746 * Makefile.in (LIBS): Don't use.
9747 (GETLOADAVG_OBJ): Define again.
9748 (otherobj): Add GETLOADAVG_OBJ.
9749
f532dca0
DL
9750 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9751
1c7e22fd
GM
97522000-04-18 Gerd Moellmann <gerd@gnu.org>
9753
f6d3257b
GM
9754 * lread.c (read_filtered_event): Cancel and start busy cursor.
9755
427ec082 9756 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9757 that the per-character metrics may be null.
9758
e10f64e7
GM
97592000-04-17 Gerd Moellmann <gerd@gnu.org>
9760
0daee095
GM
9761 * buffer.c (clone_per_buffer_values): New function.
9762 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9763 clone_per_buffer_values if CLONE is not nil.
9764
e10f64e7
GM
9765 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9766
38687d43
DL
97672000-04-16 Dave Love <fx@gnu.org>
9768
9769 * Makefile.in: Remove obsolete localcpp stuff.
9770 (GETLOADAVG_OBJ): Don't define.
9771 (obj): Move LIBOBJS...
9772 (otherobj): ... to here.
9773 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9774 whitespace-only lines after the continuation (Irix).
9775
c21c7262
GM
97762000-04-14 Gerd Moellmann <gerd@gnu.org>
9777
9778 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9779
9780 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9781
314767c0
DL
97822000-04-14 Dave Love <fx@gnu.org>
9783
9784 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9785 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9786 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9787 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9788 NLIST_STRUCT.
9789
9790 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9791 autoconfiscated HAVE_GETLOADAVG.
9792
9793 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9794 BROKEN_MKTIME.
9795
a2522dca
GM
97962000-04-14 Gerd Moellmann <gerd@gnu.org>
9797
9798 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9799 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9800
33744b5d
DL
98012000-04-14 Dave Love <fx@gnu.org>
9802
c21c7262 9803 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9804 (INTERVAL_SRC): Convert to make variable.
9805 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9806 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9807 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9808 add LIBOBJS.
9809 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9810 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9811 (shortlisp): Add facemenu, float-sup, frame.
9812 (SOME_MACHINE_LISP): Remove them from here.
9813 (LIBES): Change unused LDLIBS to autoconf LIBS.
9814
9815 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9816
9d3d5916
KH
98172000-04-14 Kenichi Handa <handa@etl.go.jp>
9818
9819 * composite.c (update_compositions): If FROM and TO are not in a
9820 valid range, do nothing.
9821
198e3c7a
GM
98222000-04-13 Gerd Moellmann <gerd@gnu.org>
9823
52283633 9824 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9825
52283633 9826 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9827
9828 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9829 as TERMCAP_OBJ.
9830
055a28c9
EZ
98312000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9832
9833 * fileio.c (a_write): Remove redundant semi-colons.
9834 (e_write): Return -1 if failed to write all the data.
9835 This fixes the changes made at 1999-12-15.
9836
f5c75033
DL
98372000-04-12 Dave Love <fx@gnu.org>
9838
9839 * fns.c (mapcar1): Test for null vals to support mapc.
9840 (Fmapc): New function.
9841
0c3cfc51
EZ
98422000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9843
9844 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9845 (IT_frame_up_to_date): Support the buffer local value of
9846 cursor-type, if defined.
9847
33465a31
DL
98482000-04-10 Dave Love <fx@gnu.org>
9849
9850 * editfns.c (preceding-char, following-char): Doc fix.
9851
6ed56568
KR
98522000-04-10 Ken Raeburn <raeburn@gnu.org>
9853
9854 * Makefile.in (temacs): Revert 2000-03-12 change.
9855
7cf80d4e
JR
98562000-04-10 Jason Rumney <jasonr@gnu.org>
9857
9858 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9859
34f3f342
GM
98602000-04-10 Gerd Moellmann <gerd@gnu.org>
9861
1a1b1895
GM
9862 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9863 area buffer, if it's not set up yet.
9864
34f3f342
GM
9865 * indent.c (compute_motion): Set immediate_quit.
9866
be0dbdab
GM
98672000-04-09 Gerd Moellmann <gerd@gnu.org>
9868
52283633 9869 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9870 (realize_tty_face): Suppress boldness if colors are the inverse of
9871 the default colors, and tty_suppress_bold_inverse_default_colors_p
9872 is set.
9873 (Ftty_suppress_bold_inverse_default_colors): New function.
9874 (syms_of_xfaces): Defsubr it.
9875
be0dbdab
GM
9876 * buffer.c (Frestore_buffer_modified_p): New function.
9877 (syms_of_buffer): Defsubr it.
9878
e8413c3b
KR
98792000-04-08 Ken Raeburn <raeburn@gnu.org>
9880
87f67317
KR
9881 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9882 charset id (int) argument, not a charset (Lisp_Object).
9883
e8413c3b
KR
9884 * coding.h (code_convert_string): Declare.
9885 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9886 object, as the fourth argument to code_convert_string.
9887
52283633 9888 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9889 (Fset_fontset_font): Use EQ to compare lisp objects.
9890
7c752c80
KR
98912000-04-05 Ken Raeburn <raeburn@gnu.org>
9892
c0333abc
KR
9893 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9894 a pointer that looks like a lisp object.
9895 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9896 zero, instead see whether it's an integer object, since they can't
9897 have intervals.
9898 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9899
52283633
SM
9900 * dispnew.c (allocate_matrices_for_frame_redisplay)
9901 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9902 to convert between (unsigned) int values and lisp integers.
9903 * keyboard.c (read_key_sequence): Likewise.
9904 * lread.c (substitute_object_recurse): Likewise.
9905 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9906 * minibuf.c (do_completion, Fminibuffer_complete_word)
9907 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9908 * term.c (produce_special_glyphs): Likewise.
9909
9910 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9911 * print.c (print_preprocess, print_object): Likewise.
9912
9913 * search.c (compile_pattern): Use NILP when checking for nil.
9914
74e49b38
KR
9915 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9916 __OPTIMIZE__]: Provide a GNU C macro version that handles
9917 lisp-object unions.
9918 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9919 field, to better cope with ENABLE_CHECKING and calls that modify a
9920 Lisp_Object using its old value.
9921
685e5ed2
GM
99222000-04-04 Gerd Moellmann <gerd@gnu.org>
9923
c407c570
GM
9924 * window.c (compare_window_configurations): Signal an error
9925 if parameters C1 or C2 aren't window configurations.
9926
685e5ed2
GM
9927 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9928 AFTER_POTENTIAL_GC calls around calls to functions that can
9929 signal an error and thus invoke the debugger.
9930
587a49ab
GM
99312000-04-03 Gerd Moellmann <gerd@gnu.org>
9932
62f20204
GM
9933 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9934 an error if decoding fails.
9935
587a49ab
GM
9936 * keyboard.c (lispy_mouse_names): Variable removed.
9937 (Vlispy_mouse_stem): New variable.
9938 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9939 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9940 for any mouse button number. Increase size of mouse_syms and
9941 button_down_location as needed. Call modify_event_symbol with
9942 different arguments.
9943 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9944 Call modify_event_symbol with different arguments.
9945 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9946 for any button number. Call modify_event_symbol with different
9947 arguments.
9948 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9949 Accept a string for NAME_ALIST_OR_STEM.
9950
9951 * lisp.h (larger_vector): Add prototype.
9952
9953 * fns.c (larger_vector): Make externally visible.
9954
9955 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9956
2d1675e4
SM
99572000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9958
9959 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9960 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9961 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9962 we are between str1 and str2.
9963 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9964 (PATFETCH): Use `TRANSLATE'.
9965 (PATFETCH_RAW): Fetch multibyte char if applicable.
9966 (PATUNFETCH): Remove.
9967 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9968 When writing a char, write it directly into the pattern buffer rather
9969 than going needlessly through a temp char-array.
9970 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9971 multibyte magic and remove the useless `#ifdef emacs'.
9972 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9973 buffer.
9974
9975 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9976 conditional on `emacs'.
9977
9978 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9979
cc2d8c6b
KR
99802000-04-01 Ken Raeburn <raeburn@gnu.org>
9981
9982 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9983 non-union-type versions of XMARK and friends here, because XMARK
9984 and friends won't work on an integer field if NO_UNION_TYPE is not
9985 defined.
52283633 9986 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9987
52283633 9988 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9989 (syms_of_composite): Delete local var NARGS, pass an int as first
9990 argument to Fmake_hash_table.
9991
2387b382
KR
9992 * editfns.c (text_property_stickiness): Use NILP to test
9993 Lisp_Object boolean value.
9994 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9995 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9996 problems reading from and changing the same lisp value in an
9997 XSETSTRING call.
9998
27660e89
GM
99992000-04-01 Gerd Moellmann <gerd@gnu.org>
10000
10001 * term.c (TN_no_color_video): New variable.
10002 (term_init): Intitialize TN_no_color_video.
10003 (enum no_color_bit): New enumeration.
10004 (MAY_USE_WITH_COLORS_P): New macro.
10005 (turn_on_face): Use it to determine if attributes may be used
10006 combined with colors.
10007
3578db3c
KR
100082000-04-01 Ken Raeburn <raeburn@gnu.org>
10009
10010 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 10011 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
10012 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10013 proper accessor macros.
10014 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10015 (grow_mini_window): Fix typo getting int value of root->height.
10016
6fc556fd
KR
10017 * xdisp.c (compute_string_pos): Fix order of arguments to
10018 string_pos_nchars_ahead.
10019 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10020 count arg to variable-arg routines like Frun_hook_with_args and
10021 Fformat.
587a49ab
GM
10022 (back_to_previous_visible_line_start)
10023 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
10024 fixed-arg routines like Fget_char_property and Fmake_string.
10025 (reconsider_clip_changes): Use XINT when comparing integer lisp
10026 objects, or passing them as int arguments.
587a49ab
GM
10027 (mark_window_display_accurate, insert_left_trunc_glyphs)
10028 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
10029 storing or passing integer values as lisp objects.
10030 (set_cursor_from_row, highlight_trailing_whitespace): Use
10031 INTEGERP, not implicit test against zero, for glyph object.
10032 (try_window_id): Don't use make_number when we want an int value.
10033
10034 * xfaces.c (xlfd_symbolic_value): Make last argument a
10035 Lisp_Object, to be consistent with callers.
10036 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10037 (lface_hash): Apply XFASTINT to lisp values before folding in.
10038
10039 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10040 fill in window width and height. Pass an int, not a lisp object,
10041 as first arg to Finsert.
10042
6e7b2457
GM
100432000-04-01 Gerd Moellmann <gerd@gnu.org>
10044
610d841e
GM
10045 * xfaces.c (realize_basic_faces): Block input while realizing
10046 the faces.
10047
6e7b2457
GM
10048 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10049
10050 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10051
aa110c0c
GM
100522000-03-31 Gerd Moellmann <gerd@gnu.org>
10053
10054 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 10055 or ASCII, handle case that per-char metric is null.
aa110c0c 10056
8801a864
KR
100572000-03-30 Ken Raeburn <raeburn@gnu.org>
10058
c6129d7e
KR
10059 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10060
52283633
SM
10061 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10062 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
10063 pointer, using eassert.
10064 * frame.h (XFRAME): Likewise.
10065
52283633
SM
10066 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10067 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10068 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 10069 * data.c (set_internal): Likewise.
52283633
SM
10070 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10071 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
10072 * fileio.c (auto_save_1): Likewise.
10073 * insdel.c (check_markers): Likewise.
10074 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10075 * undo.c (record_insert): Likewise.
10076 * vmsproc.c (child_sig): Likewise.
10077 * window.c (unshow_buffer, window_loop): Likewise.
10078 * xterm.c (x_erase_phys_cursor): Likewise.
10079
8e7af858
GM
100802000-03-30 Gerd Moellmann <gerd@gnu.org>
10081
10082 * xfns.c (free_image_cache): Free the cache structure itself
10083 last, after all its members have been freed.
10084
10085 * lisp.h (xstrdup): Add prototype.
10086
10087 * alloc.c (xstrdup): Moved here from xfaces.c.
10088 (allocating_for_lisp): Variable removed.
52283633 10089 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
10090
10091 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10092 of Fsymbol_value.
10093 (xstrdup): Moved to alloc.c.
10094
e0b8c689
KR
100952000-03-29 Ken Raeburn <raeburn@gnu.org>
10096
b96f9fb7
KR
10097 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10098
10099 * emacs.c (main): Fix sense of no-loadup test.
10100
e0b8c689
KR
10101 * config.in (ENABLE_CHECKING): Undef.
10102
10103 * lisp.h (struct interval): Replace "parent" field with a union of
10104 interval pointer and Lisp_Object; add new bitfield to use as
10105 discriminant. Change other flag fields to bitfields.
10106 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
10107 is defined and the supplied test fails, print a message and abort.
10108 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
10109
10110 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10111 pointers; abort if the value looks like a lisp object.
52283633
SM
10112 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10113 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
10114 Modify for new interval parent definition.
10115
52283633
SM
10116 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10117 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
10118 addressable lisp object in the interval structure.
10119 (die): New function.
10120 (suppress_checking): New variable.
10121
10122 * intervals.c (interval_start_pos): Just return 0 if there's no
10123 parent object.
10124
f83c5440
GM
101252000-03-29 Gerd Moellmann <gerd@gnu.org>
10126
10127 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10128 and earlier Emacs versions.
10129
10130 * keyboard.c (Ftop_level): Cancel busy-cursor.
10131
10132 * eval.c (call_debugger): Cancel busy-cursor.
10133
fdce64ff
KH
101342000-03-29 Kenichi Handa <handa@etl.go.jp>
10135
10136 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 10137 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 10138
f6a3f532
SM
101392000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10140
10141 * regex.c (analyse_first): New function obtained by ripping out most
10142 of re_compile_fastmap and generalizing it a little bit so that it
10143 can also just return whether a given (sub)pattern can match the empty
10144 string or not.
10145 (regex_compile): Use `analyse_first' to decide whether the loop-check
10146 needs to be done or not for *, +, *? and +? (the loop check is costly
10147 for non-greedy repetition).
10148 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10149
e9b309ac
DL
101502000-03-28 Dave Love <fx@gnu.org>
10151
52283633 10152 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 10153
e9b309ac
DL
10154 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10155
ed0767d8
SM
101562000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10157
10158 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10159 an expression.
10160 (enum re_opcode_t): Update description of succeed_n.
10161 (PATFETCH): Always define.
10162 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10163 operators, char classes, shy-groups and intervals).
10164 Optimize special cases of intervals so as to only use succeed_n and
10165 jump_n when really needed.
10166 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10167 that we don't have to handle the special cases any more.
10168 Simplify on_failure_jump handling as well.
10169
e11e7e46
JR
101702000-03-28 Jason Rumney <jasonr@gnu.org>
10171
10172 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10173
88faab89
GM
101742000-03-27 Gerd Moellmann <gerd@gnu.org>
10175
182ff242
GM
10176 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10177
10178 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 10179
182ff242
GM
10180 * alloc.c (mark_maybe_object): New function.
10181 (mark_memory): Use it.
10182 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10183 (setjmp_tested_p, longjmp_done): New variables.
10184 (test_setjmp): New function.
10185 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10186 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10187
c1005d06
GM
10188 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10189 to DEC_TEXT_POS and INC_TEXT_POS.
10190
10191 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10192 with parameter MULTIBYTE_P.
10193
52283633 10194 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 10195
7439e5b9 10196 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
10197 buffers because it looks for multibyte character byte sequences
10198 which don't exist in unibyte text.
7439e5b9 10199
d9c545da
GM
10200 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10201
11fd416e 10202 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
10203 [DEBUG_X_COLORS]: New functions.
10204 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10205
10206 * xfns.c (x_set_cursor_color): Get color reference counts right.
10207
10208 * xterm.c (x_copy_color): New function.
10209 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10210
10211 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10212 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10213 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10214 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10215 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10216 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10217 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10218 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10219 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10220 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10221
11fd416e
GM
10222 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10223 names for handling per-buffer variables.
d9c545da
GM
10224
10225 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10226 instead of MAX_BUFFER_LOCAL_VARS.
10227 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10228
10229 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10230
88faab89
GM
10231 * xfns.c (x_specified_cursor_type): New function.
10232 (x_set_cursor_type): Use it.
10233
10234 * buffer.h (struct buffer): Add cursor_type.
10235
d80f42b7
SM
102362000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10237
10238 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
10239 (print_partial_compiled_pattern, re_compile_fastmap):
10240 Handle new opcode.
d80f42b7
SM
10241 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10242 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10243 executing it as well as when popping it off the stack to find infinite
10244 loops in non-greedy repetition operators.
10245
89e80928
GM
102462000-03-26 Gerd Moellmann <gerd@gnu.org>
10247
3d4ff2dd
GM
10248 * doc.c (Qfunction_documentation): New variable.
10249 (syms_of_doc): Initialize Qfunction_documentation.
10250 (Fdocumentation): If FUNCTION is a symbol with non-nil
10251 `function-documentation' property, return a documentation derived
10252 from that.
10253
bd96bd79
GM
10254 * buffer.c (syms_of_buffer): Add default-cursor-type.
10255 (init_buffer_once): Don't let cursor_type have a local value
10256 in every buffer.
10257
19d1bc27
GM
10258 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10259 on buffer-local value of cursor_type.
10260 (x_draw_bar_cursor): Add parameter WIDTH.
10261
10262 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10263 (init_buffer_once): Set default cursor_type value to t.
10264 Mark cursor_type as local everywhere.
10265 (syms_of_buffer): New per-buffer variable cursor-type.
10266
89e80928
GM
10267 * buffer.h (struct buffer): Remove member local_var_flags,
10268 add local_flags.
10269 (MAX_BUFFER_LOCAL_VARS): New macro.
10270 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10271 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10272 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10273 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10274
52283633 10275 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
10276
10277 * category.c (Fset_category_table): Use new macros for per-buffer
10278 variables.
10279
10280 * buffer.c (buffer_permanent_local_flags): Make a char array.
10281 (max_buffer_local_idx): New variable.
10282 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10283 for new handling of per-buffer variables.
10284 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10285 (init_buffer_once): Initialize per-buffer vars differently.
10286 Set max_buffer_local_idx.
10287
10288 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10289 variables.
10290
52283633 10291 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
10292
10293 * data.c (do_symval_forwarding, store_symval_forwarding)
10294 (find_symbol_value, set_internal, default_value, Fset_default)
10295 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10296 per-buffer variables.
10297
10298 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10299
9a0dd3dc
GM
103002000-03-24 Gerd Moellmann <gerd@gnu.org>
10301
b68c375f
GM
10302 * xterm.c (x_term_init): Unblock input around call1 of
10303 Qvendor_specific_keysyms.
10304
9a0dd3dc
GM
10305 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10306 (find_defun_start): Consider an open parenthesis in column 0
10307 a defun start only if open_paren_in_column_0_is_defun_start is set.
10308 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10309
7973e637
SM
103102000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10311
10312 * eval.c (Fautoload): Add entry in load-history (if after dump).
10313 * lread.c (load-history): Update docstring.
10314
39210e90
GM
103152000-03-24 Gerd Moellmann <gerd@gnu.org>
10316
10317 * indent.c (Fvertical_motion): Always use the current buffer.
10318 Temporarily change the window's buffer, if necessary.
10319
72db3ab5
GM
103202000-03-23 Gerd Moellmann <gerd@gnu.org>
10321
10322 * xterm.c (fast_find_position): Make sure not to consider rows
10323 not visible in the window.
10324
990b2375
SM
103252000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10326
10327 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10328 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10329
ff4df011
JR
103302000-03-22 Jason Rumney <jasonr@gnu.org>
10331
10332 * w32menu.c (single_submenu): Set help string to NULL if none.
10333 (w32_menu_show): Set help string correctly.
10334 (add-menu-item): Set help string in MIIM_DATA for menu item.
10335 Load SetMenuItemInfoA explicitly.
10336 (w32_menu_display_help): New function.
427ec082 10337
ff4df011
JR
10338 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10339 (QCdata): Moved to xdisp.c.
10340
10341 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10342 (Vw32_charset_to_codepage_alist): Removed.
10343 (Vw32_charset_info_alist): New variable.
52283633
SM
10344 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10345 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10346 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10347 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10348 with TODO comment.
10349 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10350 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10351 Define Vw32_charset_info_alist and w32_charset symbols.
10352
103532000-03-22 Jason Rumney <jasonr@gnu.org>
10354
10355 * makefile.nt (w32bdf.obj): Update dependencies.
10356
10357 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10358
10359 * w32fns.c: Include fontset.h after dispextern.h.
10360 (Fx_create_frame): Do not create fontset.
10361 (w32_load_system_font): Doc fix.
10362 (Fx_close_connection): Free full_name if it is not shared.
10363
10364 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10365 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10366 Callers updated.
ff4df011
JR
10367 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10368 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10369 (w32_font_is_double_byte): New function, needs body.
10370 (x_append_glyph): Set glyph->glyph_not_available_p.
10371 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10372 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10373 character, convert it to a unibyte character.
10374 (struct glyph_string): Delete member `charset'.
10375 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10376 calculating it is found.
10377 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10378 the case that per char metric is not available correctly.
10379 (x_fill_glyph_string): Handle the case that the specific glyph is
10380 not available correctly.
10381 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10382 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10383 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10384 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10385 fontset. Don't call FS_LOAD_FONT.
10386
439d5cb4
KR
103872000-03-22 Ken Raeburn <raeburn@gnu.org>
10388
10389 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10390 (INT_LISPLIKE): New macro.
10391 (NULL_INTERVAL_P): Use it.
52283633
SM
10392 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10393 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10394 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10395
10396 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10397 explicit references to "parent" field of struct interval and
10398 associated unclean type conversions.
52283633
SM
10399 * intervals.c (create_root_interval, root_interval, rotate_right)
10400 (rotate_left, balance_possible_root_interval, split_interval_right)
10401 (split_interval_left, interval_start_pos, find_interval)
10402 (next_interval, previous_interval, update_interval)
10403 (adjust_intervals_for_insertion, delete_node, delete_interval)
10404 (adjust_intervals_for_deletion, merge_interval_right)
10405 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10406 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10407 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10408 Likewise.
10409 * syntax.c (update_syntax_table): Likewise.
10410
10411 * intervals.c (reproduce_tree_obj): New function, like
10412 reproduce_tree but takes a Lisp_Object for the parent. Declare
10413 with prototype.
10414 (graft_intervals_into_buffer): Use it when appropriate.
10415 (reproduce_tree): Declare with prototype.
10416 (balance_possible_root_interval): Check that the parent is a lisp
10417 object before trying to examine its type.
10418
ee1c5b21
GM
104192000-03-22 Gerd Moellmann <gerd@gnu.org>
10420
10421 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10422 as strings only if both are known to be strings.
10423
10424 * s/openbsd.h (LIBS_TERMCAP): Undef.
10425
1fb352e0
SM
104262000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10427
10428 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10429 definitions for non-Emacs compilation.
10430 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10431 outside of `#ifdef emacs'.
10432 (print_partial_compiled_pattern): Update.
10433 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10434 (re_compile_fastmap): Merge handling of charset and charset_not (for
10435 emacs and non-emacs compilation as well).
10436 Similarly for (not)categoryspec and (not)syntaxspec.
10437 Don't use the fastmap when reaching `anychar' since the added
10438 complexity is not justified.
10439 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10440 and (not)syntaxspec. Merge (not)categoryspec.
10441
fdaa1f77
KH
104422000-03-22 Kenichi Handa <handa@etl.go.jp>
10443
52283633
SM
10444 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10445 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10446 --without-x.
fdaa1f77 10447
d152fb46
DL
104482000-03-21 Dave Love <fx@gnu.org>
10449
10450 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10451 doc string.
10452
d2cafc8c
GM
104532000-03-21 Gerd Moellmann <gerd@gnu.org>
10454
10455 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10456 (lface_fully_specified_p): Don't check contents of
10457 LFACE_FONT_INDEX because that attribute is optional.
10458 (realize_x_face): Remove now unwarranted xassert.
10459
9111d4b5
KH
104602000-03-21 Kenichi HANDA <handa@etl.go.jp>
10461
10462 The following changes are to make font selection based on
10463 characters, not charset. In addition, they recover fontset
10464 facilities while utilizing the new font selection mechanism.
10465
6c4bfdc0
KH
10466 * Makefile.in (fontset.o): Depend on dispextern.h.
10467
10468 * alloc.c (mark_face_cache): Don't mark face->registry.
10469
9111d4b5
KH
10470 * dispextern.h (struct glyph): New member glyph_not_available_p.
10471 Use 22 bits for face_id.
10472 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10473 (struct face): Delete member registry, new member ascii_face.
10474 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10475 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10476 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10477 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10478
10479 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10480 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10481 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10482 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10483 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10484 (fs_free_face_fontset, fontset_font_pattern)
10485 (face_suitable_for_char_p, face_for_char)
10486 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10487 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10488 (FS_LOAD_FACE_FONT): New macro.
10489
10490 * fontset.c: All codes rewritten or adjusted for the change of
10491 fontset implementation. Now fontset is represented by char table.
52283633
SM
10492 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10493 Variables removed.
9111d4b5 10494 (my_strcasecmp): Function removed.
52283633 10495 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10496 (AREF, ASIZE): New macros.
52283633
SM
10497 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10498 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10499 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10500 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10501 (fontset_id_valid_p, font_family_registry, fontset_name)
10502 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10503 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10504 New functions.
10505 (fs_load_font): New arg FACE. Caller changed.
10506 (fs_query_fontset): Argument changed. Caller changed.
10507 (Fquery_fontset): call fs_query_fontset.
10508 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10509 Functions removed.
52283633
SM
10510 (clear_fontset_elements, check_registry_encoding)
10511 (check_fontset_name): New functions.
9111d4b5
KH
10512 (syms_of_fontset): Set char-table-extra-slots property of fontset
10513 to 3. Staticpro and initialize Vfontset_table and
10514 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10515
10516 * frame.h (struct frame): Member `fontset_data' removed.
10517 (FRAME_FONTSET_DATA): Macro removed.
10518
10519 * frame.c (make_frame): Don't allocate f->fontset_data.
10520 (Fdelete_frame): Don't free f->fontset_data.
10521
6c4bfdc0
KH
10522 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10523
9111d4b5
KH
10524 * xdisp.c (charset_at_position): Function removed.
10525 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10526 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10527 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10528 Likewise.
10529 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10530 FACE_FOR_CHARSET.
52283633
SM
10531 (get_next_display_element, append_space)
10532 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10533
10534 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10535 Variables removed.
10536 (clear_font_table, frame_update_line_height, load_face_font):
10537 Adjusted for the change of fontset implementation.
10538 (load_face_fontset_font): Function removed.
10539 (pixel_point_size): New function.
10540 (font_list): Argument type changed. Caller changed.
10541 (LFACE_FONT): New macro.
10542 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10543 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10544 Lisp_Object. Determine the font name by actually loading a font
10545 by the specified pattern. Set LFACE_FONT (lface) to the specified
10546 pattern. Even if a font is not found, don't try alternatives.
10547 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10548 (set_font_frame_param): If `font' is specified in lface, use it.
10549 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10550 (lface_same_font_attributes_p): Likewise.
10551 (make_realized_face): Arguent changed. Caller changed. Set
10552 face->ascii_face to face itself.
10553 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10554 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10555 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10556 (free_realized_multibyte_face): New function.
10557 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10558 changed. Caller changed.
10559 (try_font_list): Argument type changed.
10560 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10561 (choose_face_font): Argument changed. Handle fontset properly.
10562 (choose_face_fontset_font): Function removed.
10563 (realize_default_face, realize_named_face): Don't remove the
10564 former face here.
10565 (realize_face): Argument changed. Caller changed. Remove face
52283633 10566 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10567 (realize_x_face): Argument changed. Caller changed. For a
10568 multibyte character, share fontset with base_face. For a single
52283633 10569 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10570 (realize_tty_face): Argument changed. Caller changed.
10571 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10572 (face_at_buffer_position): Don't check multibyte_p for returning
10573 DEFAULT_FACE_ID.
10574 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10575 FACE_SUITABLE_FOR_CHARSET_P.
10576 (syms_of_xfaces): Remove code for Qx_charset_registry and
10577 Vface_default_registry.
10578
6c4bfdc0
KH
10579 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10580 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10581 (x_per_char_metric): Don't try FONT->default_char. Even if
10582 pcm->width is zero, glyph bits may exist.
10583 (x_encode_char): Always initialize char2b->byte1.
10584 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10585 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10586 (x_append_glyph): Set glyph->glyph_not_available_p.
10587 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10588 it->charset. Handle the case that per char metric is not
10589 available. If it->multibyte_p is zero and it->c is a multibyte
10590 character, convert it to a unibyte character.
10591 (struct glyph_string): Delete member `charset'.
10592 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10593 the case that per char metric is not available correctly.
10594 (x_fill_glyph_string): Handle the case that the specific glyph is
10595 not available correctly.
10596 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10597 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10598 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10599 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10600 fontset. Don't call FS_LOAD_FONT.
10601
10602 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10603 (x_create_tip_frame): Likewise.
10604 (Fx_close_connection): Free full_name of font_info.
10605
10606 * fns.c (optimize_sub_char_table): New function.
10607 (Foptimize_char_table): New function.
10608 (syms_of_fns): Defsubr Soptimize_char_table.
10609
b33dd3b0
GM
106102000-03-20 Gerd Moellmann <gerd@gnu.org>
10611
10612 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10613 only if buffer is displayed in some window.
10614
10615 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10616 (try_window_reusing_current_matrix): Don't call scroll run
10617 function if run's current and desired position are the same;
10618 this prevents cursor flickering.
10619
4e8a9132
SM
106202000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10621
10622 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10623
10624 * regex.c (RE_STRING_CHAR): New macro.
10625 (GET_CHAR_AFER_2): Remove.
10626 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10627 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10628 (print_partial_compiled_pattern, re_compile_fastmap)
10629 (re_match_2_internal): Remove on_failure_jump_exclusive.
10630 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10631 optimization only need to work for * (ie. can use of_keep_string_jump).
10632 Remove the special case for .*\n since it is now covered by the general
10633 optimization.
10634 (re_search_2): Don't bother with `room'.
10635 (skip_one_char): New function.
10636 (skip_noops): Simplify since `memory' is not needed any more.
10637 (mutually_exclusive_p): Restructure slightly to use `switch' and
10638 add handling for "all" remaining cases.
10639 (re_match_2_internal): Change on_failure_jump_smart to use
10640 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10641 rather than on_failure_jump_exclusive.
10642
2136fdd4
GM
106432000-03-19 Gerd Moellmann <gerd@gnu.org>
10644
10645 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10646 number of bits per RGB because it's everywhere used as the depth
10647 of the visual.
10648
10649 * term.c (calculate_costs): Remove code dealing with X frames.
10650
18e21ce8 106512000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10652
10653 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10654
d7b511c4
GM
106552000-03-18 Gerd Moellmann <gerd@gnu.org>
10656
10657 * lread.c (read_integer): Unread the last char not consumed.
10658
16b5d424
GM
106592000-03-17 Gerd Moellmann <gerd@gnu.org>
10660
10661 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10662 which are in the process of being deleted.
16b5d424 10663
1fa28578
GM
106642000-03-16 Gerd Moellmann <gerd@gnu.org>
10665
83488cce
GM
10666 * Makefile.in (mostlyclean): Add `*.core'.
10667 (clean): Add `bootstrap-emacs'.
10668
1fa28578
GM
10669 * lread.c (read_integer): New function.
10670 (read1): Support read syntax #o, #x, #b, #r.
10671
99633e97
SM
106722000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10673
1fa28578
GM
10674 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10675 make sure POINTER_TO_OFFSET gives the same value before and after
10676 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10677 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10678 (debug): Now only active if > 0 rather than if != 0.
10679 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10680 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10681 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10682 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10683 (store_op1, store_op2, insert_op1, insert_op2)
10684 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10685 (group_in_compile_stack): Move to after its arg's types are
10686 declared and add a prototype.
99633e97 10687 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10688 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10689 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10690 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10691 indentation of the greedy-op and shy-group code.
99633e97
SM
10692 (at_(beg|end)line_loc_p): Fix argument's types.
10693 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10694 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10695 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10696 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10697 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10698 QUIT unconditionally.
99633e97 10699
699238d9
GM
107002000-03-15 Gerd Moellmann <gerd@gnu.org>
10701
10702 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10703 a sole completion.
10704
10705 * process.c (send_process): Add a hint that the function
10706 can call Lisp code to its comment.
10707
10708 * lread.c (load_dangerous_libraries): New variable.
10709 (Vbytecomp_version_regexp): New variable.
10710 (safe_to_load_p): New function.
10711 (Fload): Handle files not compiled with Emacs specially.
10712 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10713
34e23e5a
GM
107142000-03-14 Gerd Moellmann <gerd@gnu.org>
10715
9c763cca
GM
10716 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10717
10718 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10719 support functions only if HAVE_X11R6_XIM is defined.
10720 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10721
10722 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10723
10724 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10725 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10726 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10727
10728 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10729 (HAVE_X11R6_XIM): Define.
10730
10731 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10732
34e23e5a
GM
10733 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10734 If set, call XSynchronize.
10735
66f0296e
SM
107362000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10737
34e23e5a
GM
10738 * regex.c: Declare a new type `re_char' used throughout the code
10739 for the string char type. It's `const unsigned char' to match the
10740 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10741 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10742 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10743 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10744 code duplication.
66f0296e
SM
10745
10746 * charset.h (GET_CHAR_AFTER_2): Remove.
10747 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10748
854a025c
KR
107492000-03-12 Ken Raeburn <raeburn@gnu.org>
10750
10751 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10752 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10753 of them try to use backquotes.
10754
b9d2c7e2
DL
107552000-03-12 Dave Love <fx@gnu.org>
10756
10757 * unexelf.c: Restore changes of 1999-10-19.
10758 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10759 fix its type and alignment; copy it from current process.
10760
5e5dff44
GM
107612000-03-12 Gerd Moellmann <gerd@gnu.org>
10762
9b2f3c38
GM
10763 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10764 has been found. Fix bug not computing timer's predecessor.
10765
427ec082 10766 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10767 file name.
10768
e1cff360
GM
10769 * window.c (Fsave_window_excursion): Doc fix.
10770
52283633 10771 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10772
e411ce4b
EZ
107732000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10774
10775 * msdos.c (vga_installed): New function, code moved from
10776 dos_set_window_size.
10777 (Qbar, Qcursor_type, outside_cursor): New variables.
10778 (syms_of_msdos): Intern and staticpro them.
10779 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10780 shape used outside Emacs when called for the first time.
10781 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10782 cursor shape used outside Emacs.
10783 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10784 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10785 type has changed.
10786 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10787 parameters specify the cursor. Make qreverse a global
10788 variable (renamed to Qreverse).
10789
80460654
GM
107902000-03-09 Gerd Moellmann <gerd@gnu.org>
10791
10792 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10793
95cd4c40
SM
107942000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10795
10796 This is a big redesign of failure-stack and register handling, prompted
10797 by bugs revealed when trying to add shy-groups. Overall, what happened
10798 is that loops are now structured a little differently, groups can be
10799 shy and the code is a little simpler.
10800
10801 * regex.h: Update the copyright.
10802 (RE_SHY_GROUPS): New value.
10803 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10804 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10805
80460654
GM
10806 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10807 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10808 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10809 for (start|stop)_memory since they now only take one argument (the
10810 second has becomes unnecessary).
52283633 10811 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10812 (print_compiled_pattern): Use %ld to printf long ints and flush to
10813 make debugging a little easier.
95cd4c40
SM
10814 (union fail_stack_elt): Make the integer unsigned.
10815 (struct fail_stack_type): Add a `frame' element.
10816 (INIT_FAIL_STACK): Init `frame' as well.
10817 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10818 (DEBUG_PUSH, DEBUG_POP): Remove.
10819 (NUM_REG_ITEMS): Remove.
10820 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10821 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10822 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10823 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10824 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10825 New macros.
80460654
GM
10826 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10827 address pushed is not the destination of the jump but the source
10828 of it instead.
95cd4c40
SM
10829 (NUM_FAILURE_ITEMS): Remove.
10830 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10831 registers before the actual failure point). Don't hardcode any
10832 meaning for str==NULL anymore.
95cd4c40 10833 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10834 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10835 Remove.
95cd4c40
SM
10836 (REG_UNSET_VALUE): Use NULL (why not?).
10837 (compile_range): Remove declaration since it doesn't exist.
10838 (struct compile_stack_elt_t): Remove inner_group_offset.
10839 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10840 (regex_grow_registers): Remove dead code.
10841 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10842 (regex_compile): Add shy-groups Change loops to use
10843 on_failure_jump_smart&jump instead of
10844 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10845 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10846 variable to me). Use `jump' instead of `jump_past_alt' and don't
10847 bother with push_dummy_failure in alternatives since it is now
10848 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10849 emacs' for (re)allocating the stack.
10850 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10851 from loop when bufp->can_be_null rather than jumping to `done'.
10852 Avoid jumping backwards so as to ensure termination. Use
10853 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10854 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10855 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10856 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10857 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10858 (lowest_active_reg, highest_active_reg)
10859 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10860 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10861 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10862 variables. Push register (in `start_memory') on the stack rather
10863 than storing it in old_reg(start|end). Remove the cycle detection
10864 from `stop_memory', replaced by the use of on_failure_jump_loop
10865 for greedy loops. Add code for the new on_failure_jump_<foo>.
10866 Remove ad-hoc code in `on_failure_jump' to push more registers in
10867 the case of a loop. Take out code from `maybe_pop_jump' into
10868 separate functions and adapt it to the semantics of
10869 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10870 and push_dummy_failure. Remove dummy_failure handling and
10871 handling of `failures to jump to on_failure_jump' (this last one
10872 was already dead code, it seems).
10873 (group_match_null_string_p, alt_match_null_string_p)
10874 (common_op_match_null_string_p): Remove.
95cd4c40 10875
7397acc4
DL
108762000-03-08 Dave Love <fx@gnu.org>
10877
10878 * config.in: Don't depend on __STDC__ for volatile.
10879 Add POINTER_TYPE, PTR, PROTOTYPES.
10880
10881 * hftctl.c, strftime.c: Use PROTOTYPES.
10882 * eval.c (find_handler_clause): Likewise.
10883
10884 * mem-limits.h: Use POINTER_TYPE.
10885
10886 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10887 (memory_warnings): Declare using POINTER_TYPE.
10888
5e91ff9e
GM
108892000-03-08 Gerd Moellmann <gerd@gnu.org>
10890
feab4fba
GM
10891 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10892
52283633 10893 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10894
5e91ff9e
GM
10895 * xfns.c: Remove obsolete code in #if 0.
10896 (Fx_focus_frame): New function.
10897
a735b7e1
KH
108982000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10899
10900 * coding.c (coding_category_name): Add coding-category-utf-8,
10901 coding-category-utf-16-be, coding-category-utf-16-le.
10902 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10903 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10904 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10905 (detect_coding_utf_8): New function.
10906 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10907 UTF_16_LOW_SURROGATE_P): New macros.
10908 (detect_coding_utf_16): New function
10909 (detect_coding_mask): When priorities are specified, skip any
10910 categories that have `nil' coding-system. Fix bug of returning
10911 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10912 returns a mask not set in PRIORITIES.
10913 (detect_eol_type_in_2_octet_form): New function.
10914 (detect_eol): selects detect_eol_type_XXX to call according to
10915 cooding->category_idx.
10916 (detect_coding_system): Remove `nil' coding-system in the result.
10917 (Fupdate_coding_systems_internal): Update all coding-categories.
10918
52283633
SM
10919 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10920 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10921 New macros.
10922 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10923 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10924 (CODING_CATEGORY_IDX_UTF_16_LE)
10925 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10926 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10927 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10928 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10929
9994cc69
GM
109302000-03-07 Gerd Moellmann <gerd@gnu.org>
10931
e9b4e5ff
GM
10932 * doc.c (Fdocumentation_property): If value is not a string,
10933 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10934
f7daf1e1
GM
10935 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10936 close the display with XtCloseDisplay. This caused a bus error
10937 on OpenWindows.
10938
9994cc69
GM
10939 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10940 complete but not unique.
10941
4336c705
GM
109422000-03-06 Gerd Moellmann <gerd@gnu.org>
10943
18bb0684
GM
10944 * process.c (send_process): Remove local variable `procname' that
10945 might become invalid when a GC happens. Instead, access the
10946 process name slot directly.
10947
4336c705
GM
10948 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10949 orig_height if set.
10950
10951 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10952 orig_height if set.
10953
515d0d0e
EZ
109542000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10955
10956 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10957 glyph matrices have been freed.
10958
100b3cbb
GM
109592000-03-05 Gerd Moellmann <gerd@gnu.org>
10960
50df5e5a 10961 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10962 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10963
10964 * xfns.c (QCdata): Moved to xdisp.c.
10965
10966 * xdisp.c (QCdata): Moved here from xfns.c.
10967 (syms_of_xdisp): Initialize QCdata.
10968
10969 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10970
10971 * window.c (coordinates_in_window): Use
10972 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10973 FRAME_INTERNAL_BORDER_WIDTH.
10974
100b3cbb 10975 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10976 it is obviously invalid.
100b3cbb
GM
10977
10978 * xterm.c (x_term_init): Create a colormap if not using the
10979 default visual.
10980
10981 * xterm.h (select_visual): Change prototype.
10982
10983 * xfns.c (select_visual): Rewritten. Recognize user-specified
10984 visual classes.
10985 (visual_classes): New variable.
10986
64d739c4
GM
109872000-03-04 Gerd Moellmann <gerd@gnu.org>
10988
10989 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10990 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10991 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10992 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10993 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10994 XtNcolormap resources.
10995 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10996 (Fx_create_frame): Initialize color members of x_output structure.
10997 (xpm_load): Pass colormap to XPM lib.
10998
10999 * xfaces.c (x_free_colors): Access colormap of frame using
11000 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11001 when default colormap is used.
11002
11003 * xterm.c (x_term_init): Set Colormap member of x_display_info
11004 structure. Copy colormap if resource `privateColormap' is
11005 specified (PseudoColor only).
11006 (x_setup_relief_color): Access colormap of frame using
11007 FRAME_X_COLORMAP.
11008
11009 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11010 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11011
c3cee013
JR
110122000-03-04 Jason Rumney <jasonr@gnu.org>
11013
11014 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11015 other non-platform-specific equivalents.
64d739c4 11016 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
11017 specific functions and macros as their w32 equivalents where
11018 non-platform-specifics are not available.
11019 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11020 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11021 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11022 (frame_update_line_height): Use macros to access f->output_data.
11023 (defined_color): Remove FIXME comments; fixed.
11024 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11025 into #ifdef blocks. Add WINDOWSNT blocks.
11026 (Fx_list_fonts): Use macros for accessing font data.
11027 (set_lface_from_font_name): Different default fonts for X and
11028 WINDOWSNT.
11029 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11030 scalable for backward compatibility.
64d739c4 11031 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
11032 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11033
64d739c4 11034 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
11035 syms_of_w32faces.
11036
11037 * makefile.nt (w32faces.obj): Remove.
11038 (xfaces.obj): Add.
11039
807cc41c
JR
110402000-03-03 Jason Rumney <jasonr@gnu.org>
11041
11042 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11043 correct parameters.
11044
0007072a
KR
110452000-03-03 Ken Raeburn <raeburn@gnu.org>
11046
11047 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11048 standard ELF definitions here if the system header does not.
11049
71a6ba55
GM
110502000-03-03 Gerd Moellmann <gerd@gnu.org>
11051
11052 * xterm.c (PER_CHAR_METRIC): Removed.
11053 (x_per_char_metric_1, x_default_char): New functions.
11054 (x_per_char_metric): If font's default char is invalid, return
11055 metrics of a suitably chosen usable default char.
11056 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
11057 char, replace occurrences of unprintable chars with a suitably
11058 chosen usable default char.
71a6ba55 11059
900fa1f1
GM
110602000-03-02 Gerd Moellmann <gerd@gnu.org>
11061
42f55fe0
GM
11062 * xterm.c (note_mouse_highlight): Return quickly if frame's
11063 glyph matrices have been freed.
11064
11065 * dispnew.c (free_glyphs): Block input while freeing matrices.
11066
900fa1f1
GM
11067 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11068
52283633
SM
11069 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11070 Use x_free_colors.
900fa1f1
GM
11071
11072 * dispextern.h (x_free_colors): Add prototype.
11073
11074 * xfaces.c (x_free_colors): New function.
11075 (unload_color, free_face_colors): Use it.
11076
2f950292
EZ
110772000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11078
11079 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11080
11081 * window.c [MSDOS]: Include msdos.h.
11082
54d04320
DL
110832000-03-02 Dave Love <fx@gnu.org>
11084
11085 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11086
11087 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11088 set C_OPTIMIZE_SWITCH for gcc.
11089
0ba93ac4
KH
110902000-03-02 Kenichi Handa <handa@etl.go.jp>
11091
11092 * coding.c (coding_save_composition): Be sure to allocate
11093 composition data area in coding even if there's no composition in
11094 the current run.
11095
a2bc11d4
JR
110962000-03-01 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32term.c: Equivalent changes to those made to xterm.c on
11099 2000-02-25 and 2000-02-24.
11100
11101 * w32fns.c: Equivalent changes to those made to xfns.c on
11102 2000-02-25 and 2000-02-21.
11103
11104 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11105 correct line-end convention is followed.
11106
11107 * w32menu.c [HAVE_BOXES]: Remove #undef.
11108 (single_keymap_panes): Remove code for simulating checkmarks.
11109 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11110 Remove code for drawing simulated checkmarks.
11111 (w32_menu_show): make unibyte help string correctly.
11112 (add_menu_item): draw standard Windows checkmarks. Draw radio
11113 buttons as radio buttons if possible.
11114
72d19d75
GM
111152000-03-01 Gerd Moellmann <gerd@gnu.org>
11116
2df636f4
GM
11117 * sysdep.c (start_of_text): Don't define this function for NetBSD
11118 with ELF.
11119
427ec082 11120 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
11121 Don't define.
11122 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11123 (LINKER): Don't undef if __NetBSD__ is defined.
11124
11125 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11126
11127 * fileio.c [__NetBSD__]: Define `unix'.
11128
72d19d75
GM
11129 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11130
ed4d0512
GM
111312000-02-29 Gerd Moellmann <gerd@gnu.org>
11132
50b1039f
GM
11133 * atimer.c (start_atimer): Don't abort when timers are stopped.
11134 (append_atimer_lists): New function.
11135 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11136 arbitrary lists of stopped and running atimers.
11137
ed4d0512
GM
11138 * atimer.c (cancel_atimer): Handle canceling an atimer when
11139 some timers are stopped.
11140
11141 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11142 after canceling it.
11143
11144 * fns.c (maybe_resize_hash_table): Handle case of new size
11145 coming out as being the same as old size.
11146
387023ee
JR
111472000-02-27 Jason Rumney <jasonr@gnu.org>
11148
11149 * makefile.nt: Add atimer.h to dependencies.
11150 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11151 * w32console.c: Only disable window system features for dispextern.h
11152 (initialize_w32_display): Build a display info for the console.
11153 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11154 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11155 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11156 as 2 button mice.
11157 * w32gui.h (struct W32FontStruct): Revert last change after change
11158 to xdisp.c.
11159 * w32menu.c (single_submenu): Set up help string.
11160 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11161 (w32_dialog_show): Set up help string.
11162 * w32term.c (w32_display_info_for_display): Remove unused function.
11163 (w32_draw_bitmap): Use pre-built bitmaps.
11164 (w32_initialize_display_info): New function to initialize parts of
11165 display info that are common to both GUI and console frames.
11166 (w32_term_init): Use w32_initialize_display_info. Do not set
11167 Vw32_num_mouse_buttons here, as it is not called for console
11168 frames. Build bitmaps for indicating truncated lines etc.
11169 (x_delete_display): Destroy pre-built bitmaps.
11170 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11171 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11172
4516715a
DL
111732000-02-27 Dave Love <fx@gnu.org>
11174
11175 * lisp.h: Add a bunch of prototypes.
11176
171ca836
KH
111772000-02-26 Kenichi Handa <handa@etl.go.jp>
11178
11179 * keyboard.c (read_char): Set `usec' correctly.
11180
4013921d
KH
111812000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11182
11183 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11184 `lambda', set reg[RRR] to the map index.
11185 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11186 reg[RRR] to 0. Otherwise, set it to -1.
11187
9244a058
GM
111882000-02-25 Gerd Moellmann <gerd@gnu.org>
11189
2df636f4 11190 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 11191
18e21ce8 111922000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 11193
f43d79c1
GM
11194 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11195 and contains a `:', prepend `/:'.
11196
11197 * window.c (select_window_1): If selected_window is nil,
11198 don't "swap out" the buffer's point.
11199 (Fset_window_configuration): Set selected_window to nil
11200 before calling Fselect_window.
11201 (unshow_buffer): Don't set point in buffer from window's point
11202 if another more recently selected window also shows the buffer.
11203
bed0c171
GM
112042000-02-25 Gerd Moellmann <gerd@gnu.org>
11205
449c3c52
GM
11206 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11207
f5b58615
GM
11208 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11209 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
11210 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11211 New variables.
f5b58615
GM
11212 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11213 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11214 (hide_busy_cursor): New functions.
11215 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11216
11217 * minibuf.c (read_minibuf): Cancel busy-cursor.
11218
11219 * keyboard.c (command_loop_1): Call start_busy_cursor before
11220 Fcommand_execute and cancel_busy_cursor after it.
11221 (timer_check): Remove busy-cursor code.
11222 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11223 cursor timer.
11224
11225 * process.c (wait_reading_process_input): Remove busy-cursor code.
11226
11227 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11228 Fx_hide_busy_cursor.
11229
11230 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11231 Remove prototyoes.
11232 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11233
11234 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11235
11236 * xterm.c (XTread_socket): Remove busy-cursor code.
11237
4eb8436f
GM
11238 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11239 (build_frame_matrix_from_leaf_window): Put code handling
11240 glyph row's not being a slice of a frame row in #if 0.
11241 (sync_window_with_frame_matrix_rows): New function.
11242 (frame_row_to_window): New function.
11243 (mirror_line_dance): Handle copies between windows.
11244
3cb65b0e
GM
11245 * lread.c (Fload): Use `xfree' instead of `free'.
11246 (init_obarray): Use `xmalloc' instead of `malloc'.
11247
bed0c171
GM
11248 * window.c (Fset_window_buffer): Set WINDOW to the window
11249 after decoding.
2add4349
GM
11250 (coordinates_in_window): Take frame's internal border width
11251 into account.
bed0c171 11252
42088c12
GM
112532000-02-24 Gerd Moellmann <gerd@gnu.org>
11254
11255 * xterm.c (x_display_and_set_cursor): Display cursor of
11256 non-selected windows depending on the setting of
11257 cursor_in_non_selected_windows.
11258
11259 * xdisp.c (cursor_in_non_selected_windows): New variable.
11260 (syms_of_xdisp): DEFVAR_BOOL it.
11261
d1e103b2
GM
112622000-02-23 Gerd Moellmann <gerd@gnu.org>
11263
723e779c
GM
11264 * data.c (Fstring_to_number): If number is greater than what
11265 fits into an integer, return a float.
11266
d1e103b2
GM
11267 * eval.c (specbind): Remove references to
11268 keyword_symbols_constant_flag.
11269
11270 * data.c (keyword_symbols_constant_flag): Removed.
11271 (Fmakunbound, set_internal, syms_of_data): Remove references to
11272 keyword_symbols_constant_flag.
11273
11274 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11275
214f877f
KH
112762000-02-23 Kenichi Handa <handa@etl.go.jp>
11277
11278 * syntax.c (multibyte_syntax_as_symbol): New variable.
11279 (syms_of_syntax): Declare it as a Lisp variable.
11280 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11281 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11282 nonzero, treat all multibyte characters as symbol.
52283633 11283 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 11284
130adcb7
EZ
112852000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11286
3cb65b0e 11287 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 11288 a deleted frame.
130adcb7 11289
17cbbf95
GM
112902000-02-21 Gerd Moellmann <gerd@gnu.org>
11291
11292 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11293
11294 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11295 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11296
beb0bc36
DL
112972000-02-21 Dave Love <fx@gnu.org>
11298
11299 * frame.c (Vmouse_position_function): New variable.
11300 (Fmouse_position): Use it.
11301 (syms_of_frame): Install it.
11302
11303 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11304
1d92afcd
GM
113052000-02-20 Gerd Moellmann <gerd@gnu.org>
11306
11307 * fileio.c (Finsert_file_contents): Unbind the binding of
11308 standard-output done by temp_output_buffer_setup.
329eed9f
GM
11309
11310 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11311 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11312 (specbind, unbind_to): Handle most common case of non-constant
11313 symbol with trivial value specially.
11314
11315 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11316
18e21ce8 113172000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11318
11319 * data.c (Fmake_variable_buffer_local): Doc fix.
11320 Init found_for_buffer to 0.
11321 (Fmake_variable_frame_local): If the variable has already
11322 been buffer-local, set the check_frame field.
11323
1d4311c3
EZ
113242000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11325
11326 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11327 produced for CODING_MODE_LAST_BLOCK requires.
11328
2dc95ddd
DL
113292000-02-18 Dave Love <fx@gnu.org>
11330
11331 * keyboard.c (echo_keystrokes): Remove declaration.
11332 (Vecho_keystrokes) New variable.
11333 (read_char, record_menu_key, read_key_sequence): Use it to allow
11334 use of float value.
11335 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11336
11337 * lread.c: Undef feature selection macros before defining.
11338
f0930f35
GM
113392000-02-18 Gerd Moellmann <gerd@gnu.org>
11340
11341 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11342 for symbols other than the symbol in question.
11343
e3d4de90
DL
113442000-02-17 Dave Love <fx@gnu.org>
11345
11346 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11347
0b378936
GM
113482000-02-17 Gerd Moellmann <gerd@gnu.org>
11349
d621caf7
GM
11350 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11351
0b378936
GM
11352 * alloc.c (enum mem_type): Compile unconditionally.
11353
3b451f74
EZ
113542000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11355
11356 * xfaces.c (tty_defined_color): Don't return faulire indication
11357 for unspecified-fg and unspecified-bg pseudo-colors.
11358
10689a01
GM
113592000-02-17 Gerd Moellmann <gerd@gnu.org>
11360
1216f5e4
GM
11361 * alloc.c (mark_object): Don't mark symbol names in pure space.
11362 (gc_sweep): Don't unmark symbol names in pure space.
11363
11364 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11365 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11366 [GC_MARK_STACK]: New defines.
427ec082 11367 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11368 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11369
11370 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11371
11372 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11373 allocate_buffer instead of xmalloc.
11374
11375 * alloc.c (toplevel): Include setjmp.h.
11376 (PURE_POINTER_P): New define.
11377 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11378 (Vdead) [GC_MARK_STACK]: New variable.
11379 (lisp_malloc): Add parameter TYPE, call mem_insert if
11380 GC_MARK_STACK is defined.
11381 (allocate_buffer): New function.
427ec082 11382 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11383 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11384 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11385 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11386 (MEM_NIL) [GC_MARK_STACK]: New define.
11387 (struct mem_node) [GC_MARK_STACK]: New structure.
11388 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11389 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11390 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11391 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11392 (mark_stack) [GC_MARK_STACK]: New functions.
11393 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11394 (clear_marks): Removed.
11395 (gc_sweep): Set free conses' car, free floats' type, free
11396 symbols' function to Vdead. Use lisp_free to free buffers.
11397 (init_alloc_once): Initialize Vdead.
11398 (survives_gc_p): Return non-zero for pure objects.
11399
11400 * alloc.c: Add comments throughout the file.
11401
2503c8b1
GM
11402 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11403 that unblocks alarms.
11404
8389e1e2
GM
11405 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11406 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11407 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11408
10689a01 11409 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11410
bfc17d18
KH
114112000-02-17 Kenichi Handa <handa@etl.go.jp>
11412
4a09dee0
KH
11413 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11414 avoid infinite error signaling. Allocate sufficient memory for
11415 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11416
2b927d02
SM
114172000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11418
11419 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11420 depends on the previous behavior.
11421
b49cb764
GM
114222000-02-16 Gerd Moellmann <gerd@gnu.org>
11423
11424 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11425
99e95407
GM
114262000-02-15 Gerd Moellmann <gerd@gnu.org>
11427
11428 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11429
11430 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11431 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11432 write(2).
11433
6ffd3cf7
RS
114342000-02-15 Richard M. Stallman <rms@gnu.org>
11435
11436 * data.c (set_internal): Don't make variable buffer-local
11437 if within a let-binding for the same buffer.
11438 (let_shadows_buffer_binding_p): New function.
11439
11440 * eval.c (specbind): For buffer-local value,
11441 record the current buffer also.
11442 (unbind_to): Cope with that change.
11443
cad53475
GM
114442000-02-15 Gerd Moellmann <gerd@gnu.org>
11445
11446 * window.c (Fsave_window_excursion): Doc fix.
11447
1aa963c8
SM
114482000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11449
11450 * syntax.c (back_comment): Make sure we only consider comment-starters
11451 of the relevant style and return -1 in case of a failure to find the
11452 beginning of the comment.
11453 (Fforward_comment): If back_comment fails, go back to the position just
11454 after the comment-end.
11455 (scan_lists): Add comment describing a very minor bug.
11456
b9b84fd3
SM
114572000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11458
11459 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11460 `completion-regexp-list' in the docstring.
11461
3a28db80
DL
114622000-02-14 Dave Love <fx@gnu.org>
11463
11464 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11465
fb4a568d
SM
114662000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11467
11468 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11469 to Emacs' syntax. Also fix the comment about set/not-set meanings
11470 since Emacs syntax is not the value 0 any more.
11471 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11472 since it's now part of RE_SYNTAX_EMACS.
11473
1063ebb5
DL
114742000-02-12 Dave Love <fx@gnu.org>
11475
52283633 11476 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11477
fb07a302
GM
114782000-02-12 Gerd Moellmann <gerd@gnu.org>
11479
11480 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11481
aaf2320c
DL
114822000-02-12 Dave Love <fx@gnu.org>
11483
11484 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11485
11486 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11487 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11488 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11489
11490 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11491
11492 * s/nextstep.h: Don't define HAVE_ALLOCA.
11493
11494 * config.in: Add vfork bits.
11495
eedf8bde
GM
114962000-02-12 Gerd Moellmann <gerd@gnu.org>
11497
11498 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11499 unwind function to undo the effect of stopping atimers.
11500
52283633 11501 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11502
11503 * atimer.c (stopped_atimers): New variable.
11504 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11505 New functions.
11506
11507 * atimer.h (stop_other_atimers, run_all_atimers)
11508 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11509
eedf8bde
GM
11510 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11511
8476c2f8
KR
115122000-02-11 Ken Raeburn <raeburn@gnu.org>
11513
11514 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11515 library may depend on jpeg.
11516 (atimer.o): Depends on atimer.c.
11517
0e85e4a3
KH
115182000-02-11 Kenichi Handa <handa@etl.go.jp>
11519
11520 * insdel.c (del_range_1): Call update_compositions.
11521 (del_range_both): Call update_compositions just once..
11522
97fa0cc8
DL
115232000-02-10 Dave Love <fx@gnu.org>
11524
11525 * xfns.c (create_frame_xic): Fix initialization of automatic
11526 aggregates for pcc.
11527
25566a3c
KH
115282000-02-09 Kenichi Handa <handa@etl.go.jp>
11529
11530 * ccl.c (CCL_MAKE_CHAR): New macro.
11531 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11532 registers by CCL_MAKE_CHAR before calling translate_char.
11533 <CCL_TranslateCharacterConstTbl> Likewise.
11534
69da54ba
DL
115352000-02-08 Dave Love <fx@gnu.org>
11536
11537 * lread.c (__EXTENSIONS__): Define.
11538
f7136ee8
GM
115392000-02-08 Gerd Moellmann <gerd@gnu.org>
11540
11541 * puresize.h (BASE_PURESIZE): Increase to 650000.
11542
7768790b
EZ
115432000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11544
11545 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11546 the help message.
11547
38fd211b
EZ
115482000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11549
11550 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11551 md, mh, mb, mr, and me to the fake termcap entry.
11552
66e4690f
KR
115532000-02-06 Ken Raeburn <raeburn@gnu.org>
11554
11555 * sound.c (sound_cleanup): Don't call device close routine if the
11556 function pointer is null.
11557
a75dfea0
AI
115582000-02-06 Andrew Innes <andrewi@gnu.org>
11559
11560 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11561 around image definitions and prototypes.
11562 (gamma_correct) [WINDOWSNT]: New prototype.
11563
11564 * w32term.c (x_make_frame_visible): Replace call to
11565 input_poll_signal with poll_for_input.
11566
11567 * window.c [WINDOWSNT]: Include w32term.h.
11568
11569 * xdisp.c [WINDOWSNT]: Include w32term.h.
11570
11571 * makefile.nt: Add dependencies on w32gui.h.
11572 (OBJ1): Include atimer.obj.
11573 ($(BLD)\atimer.obj): New dependency rule.
11574
11575 * w32.c (sigmask): New function (does nothing).
11576 (sigunblock): Ditto.
11577
11578 * frame.c [WINDOWSNT]: Include w32term.h.
11579
11580 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11581
11582 * lread.c (syms_of_lread): Fix literal newlines.
11583
11584 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11585 the string constant limit (2048 bytes) in MSVC.
11586 (main): Ditto.
11587
59ddecde
GM
115882000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11589
52283633 11590 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11591 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11592 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11593 dispatch the event.
11594
07590973
DL
115952000-02-04 Dave Love <fx@gnu.org>
11596
11597 * fileio.c: Remove some unused vars.
11598 (_GNU_SOURCE): Define (for euidaccess).
11599
11600 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11601
11602 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11603 gcpro1, gcpro2.
11604 (read_minibuf): Deal with allow_props correctly.
11605
649351f9
EZ
116062000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11607
11608 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11609
66e4690f 116102000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11611
11612 * search.c (compile_pattern): If a cache entry has a nil regexp,
11613 fill in that entry instead of clobbering a previously cached
11614 string regexp.
11615
66e4690f 116162000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11617
11618 * puresize.h (BASE_PURESIZE): Increase to 610000.
11619
d240a249
GM
116202000-02-02 Gerd Moellmann <gerd@gnu.org>
11621
11622 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11623 can GC.
11624
ca91fb26
KH
116252000-02-02 Kenichi Handa <handa@etl.go.jp>
11626
25660570
KH
11627 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11628 instead of incrementing ic directly.
11629 <CCL_WriteExprConst> Likewise.
11630 <ccl_set_expr>: Set ic to jump_address.
11631
ca91fb26
KH
11632 * fileio.c (e_write): Fix the handling of
11633 CODING_FINISH_INSUFFICIENT_SRC.
11634
2ede9689
DL
116352000-02-01 Dave Love <fx@gnu.org>
11636
11637 * editfns.c (Fpropertize): Doc fix.
11638
11639 * process.c (Fstart_process): Doc fix.
11640
11641 * eval.c: Fix various doc strings not to duplicate information
11642 from help-manyarg-func-alist.
11643
52283633 11644 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11645
11646 * doc.c (Vhelp_manyarg_func_alist): New variable.
11647 (Fdocumentation): Use it.
11648 (syms_of_doc): Define it.
11649
b6680a0e
GM
116502000-01-31 Gerd Moellmann <gerd@gnu.org>
11651
2cb750ba
GM
11652 * xterm.c (xim_open_dpy): Remove unused local variable.
11653
52283633 11654 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11655
11656 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11657 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11658
b6680a0e
GM
11659 * fns.c (sweep_weak_table): New function.
11660 (sweep_weak_hash_tables): Use it. Keep on marking until there
11661 is no more change.
11662
994c5afe
GM
116632000-01-30 Gerd Moellmann <gerd@gnu.org>
11664
11665 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11666 that XTread_socket does not crash by trying to call XNoOp on a
11667 closed display.
427ec082 11668
f00276e3
JR
116692000-01-30 Jason Rumney <jasonr@gnu.org>
11670
11671 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11672 Change selected_frame to SELECTED_FRAME ().
11673 (w32_console_mouse_position): Remove #ifndef MULE from around
11674 `insist' parameter.
11675
11676 * makefile.nt: Remove dosfns.obj.
11677
11678 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11679
11680 * w32fns.c (w32_defined_color): Check for valid frame before
11681 applying gamma correction. Eliminate dependency on frame elsewhere.
11682 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11683 (w32_to_x_font): Use resx and resy not height_in and width_in.
11684 (x_to_w32_font): Doc fix.
11685 (xlfd_strip_height): New function to strip and return font height.
11686 (w32_font_match): Compare height separately from rest of xlfd
11687 spec, using xlfd_strip_height.
11688
11689 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11690 width_in. Use w32_defined_color in place of defined_color.
11691
11692 * w32faces.c: Merge more of DOS and X specifics in preparation for
11693 merge with xfaces.c.
11694 (defined_color): Remove FIXME comment.
11695 (tty_color_name): Provide w32-specific function.
11696 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11697
11698 * w32console.c (turn_on_face, turn_off_face): Removed.
11699 (w32_face_attributes): New function.
11700 (Global_variables): Reduce scope where possible.
11701 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11702 fill attribute.
11703 (hl_mode): Don't modify text attributes.
11704 (write_glyphs): Don't do anything if len <= 0. Use
11705 w32_face_attributes to get attributes for drawing. Write
11706 terminating codes using char_attr_normal.
11707 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11708 (update_begin, update_end): Likewise.
11709 (vga_stdcolor_name): New function.
11710 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11711 (Fset_screen_color): Remove char_attr_reverse.
11712
b08e8bb2
GM
117132000-01-29 Gerd Moellmann <gerd@gnu.org>
11714
11715 * xfns.c (xic_set_preeditarea): Take window parameter and
11716 window-relative pixel-positions.
11717
11718 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11719 is its frame's selected window.
11720 (xim_instantiate_callback): Likewise.
11721
11722 * xfns.c (x_create_im): Removed.
11723 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11724 (supported_xim_styles): Renamed from supported_styles.
11725 (best_xim_style): Renamed from best_style.
11726 (create_frame_xic): Renamed from xic_create_frame.
11727 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11728
b08e8bb2
GM
117292000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11730
11731 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11732 our frames, call XFilterEvent with 2nd parameter `None'.
11733 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11734 returning XBufferOverflow.
52283633 11735 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11736 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11737 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11738 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11739 (xim_initialize, xim_close)
11740 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11741 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11742 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11743 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11744
11745 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11746 and `xim_styles'.
11747 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11748 `xic_style' and `xic_xfs'.
11749 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11750 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11751 (FRAME_XIM): Removed.
11752
11753 * xfns.c (supported_styles): New variable.
11754 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11755 (xic_create_xfontset, best_style, xic_create_frame)
11756 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11757 (xic_set_xfontset): New functions.
11758
142e109c
DL
117592000-01-28 Dave Love <fx@gnu.org>
11760
11761 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11762
11763 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11764
b02786f9
GM
117652000-01-28 Gerd Moellmann <gerd@gnu.org>
11766
d060bc9f
GM
11767 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11768 for *scratch* if it already existed.
11769
b02786f9
GM
11770 * emacs.c (USAGE): New macro.
11771 (main): Use it to display usage information.
11772
2c52d7e4
EZ
117732000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11774
11775 Support for the menu-help feature:
11776
52283633 11777 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11778
11779 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11780 part of the line to the termscript file.
11781 (IT_clear_to_end): Clear the entire line, not just its beginning.
11782 (menu_help_message, prev_menu_help_message): New variables.
11783 (IT_menu_make_room): Make room for the help_text member.
11784 (IT_menu_display): New argument disp_help; all callers changed.
11785 If disp_help is non-zero, store the help text of the active menu
11786 item in menu_help_message.
11787 (XMenuAddPane): Initialize the help_text member to NULL.
11788 (XMenuAddSelection): New argument help_text. Store it in the
11789 XMenu structure.
11790 (XMenuActivate): New argument help_callback. If the value of
11791 menu_help_message has changed since the last time, display the
11792 menu help message text while waiting for the mouse to move. Clear
11793 the echo area before exiting.
11794 (XMenuDestroy): Free the help_text member.
11795
ffe0bcd1
GM
117962000-01-27 Gerd Moellmann <gerd@gnu.org>
11797
11798 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11799 XMenuAddSelection. Pass help callback to XMenuActivate.
11800 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11801
50dbd23f
EZ
118022000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11803
11804 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11805 and EMACS_SET_USECS.
11806
f5941bf8
GM
118072000-01-26 Dave Love <fx@gnu.org>
11808
6c67ddee
DL
11809 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11810
f5941bf8
GM
11811 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11812 an error may be signalled.
11813
9e49c990
GM
118142000-01-26 Gerd Moellmann <gerd@gnu.org>
11815
fc3cb460
GM
11816 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11817 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11818
9e49c990
GM
11819 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11820
d0c037d8
GM
118212000-01-25 Gerd Moellmann <gerd@gnu.org>
11822
11823 * charset.c (Fstring): If there is a multibyte char among
11824 the args, always return a multibyte string.
11825
e12489f9
GM
118262000-01-25 Gerd Moellmann <gerd@gnu.org>
11827
11828 * sysdep.c (sys_select): Turn atimers off and on instead of
11829 recording and restoring old alarm handler
11830
11831 * process.c (toplevel): Include atimer.h.
11832 (create_process_1): Rewritten.
11833 (create_process): Use atimers instead of alarm.
11834 (wait_reading_process_input) [hpux]: Turn atimers off instead
11835 of turning off SIGALRM.
11836 (wait_reading_process_input): Turn off atimers instead off
11837 calling stop_polling.
11838
11839 * emacs.c (main): Call init_atimer.
11840
11841 * keyboard.c (toplevel): Include systime.h and atimer.h.
11842 (polling_for_input): Removed because unused.
11843 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11844 (poll_timer): New variable.
11845 (poll_for_input, poll_for_input_1): New functions.
11846 (start_polling, stop_polling): Rewritten.
11847
11848 * keyboard.h (polling_for_input): Removed.
427ec082 11849
e12489f9
GM
11850 * atimer.h, atimer.c: New files.
11851
11852 * Makefile.in (obj): Add atimer.o.
11853 (atimer.o): New target.
11854
11855 * blockinput.h (pending_atimers): Add extern declaration.
11856 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11857
11858 * lisp.h (popup_activated_flag): Add extern declaration.
11859
11860 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11861 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11862 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11863
11864 * xterm.c (toplevel): Include atimer.h.
11865 (toolkit_scroll_bar_interaction): New variable.
11866 (Fxt_process_timeouts): Removed.
11867 (x_process_timeouts): New function.
11868 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11869 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11870 (x_make_frame_visible): Call poll_for_input_1 instead of
11871 input_poll_signal. Don't call alarm.
11872 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11873
1e5279b9
DL
118742000-01-24 Dave Love <fx@gnu.org>
11875
6c67ddee 11876 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11877 Don't use -cckr -- apparently not now necessary.
11878
edf6aeb8
EZ
118792000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11880
11881 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11882 screen boundary.
11883
9badad41
JR
118842000-01-23 Jason Rumney <jasonr@gnu.org>
11885
11886 * w32fns.c (w32_defined_color): Apply gamma correction before
11887 trying to map to the palette.
11888 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11889 to w32_clear_rect.
11890
11891 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11892 here. Callers changed to always pass real device context.
11893 (w32_draw_bitmap): Likewise.
11894 (w32_get_glyph_overhangs): Likewise.
52283633 11895 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11896 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11897 pfnSetScrollInfo and SetScrollRange.
11898 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11899 back into MULE characters after decoding them.
11900 (x_get_glyph_face_and_encoding): Likewise.
11901 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11902 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11903 (x_produce_glyphs): Calculate per char metrics for a character
11904 that we know exists in default font when font_not_found_p is true.
11905
63bd786b
JR
119062000-01-22 Jason Rumney <jasonr@gnu.org>
11907
11908 * makefile.nt (intervals.obj, composite.obj): New modules.
11909 (composite.h): Added as dependency where appropriate.
11910
11911 * w32gui.h (XGCValue): New struct for emulating X GCs.
11912
11913 * w32term.h (XCharStruct): New struct for emulating X.
11914
11915 * w32console.c (turn_on_face, turn_off_face): New functions.
11916 (change_line_highlight): New prototype for new redisplay.
11917 (write_glyphs): Support multibyte text. Support faces.
11918
52283633 11919 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11920
11921 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11922 throughout. struct frame * in place of FRAME_PTR.
11923 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11924 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11925 (w32_get_arg): Renamed from x_get_arg.
11926 (Fx_file_dialog): New function.
11927 (w32_list_fonts): Check cache before asking system.
11928 (Vw32_enable_synthesized_fonts): New variable.
11929 (Vw32_enable_italics): Obsolete, removed.
11930
11931 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11932 Use SELECTED_FRAME macro.
11933
11934 * w32menu.c: Add skeleton support for help strings on menus.
11935 (add_menu_item): Native checkbox and radio support added, but not
11936 yet enabled due to bugs.
11937 (push_menu_item): Add parameters type, selection and help.
11938 Callers updated.
11939 Formatting changes to reduce unnecessary diffs with xmenu.c.
11940
11941 * w32select.c (Fw32_set_clipboard_data): Update call to
11942 find_charset_in_str.
11943
11944 * w32term.c: Complete rewrite for new redisplay based on new
11945 xterm.c with necessary sections merged back in from old w32term.c.
11946
6ffd3cf7 119472000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11948
11949 * data.c (set_internal): Further fix in same criterion.
11950
6ffd3cf7 119512000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11952
11953 * data.c (set_internal): Fix the criteria for whether
11954 to swap out the old cached binding.
11955
60af03f1
DL
119562000-01-19 Dave Love <fx@gnu.org>
11957
11958 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11959
f9be074f
KH
119602000-01-18 Kenichi Handa <handa@etl.go.jp>
11961
11962 * regex.c (re_compile_fastmap): While checking a range table for
11963 `charset', skip flag bits for a character class correctly.
11964
52b8dbf9
GM
119652000-01-17 Gerd Moellmann <gerd@gnu.org>
11966
d36100c9
GM
11967 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11968
52283633 11969 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11970
11971 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11972 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11973
11974 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11975 MENU_ITEMS_ITEM_.*.
11976 (MENU_ITEMS_ITEM_HELP): New enumerator.
11977 (push_menu_item): Add parameter HELP. Record help in menu_items.
11978 (single_menu_item, single_submenu, list_of_items): Call
11979 push_menu_item with new parameter.
11980 (single_submenu): Set help string in widget value.
11981 (menu_highlight_callback): New function.
11982 (set_frame_menubar): Call lw_create_widget with new
11983 parameter list.
11984 (xmenu_show, xdialog_show): Ditto.
11985
3139018f
GM
119862000-01-13 Gerd Moellmann <gerd@gnu.org>
11987
11988 * sound.c (Fplay_sound): Improve doc string.
11989
83c8f461
RS
119902000-01-11 Richard M. Stallman <rms@gnu.org>
11991
11992 * lisp.h (set_internal): Enter the new arg.
11993
11994 * eval.c (specbind): Record buffer-local variables specially,
11995 indicating which buffer's binding was saved.
11996 (unbind_to): Restore buffer-local variables specially
11997 in the proper buffer.
11998
11999 * data.c (set_internal): New arg BUF.
427ec082 12000
83c8f461
RS
12001 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12002 * data.c (Fset): Pass new arg to set_internal.
12003 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 12004
1fab1775
GM
120052000-01-11 Gerd Moellmann <gerd@gnu.org>
12006
52283633 12007 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 12008
83c8f461 120092000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
12010
12011 * minibuf.c (Ftry_completion): Doc fix.
12012
7a85e4df
GM
120132000-01-11 Gerd Moellmann <gerd@gnu.org>
12014
12015 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12016 vector, too.
12017
a970dae4
AS
120182000-01-11 Andreas Schwab <schwab@suse.de>
12019
12020 * coding.c (code_convert_region): Initialize total_skip.
12021
c65d14ee
DL
120222000-01-08 Dave Love <fx@gnu.org>
12023
12024 * eval.c (Fuser_variable_p): Check customizability too.
12025
834938d2
GM
120262000-01-07 Gerd Moellmann <gerd@gnu.org>
12027
12028 * minibuf.c (Fcompleting_read): Doc fix.
12029
e0303cd6
GM
120302000-01-05 Gerd Moellmann <gerd@gnu.org>
12031
8a26744b
GM
12032 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12033 -L /usr/local/lib.
12034
e0303cd6
GM
12035 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12036 Check that input style is supported before trying to create an
12037 IC for it.
12038 (x_window): Call x_create_im.
427ec082 12039
2e471eb5
GM
120402000-01-04 Gerd Moellmann <gerd@gnu.org>
12041
560a7bd2
GM
12042 * xfns.c (current_gif_memory_src): New variable.
12043 (gif_load): Record the address of the current memory source
12044 in current_gif_memory_src.
12045 (gif_read_from_memory): Use current_gif_memory_src.
12046
f9ee84a3
GM
12047 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12048 macros statement form.
12049
d1299cde
GM
12050 * sound.c (struct sound): Renamed from struct sound_file.
12051 (struct sound): Add members `data' and `header_size'.
12052 (enum sound_attr): Add SOUND_DATA.
12053 (current_sound, current_sound_device): Variables renamed from
12054 sound_file and sound_device.
12055 (parse_sound): Parse :data.
12056 (parse_sound): Handle sound data in strings.
12057 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 12058 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
12059 needed header size.
12060 (wav_play, au_play): Play sounds from string data.
12061
2e471eb5
GM
12062 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12063
12064 * lisp.h: Add prototype for allocate_string_data.
12065
52283633 12066 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
12067
12068 * alloc.c (mark_buffer): Remove code in #if 0.
12069 (gc_sweep): Ditto.
12070 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12071 (strings_consed): New variable.
12072 (allocate_string): Set it.
12073 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12074 (Fmemory_use_counts): Return strings_consed. Use Flist.
12075
12076 * alloc.c: General cleanup in comments etc. Remove conditional
12077 compilation for `standalone'.
12078
12079 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12080
12081 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12082 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12083 (DONT_COPY_FLAG): Removed.
12084 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12085 (struct sdata, struct sblock): New
12086 (struct string_block): Rewritten.
12087 (STRINGS_IN_STRING_BLOCK): New macro.
12088 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12089 (large_sblocks, string_blocks, string_free_list): New variables.
12090 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12091 (init_strings): Rewritten.
12092 (allocate_string, allocate_string_data, compact_small_strings)
12093 (free_large_strings, sweep_strings): New functions.
12094 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12095 (struct string_block_head, current_string_block)
12096 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12097 (STRING_PAD): Removed.
12098 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12099 (Fgarbage_collect): Don't set mark bit in large strings.
12100 (mark_object): Mark strings differently. Mark symbol names
12101 differently.
12102 (survives_gc_p): Test marked strings differently.
427ec082 12103 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
12104 symbol names.
12105 (compact_strings): Removed.
12106
42608ba8
EZ
121072000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12108
12109 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12110 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12111
e0a09e1a
KH
121122000-01-04 Kenichi Handa <handa@etl.go.jp>
12113
dd9f0750 12114 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 12115 in a non-empty buffer.
dd9f0750 12116
3c0f3b15 12117 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 12118
44cd3ae5
GM
121192000-01-03 Gerd Moellmann <gerd@gnu.org>
12120
12121 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12122 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12123
12124 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12125
c182a70f
EZ
121262000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12127
12128 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12129 need to test for MSDOS frames.
12130
24480d5b
EZ
121312000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12132
12133 * dosfns.c (unspecified_colors): Remove.
12134 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12135 unspecified_bg.
12136 (msdos_stdcolor_name): Return strings for unspecified fore- and
12137 back-ground colors.
12138
12139 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 12140 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
12141 (tty_color_name): Return Lisp strings for unspecified fore- and
12142 back-ground colors.
12143 (Finternal_set_lisp_face_attribute): Remove the special treatment
12144 for Qunspecified_{f,b}g.
52283633 12145 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 12146
047f434a
GM
121472000-01-03 Gerd Moellmann <gerd@gnu.org>
12148
12149 * xdisp.c (reseat_at_next_visible_line_start): Position before
12150 newline only if ending up on a newline.
12151 (next_element_from_ellipsis): Return success. Handle case of
52283633 12152 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
12153 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12154 returns 0.
12155
d684c676
EZ
121562000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12157
12158 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12159 (Fcolor_supported_p): Renamed from face-color-supported-p.
12160
5fe1d139
EZ
121612000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12162
12163 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12164 list of colors renamed to tty-defined-color-alist.
12165 (tty_color_name): Pass the frame to tty-color-by-index.
12166 (realize_tty_face): tty-color-alist is now a function which
12167 accepts the frame as argument.
12168
52283633 12169 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 12170
816be8b8
EZ
121712000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12172
12173 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12174 encode_terminal_code.
12175
b635321e
EZ
121762000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12177
12178 * dispnew.c (mode_line_string): Support termcap frames as well.
12179
9b784e96
GM
121802000-01-01 Gerd Moellmann <gerd@gnu.org>
12181
27189709
GM
12182 * syntax.c (Fforward_word): Undo previous change.
12183
12184 * editfns.c (Fconstrain_to_field): Don't constrain if
12185 inhibit-field-text-motion is non-nil.
12186 (Fline_beginning_position): Undo previous change.
12187 (Fline_end_position): Ditto.
12188
12189 * syntax.c (Fforward_word): Notice field boundaries only if
12190 inhibit-field-text-motion is nil.
12191
12192 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12193
12194 * editfns.c (Vinhibit_field_text_motion): New variable.
12195 (inhibit-field-text-motion): New DEFVAR_LISP.
12196 (Fline_beginning_position, Fline_end_position): Notice field
12197 boundaries only if inhibit-field-text-motion is nil.
12198
45158a91
GM
12199 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12200 All calls adjusted.
12201 (x_build_heuristic_mask): Likewise.
12202 (xbm_load_image_from_file): Change error output.
12203 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12204 (gif_load, gs_load, x_kill_gs_process): Ditto.
12205
9b784e96
GM
12206 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12207 color indices when accessing raster pixels.
63cec32f
GM
12208 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12209 one of :file or :data.
12210 (enum pbm_keyword_index): Add PBM_DATA.
12211 (pbm_format): Add :data.
12212 (pbm_image_p): Allow either :file or :data.
12213 (pbm_read_file): New function.
12214 (pbm_scan_number): Rewritten to read from string.
12215 (pbm_load): Support :data.
9b784e96 12216
2cb085db 12217See ChangeLog.8 for earlier changes.
6922b018
KH
12218
12219;; Local Variables:
49b3bd82 12220;; coding: iso-2022-7bit
6922b018 12221;; End: