]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2002-09-01 Richard M. Stallman <rms@gnu.org>
2
3 * unexsol.c: New file.
4
5 * xfns.c (Qbox): Declare external, don't define.
6
7 * xdisp.c (redisplay_window) <force-start case>:
8 If point is on semi-visible last line, reposition
9 it at previous line.
10
11 * alloc.c (display_malloc_warning): Use display-warning.
12 (malloc_warning_1): Function deleted.
13
14 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
15
16 * lread.c (read1): Handle #! by skipping the line.
17
18 2002-08-31 Richard M. Stallman <rms@gnu.org>
19
20 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
21 Don't include LDFLAGS.
22 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
23
24 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
25
26 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
27 member of x_display_info unless we compile for some window system.
28
29 2002-08-31 Kim F. Storm <storm@cua.dk>
30
31 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
32 (get_window_cursor_type): Don't use them.
33 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
34
35 2002-08-30 Andrew Choi <akochoi@shaw.ca>
36
37 * macterm.c (expose_overlaps): New function (merge code from
38 xterm.c).
39 (expose_window): Use it to fix the display of overlapping
40 rows (merge code from xterm.c).
41
42 * macfns.c (Qbox): Add extern declaration.
43
44 2002-08-30 Juanma Barranquero <lektu@terra.es>
45
46 * w32fns.c (Qbox): Make extern.
47 (syms_of_w32fns): Remove initialization of Qbox.
48
49 * xfns.c (Fx_open_connection): Fix error message. Patch from Rune
50 Kleveland <runekl@viewpoint.no>.
51
52 2002-08-30 Kim F. Storm <storm@cua.dk>
53
54 The following changes consolidates the handling of the cursor
55 type in xdisp.c, moving duplicate code and functionality from
56 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
57
58 * frame.h (enum text_cursor_kinds): Consolidated here.
59 Added DEFAULT_CURSOR value.
60 (struct frame) <desired_cursor, cursor_width>
61 <blink_off_cursor, blink_off_cursor_width>: New fields.
62 Consolidated from output_x, output_w32 and output_mac structs.
63 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
64 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
65
66 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
67 Variables consolidated here.
68 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
69 (Vcursor_in_non_selected_windows): Renamed from
70 cursor_in_non_selected_windows and changed to Lisp_Object.
71 (syms_of_xdisp): Define and staticpro new and moved variables.
72 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
73 consolidated here. Recognize Qhollow setting.
74 (set_frame_cursor_types): New function to set frame cursor types
75 based on the frame parameters.
76 (get_window_cursor_type): New function to calculate new cursor
77 type and width for the specified window. Based on duplicated
78 code consolidated here.
79 Enhancements: cursor-in-non-selected-windows may be a cursor type,
80 check buffer-local alternate-cursor-type and blink-cursor-alist
81 before using built-in blink off methods.
82
83 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
84
85 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
86 (get_specified_cursor_type, get_window_cursor_type)
87 (set_frame_cursor_types): Added prototypes.
88
89 * macfns.c (x_specified_cursor_type): Removed.
90 (x_set_cursor_type): Use set_frame_cursor_types.
91 (Qbar, Qbox): Removed.
92 (syms_of_macfns): Don't intern or staticpro them.
93
94 * macterm.c (x_specified_cursor_type): Remove prototype.
95 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
96 (x_display_and_set_cursor): Use get_window_cursor_type.
97 Remove unused local variables cursor_non_selected, active_cursor.
98 Redraw cursor if hbar cursor width changes.
99 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
100
101 * macterm.h (enum text_cursor_kinds): Removed.
102 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
103 <blink_off_cursor, blink_off_cursor_width>: Members removed.
104 (FRAME_DESIRED_CURSOR): Macro removed.
105
106 * w32fns.c (Vblink_cursor_alist): Removed.
107 (Qbar, Qhbar, Qbox, Qhollow): Removed.
108 (syms_of_w32fns): Don't intern, staticpro, or define them.
109 (x_specified_cursor_type): Removed.
110 (x_set_cursor_type): Use set_frame_cursor_types.
111
112 * w32term.c (x_specified_cursor_type): Remove prototype.
113 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
114 (x_display_and_set_cursor): Use get_window_cursor_type.
115 Remove unused local variables cursor_off_state.
116 Redraw cursor if hbar cursor width changes.
117 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
118
119 * w32term.h (enum text_cursor_kinds): Removed.
120 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
121 <blink_off_cursor, blink_off_cursor_width>: Members removed.
122 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
123 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
124 (struct w32_display_info) <x_highlight_frame>: Renamed member from
125 w32_highlight_frame.
126
127 * xfns.c (Vblink_cursor_alist): Removed.
128 (Qbar, Qhbar, Qbox, Qhollow): Removed.
129 (syms_of_xfns): Don't intern, staticpro, or define them.
130 (x_specified_cursor_type): Removed.
131 (x_set_cursor_type): Use set_frame_cursor_types.
132
133 * xterm.c (x_specified_cursor_type): Remove prototype.
134 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
135 (x_display_and_set_cursor): Use get_window_cursor_type.
136 Remove unused local variables cursor_off_state.
137 Redraw cursor if hbar cursor width changes.
138
139 * xterm.h (enum text_cursor_kinds): Removed.
140 (struct output_x) <current_cursor, desired_cursor, cursor_width>
141 <blink_off_cursor, blink_off_cursor_width>: Members removed.
142 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
143 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
144 (x_specified_cursor_type): Remove prototype.
145
146 2002-08-28 Richard M. Stallman <rms@gnu.org>
147
148 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
149 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
150 (Vblink_cursor_alist): New variable.
151 (syms_of_w32fns): Initialize and defvar it.
152 (x_specified_cursor_type): Recognize Qbox for filled box.
153 Exceptions are hollow boxes.
154 (Qbox, Qhollow): New variables.
155 (syms_of_w32fns): Initialize and staticpro them.
156
157 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
158 New macros.
159 (struct w32_output): New fields blink_off_cursor, blink_off_cursor_width.
160 (FRAME_CURSOR_WIDTH): New macro.
161
162 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
163 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
164
165 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
166 for bar cursor.
167
168 * w32term.c (expose_overlaps): New function.
169 (expose_window): Use it to fix the display of overlapping rows.
170
171 2002-08-28 Simon Josefsson <jas@extundo.com>
172
173 * xfns.c (Fx_open_connection): Improve help when X connection
174 fails, xhost is insecure and xauth is better.
175
176 2002-08-28 Juanma Barranquero <lektu@terra.es>
177
178 * makefile.w32-in: Add missing dependencies on w32term.h and
179 composite.h.
180
181 * emacs.c (USAGE1): Add missing newline.
182
183 2002-08-27 Andrew Choi <akochoi@shaw.ca>
184
185 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
186
187 2002-08-27 Richard M. Stallman <rms@gnu.org>
188
189 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
190 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
191 (Vblink_cursor_alist): New variable.
192 (syms_of_xfns): Initialize and defvar it.
193 (x_specified_cursor_type): Recognize Qbox for filled box.
194 Exceptions are hollow boxes.
195 (Qbox, Qhollow): New variables.
196 (syms_of_xfns): Initialize and staticpro them.
197
198 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
199 New macros.
200 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
201
202 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
203 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
204
205 * emacs.c (main): Handle --script.
206 (USAGE1): Mention --script.
207 (standard_args): Define sort order for --script.
208
209 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
210
211 * xdisp.c (redisplay_updating_p): Variable removed.
212 (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New
213 variables.
214 (init_iterator): Don't free realized faces if
215 inhibit_free_realized_faces is set.
216 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
217 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
218 initialize Qinhibit_free_realized_faces.
219
220 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
221 when iterator is adding glyphs to a glyph matrix.
222
223 2002-08-27 Kenichi Handa <handa@etl.go.jp>
224
225 * xdisp.c (get_next_display_element): In unibyte case, don't use
226 octal form for such eight-bit characters that can be converted to
227 multibyte char.
228
229 2002-08-26 Kim F. Storm <storm@cua.dk>
230
231 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
232 foreground and background colors. From Joe Buehler (tiny change).
233
234 2002-08-26 Miles Bader <miles@gnu.org>
235
236 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
237
238 2002-08-25 Andrew Choi <akochoi@shaw.ca>
239
240 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
241 defined instead of MAC_OSX.
242
243 * s/darwin.h (select): Define select to sys_select only if
244 HAVE_CARBON is defined.
245 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
246 (DONT_REOPEN_PTY): #def it.
247
248 * macterm.c (XTread_socket): Remove code to call
249 SendEventToEventTarget for keys with command modifiers when
250 mac_command_key_is_meta is nil.
251
252 2002-08-24 Andreas Schwab <schwab@suse.de>
253
254 * eval.c (Fdefvar): Fix last change.
255
256 2002-08-23 Richard M. Stallman <rms@gnu.org>
257
258 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
259 Record variables in load history as (defvar . VAR).
260 (Fdefvar): Don't record in load history if no initial value.
261 (Qdefvar): New variable.
262 (syms_of_eval): Init and staticpro it.
263
264 * lread.c (syms_of_lread): Doc fix.
265 (build_load_history): Use Fmember to see if a definition
266 is already in the Vload_history element.
267
268 * process.c (Fstart_process): Remove /: from program name.
269
270 * emacs.c (decode_env_path): Don't add /: if file name handler
271 has a `safe-magic' property.
272
273 * callproc.c (Fcall_process): Remove /: from program name.
274
275 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
276
277 * regex.c (PATFETCH): Remove the translating fetch.
278 (PATFETCH_RAW): Rename to PATFETCH.
279 (set_image_of_range): New fun.
280 (SET_RANGE_TABLE_WORK_AREA): Use it.
281 (regex_compile): Don't translate the pattern chars so eagerly.
282 Only do it when inserting an `exactn' bytecode or when handling
283 a char-range.
284 (mutually_exclusive_p): Avoid empty statement.
285
286 2002-08-22 Kim F. Storm <storm@cua.dk>
287
288 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
289 end up on a partially visible line; this reverts a specific part
290 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
291 display error which has been reported several times now.
292 However it introduces the problem that changes was supposed to fix.
293 See my comments in the source if you want to debug this further.
294
295 2002-08-20 Kenichi Handa <handa@etl.go.jp>
296
297 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
298
299 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
300
301 * msdos.c (croak): Add `void' to definition.
302
303 * sysdep.c [MSDOS]: Don't define request_sigio and
304 unrequest_sigio, they are defined on msdos.c.
305
306 * mem-limits.h [MSDOS]: Declare etext.
307
308 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
309 `const' since CORRECT_DIR_SEPS modifies its target.
310
311 2002-08-19 Kim F. Storm <storm@cua.dk>
312
313 * keyboard.c (Fclear_this_command_keys): Added optional arg
314 KEEP-RECORD to avoid clearing lossage when we just want to clear
315 the current key sequence (kmacro needs this).
316
317 2002-08-19 Kenichi Handa <handa@localhost>
318
319 * composite.c (run_composition_function): Call FUNC if it is
320 fboundp.
321
322 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
323 cons, return Qnil.
324
325 2002-08-17 Richard M. Stallman <rms@gnu.org>
326
327 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
328
329 * sysdep.c [!VMS]: Include sys/files.h.
330
331 * editfns.c (save_restriction_restore): Defend from unchained marker.
332
333 * buffer.c (overlays_at): Handle extending vec uniformly.
334 (overlays_in): Handle extending vec from length 0 as in overlays_at.
335
336 2002-08-15 Andrew Choi <akochoi@shaw.ca>
337
338 * mac.c (init_mac_osx_environment): New function.
339
340 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
341
342 2002-08-14 Kim F. Storm <storm@cua.dk>
343
344 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
345 executing macro before appending to it (when used from Lisp).
346 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
347 which is called prior to each iteration of macro (for kmacro.el).
348 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
349
350 * lisp.h (Fexecute_kbd_macro): Update prototype.
351
352 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
353
354 2002-08-14 Kenichi Handa <handa@etl.go.jp>
355
356 * xselect.c (QUTF8_STRING): New variable.
357 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
358 (x_atom_to_symbol): Likewise.
359 (x_get_local_selection): New argument local_request. If it is
360 nonzero, call handler_fn with the second arg nil.
361 (x_handle_selection_request): Call x_get_local_selection with
362 local_request 0.
363 (lisp_data_to_selection_data): Don't encode the string here.
364 (Fx_get_selection_internal): Call x_get_local_selection with
365 local_request 1.
366 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
367
368 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
369
370 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
371
372 2002-08-13 Richard M. Stallman <rms@gnu.org>
373
374 * minibuf.c (Fminibufferp): New function.
375 (syms_of_minibuf): Defsubr it.
376 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
377
378 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
379
380 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
381
382 2002-08-12 Richard M. Stallman <rms@gnu.org>
383
384 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
385 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
386 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
387 already.
388
389 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
390
391 2002-08-11 Andrew Choi <akochoi@shaw.ca>
392
393 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
394 (Vmac_pass_command_to_system): New variable.
395 (Vmac_pass_control_to_system): New variable.
396 (do_mouse_moved): Check wp with is_emacs_window.
397 (XTread_socket): Check window_ptr with is_emacs_window. Call
398 FrontNonFloatingWindow instead of FrontWindow. Send keydown
399 events back to Mac Toolbox for processing, depending on values of
400 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
401 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
402 Vmac_pass_control_to_system.
403
404 2002-08-10 Kenichi Handa <handa@etl.go.jp>
405
406 * coding.c (unencodable_char_position): New function.
407 (Funencodable_char_position): New function.
408 (syms_of_coding): Defsubr Funencodable_char_position.
409
410 2002-08-10 Andrew Choi <akochoi@shaw.ca>
411
412 * mac.c (sys_select) [MAC_OSX]: New function.
413
414 * macterm.c (MakeMeTheFrontProcess): New function.
415 (mac_initialize): Call MakeMeTheFrontProcess.
416
417 * s/darwin.h: Define select to sys_select.
418
419 2002-08-09 Richard M. Stallman <rms@gnu.org>
420
421 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
422
423 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
424
425 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
426 end of the buffer.
427
428 2002-08-08 Ken Raeburn <raeburn@mit.edu>
429
430 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
431 mixup.
432
433 * puresize.h (BASE_PURESIZE): Increase to 910000.
434
435 2002-08-08 Kenichi Handa <handa@etl.go.jp>
436
437 * coding.c (Ffind_operation_coding_system): For write-region, if
438 VISIT is a filename, make it the target.
439
440 2002-08-07 Richard M. Stallman <rms@gnu.org>
441
442 * alloc.c (mark_object): Detect long lists for debugging.
443 (mark_object_loop_halt): New variable.
444
445 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
446
447 * data.c (Fmake_variable_frame_local): Doc fix.
448
449 2002-08-01 David Ponce <david@dponce.com>
450
451 * w32menu.c (local_heap, local_alloc, local_free): New macros.
452 (malloc_widget_value, free_widget_value)
453 (w32_free_submenu_strings): Use them.
454
455 (push_submenu_start, push_submenu_end, push_left_right_boundary)
456 (push_menu_pane, push_menu_item, single_keymap_panes)
457 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
458 (single_submenu, set_frame_menubar)
459 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
460
461 (Fx_popup_menu): Don't show pop up menu until preceding one is
462 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
463
464 * w32menu.c: Changes adapted from xmenu.c
465 (set_frame_menubar): First parse all submenus,
466 then make widget_value trees from them.
467 Don't allocate any widget_value objects
468 until we are done with the parsing.
469 (parse_single_submenu): New function.
470 (digest_single_submenu): New function.
471 (single_submenu): Function deleted, replaced by those two.
472
473 2002-08-04 Andrew Choi <akochoi@shaw.ca>
474
475 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
476 returns a valid window pointer before proceeding for keyDown and
477 autoKey events.
478
479 2002-08-03 Andrew Choi <akochoi@shaw.ca>
480
481 * macterm.c (USE_CARBON_EVENTS): New macro.
482 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
483 (x_iconify_frame): Call CollapseWindow.
484 (Vmac_reverse_ctrl_meta): New variable.
485 (Vmac_wheel_button_is_mouse_2): New variable.
486 (init_mac_drag_n_drop): New function.
487 (mac_do_receive_drag): New function.
488 (mac_handle_service_event): New function.
489 (init_service_handler): New function.
490 (mac_to_emacs_modifiers): New function.
491 (mac_event_to_emacs_modifiers): New function.
492 (mac_get_mouse_btn): New function.
493 (mac_convert_event_ref): New function.
494 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
495 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
496 mac_get_mouse_btn.
497 (mac_initialize): Call init_mac_drag_n_drop and
498 init_service_handler.
499
500 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
501 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
502 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
503 TOOL_BAR_EVENT for MAC_OS as well.
504 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
505 as for WINDOWS_NT.
506 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
507
508 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
509 MAC_OSX.
510
511 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
512
513 * xdisp.c (forward_to_next_line_start): Fix a condition that
514 lead to a newline being skipped.
515
516 2002-08-02 Andrew Choi <akochoi@shaw.ca>
517
518 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
519
520 2002-08-01 Richard M. Stallman <rms@gnu.org>
521
522 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
523
524 2002-07-31 Andrew Choi <akochoi@shaw.ca>
525
526 * macfns.c: #undef init_process before #define-ing it.
527
528 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
529 HAVE_CARBON is defined.
530
531 2002-07-31 Richard M. Stallman <rms@gnu.org>
532
533 * xmenu.c (set_frame_menubar): First parse all submenus,
534 then make widget_value trees from them.
535 Don't allocate any widget_value objects
536 until we are done with the parsing.
537 (parse_single_submenu): New function.
538 (digest_single_submenu): New function.
539 (single_submenu): Function deleted, replaced by those two.
540
541 2002-07-30 Juanma Barranquero <lektu@terra.es>
542
543 * w32proc.c (syms_of_ntproc): Fix docstring of
544 `w32-get-true-file-attributes'.
545
546 2002-07-28 Richard M. Stallman <rms@gnu.org>
547
548 * s/hpux8.h (HPUX8): Define this before including hpux.h.
549 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
550
551 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
552
553 * keyboard.c (make_lispy_event):
554 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
555 Explicitly clear up_modifier in event->modifiers.
556
557 2002-07-27 Richard M. Stallman <rms@gnu.org>
558
559 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
560
561 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
562 for bar cursor.
563
564 2002-07-26 Kenichi Handa <handa@etl.go.jp>
565
566 * coding.c (detect_coding_iso2022): While checking a byte sequence
567 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
568 it in the normal loop.
569
570 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
571
572 * xterm.c (expose_overlaps): New function.
573 (expose_window): Use it to fix the display of overlapping rows.
574
575 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
576
577 2002-07-23 Ken Raeburn <raeburn@gnu.org>
578
579 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
580 since it only depends on XUINT.
581
582 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
583 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
584 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
585 Macros deleted.
586
587 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
588 its value over other approaches.
589 * sysdep.c (start_of_data): Don't define the function if a macro
590 form has been defined.
591
592 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
593
594 * xdisp.c (redisplay_updating_p): New variable.
595 (init_iterator): Don't free realized faces when
596 redisplay_updating_p is set.
597 (redisplay_internal): Set redisplay_updating_p while updating
598 the display.
599
600 2002-07-23 Richard M. Stallman <rms@gnu.org>
601
602 * editfns.c (Fmessage): Treat "" like nil.
603
604 2002-07-23 Kenichi Handa <handa@etl.go.jp>
605
606 * xdisp.c (face_before_or_after_it_pos): Call
607 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
608
609 2002-07-22 Juanma Barranquero <lektu@terra.es>
610
611 * callproc.c (init_callproc) [DOS_NT]: Initialize
612 Vshared_game_score_directory to nil.
613 (syms_of_callproc) [DOS_NT]: Likewise.
614
615 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
616
617 * xdisp.c (display_line): Replace an abort with xassert.
618
619 2002-07-21 Richard M. Stallman <rms@gnu.org>
620
621 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
622 and END_UNCHANGED when setting buffer_unchanged_p.
623 Use current_matrix_up_to_date_p to decide whether to use
624 try_cursor_movement.
625
626 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
627
628 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
629
630 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
631 Set to nil if dir does not exist.
632 (syms_of_callproc): Init unconditionally and simply.
633
634 * buffer.c (Fbuffer_list): Doc fix.
635
636 2002-07-21 Ken Raeburn <raeburn@gnu.org>
637
638 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
639
640 * buffer.c (mmap_realloc): When shrinking, make sure number of
641 pages to unmap is rounded towards zero.
642
643 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
644 (XSETINT): Deleted.
645
646 * m/att3b.h (XINT): Don't define.
647 (VALBITS, VALMASK, XTYPE): Deleted.
648 (DATA_SEG_BITS): Define.
649 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
650 ARRAY_MARK_FLAG): Deleted.
651 (DATA_SEG_BITS): Define.
652 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
653 (DATA_SEG_BITS): Define.
654
655 2002-07-20 Richard M. Stallman <rms@gnu.org>
656
657 * print.c (print_error_message): New args CONTEXT and CALLER.
658 Calls changed.
659
660 * lisp.h (print_error_message): Declare new args.
661
662 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
663 and CONTEXT to print_error_message, don't print them here.
664 For a Quit, don't use Vsignaling_function.
665 Call message_log_maybe_newline.
666
667 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
668
669 2002-07-20 Kim F. Storm <storm@cua.dk>
670
671 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
672
673 2002-07-19 Ken Raeburn <raeburn@gnu.org>
674
675 * bytecode.c (struct byte_stack): Pointers into byte string now
676 point to const.
677 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
678 const.
679 * charset.h (BCOPY_SHORT): Source pointer now points to const.
680 * coding.c (encode_eol, detect_coding, detect_eol):
681 (decode_coding, encode_coding, detect_coding_system): Source
682 strings now treated as const.
683 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
684 modify Lisp string contents.
685 * coding.h (decode_coding, encode_coding, detect_coding,
686 detect_eol): Declarations updated.
687 * composite.c (compose_chars_in_text): Treat Lisp string contents
688 as const.
689 * dispnew.c (safe_bcopy): Source pointer now points to const.
690 * lisp.h (STRING_COPYIN): New macro.
691 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
692 (internal_with_output_to_temp_buffer): Declarations updated.
693 * print.c (temp_output_buffer_setup):
694 (internal_with_output_to_temp_buffer): Buffer name argument is now
695 pointer to const.
696 * sound.c (struct sound_device): Function pointer field "write"
697 buffer argument now points to const.
698 (vox_write): Buffer argument points to const.
699 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
700 contents as const.
701 * sysdep.c (emacs_write): Buffer pointer now const.
702 * term.c (encode_terminal_code): Buffer pointer now const.
703 * xfaces.c (may_use_scalable_font_p): Argument now points to
704 const.
705 (x_face_list_fonts, x_update_menu_appearance):
706 (hash_string_case_insensitive): Treat Lisp string contents as
707 const.
708
709 2002-07-19 Juanma Barranquero <lektu@terra.es>
710
711 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
712 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
713
714 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
715
716 * fileio.c (syms_of_fileio): Likewise.
717
718 2002-07-18 Richard M. Stallman <rms@gnu.org>
719
720 * data.c (Fdefalias): Doc fix.
721
722 2002-07-17 Dave Love <fx@gnu.org>
723
724 * intervals.h (text_property_stickiness): Use P_.
725
726 * ccl.c: Remove `emacs' conditionals.
727 (ccl_backtrace_table): Fix size spec.
728 (ccl_driver): Fix type errors.
729
730 2002-07-16 Ken Raeburn <raeburn@gnu.org>
731
732 * alloc.c (xstrdup, make_string, make_unibyte_string)
733 (make_multibyte_string, build_string): String pointer args now
734 point to const.
735 * charset.c (find_charset_in_text, c_string_width):
736 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
737 * fileio.c (report_file_error):
738 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
739 (count_combining_before, count_combining_after, insert_1_both):
740 (insert, insert_and_inherit, insert_string):
741 (insert_before_markers, insert_before_markers_and_inherit):
742 * lread.c (intern, oblookup, hash_string):
743 * minibuf.c (temp_echo_area_glyphs):
744 * search.c (fast_c_string_match_ignore_case):
745 * sysdep.c (emacs_open, set_file_times):
746 * xfaces.c (xstricmp):
747 * xdisp.c (store_frame_title, string_char_and_length):
748 (message_dolog, message2, message2_nolog, set_message): Likewise.
749 (set_message_1): Cast message string argument to const pointer.
750 * editfns.c (general_insert_function): Insertion function now
751 takes pointer to const for input data.
752 * charset.h (find_charset_in_text, c_string_width):
753 (parse_str_as_multibyte): Declarations updated.
754 * dispextern.h (xstricmp): Declaration updated.
755 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
756 (count_size_as_multibyte, count_combining_before):
757 (count_combining_after, insert_1, insert_1_both, message_dolog):
758 (insert, insert_and_inherit, insert_before_markers)
759 (insert_before_markers_and_inherit, set_message, message2):
760 (message2_dolog, build_string, make_string, make_unibyte_string):
761 (make_multibyte_string, intern, oblookup, report_file_error):
762 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
763 (emacs_open, xstrdup): Declarations updated.
764 * systime.h (set_file_times): Declaration updated.
765
766 * charset.c (find_charset_in_text, lisp_string_width): Use const
767 for pointer to lisp string data.
768 * charset.h (FETCH_STRING_CHAR_ADVANCE):
769 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
770 * coding.c (Ffind_coding_systems_region_interval):
771 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
772 (Fmake_directory_internal, Fdelete_directory):
773 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
774 * fontset.c (font_family_registry, fs_query_fontset):
775 (list_fontsets):
776 * frame.c (Fframe_parameter):
777 * keyboard.c (cmd_error_internal):
778 * keymap.c (Fdescribe_buffer_bindings):
779 * lread.c (complete_filename_p, openp):
780 * minibuf.c (Fminibuffer_complete_word):
781 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
782 (face_before_or_after_it_pos, next_element_from_string):
783 (get_overlay_arrow_glyph_row, display_mode_element):
784 (decode_mode_spec_coding):
785 * xterm.c (same_x_server): Likewise.
786
787 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
788 settings of non-existent fields.
789
790 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
791 copy a lisp value.
792
793 * lread.c (Fintern_soft): Use string macros instead of
794 Lisp_String fields.
795 * keyboard.c (echo_char, parse_modifiers_uncached):
796 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
797 * textprop.c (validate_interval_range, interval_of): Likewise.
798
799 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
800
801 * charset.h (FETCH_STRING_CHAR_ADVANCE)
802 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
803 XSTRING()->size_byte.
804
805 * lisp.h (SDATA, SREF): Produce rvalue.
806 (SSET): New macro.
807 * alloc.c (make_event_array): Use SSET for storing into a string.
808 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
809 a string.
810 * casefiddle.c (casify_object): Use SSET.
811 * charset.h (FETCH_STRING_CHAR_ADVANCE)
812 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
813 address of string contents.
814 * data.c (Faref): Use SDATA.
815 (Faset): Use SDATA, SSET.
816 * dired.c (directory_files_internal): Use SSET.
817 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
818 (Fread_file_name): Use SREF, SSET.
819 * fns.c (concat): Use SSET.
820 (concat, Fdelete): Use SDATA.
821 * insdel.c (insert_from_string_1): Use SDATA.
822 * keyboard.c (Fevent_convert_list): Use SREF.
823 * lread.c (Fload): Use SDATA, SSET.
824 * macfns.c (validate_x_resource_name): Use SSET.
825 * process.c (status_message): Use SSET.
826 * search.c (wordify): Use SDATA.
827 (Freplace_match): Use SREF.
828 * w32fns.c (validate_x_resource_name): Use SSET.
829 * xfns.c (validate_x_resource_name): Use SSET.
830 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
831
832 2002-07-16 Richard M. Stallman <rms@gnu.org>
833
834 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
835
836 * xdisp.c (reconsider_clip_changes):
837 Don't test prevent_redisplay_optimizations_p.
838 (redisplay_internal): Test prevent_redisplay_optimizations_p
839 along with clip_changed in some cases.
840 (try_window_id): Likewise.
841 (redisplay_window): New local var buffer_unchanged_p.
842
843 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
844
845 * process.c (create_process): Test USG_SUBTTY_WORKS.
846 (process_send_signal): Clean up handling of GID.
847 Detect errors in ioctls meant to set GID.
848
849 * window.c (temp_output_buffer_show):
850 Don't set prevent_redisplay_optimizations_p.
851
852 2002-07-15 Juanma Barranquero <lektu@terra.es>
853
854 * eval.c (Fdefvaralias): Add docstring argument.
855
856 2002-07-15 Ken Raeburn <raeburn@gnu.org>
857
858 * lisp.h (STRING_INTERVALS): Produce rvalue.
859 (STRING_SET_INTERVALS): New macro.
860 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
861 * fns.c (Fstring_as_multibyte): Likewise.
862 * intervals.c (balance_possible_root_interval, delete_interval)
863 (create_root_interval, copy_intervals_to_string): Likewise.
864 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
865 instead of 0.
866
867 2002-07-14 Ken Raeburn <raeburn@gnu.org>
868
869 * lisp.h (STRING_SET_CHARS): New macro.
870 (SCHARS, SBYTES): Produce rvalues.
871 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
872 * fns.c (concat): Likewise.
873 * lread.c (read_vector): Likewise.
874
875 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
876 (STRING_SET_UNIBYTE): New macro.
877 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
878 length of -1) changed to use STRING_SET_UNIBYTE.
879 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
880 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
881 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
882 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
883 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
884 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
885 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
886 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
887 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
888 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
889 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
890 STRING_BYTES or indirection changed to SCHARS, SBYTES,
891 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
892 unchanged for now.
893
894 2002-07-13 Kim F. Storm <storm@cua.dk>
895
896 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
897
898 2002-07-12 Richard M. Stallman <rms@gnu.org>
899
900 * fileio.c (Fwrite_region): Doc fix.
901
902 * print.c (print_error_message): Don't handle Vsignaling_function here.
903
904 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
905 (command_loop_1): Avoid certain actions after memory-full error.
906
907 * eval.c (Fsignal): Don't call cancel_hourglass.
908 For a memory-full error, don't call Vsignal_hook_function
909 and don't set Vsignaling_function.
910
911 * process.c (process_send_signal): Add abort call.
912
913 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
914
915 * keymap.c (Fkey_binding): Fix typo.
916
917 2002-07-11 Richard M. Stallman <rms@gnu.org>
918
919 * alloc.c (Vmemory_full): New variable.
920 (Vmemory_signal_data): Renamed from memory_signal_data.
921 Uses changed.
922 (syms_of_alloc): Defvar them.
923 (memory_full, buffer_memory_full): Set Vmemory_full.
924
925 * lisp.h (Vmemory_full): Add declaration.
926 (current_column, indented_beyond_p): Change declaration.
927
928 * indent.c (last_known_column): Declare as double, not float.
929 (current_column, current_column_1, string_display_width)
930 (position_indentation): Return `double'.
931 (indented_beyond_p): Arg `column' is `double'. Callers changed.
932
933 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
934 (back_to_previous_visible_line_start)
935 (reseat_at_next_visible_line_start, next_element_from_buffer):
936 Use `double', not `float', when calling indented_beyond_p.
937
938 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
939
940 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
941
942 2002-07-11 Juanma Barranquero <lektu@terra.es>
943
944 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
945 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
946 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
947 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
948 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
949 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
950
951 2002-07-10 Juanma Barranquero <lektu@terra.es>
952
953 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
954 changed.
955
956 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
957
958 * data.c (Fdefalias): Add an optional `docstring' argument.
959 (set_internal, Fsetq_default): Use XCAR/XCDR.
960
961 * composite.c (HASH_VALUE, HASH_KEY):
962 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
963
964 2002-07-09 Kenichi Handa <handa@etl.go.jp>
965
966 * callproc.c (Fcall_process): Fix previous change.
967
968 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
969
970 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
971 Add support for hash-tables.
972 (Ftry_completion): Return t even if the string appears multiple times.
973
974 * fns.c (Fnconc): Use XCDR.
975 (Fprovide): Use CONSP and XCDR.
976 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
977 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
978 (Fmake_hash_table): Accept `:size nil'.
979 (Fmakehash): Delete: moved to subr.el.
980 (syms_of_fns): Don't defsubr makehash.
981
982 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
983 (HASH_TABLE_SIZE): Move from fns.c.
984
985 2002-07-07 Richard M. Stallman <rms@gnu.org>
986
987 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
988 Instead just return 0 when there is something to be done.
989 (try_scrolling): If make_cursor_line_fully_visible returns 0,
990 retry scrolling as if cursor were off the bottom.
991 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
992 return CURSOR_MOVEMENT_MUST_SCROLL.
993 (redisplay_window): If make_cursor_line_fully_visible returns 0,
994 go to try_to_scroll.
995
996 * buffer.c (Fbuffer_local_value): Store current value into its binding
997 so we get the up-to-date value for the binding that is loaded.
998
999 * eval.c (Fdefmacro): Doc fix.
1000
1001 2002-07-05 Dave Love <fx@gnu.org>
1002
1003 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
1004 correctly.
1005
1006 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
1007 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
1008 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
1009 CCL_LookupCharConstTbl.
1010 (syms_of_ccl): Defvar translation-hash-table-vector.
1011
1012 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1013
1014 * xdisp.c: Remove unused variable `face'.
1015
1016 2002-07-04 Juanma Barranquero <lektu@terra.es>
1017
1018 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
1019 obsolescence information.
1020
1021 2002-07-03 Andrew Choi <akochoi@shaw.ca>
1022
1023 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
1024 pattern. Search cache first.
1025 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
1026 for Japanese font.
1027 (XLoadQueryFont): Use it.
1028
1029 2002-07-02 Richard M. Stallman <rms@gnu.org>
1030
1031 * keymap.c (Fdefine_key): Doc fix.
1032
1033 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
1034
1035 2002-07-02 Juanma Barranquero <lektu@terra.es>
1036
1037 * keymap.c (syms_of_keymap): Fix typo.
1038
1039 2002-07-01 Andrew Choi <akochoi@shaw.ca>
1040
1041 * s/darwin.h: Define POSIX_SIGNALS.
1042
1043 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
1044 and FSRefMakePath to convert FSSpec returned with Apple Event to
1045 Posix pathname.
1046 (mac_initialize) [TARGET_API_MAC_CARBON]:
1047 Call init_required_apple_events and disable the `Quit' menu item
1048 provided automatically by the Carbon Toolbox.
1049
1050 2002-07-01 Dave Love <fx@gnu.org>
1051
1052 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
1053 for K&R.
1054
1055 * xterm.c: Fix prototype for K&R.
1056
1057 * term.c (costs_set): Declare static, non-initialized for pcc.
1058
1059 2002-07-01 Richard M. Stallman <rms@gnu.org>
1060
1061 * keyboard.c (timer_last_idleness_start_time): New variable.
1062 (timer_start_idle): Set that.
1063 (read_key_sequence): Use that to reset timer_idleness_start_time
1064 to previous value.
1065
1066 * window.c (Frecenter): With arg, set optional_new_start.
1067
1068 * xdisp.c (redisplay_internal): Make optional_new_start really work.
1069
1070 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
1071 buffer for completion.
1072
1073 2002-06-29 Ken Raeburn <raeburn@gnu.org>
1074
1075 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
1076
1077 2002-06-28 Jan D. <jan.h.d@swipnet.se>
1078
1079 * keyboard.c (readable_filtered_events): New function that filters
1080 FOCUS_IN_EVENT depending on parameter.
1081 (readable_events): Calls readable_filtered_events, not filtering
1082 FOCUS_IN_EVENT.
1083 (get_filtered_input_pending): New function, filtering parameter passed
1084 to readable_filtered_events.
1085 (get_input_pending): Calls get_filtered_input_pending, not filtering
1086 FOCUS_IN_EVENT.
1087 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
1088 FOCUS_IN_EVENT.
1089
1090 * xterm.h (struct x_output): Add focus_state.
1091
1092 * xterm.c (x_focus_changed): New function.
1093 (x_detect_focus_change): New function.
1094 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
1095 EnterNotify and LeaveNotify to track X focus changes.
1096
1097 2002-06-28 Andreas Schwab <schwab@suse.de>
1098
1099 * lisp.h: Remove duplicate declaration of
1100 code_convert_string_norecord.
1101
1102 2002-06-27 Kim F. Storm <storm@cua.dk>
1103
1104 * xdisp.c: (mode_line_string_list, mode_line_string_face)
1105 (mode_line_string_face_prop): New variables.
1106 (store_mode_line_string): New function.
1107 (display_mode_element): Use store_mode_line_string to
1108 add mode-line string elements to mode_line_string_list
1109 when mode_line_string_list is non-nil.
1110 (Fformat_mode_line): Now returns propertized string by
1111 default. New arg NO-PROPS to ignore properties.
1112 (decode_mode_spec): Only add two dashes for %- in propertized
1113 mode-line string.
1114 (syms_of_xdisp): Init and staticpro mode_line_string_list.
1115
1116 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
1117
1118 * minibuf.c (minibuffer_completion_contents): Add return type.
1119
1120 2002-06-27 Juanma Barranquero <lektu@terra.es>
1121
1122 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
1123
1124 2002-06-26 Juanma Barranquero <lektu@terra.es>
1125
1126 * fileio.c (read_file_name_cleanup): Add missing return.
1127
1128 2002-06-26 Richard M. Stallman <rms@gnu.org>
1129
1130 * window.c (Frecenter): Don't set force_start flag.
1131
1132 * minibuf.c (do_completion, Fminibuffer_complete_word)
1133 (Fminibuffer_completion_help): Complete just the text before point.
1134 (minibuffer_completion_contents): New function.
1135
1136 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
1137
1138 * frame.c (frames_bury_buffer): Function deleted.
1139
1140 2002-06-25 Miles Bader <miles@gnu.org>
1141
1142 * callint.c (Fcall_interactively): When checking to see if doprnt hit
1143 the end of callint_message, allow for a terminating '\0'.
1144
1145 2002-06-24 Juanma Barranquero <lektu@terra.es>
1146
1147 * w32select.c: Include composite.h
1148
1149 * w16select.c: Likewise.
1150
1151 2002-06-24 Kenichi Handa <handa@etl.go.jp>
1152
1153 * callproc.c (Fcall_process): If code detection is necessary,
1154 call detect_coding directly here.
1155
1156 * coding.c (detect_eol): Preserve coding->cmp_data.
1157
1158 * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
1159
1160 * w32fns.c (w32_to_x_font): Disable composition handling.
1161
1162 * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
1163
1164 * xselect.c (selection_data_to_lisp_data): Disable composition
1165 handling.
1166
1167 * xterm.c (XTread_socket): Disable composition handling.
1168
1169 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
1170
1171 * print.c (temp_output_buffer_setup): Kill all local variables.
1172
1173 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
1174
1175 * lread.c (Fread): Remove redundant and imprecise declaration.
1176
1177 * xfns.c (check_x_display_info): Use check_x_frame.
1178
1179 * .gdbinit (xprintsym): Use the new `xname' field.
1180 (xsymbol): Use it.
1181
1182 2002-06-22 Jason Rumney <jasonr@gnu.org>
1183
1184 * w32fns.c (file_dialog_callback): New function.
1185 (Fx_file_dialog): Allow selecting directories as well as files.
1186
1187 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1188
1189 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
1190 OpenBSD. Add support for mipseb-*-netbsd* machines.
1191
1192 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1193
1194 * macterm.c (mac_scroll_area): Set foreground and backcolor to
1195 black and white before scrolling. Restore frame background and
1196 foreground color after scrolling.
1197 (do_window_update): Call XClearWindow before calling expose_frame.
1198 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
1199 FRAME_FOREGROUND_PIXEL of frame.
1200
1201 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1202 test Mac command key as <ALT> key.
1203
1204 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
1205
1206 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
1207
1208 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
1209 Lookup keys in function-key-map immediately so that key-translation-map
1210 can be applied earlier.
1211 Remove function_key_possible and key_translation_possible, replaced
1212 by checking `keytran_start < t'.
1213
1214 * .gdbinit (xsymbol): Use the new `xname' field.
1215
1216 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1217
1218 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1219 test Mac command key as <ALT> key.
1220
1221 * mac.c (do_applescript): Call initialize_applescript if necessary
1222 when first called. Dispose of result_desc only when there is no error.
1223 (Fdo_applescript): Use %d format specifier instead of %ld.
1224
1225 2002-06-16 Andrew Choi <akochoi@shaw.ca>
1226
1227 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
1228 of FrontWindow for cases keyDown and autoKey.
1229
1230 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
1231 Vdefault_fontset to Monaco with mac-roman coding.
1232
1233 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
1234 init_process before and after inclusion of Carbon/Carbon.h, resp.
1235
1236 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
1237 cursor_gc.
1238 (add_font_name_table_entry): New function.
1239 (init_font_name_table): Use add_font_name_table_entry; add italic,
1240 bold, and bold-italic entries for truetype fonts.
1241
1242 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
1243 for Mac too.
1244 (try_font_list) [MAC_OS]: If no font matches given registry, try
1245 fonts with any registry matching face_family.
1246 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
1247
1248 * s/darwin.h: If autoconf detects the Ncurses library, define
1249 LIBS_TERMCAP to -lncurses to use it.
1250
1251 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
1252
1253 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
1254
1255 2002-06-15 Richard M. Stallman <rms@gnu.org>
1256
1257 * window.c (Fset_window_configuration): Explicitly preserve
1258 the point value that new_current_buffer had at the start.
1259
1260 2002-06-14 Juanma Barranquero <lektu@terra.es>
1261
1262 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
1263 Fix typos.
1264
1265 2002-06-14 Kim F. Storm <storm@cua.dk>
1266
1267 * insdel.c (insert_1_both, insert_from_string_1)
1268 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
1269 insert happened in the end_unchanged region. Otherwise, the
1270 redisplay may be confused and duplicate the last line in the
1271 buffer [seen after save-buffer when require-final-newline==t].
1272
1273 2002-06-13 Jason Rumney <jasonr@gnu.org>
1274
1275 * w32.c (init_environment): Remove EMACSLOCKDIR.
1276 (stat): Swap _S_IFDIR and _S_IFREG.
1277
1278 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1279
1280 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
1281 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
1282 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
1283 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
1284 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
1285 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
1286 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
1287 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
1288 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
1289 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
1290 SELECTION_REQUEST_EVENT, selection_clear_event to
1291 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
1292 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
1293 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
1294 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
1295 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
1296 no_event to NO_EVENT.
1297
1298 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1299
1300 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
1301
1302 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
1303
1304 * intervals.c (textget): Don't forget to `return'.
1305 (lookup_char_property): Use XCAR/XCDR.
1306
1307 2002-06-12 Juanma Barranquero <lektu@terra.es>
1308
1309 * xdisp.c (Fformat_mode_line): Fix typo.
1310
1311 2002-06-12 Kim F. Storm <storm@cua.dk>
1312
1313 * xdisp.c (Fformat_mode_line): New function.
1314 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
1315 (store_frame_title_char, store_frame_title): Use unconditionally.
1316 (init_xdisp): Defsubr Fformat_mode_line.
1317 Initialize frame_title_buf etc. unconditionally.
1318
1319 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
1320
1321 * keyboard.c (read_key_sequence):
1322 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
1323 things through those maps after downcasing events.
1324 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
1325 applies after function-key-map.
1326 Make sure that keytran can be done in the middle in the sequence.
1327 Be careful not to throw away events past the one we downcase.
1328
1329 * lread.c (read_integer): Remove unused var `tem'.
1330 (read1): Fix int/Lisp_Object mixup.
1331
1332 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
1333
1334 2002-06-11 Richard M. Stallman <rms@gnu.org>
1335
1336 * keyboard.c (readable_events): Ignore any number of
1337 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
1338
1339 2002-06-09 Miles Bader <miles@gnu.org>
1340
1341 * xfaces.c (Ftty_supports_face_attributes_p): New function.
1342 (parse_rgb_list, tty_lookup_color): New functions.
1343 (tty_defined_color): Use `tty_lookup_color' to do all the work.
1344 (color_distance, Fcolor_distance): New functions.
1345 (TTY_SAME_COLOR_THRESHOLD): New macro.
1346 (Qtty_color_standard_values): New variable.
1347 (syms_of_xfaces): Initialize new vars & functions.
1348
1349 2002-06-08 Colin Walters <walters@verbum.org>
1350
1351 * textprop.c (Vchar_property_alias_alist): New variable.
1352 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
1353
1354 * intervals.c (lookup_char_property): New function for looking up
1355 overlay and text properties, created from textget.
1356 (textget): Use it.
1357
1358 * intervals.h (lookup_char_property): Declare.
1359 (Vchar_property_alias_alist): Declare.
1360
1361 * buffer.c (Foverlay_get): Use lookup_char_property.
1362
1363 2002-06-07 Sam Steingold <sds@gnu.org>
1364
1365 * xselect.c (lisp_data_to_selection_data): Fix last change:
1366 *data_ret is not a Lisp string, while unibyte_string is.
1367
1368 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
1369
1370 * xselect.c (lisp_data_to_selection_data): Fix last change:
1371 set size_ret.
1372
1373 2002-06-07 Andreas Schwab <schwab@suse.de>
1374
1375 * m/amdx86-64.h: New file.
1376
1377 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
1378
1379 * fns.c (Fstring_make_unibyte): Doc fix.
1380
1381 * xselect.c (lisp_data_to_selection_data): If the requested type
1382 is STRING, call string_make_unibyte to encode the selected text
1383 as a string.
1384
1385 * window.c (Fset_window_hscroll): Doc fix.
1386
1387 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1388
1389 * fileio.c (choose_write_coding_system):
1390 Call select-safe-coding-system properly.
1391
1392 2002-06-03 Richard M. Stallman <rms@gnu.org>
1393
1394 * xdisp.c (message_with_string): Error if STRING is not a string.
1395
1396 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
1397
1398 * fileio.c (choose_write_coding_system): Pass FILE arg to
1399 Vselect_safe_coding_system_function.
1400
1401 2002-06-03 Ken Raeburn <raeburn@gnu.org>
1402
1403 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
1404
1405 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
1406
1407 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
1408 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
1409 * keymap.c (describe_command): Likewise.
1410 * minibuf.c (read_minibuf): Likewise.
1411
1412 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1413 Cast `current_column' return value to int.
1414 (back_to_previous_visible_line_start)
1415 (reseat_at_next_visible_line_start, next_element_from_buffer):
1416 Cast `indented_beyond_p' 3rd arg to float.
1417
1418 * indent.c (last_known_column): Now a float.
1419 (current_column_1, position_indentation, current_column)
1420 (string_display_width): Return float.
1421 (Fcurrent_column): Cast `current_column' return value to int.
1422 (Fcurrent_indentation): Cast `position_indentation' retval to int.
1423 (indented_beyond_p): Third arg now a float.
1424 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
1425
1426 * lisp.h (current_column): Now returns float.
1427 (indented_beyond_p): 3rd arg now a float.
1428
1429 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
1430
1431 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
1432 is Qcompound_text_with_extensions.
1433
1434 * xselect.c (lisp_data_to_selection_data): Always set selection
1435 type as string if x_encode_text returns streingp non-NULL.
1436
1437 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
1438
1439 2002-05-30 Richard M. Stallman <rms@gnu.org>
1440
1441 * window.c (Fset_window_configuration): Correct the handling
1442 of point in current buffer, to work with multiple windows.
1443
1444 2002-05-29 Colin Walters <walters@verbum.org>
1445
1446 * lread.c (Fread_from_string): Don't depend on order of evaluation
1447 for C function parameters.
1448
1449 2002-05-28 Richard M. Stallman <rms@gnu.org>
1450
1451 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
1452 way for blinked-off state and for a nonselected window.
1453
1454 * window.c (window_scroll_pixel_based): Don't call Fbolp;
1455 instead, see if the new start pos is at beginning of line.
1456
1457 * fileio.c (Fwrite_region): If START is a string, don't
1458 make any annotations.
1459
1460 * eval.c (syms_of_eval): Doc fix.
1461
1462 2002-05-28 Colin Walters <walters@debian.org>
1463
1464 * emacs.c (USAGE1): Add --no-splash.
1465 (standard_args): Ditto.
1466
1467 2002-05-28 Colin Walters <walters@gnu.org>
1468
1469 * lread.c (readchar_count): New variable.
1470 (readchar): Increment it.
1471 (unreadchar): Decrement it.
1472 (read_multibyte): Decrement it.
1473 (Vread_with_symbol_positions): New variable.
1474 (Vread_symbol_positions_list): New variable.
1475 (read_internal_start): New function, created from Fread and
1476 Fread_from_string. Handle Vread_symbol_positions_list and
1477 Vread_with_symbol_positions.
1478 (readevalloop, Fread, Fread_from_string): Use it.
1479 (read1): Use readchar_count to add symbol positions to
1480 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
1481 (syms_of_lread): DEFVAR_LISP and initialize them.
1482
1483 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
1484 (substitute_object_recurse, substitute_object_in_subtree)
1485 (substitute_in_interval): Prototype.
1486 (read_multibyte): Return c if it's less than zero.
1487
1488 2002-05-28 Kim F. Storm <storm@cua.dk>
1489
1490 * fileio.c (Fread_file_name_internal): Added brute-force
1491 speed up for using predicate file-directory-p.
1492
1493 2002-05-28 Kim F. Storm <storm@cua.dk>
1494
1495 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
1496 New variables.
1497 (syms_of_fileio): DEFVAR_LISP them.
1498 (read_file_name_cleanup): New unwind function.
1499 (Fread_file_name_internal): Only return completions satifying
1500 Vread_file_name_predicate. Temporarily unwind protect and rebind
1501 default-directory while checking completions against the predicate.
1502 (Fread_file_name): Added PREDICATE argument. Specbind it to
1503 Vread_file_name_predicate during completion.
1504 Call Vread_file_name_function to read the file name if non-nil.
1505
1506 * lisp.h (Fread_file_name): Now has 6 args.
1507
1508 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
1509 predicate for Fread_file_name when reading directory name.
1510 Supply Qnil for predicate in other calls to Fread_file_name.
1511
1512 2002-05-26 Miles Bader <miles@gnu.org>
1513
1514 * term.c (tty_capable_p): New function.
1515 * dispextern.h (tty_capable_p): New function declaration.
1516 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
1517 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
1518
1519 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
1520
1521 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
1522 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
1523 (Vwrite_region_annotate_functions): Docstring fix.
1524
1525 2002-05-23 Kim F. Storm <storm@cua.dk>
1526
1527 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
1528 phys_cursor's hpos is overwritten. This is still not completely
1529 correct, as it doesn't really make sense to use hpos at all to
1530 get the cursor glyph (as that is relative to the width of the
1531 characters on the line, which may have changed during the update).
1532
1533 2002-05-22 Jason Rumney <jasonr@gnu.org>
1534
1535 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
1536 Lisp_Object.
1537 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
1538 Use modified enumfont_t struct.
1539
1540 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
1541
1542 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
1543 Handle the `hbar' cursor type.
1544 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
1545
1546 * w32fns.c (Qhbar): New variable.
1547 (x_specified_cursor_type): Use it.
1548
1549 2002-05-21 Ken Raeburn <raeburn@gnu.org>
1550
1551 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
1552 now, when the address is needed.
1553
1554 2002-05-21 Colin Walters <walters@gnu.org>
1555
1556 * Makefile.in (shortlisp): Add font-core.el.
1557
1558 2002-05-20 Richard M. Stallman <rms@gnu.org>
1559
1560 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1561
1562 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
1563 equivalent key bindings here.
1564
1565 2002-05-20 Ken Raeburn <raeburn@gnu.org>
1566
1567 Change symbol structure to contain a lisp object for the symbol
1568 name:
1569 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
1570 object field named "xname".
1571 (SYMBOL_NAME): New macro.
1572 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
1573 name field.
1574 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
1575 (mark_object, gc_sweep): Use symbol xname field and XSTRING
1576 instead of name field.
1577 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
1578 SYMBOL_NAME instead of XSYMBOL and name field.
1579 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
1580 instead of XSYMBOL and name field.
1581 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
1582 and SYMBOL_NAME instead of XSYMBOL and name field.
1583 * coding.c (Fread_coding_system, code_convert_region1)
1584 (code_convert_string1, code_convert_string_norecord)
1585 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
1586 XSYMBOL and name field.
1587 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
1588 (Fmake_variable_buffer_local, Fmake_local_variable)
1589 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
1590 of XSYMBOL and name field.
1591 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
1592 XSYMBOL and name field.
1593 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
1594 instead of XSYMBOL and name field.
1595 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
1596 XSYMBOL and name field.
1597 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
1598 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
1599 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
1600 instead of XSYMBOL and name field.
1601 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
1602 (parse_modifiers, apply_modifiers, Fevent_convert_list)
1603 (parse_solitary_modifier, Fexecute_extended_command):
1604 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
1605 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
1606 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
1607 of XSYMBOL and name field.
1608 (describe_command, describe_translation): Use SYMBOL_NAME and
1609 assignment instead of XSYMBOL and name field and XSETSTRING.
1610 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
1611 instead of XSYMBOL and name field.
1612 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
1613 name field and XSETSTRING.
1614 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
1615 of XSYMBOL and name field.
1616 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
1617 assignment instead of XSYMBOL and name field and XSETSTRING.
1618 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
1619 XSTRING instead of XSYMBOL and name field.
1620 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
1621 and XSTRING instead of XSYMBOL and name field.
1622 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
1623 and XSTRING instead of XSYMBOL and name field.
1624 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
1625 XSTRING instead of XSYMBOL and name field.
1626 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
1627 of XSYMBOL and name field.
1628 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
1629 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
1630
1631 2002-05-19 Ken Raeburn <raeburn@gnu.org>
1632
1633 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
1634 and XCDR real rvalues in most configurations.
1635
1636 * buffer.c (fix_overlays_in_range, fix_overlays_before):
1637 Don't take the address of the cdr part of a cons cell; instead, track
1638 the parent cell and call XSETCDR, or set the variable for the head
1639 of the list if we haven't started down the list yet.
1640
1641 2002-05-19 Richard M. Stallman <rms@gnu.org>
1642
1643 * doc.c (reread_doc_file): Don't ask for confirmation.
1644
1645 2002-05-18 Jason Rumney <jasonr@gnu.org>
1646
1647 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
1648 (xbm_load_image): Use it.
1649 (xbm_load): Ditto.
1650 (xbm_read_bitmap_data): Reverted to xfns.c version.
1651 From David Ponce <david@dponce.com>.
1652
1653 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
1654
1655 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
1656 2.02 and later.
1657
1658 2002-05-16 Juanma Barranquero <lektu@terra.es>
1659
1660 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
1661
1662 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
1663
1664 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
1665 meaningful test.
1666 (read_char_minibuf_menu_prompt): Fix typo.
1667
1668 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1669
1670 * eval.c (Fcommandp): Doc fix.
1671
1672 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
1673
1674 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
1675 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
1676 (Fset_keymap_parent): Gcpro a bit more.
1677 (access_keymap): Gcpro around meta_map call and around the main loop.
1678 (get_keyelt): Gcpro when following indirect references.
1679 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
1680 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
1681 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
1682 Remove useless ad-hoc remap code.
1683
1684 2002-05-13 Richard M. Stallman <rms@gnu.org>
1685
1686 * search.c (search_buffer): Give up boyer moore search if inverse
1687 translation change charset_base.
1688
1689 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1690
1691 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
1692 characters is carried over from the previous block of text, adjust
1693 coding->produced to account for the extra character.
1694
1695 2002-05-11 Andreas Schwab <schwab@suse.de>
1696
1697 * coding.c (intersection): Keep the elements of the returned list
1698 in the same order as in the first list.
1699
1700 2002-05-11 Kim F. Storm <storm@cua.dk>
1701
1702 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
1703 only update cmm_size if realloc actually succeeds.
1704 Testing with initial size of 2 elements revealed that using
1705 realloc on GNU/Linux would cause a random trap in xmalloc
1706 later on, so I rewrote the code to use malloc/bcopy/free instead
1707 of realloc.
1708
1709 2002-05-10 Jason Rumney <jasonr@gnu.org>
1710
1711 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
1712
1713 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
1714
1715 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
1716 parens, to ensure correct evaluation order.
1717
1718 2002-05-10 Kim F. Storm <storm@cua.dk>
1719
1720 * keymap.c (Vemulation_mode_map_alists): New variable.
1721 (syms_of_keymap): DEFVAR_LISP it.
1722 (current_minor_maps): Process keymap alists in that list before
1723 minor-mode-overriding-map-alist and minor-mode-map-alist.
1724
1725 2002-05-09 Richard M. Stallman <rms@gnu.org>
1726
1727 * search.c (Freplace_match): Doc fix.
1728
1729 2002-05-09 Kim F. Storm <storm@cua.dk>
1730
1731 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
1732 Enlarge cursor rectangle drawn around image with non-zero relief.
1733
1734 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
1735 Enlarge cursor rectangle drawn around image with non-zero relief.
1736
1737 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
1738 Enlarge cursor rectangle drawn around image with non-zero relief.
1739
1740 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
1741
1742 * xselect.c (lisp_data_to_selection_data): Don't set selection
1743 type if comes from the Lisp object's car. If the selection
1744 contains a pure ASCII text, always return QSTRING as its type.
1745
1746 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1747
1748 * mac.c (mac-cut-function): Doc fix.
1749
1750 2002-05-05 Richard M. Stallman <rms@gnu.org>
1751
1752 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
1753
1754 2002-05-04 Jason Rumney <jasonr@gnu.org>
1755
1756 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
1757 for event-click-count.
1758
1759 * process.c (init_process): Only add server subfeature if we can
1760 use non-blocking I/O.
1761
1762 2002-05-04 Andrew Choi <akochoi@shaw.ca>
1763
1764 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
1765 repeatedly.
1766
1767 2002-05-03 Jason Rumney <jasonr@gnu.org>
1768
1769 * process.c (Fmake_network_process): Only support server sockets
1770 when we can make them non-blocking.
1771
1772 * s/ms-w32.h (HAVE_SELECT): Define.
1773
1774 * w32.h (FILE_NDELAY): New flag.
1775
1776 * w32.c (sys_getpeername, fcntl): New functions.
1777 (_sys_read_ahead): Temporarily block on non-blocking sockets.
1778
1779 * w32proc.c: include sys/file.h.
1780
1781 2002-05-03 Colin Walters <walters@verbum.org>
1782
1783 * callproc.c (Vgame_score_directory): Renamed to
1784 Vshared_game_score_directory.
1785
1786 2002-04-30 Richard M. Stallman <rms@gnu.org>
1787
1788 * s/gnu.h [emacs]: Include stdio.h.
1789 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
1790
1791 * eval.c (do_autoload): Error if called while preparing to dump.
1792
1793 * fns.c (Frequire): Error if need to load while preparing to dump.
1794
1795 2002-04-28 Colin Walters <walters@verbum.org>
1796
1797 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
1798 Default to "~/.emacs.d/games".
1799
1800 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
1801
1802 * lread.c (openp): Change arg exec_only to predicate.
1803 (build_load_history): Use XCAR/XCDR.
1804 (Flocate_file_internal): New fun.
1805 (syms_of_lread): Defsubr it.
1806 (Fload): Update call to openp.
1807
1808 * lisp.h (openp): Update prototype.
1809
1810 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1811 * w32proc.c (sys_spawnve):
1812 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1813 * w32.c (check_windows_init_file):
1814 * sound.c (Fplay_sound_internal):
1815 * process.c (Fstart_process):
1816 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
1817 * mac.c (run_mac_command):
1818 * emacs.c (init_cmdargs):
1819 * callproc.c (Fcall_process): Update call to openp.
1820
1821 * textprop.c (remove_properties): Don't use XCAR without CONSP.
1822
1823 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
1824
1825 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1826
1827 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
1828 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
1829
1830 2002-04-28 Richard M. Stallman <rms@gnu.org>
1831
1832 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
1833
1834 * eval.c (Fcommandp): New arg for_call_interactively.
1835 * lisp.h (Fcommandp): Declare new arg.
1836
1837 2002-04-28 Jason Rumney <jasonr@gnu.org>
1838
1839 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
1840
1841 * w32.c (stat, fstat): Use file index information to generate
1842 inodes for directories where available.
1843
1844 2002-04-26 Andrew Choi <akochoi@shaw.ca>
1845
1846 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
1847 [HAVE_CARBON]: Include Mac object files.
1848
1849 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
1850 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
1851 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
1852 MAC_OSX, and MAC_OS instead of macintosh.
1853
1854 * editfns.c [MAC_OS8]: Include stdio.h.
1855
1856 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
1857
1858 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
1859 Apple Monaco.
1860
1861 * process.c: Declare QCfamily and QCfilter as extern.
1862 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
1863 calling select.
1864
1865 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
1866
1867 * tparam.c [MAC_OSX]: Don't define BC and UP.
1868
1869 * config.in [HAVE_CARBON]: Add.
1870
1871 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
1872 Move here from mac/src and mac/inc.
1873
1874 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
1875
1876 2002-04-26 Gerd Moellmann <gerd@gnu.org>
1877
1878 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
1879 Compute phys_cursor_width from the x position returned
1880 by x_draw_glyhs, which is cheaper.
1881 (x_display_and_set_cursor): Compute the buffer-local value
1882 of `cursor-in-non-selected-windows' only when needed.
1883
1884 2002-04-25 Gerd Moellmann <gerd@gnu.org>
1885
1886 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
1887 cursor on a stretch glyph has a width that depends on
1888 x_stretch_cursor_p.
1889
1890 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1891
1892 * abbrev.c (abbrev-start-location): Doc fix.
1893
1894 * indent.c (Fvertical_motion): Fix last change.
1895
1896 2002-04-25 Gerd Moellmann <gerd@gnu.org>
1897
1898 * indent.c (Fvertical_motion): Move to the start of the line
1899 containing PT before moving up or down.
1900
1901 2002-04-24 Gerd Moellmann <gerd@gnu.org>
1902
1903 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
1904 case of writing a whole row, more or less analogous to the case of
1905 writing only parts of a row.
1906
1907 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
1908 0 for NO_CURSOR.
1909
1910 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
1911
1912 2002-04-23 Colin Walters <walters@verbum.org>
1913
1914 * buffer.c (syms_of_buffer): Doc fix.
1915
1916 2002-04-23 Gerd Moellmann <gerd@gnu.org>
1917
1918 * xterm.c (notice_overwritten_cursor): Handle the special case
1919 of the cursor being in the first blank non-text line at the
1920 end of a window.
1921
1922 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1923 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1924 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
1925 bar cursors only, to make phys_cursor_width contain what its name
1926 suggests.
1927 (notice_overwritten_cursor): Consider the cursor image erased if
1928 the output area intersects the cursor image in y-direction.
1929
1930 2002-04-23 Simon Marshall <simon@gnu.org>
1931
1932 * xfns.c (x_set_mouse_color): Change default for cross_cursor
1933 to XC_hand2.
1934
1935 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1936
1937 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
1938
1939 2002-04-22 Kim F. Storm <storm@cua.dk>
1940
1941 * textprop.c (remove_properties): Fixed trap for malformed plist.
1942
1943 2002-04-22 Richard M. Stallman <rms@gnu.org>
1944
1945 * cmds.c (Fend_of_line): Handle intangible text in mid line.
1946
1947 * window.c (make_window): Initialize height_fixed_p,
1948 last_cursor_off_p, and p->cursor_off_p slots.
1949
1950 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1951
1952 * fns.c (use-dialog-box): Doc fix.
1953
1954 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1955
1956 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
1957 variables `row', `i' and `area'.
1958 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
1959 toolkit library.
1960
1961 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
1962
1963 * xfaces.c (clear_font_table): Don't free the default font of
1964 a frame even if it's on another display.
1965 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
1966 that could be Qt.
1967
1968 2002-04-19 Juanma Barranquero <lektu@terra.es>
1969
1970 * indent.c (Fmove_to_column): Remove unused local variable
1971 `next_boundary_byte'.
1972 (current_column_1): Likewise.
1973
1974 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1975
1976 * msdos.c (Qhbar): New variable.
1977 (syms_of_msdos): Intern and staticpro it.
1978 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
1979 cursor type.
1980
1981 2002-04-19 Dave Lambert <dlambert@acm.org>
1982
1983 Theses change implement an underscore-like (`hbar') cursor.
1984
1985 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
1986
1987 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
1988 Handle the `hbar' cursor type.
1989 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
1990
1991 * xfns.c (Qhbar): New variable.
1992 (syms_of_xfns): Intern and staticpro it.
1993 (x_specified_cursor_type): Handle `hbar' cursor.
1994
1995 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
1996 not defined.
1997
1998 2002-04-18 Richard M. Stallman <rms@gnu.org>
1999
2000 * textprop.c (remove_properties): New arg LIST allows scanning
2001 either a list or a plist.
2002 (interval_has_some_properties_list): New function, like
2003 interval_has_some_properties using list instead of plist.
2004 All callers changed.
2005 (Fremove_list_of_text_properties): New function.
2006 (syms_of_textprop): Defsubr it.
2007
2008 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
2009
2010 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
2011
2012 2002-04-17 Juanma Barranquero <lektu@terra.es>
2013
2014 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
2015
2016 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
2017
2018 * window.c (coordinates_in_window): Don't report on margin area
2019 if its width is zero.
2020
2021 2002-04-16 Jason Rumney <jasonr@gnu.org>
2022
2023 * w32fns.c (Fx_file_dialog): Decode file name before using.
2024
2025 * w32term.c (construct_drag_n_drop): Likewise.
2026
2027 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
2028
2029 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
2030 store load-history in pure space.
2031
2032 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
2033
2034 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
2035
2036 * xterm.c (Qlatin_1, Qutf_8): New vars.
2037 (syms_of_xterm): Initialize them.
2038 (XTread_socket): Eliminate incorrect optimization that tried to avoid
2039 decoding the output of X*LookupString.
2040 Always use latin-1 to decode the output of XLookupString.
2041 Try Xutf8LookupString if XmbLookupString failed.
2042
2043 * region-cache.c (new_region_cache): Use BEG.
2044
2045 2002-04-16 Gerd Moellmann <gerd@gnu.org>
2046
2047 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
2048 configuration files.
2049 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
2050 returns 0.
2051
2052 2002-04-15 Andreas Schwab <schwab@suse.de>
2053
2054 * config.in: Regenerated using autoheader.
2055
2056 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
2057 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
2058 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
2059 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
2060 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
2061 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
2062 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
2063 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
2064 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
2065 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
2066 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
2067 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
2068 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
2069 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
2070 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
2071 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
2072 STACK_DIRECTION, now set by autoconf.
2073
2074 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2075
2076 * dispnew.c (marginal_area_string): Sort arguments.
2077
2078 * dispextern.h (marginal_area_string): Add prototype.
2079
2080 2002-04-13 Richard M. Stallman <rms@gnu.org>
2081
2082 * fileio.c (Finsert_file_contents):
2083 Don't call temp_output_buffer_setup--do just part, by hand.
2084
2085 * coding.c (run_pre_post_conversion_on_str):
2086 Don't call temp_output_buffer_setup--do just part, by hand.
2087
2088 * keyboard.c (command_loop_1): Don't call start_hourglass
2089 or cancel_hourglass when executing a macro.
2090
2091 * marker.c (count_markers): New function.
2092
2093 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
2094 grow without limit. Move recently used elements to the front.
2095
2096 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2097
2098 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
2099
2100 2002-04-12 Gerd Moellmann <gerd@gnu.org>
2101
2102 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
2103 rows marginal areas.
2104 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
2105 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
2106
2107 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
2108
2109 2002-04-12 Dave Love <fx@gnu.org>
2110
2111 * dispnew.c (marginal_area_string): New.
2112
2113 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
2114 (Qleft_margin, Qright_margin): Declare.
2115 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
2116
2117 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
2118 note_mode_line_highlight and extended.
2119
2120 * keyboard.c (Qleft_margin, Qright_margin): Declare.
2121 (make_lispy_event): Deal with mouse events in margins.
2122
2123 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
2124
2125 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
2126
2127 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
2128 than deactivating the mark if tmm is set to `lambda'.
2129 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
2130 Use a single event for HELP_EVENT.
2131 (Fexecute_extended_command): Save last_point_position.
2132
2133 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2134
2135 * lisp.h (Fpropertize): Add prototype.
2136
2137 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
2138
2139 2002-04-10 Colin Walters <walters@verbum.org>
2140
2141 * config.in: Add HAVE_SHARED_GAME_DIR.
2142
2143 * callproc.c: (Vgame_score_directory): New variable.
2144 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
2145
2146 2002-04-10 Richard M. Stallman <rms@gnu.org>
2147
2148 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
2149
2150 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
2151
2152 * minibuf.c (read_minibuf): Use empty_string.
2153 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
2154 Short-circuit the search as soon as it "failed".
2155 (Fall_completions): Allow lambda forms and lists of strings for alist.
2156 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
2157 when require_match is nil.
2158 (Ftest_completion): Rename from `test_completion' and export to elisp.
2159 Call the predicate also when alist is a list.
2160 Obey Vcompletion_regexp_list.
2161 (do_completion, Fminibuffer_complete_and_exit): Use it.
2162 (Fassoc_string): Rename from `assoc_for_completion'.
2163 Allow list of strings as well and export to elisp.
2164
2165 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
2166
2167 * puresize.h (BASE_PURESIZE): Increase to 900KB.
2168
2169 2002-04-08 Juanma Barranquero <lektu@terra.es>
2170
2171 * w32.c (sys_accept): Don't hide variable `s'.
2172
2173 2002-04-05 Gerd Moellmann <gerd@gnu.org>
2174
2175 * callint.c (Fcall_interactively): Use INTEGERP instead of
2176 NUMBERP for checking Vhistory_length.
2177
2178 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2179
2180 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
2181 Doc fix to reflect it.
2182
2183 2002-04-04 Richard M. Stallman <rms@gnu.org>
2184
2185 * xdisp.c (display_mode_element): New arg RISKY.
2186 Disregard text props found or specified within a variable
2187 that isn't marked risky-local-variable.
2188 (Qrisky_local_variable): New variable.
2189 (syms_of_xdisp): Init and staticpro it.
2190
2191 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
2192
2193 * undo.c (record_point): New fun.
2194 (record_delete, record_insert): Use it.
2195
2196 2002-04-03 Juanma Barranquero <lektu@terra.es>
2197
2198 * doc.c (Fdocumentation): Add missing parentheses.
2199 (Fdocumentation_property): Likewise.
2200
2201 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
2202
2203 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
2204 data is 0, just return nil.
2205
2206 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
2207
2208 * msdos.c (syms_of_msdos): Fix last change with
2209 mouse_autoselect_window.
2210
2211 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2212
2213 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
2214 mouse_autoselect_window.
2215
2216 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
2217
2218 * keyboard.c (make_lispy_event): Handle unknown keysyms together
2219 with system-specific keysyms. Use it also for unknown function keys.
2220
2221 * doc.c (reread_doc_file): Return whether reload was attempted.
2222 (Fdocumentation, Fdocumentation_property): Don't try to reload
2223 if the doc is 0 and only ask once.
2224
2225 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
2226
2227 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
2228
2229 * keyboard.c (read_char): If the event was Qselect_window,
2230 restore timer_idleness_start_time to its previous value.
2231
2232 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
2233
2234 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
2235
2236 * region-cache.c (new_region_cache): Use BEG.
2237
2238 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
2239 Use BEG and BEG_BYTE.
2240
2241 * doc.c (get_doc_string): Return nil if the location is wrong.
2242 (reread_doc_file): New fun.
2243 (Fdocumentation, Fdocumentation_property):
2244 Call it if get_doc_string fails.
2245 (Fsnarf_documentation): Make it work for a dumped Emacs.
2246
2247 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
2248 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
2249
2250 * charset.c (Fstring): Allow 0 arguments.
2251
2252 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
2253
2254 * process.c (DATAGRAM_CONN_P, list_processes_1)
2255 (Fprocess_datagram_address, Fset_process_datagram_address)
2256 (Fset_network_process_options, server_accept_connection):
2257 Fix some int/Lisp_Object confusions (thank you union types).
2258
2259 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2260
2261 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
2262
2263 * w32term.c: Likewise.
2264 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
2265
2266 * keyboard.c (Qselect_window): New symbol.
2267 (head_table): Use it.
2268 (keys_of_keyboard): Bound select-window event to handle-select-window.
2269 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
2270
2271 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
2272 (last_window): New variable.
2273 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
2274 (note_mouse_movement): Remove reimplemented code in #if 0.
2275 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
2276 Emacs windows.
2277
2278 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
2279
2280 2002-03-31 Gerd Moellmann <gerd@gnu.org>
2281
2282 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
2283 Callers changed.
2284
2285 2002-03-30 Richard M. Stallman <rms@gnu.org>
2286
2287 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
2288 loop whenever it stops making progress.
2289
2290 * widget.c (set_frame_size): Don't call change_frame_size.
2291
2292 2002-03-30 Gerd Moellmann <gerd@gnu.org>
2293
2294 * dispnew.c (direct_output_for_insert):
2295 Call mark_window_display_accurate.
2296
2297 2002-03-29 Jason Rumney <jasonr@gnu.org>
2298
2299 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
2300
2301 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2302
2303 * Makefile.in (lread.o): Depend on coding.h.
2304
2305 * lread.c (openp, Fload): Encode the file name before passing it
2306 to `stat', `access', and `emacs_open'.
2307 (openp): GCPRO the encoded file name. Don't recompute Lisp
2308 strings unnecessarily.
2309
2310 2002-03-29 Kim F. Storm <storm@cua.dk>
2311
2312 * fns.c (Flax_plist_put): Doc fix.
2313
2314 2002-03-28 Miles Bader <miles@gnu.org>
2315
2316 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2317
2318 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2319
2320 * process.c (set-network-process-options): Add usage.
2321 (make-network-process): Doc fix.
2322
2323 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2324
2325 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
2326
2327 2002-03-26 Richard M. Stallman <rms@gnu.org>
2328
2329 * fns.c (Fsubstring_no_properties): New function.
2330 (Flax_plist_get, Flax_plist_put): New functions.
2331 (syms_of_fns): defsubr them.
2332
2333 * xdisp.c (update_menu_bar): Test only update_mode_lines;
2334 don't test or alter w->update_mode_line.
2335
2336 * window.c (Fdisplay_buffer): Doc fix.
2337
2338 2002-03-24 Richard M. Stallman <rms@gnu.org>
2339
2340 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
2341
2342 2002-03-24 Gerd Moellmann <gerd@gnu.org>
2343
2344 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
2345 (Fdefmacro): Handle `(declare ...)'.
2346 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
2347 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
2348
2349 2002-03-24 Jason Rumney <jasonr@gnu.org>
2350
2351 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
2352 (xbm_file_p): Add prototypes.
2353 (xbm_format, xbm_image_p): Sync with xfns.c.
2354 (reflect_byte): New function.
2355 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
2356 (xbm_load_image): Create bitmaps with a depth of 1.
2357 (init_xfns): Enable XBM images.
2358
2359 2002-03-23 Jason Rumney <jasonr@gnu.org>
2360
2361 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
2362 correctly. Do not pass up_modifier to keyboard buffer.
2363
2364 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
2365
2366 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
2367
2368 * Makefile.in (bootstrapclean): New target.
2369 (bootstrap-temacs, bootstrap-doc): Remove.
2370 (bootstrap-emacs): Use a bog-standard `temacs'.
2371 Don't bother to build a DOC file.
2372
2373 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
2374
2375 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
2376 in temacs even if !CANNOT_DUMP.
2377 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
2378
2379 * alloc.c (check_pure_size): Only output a warning.
2380
2381 2002-03-22 Jason Rumney <jasonr@gnu.org>
2382
2383 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
2384 supported.
2385
2386 * w32term.c (zv_bits): Declare as short, for word alignment.
2387 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
2388 (syms_of_w32term): Define x-use-underline-position-properties.
2389
2390 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
2391 (clear_image_cache): Block input, fix logic, clear matrices in
2392 all frames that share this cache.
2393
2394 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
2395
2396 * emacs.c (main): Update the Copyright year in the blurb printed
2397 by "emacs --version".
2398
2399 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
2400
2401 * xterm.c (XTread_socket): If XK_ISO_Lock and
2402 XK_ISO_Last_Group_Lock are defined, handle keysyms between
2403 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
2404
2405 2002-03-21 Kim F. Storm <storm@cua.dk>
2406
2407 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
2408 menu-bar bindings in keymap and local-map properties _are_ used.
2409 But try keymap property first in accordance with 2002-01-03 patch.
2410 Added comment describing why this is not always reliable.
2411 (tool_bar_items): Ditto for tool-bar.
2412
2413 2002-03-21 Jason Rumney <jasonr@gnu.org>
2414
2415 * w32fns.c (x_clear_image_1): Disable color table code.
2416
2417 2002-03-21 Kim F. Storm <storm@cua.dk>
2418
2419 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
2420 removed the wrong version of the DEFUN macro; fixed it.
2421
2422 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
2423 Fmember rather than Fmemq).
2424 (Fprovide): Check that subfeatures is a list.
2425
2426 * process.c (QCfeature, QCdatagram): Removed variables.
2427 (QCtype, Qdatagram): New variables.
2428 (network_process_featurep): Removed function.
2429 (Fmake_network_process): Removed :feature check.
2430 Use :type 'datagram instead of :datagram t to create a datagram
2431 socket. This allows us to add other connection types (e.g. raw
2432 sockets) later in a consistent manner.
2433 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
2434 supported subfeatures for feature make-network-process.
2435 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
2436 Intern and staticpro QCtype and Qdatagram.
2437 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
2438
2439 * xfns.c: (QCtype): Remove duplicate declaration and
2440 initialization (is now declared in process.c).
2441
2442 * w32fns.c: (QCtype): Remove duplicate declaration and
2443 initialization (is now declared in process.c).
2444
2445 2002-03-21 Richard M. Stallman <rms@gnu.org>
2446
2447 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
2448 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
2449 when jumping to `fail' to avoid undoing reg changes in the
2450 last iteration of the loop.
2451 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
2452
2453 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
2454 Depend on process.h.
2455
2456 2002-03-20 Jason Rumney <jasonr@gnu.org>
2457
2458 Most of the following changes are still conditional on HAVE_IMAGES
2459 which is not set by default on Windows.
2460
2461 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
2462
2463 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
2464 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
2465 (four_corners_best, x_clear_image_1, x_clear_image)
2466 (x_alloc_image_color, postprocess_image)
2467 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
2468 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
2469 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
2470
2471 * w32gui.h (struct XImage): Define.
2472
2473 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
2474 extract mouse co-ordinates.
2475
2476 2002-03-20 Jason Rumney <jasonr@gnu.org>
2477
2478 * w32.c (init_winsock): Dynamically load new server and UDP
2479 socket functions.
2480 (socket_to_fd): New function.
2481 (sys_socket): Use it.
2482 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
2483 (sys_recvfrom, sys_sendto): New wrapper functions.
2484
2485 * process.c (QCfamily, QCfilter): Remove duplicate declaration
2486 and initialization.
2487
2488 * makefile.w32-in (LIBS): Remove $(WSOCK32).
2489
2490 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
2491
2492 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
2493 use "sun" as a variable, it's a predefined constant on Sun
2494 machines.
2495
2496 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2497
2498 * bytecode.c (Fbyte_code): Revert last change.
2499
2500 2002-03-19 Kim F. Storm <storm@cua.dk>
2501
2502 * makefile.w32-in (LIBS): Add $(WSOCK32).
2503 From David Ponce <dponce@voila.fr>.
2504
2505 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2506
2507 * process.c (wait_reading_process_input): Move variables `pname'
2508 and `pnamelen' down where they are used.
2509
2510 * bytecode.c (Fbyte_code): Discard unused computed value to
2511 prevent gcc warning.
2512
2513 * lisp.h (Fplist_member): Add prototype.
2514
2515 2002-03-18 Kim F. Storm <storm@cua.dk>
2516
2517 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2518 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
2519 HAVE_SYS_UN_H.
2520
2521 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
2522 Remove explicit GNU_LINUX settings for datagram support.
2523
2524 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2525
2526 * process.c (Fmake_network_process): Remove unused variable `sa'.
2527 Doc fix. Add usage:.
2528 (set_socket_options): Remove unused variables `optnum' and
2529 `opttype'.
2530
2531 2002-03-17 Richard M. Stallman <rms@gnu.org>
2532
2533 * xdisp.c (cursor_type_changed): New variable.
2534 (redisplay_internal): Redisplay all windows if cursor_type_changed.
2535 Clear it when clearing windows_or_buffers_changed.
2536 (try_cursor_movement, redisplay_window, try_window_id)
2537 (try_window_reusing_current_matrix): Test cursor_type_changed
2538 along with windows_or_buffers_changed.
2539
2540 * window.h (cursor_type_changed): New variable.
2541
2542 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
2543 not update_mode_lines, and always set it to 1.
2544
2545 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
2546 if no frames needed redrawing.
2547
2548 2002-03-17 Kim F. Storm <storm@cua.dk>
2549
2550 The following changes add support for network server processes,
2551 datagram connections, and local (unix) sockets.
2552
2553 * process.h (struct Lisp_Process): New member log.
2554 Doc fix: Member command used to indicate stopped network process.
2555 Doc fix: Member childp contains plist for network process.
2556 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
2557
2558 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
2559 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
2560 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
2561 New variables.
2562 (NETCONN1_P): New macro.
2563 (DATAGRAM_SOCKETS): New conditional symbol.
2564 (datagram_address): New array.
2565 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
2566 (status_message): Use concat3.
2567 (Fprocess_status): Add `listen' status to doc string. Return `stop'
2568 for a stopped network process.
2569 (Fset_process_buffer): Update contact plist for network process.
2570 (Fset_process_filter): Ditto. Don't enable input for stopped
2571 network processes. Server must listen, even if filter is t.
2572 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
2573 New functions.
2574 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
2575 (Fprocess_contact): Added KEY argument. Handle datagrams.
2576 (list_processes_1): Optionally show only processes with the query
2577 on exit flag set. Dynamically adjust column widths. Omit tty
2578 column if not needed. Report stopped network processes.
2579 Identify server and datagram network processes.
2580 (Flist_processes): New optional arg `query-only'.
2581 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2582 (conv_lisp_to_sockaddr, set_socket_options)
2583 (network_process_featurep, unwind_request_sigio): New helper functions.
2584 (Fprocess_datagram_address, Fset_process_datagram_address):
2585 (Fset_network_process_options): New lisp functions.
2586 (Fopen_network_stream): Removed. Now defined in simple.el.
2587 (Fmake_network_process): New lisp function. Code is based on previous
2588 Fopen_network_stream, but heavily reworked with new property list based
2589 argument list, support for datagrams, server processes, and local
2590 sockets in addition to old client-only functionality.
2591 (server_accept_connection): New function.
2592 (wait_reading_process_input): Use it to handle incoming connects.
2593 Do not enable input on a new connection if process is stopped.
2594 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
2595 (send_process): Handle datagram sockets.
2596 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
2597 network process is indicated by setting command field to t .
2598 (Fprocess_send_eof): No-op if datagram connection.
2599 (Fstatus_notify): Don't read input for a stream server socket or a
2600 stopped network process.
2601 (init_process): Initialize datagram_address array.
2602 (syms_of_process): Intern and staticpro new variables, defsubr new
2603 functions.
2604
2605 2002-03-16 Jason Rumney <jasonr@gnu.org>
2606
2607 * w32fns.c (w32_to_all_x_charsets): Return correct type in
2608 startup case.
2609
2610 2002-03-16 Richard M. Stallman <rms@gnu.org>
2611
2612 * xdisp.c (redisplay_internal, redisplay_windows):
2613 Use list_of_error to call internal_condition_case_1.
2614 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
2615 so as to catch all errors with no possibility of debugger redisplay.
2616 (list_of_error): New variable.
2617 (syms_of_xdisp): Init and staticpro it.
2618
2619 * print.c (print_object): Delete `\ ' from printed rep of frame.
2620
2621 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
2622
2623 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
2624 until its implementation is fixed.
2625
2626 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2627
2628 * xfns.c (png_load): Remove unused variable `gamma_str'.
2629
2630 2002-03-14 Richard M. Stallman <rms@gnu.org>
2631
2632 * xfns.c (x_real_positions): Handle failure in XQueryTree.
2633
2634 2002-03-14 Miles Bader <miles@gnu.org>
2635
2636 * intervals.c (adjust_for_invis_intang): New function.
2637 (set_point_both): Use `adjust_for_invis_intang' to do most of the
2638 work for dealing with invisible+intangible regions. Do so before
2639 and after both forward and backward movements, to handle both
2640 front-sticky and rear-sticky cases.
2641 * textprop.c (text_property_stickiness): Function moved here from
2642 `editfns.c'.
2643 * intervals.h (text_property_stickiness): New declaration.
2644 * editfns.c (char_property_eq): Function removed.
2645 (text_property_stickiness): Function moved to `textprop.c'.
2646
2647 2002-03-13 Jason Rumney <jasonr@gnu.org>
2648
2649 * config.in: Add STRFTIME_NO_POSIX2.
2650
2651 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
2652 and %OX when underlying strftime does not.
2653
2654 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
2655
2656 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
2657 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
2658 line) to avoid annoying flicker.
2659 (xm_scroll_callback): Get rid of the now unnecessary kludge.
2660 (XTread_socket): Mark it static.
2661
2662 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
2663
2664 2002-03-13 Kim F. Storm <storm@cua.dk>
2665
2666 * puresize.h (BASE_PURESIZE): Increase to 775000.
2667
2668 2002-03-12 Juanma Barranquero <lektu@terra.es>
2669
2670 * editfns.c (syms_of_editfns): Fix typo.
2671
2672 2002-03-12 Gerd Moellmann <gerd@gnu.org>
2673
2674 * xsmfns.c: Include stdio.h because termhooks.h needs it.
2675 Include termopt.h for interrupt_input.
2676
2677 2002-03-11 Andreas Schwab <schwab@suse.de>
2678
2679 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
2680
2681 2002-03-11 Gerd Moellmann <gerd@gnu.org>
2682
2683 * xterm.c (note_mouse_movement): Put code for
2684 x_autoselect_window_p in #if 0.
2685
2686 * lread.c (Fload): Don't assume that message_with_string uses the
2687 string it is given like a C string.
2688
2689 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2690
2691 * xterm.h (x_session_check_input, x_session_initialize): Declared.
2692
2693 * xterm.c: (XTread_socket): Add call to x_session_check_input and
2694 x_session_have_connection.
2695 (x_initialize): Add call to x_session_initialize.
2696
2697 * termhooks.h (enum event_kind): Add save_session_event.
2698
2699 * keyboard.c: Add Emacs event save_session_event.
2700
2701 * emacs.c (main): Add call to syms_of_xsmfns.
2702
2703 * lisp.h: Declare syms_of_xsmfns as extern.
2704
2705 * config.in: Add HAVE_X_SM.
2706
2707 * Makefile.in (LIBXT): Add -lSM -lICE
2708 if HAVE_X_SM and not USE_X_TOOLKIT.
2709 (XOBJ): New file xsmfns.c added.
2710
2711 * xsmfns.c: New file for X session management.
2712
2713 2002-03-09 Jason Rumney <jasonr@gnu.org>
2714
2715 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
2716 read-only when setting modified time.
2717
2718 2002-03-08 Gerd Moellmann <gerd@gnu.org>
2719
2720 * xdisp.c (move_it_vertically_backward): At the end of the
2721 function, when moving forward by lines, treat terminal frames
2722 specially.
2723
2724 * keyboard.c (echo_char): Make sure to add a separator between
2725 keys even if echo_dash hasn't been called.
2726
2727 * xdisp.c: Use new string macros.
2728 (update_echo_area): Pass number of bytes to message3 instead of
2729 number of chars.
2730 (set_message_1): Don't access a string's size_byte directly.
2731 (decode_mode_spec_coding): Use number of bytes of eoltype string
2732 instead number of chars.
2733
2734 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
2735
2736 2002-03-08 Juanma Barranquero <lektu@terra.es>
2737
2738 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
2739 24-bit.
2740
2741 2002-03-06 Jason Rumney <jasonr@gnu.org>
2742
2743 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
2744
2745 2002-03-06 Gerd Moellmann <gerd@gnu.org>
2746
2747 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
2748 (cancel_echoing, echo_length, echo_truncate): Changed to
2749 work with new kboard definition.
2750 (echo_now): Use message3_nolog instead of message2_nolog.
2751
2752 * alloc.c (mark_kboards): Mark echo_string.
2753
2754 * keyboard.h (ECHOBUFSIZE): Removed.
2755 (struct kboard): Member echoptr removed, member echobuf renamed
2756 to echo_string.
2757
2758 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
2759 message3 instead of message2 to display the message using STRING's
2760 text properties.
2761
2762 2002-03-05 Andreas Schwab <schwab@suse.de>
2763
2764 * xdisp.c (hscroll_margin): Change to EMACS_INT.
2765
2766 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
2767
2768 * frame.c (default-frame-alist): Explain that setting it doesn't
2769 affect existing frames.
2770
2771 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
2772
2773 * indent.c (skip_invisible): Fix my brain fart.
2774
2775 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
2776
2777 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
2778
2779 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
2780 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
2781 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
2782 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
2783 and variables to use EMACS_INT instead of just int.
2784
2785 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
2786
2787 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2788
2789 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
2790 environment, pass it down with corrected value.
2791
2792 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2793
2794 * lread.c (read_filtered_event): Do not call start_hourglass
2795 before returning.
2796
2797 2002-03-04 Juanma Barranquero <lektu@terra.es>
2798
2799 * w32term.c (x_display_and_set_cursor): Fix typo.
2800
2801 2002-03-03 Richard M. Stallman <rms@gnu.org>
2802
2803 * fileio.c (Fmake_temp_name): Doc fix.
2804
2805 2002-03-03 Gary Wong <gtw@gnu.org>
2806
2807 * termcap.c [!emacs]: Replace ospeed for building standalone
2808 libtermcap, for binary compatibility.
2809
2810 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
2811
2812 2002-03-03 Richard M. Stallman <rms@gnu.org>
2813
2814 * xrdb.c (file_p): Rename arg `path' to `filename'.
2815
2816 * abbrev.c (Fexpand_abbrev): Increment plist as use count
2817 only if it is an integer.
2818
2819 * xfns.c (png_load): Set screen_gamma based on f->gamma.
2820 If png_get_sRGB gives an answer, call png_set_gamma
2821 using the default image gamma value.
2822
2823 * lread.c (read1): When reading from a file, default string to
2824 multibyte only if it has some multibyte characters.
2825
2826 * print.c (print_object): Output multibyte chars 128...255
2827 using \x even if ! print_escape_multibyte.
2828
2829 * xdisp.c (display_mode_element): Move the places where
2830 bytepos, charpos, this, and lisp_string are set.
2831 Use lisp_string to set bytepos.
2832
2833 * xdisp.c (redisplay_internal):
2834 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
2835
2836 * xdisp.c (display_mode_element): Merge properties specified with
2837 :propertize onto those that come with the string.
2838
2839 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
2840
2841 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
2842 automatic-hscrolling. Users changed.
2843 <hscroll-margin>: Renamed from automatic-hscroll-margin.
2844 Users changed.
2845 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
2846
2847 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2848
2849 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
2850
2851 2002-03-02 Kim F. Storm <storm@cua.dk>
2852
2853 * window.c (Fminibuffer_selected_window): New function.
2854 (syms_of_window): Defsubr it.
2855
2856 2002-03-01 Kim F. Storm <storm@cua.dk>
2857
2858 * window.h (struct window): New member phys_cursor_width.
2859
2860 * window.c (make_window, replace_window): Init phys_cursor_width.
2861
2862 * xterm.c (x_display_and_set_cursor): Blink box cursor using
2863 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2864
2865 * w32term.c (x_display_and_set_cursor): Blink box cursor using
2866 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2867
2868 * lisp.h (GCPRO6): New macro.
2869
2870 * process.c (Fopen_network_stream): Use GCPRO6.
2871
2872 2002-03-01 Kim F. Storm <storm@cua.dk>
2873
2874 * process.c (Qconnect, Qfailed): New variables.
2875 (syms_of_process): Intern and staticpro them.
2876 (Fprocess_status): Document connect and failed return values.
2877 [NON_BLOCKING_CONNECT]: New conditional.
2878 (connect_wait_mask, num_pending_connects): New variables.
2879 (status_message): Convert Qfailed status.
2880 (Fopen_network_stream): Added support for non-blocking connect.
2881 New optional args: filter, sentinel, non_blocking. Doc updated.
2882 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
2883 (deactivate_process): Handle pending non-blocking connect.
2884 (wait_reading_process_input): Poll for status of non-blocking
2885 connects. Exec sentinel directly when connect succeeds.
2886 (status_notify): Don't read process output if not yet connected.
2887
2888 2002-02-28 Kim F. Storm <storm@cua.dk>
2889
2890 * window.c: (minibuf_selected_window): Renamed from
2891 Vminibuf_selected_window. Users changed.
2892 (syms_of_window): Staticpro it.
2893
2894 2002-02-26 Kim F. Storm <storm@cua.dk>
2895
2896 The following changes add a new Vminibuf_selected_window variable
2897 which is similar to Vminibuf_scroll_window, but which is only set
2898 on entry to the minibuffer (from a non-minibuffer window):
2899
2900 * window.c: (Vminibuf_selected_window): New variable.
2901 (struct save_window_data): New member minibuf_selected_window.
2902 (Fset_window_configuration): Restore Vminibuf_selected_window.
2903 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
2904 Set minibuf_scroll_window member to nil if minibuf_level is 0.
2905 (compare_window_configurations): Compare minibuf_selected_window.
2906
2907 * window.h: (Vminibuf_selected_window): Declare extern.
2908
2909 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
2910 entry to minibuffer or on entry from a non-minibuffer window.
2911
2912 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
2913 Vminibuf_selected_window instead of Vminibuf_scroll_window.
2914
2915 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
2916 instead of Vminibuf_scroll_window when deciding in which window
2917 the region should be highlighted. Consequently, the region remains
2918 highlighteded even when a completion buffer is also displayed.
2919
2920 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
2921
2922 * fileio.c (Fsubstitute_in_file_name): Fix the change from
2923 2002-02-08.
2924
2925 * xselect.c (Qcompound_text_with_extensions): Renamed from
2926 Qcompound_text_no_extensions.
2927 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
2928
2929 2002-02-26 Juanma Barranquero <lektu@terra.es>
2930
2931 * w32proc.c (syms_of_ntproc): Doc fix.
2932
2933 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2934
2935 * intervals.h: Include "dispextern.h" unconditionally.
2936
2937 2002-02-24 Jason Rumney <jasonr@gnu.org>
2938
2939 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
2940 and disp-table.elc.
2941 (lisp): Add emacs-lisp/backquote.elc.
2942
2943 2002-02-24 Kim F. Storm <storm@cua.dk>
2944
2945 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
2946 The validation of the event type was too strict as it didn't
2947 allow string events; buffer names are used in bindings for
2948 menu-bar-select-buffer (see `menu-bar-update-buffers').
2949
2950 2002-02-23 Kim F. Storm <storm@cua.dk>
2951
2952 The following changes rework my patch of 2002-02-06 which
2953 added command remapping by entering the commands directly into
2954 the keymaps. Now, command remapping uses an explicit `remap'
2955 prefix in the keymaps, i.e. [remap COMMAND].
2956
2957 * keymap.c (Qremap, remap_command_vector): New variables.
2958 (is_command_symbol): Removed function.
2959 (Fdefine_key): No longer accept a symbol for KEY.
2960 Added validation of [remap COMMAND] argument for KEY.
2961 The DEF is no longer required to be a symbol when remapping a command.
2962 (Fremap_command): New function to remap command through keymaps.
2963 (Flookup_key): Perform command remapping initiated by
2964 Fremap_command directly for speed.
2965 (Fkey_binding): Use Fremap_command for command remapping.
2966 (where_is_internal): Handle new command remapping representation.
2967 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
2968 staticpro them. Defsubr Fremap_command.
2969
2970 * keymap.h (Fremap_command): Declare extern.
2971 (is_command_symbol): Remove extern.
2972
2973 * keyboard.c (command_loop_1): Use Fremap_command for command
2974 remapping; now try command remapping for all symbols.
2975
2976 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2977
2978 * coding.h (run_pre_post_conversion_on_str): Add prototype.
2979
2980 2002-02-23 Jason Rumney <jasonr@gnu.org>
2981
2982 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
2983 on the string before encoding it.
2984 (Fw32_get_clipboard_data): Run post-read-conversion on the string
2985 after decoding it.
2986
2987 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
2988
2989 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2990
2991 * w32term.c (enter_timestamp): Remove unused static variable to
2992 prevent warning.
2993
2994 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
2995
2996 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2997
2998 * w16select.c (Fw16_get_clipboard_data): Fix last change.
2999
3000 * xselect.c (selection_data_to_lisp_data): Fix last change.
3001
3002 2002-02-22 Jason Rumney <jasonr@gnu.org>
3003
3004 * w32term.h (struct w32_output): New member menu_command_in_progress.
3005
3006 * w32menu.c (menubar_selection_callback): Free the menu and
3007 clear the menu_command_in_progress flag.
3008
3009 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
3010 (menu_free_timer): New variable.
3011 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
3012 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
3013 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
3014 menu command is in progress.
3015 <WM_COMMAND>: Set the menu_command_in_progress flag.
3016 Kill any menu_free_timer that is running.
3017
3018 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
3019 Call ExtTextOutA rather than ExtTextOut.
3020
3021 2002-02-22 Eli Zaretskii <eliz@gnu.org>
3022
3023 * puresize.h (BASE_PURESIZE): Increase to 755000.
3024
3025 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3026
3027 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
3028 on the string before encoding it.
3029 (Fw16_get_clipboard_data): Run post-read-conversion on the string
3030 after decoding it.
3031
3032 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3033
3034 Support for ICCCM Extended Segments in X selections:
3035
3036 * xselect.c <Qcompound_text_no_extensions>: New variable.
3037 (syms_of_xselect): Intern and staticpro it.
3038 (selection_data_to_lisp_data): Run post-read-conversion on decoded
3039 selection text.
3040 (lisp_data_to_selection_data): If next-selection-coding-system is
3041 compound-text-no-extensions, set the type of selection to be
3042 compound-text.
3043
3044 * xterm.h (x_encode_text): Update prototype.
3045
3046 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
3047 callers changed. If SELECTIONP is non-zero, run the
3048 pre-write-conversion function before encoding the selection text.
3049
3050 2002-02-21 Kim F. Storm <storm@cua.dk>
3051
3052 * frame.c (syms_of_frame): Change mouse-highlight default to t.
3053
3054 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
3055 Correct composing of language-change event.
3056
3057 2002-02-20 Kim F. Storm <storm@cua.dk>
3058
3059 * keyboard.c (menu_bar_items): Don't include keymap or local-map
3060 bindings at PT when building menu (the menu is not updated often
3061 enough for this to work reliable).
3062 (tool_bar_items): Likewise.
3063 (current_active_maps): Removed unused (and buggy) function.
3064
3065 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3066
3067 * xfns.c (gif_load): Use correct width and height for GIF images.
3068
3069 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
3070
3071 * floatfns.c (Fatan): Accept an optional second arg and call
3072 atan2 if passed 2 args.
3073
3074 2002-02-18 Jason Rumney <jasonr@gnu.org>
3075
3076 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
3077
3078 2002-02-17 Jason Rumney <jasonr@gnu.org>
3079
3080 * w32term.c (x_autoselect_window_p): New variable.
3081 (syms_of_w32term): DEFVAR_BOOL and initialize it.
3082 (note_mouse_movement): Use it.
3083
3084 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
3085
3086 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
3087
3088 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3089 New variables.
3090 (syms_of_w32fns): Intern and staticpro them.
3091 (x_frame_parms) <"fullscreen">: New parameter.
3092 (x_fullscreen_move, x_set_fullscreen): New functions.
3093 (x_set_frame_parameters): Support Qfullscreen.
3094 (x_real_positions): Save x/y_pixels_diff frame params.
3095 (x_figure_window_size): Support full-screen frames.
3096 (Fx_create_frame): Default the fullscreen parameter.
3097
3098 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
3099 (x_fullscreen_adjust): New functions.
3100 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
3101 fullscreen. Call x_check_fullscreen_move, and set the
3102 want_fullscreen member of output_data.w32
3103 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
3104
3105 * w32term.h: New enum for FULLSCREEN_* constants.
3106 (struct w32_output): New members want_fullscreen, x_pixels_diff,
3107 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
3108 (x-fullscreen-adjust): New prototype.
3109
3110 2002-02-17 Kim F. Storm <storm@cua.dk>
3111
3112 * frame.c: (Vmouse_highlight): New variable.
3113 (syms_of_frame): DEFVAR_LISP it.
3114
3115 * frame.h: (Vmouse_highlight): Declare extern.
3116
3117 * xterm.h (struct x_display_info): Add mouse_face_hidden.
3118
3119 * xterm.c (disable_mouse_highlight): Removed variable.
3120 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3121 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3122 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
3123 and on after keyboard input.
3124 (x_term_init): Initialize mouse_face_hidden.
3125
3126 * msdos.h (struct display_info): Add mouse_face_hidden.
3127
3128 * msdos.c (disable_mouse_highlight): Removed variable.
3129 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3130 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3131 (internal_terminal_init): Initialize mouse_face_hidden.
3132 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
3133 and on after keyboard input.
3134
3135 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
3136
3137 * w32term.c (disable_mouse_highlight): Removed variable.
3138 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
3139 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3140 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
3141 and on after keyboard input.
3142 (w32_initialize_display_info): Initialize mouse_face_hidden.
3143
3144 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
3145
3146 * msdos.c (last_mouse_window): New variable.
3147 (dos_rawgetc): Fix last change--if the mouse is in the same window
3148 as recorded in last_mouse_window, don't select this window.
3149
3150 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
3151
3152 * msdos.c (x_autoselect_window_p): New variable.
3153 (syms_of_msdos): Defvar it.
3154 (dos_rawgetc): If x_autoselect_window_p is set, select the window
3155 in which the last mouse movement occured, unless it is already
3156 selected.
3157
3158 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
3159 New variables.
3160 (syms_of_xdisp): DEVFAR them.
3161 (hscroll_window_tree): Use automatic_hscroll_margin and
3162 Vautomatic_hscroll_step to compute the amount of window scrolling.
3163
3164 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3165
3166 * xterm.c (x-autoselect-window): New variable.
3167 (note_mouse_movement): Use it.
3168
3169 * keyboard.c: Do not include "systime.h" twice.
3170
3171 2002-02-15 Andreas Schwab <schwab@suse.de>
3172
3173 * puresize.h (BASE_PURESIZE): Increase to 9/5.
3174
3175 * alloc.c (NSTATICS): Increase to 1280.
3176
3177 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
3178
3179 * alloc.c (NSTATICS): Bump to 1026.
3180
3181 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
3182 (Vx_super_keysym): New variables.
3183 (syms_of_xterm): DEFVAR_LISP them.
3184 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
3185 variables to determine which keys to use for the various modifiers.
3186
3187 2002-02-13 Kim F. Storm <storm@cua.dk>
3188
3189 * window.c: (Vmode_line_in_non_selected_windows): Removed.
3190 (mode_line_in_non_selected_windows): New variable.
3191 (syms_of_window): DEFVAR_BOOL it.
3192
3193 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
3194 Use mode_line_in_non_selected_windows.
3195 (mode_line_in_non_selected_windows): Declare extern.
3196 (Vmode_line_in_non_selected_windows): Removed extern.
3197
3198 2002-02-13 Richard M. Stallman <rms@gnu.org>
3199
3200 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
3201 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
3202 (Fclear_this_command_keys): Doc fixes.
3203
3204 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
3205 (update_face_from_frame_parameter): Increment face_change_count
3206 and windows_or_buffers_changed to force redisplay using changed faces.
3207
3208 * xdisp.c (QCpropertize): New variable.
3209 (mode_line_proptrans_alist): New variable.
3210 (display_mode_element): New arg PROPS; all calls changed.
3211 Implement this, for strings.
3212 Handle literal output of strings by sharing the
3213 main-line code for strings, using local var `literal'.
3214 Handle :propertize feature.
3215 (syms_of_xdisp): Initialze and staticpro QCpropertize and
3216 mode_line_proptrans_alist.
3217
3218 2002-02-11 Kim F. Storm <storm@cua.dk>
3219
3220 * window.c: (Vmode_line_in_non_selected_windows): New variable.
3221 (syms_of_window): DEFVAR_LISP it.
3222
3223 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
3224 (CURRENT_MODE_LINE_FACE_ID): Use it.
3225 (Vmode_line_in_non_selected_windows): Declare extern.
3226
3227 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
3228 to get mode line face.
3229
3230 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
3231
3232 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
3233 variables; cus-start.el doesn't need them anymore.
3234
3235 2002-02-09 Kim F. Storm <storm@cua.dk>
3236
3237 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
3238 reduction. This fixes a display problem where stray newlines were
3239 inserted in the window (corrected by C-l). Clarified code (IMHO).
3240
3241 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
3242
3243 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
3244
3245 * xdisp.c (display_mode_lines): Fix last change.
3246
3247 2002-02-09 Jason Rumney <jasonr@gnu.org>
3248
3249 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
3250 match each other.
3251 (w32_load_system_font): Prevent Cleartype fonts from loading.
3252 (Fx_show_tip): Ensure tip frames are above other topmost windows.
3253
3254 2002-02-09 Kim F. Storm <storm@cua.dk>
3255
3256 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
3257 (CURRENT_MODE_LINE_HEIGHT): Use it.
3258 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
3259
3260 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
3261 (pos_visible_p, handle_face_prop): Likewise.
3262 (display_mode_lines): Likewise, but for the real selected window.
3263 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
3264
3265 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
3266 in non-selected windows.
3267 (realize_basic_faces): Realize it.
3268 (syms_of_term): Intern and staticpro it.
3269
3270 2002-02-08 Kim F. Storm <storm@cua.dk>
3271
3272 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
3273 Changed mail addresses to emacs-devel@gnu.org.
3274
3275 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3276
3277 * fileio.c (Fsubstitute_in_file_name): If the file name includes
3278 ~user, and there's no such user, don't discard everything before ~user.
3279
3280 * floatfns.c (Fround): Doc fix.
3281
3282 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3283
3284 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
3285
3286 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
3287
3288 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
3289
3290 2002-02-07 Kim F. Storm <storm@cua.dk>
3291
3292 * keymap.c (where_is_internal): Only check whether definition is
3293 remapped if it fulfills is_command_symbol.
3294
3295 2002-02-07 Andreas Schwab <schwab@suse.de>
3296
3297 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
3298
3299 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
3300
3301 2002-02-06 Kim F. Storm <storm@cua.dk>
3302
3303 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
3304 defining command remapping. Doc updated.
3305 (Flookup_key): Remap command through keymap if KEY is a symbol.
3306 (is_command_symbol): New function.
3307 (Fkey_binding): Use it. New optional argument NO-REMAP.
3308 Doc updated. Callers changed. Perform command remapping via
3309 recursive call unless that arg is non-nil.
3310 (where_is_internal): New argument no_remap. Callers changed.
3311 Call recursively to find original key bindings for a remapped
3312 comand unless that arg is non-nil.
3313 (Fwhere_is_internal): New optional argument NO-REMAP.
3314 Doc updated. Callers changed. Pass arg to where_is_internal.
3315
3316 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3317 (is_command_symbol): Added prototype.
3318
3319 * keyboard.c (Vthis_original_command): New variable.
3320 (syms_of_keyboard): DEFVAR_LISP it.
3321 (command_loop_1): Set it, and perform command remapping.
3322
3323 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3324
3325 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
3326
3327 2002-02-06 Jason Rumney <jasonr@gnu.org>
3328
3329 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
3330
3331 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
3332
3333 * charset.c (get_charset_id): Use if-else instead of ?:.
3334
3335 2002-02-06 Richard M. Stallman <rms@gnu.org>
3336
3337 * filelock.c (S_ISLNK): Define if not defined.
3338
3339 2002-02-03 Richard M. Stallman <rms@gnu.org>
3340
3341 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
3342
3343 * lread.c (read1): Redesign strategy for force_multibyte and
3344 force_singlebyte. Now is_multibyte records whether read_buffer
3345 is multibyte. Encountering any multibyte character makes it so.
3346
3347 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
3348
3349 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
3350 with the same sequence, map that sequence to f10 rather than f0.
3351
3352 2002-02-03 Andreas Schwab <schwab@suse.de>
3353
3354 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
3355 latter never being defined on GNU/Linux.
3356
3357 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3358
3359 * xfaces.c (realize_default_face): Don't set the weight and slant
3360 of the default face to Qnormal, unless these attributes are
3361 unspecified.
3362
3363 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3364
3365 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
3366 Call cancel_hourglass unconditionally.
3367
3368 * eval.c (Fsignal): Remove duplicated declaration of
3369 the variable `display_hourglass_p'.
3370
3371 2002-01-31 Richard M. Stallman <rms@gnu.org>
3372
3373 * editfns.c (region_limit): Nicer error message.
3374
3375 * coding.c (decode_composition_emacs_mule):
3376 Give up if NCOMPONENT gets too large to index `component'.
3377
3378 * callint.c (check_mark): New arg to specify clearer error message.
3379 Callers changed.
3380
3381 2002-01-27 Richard M. Stallman <rms@gnu.org>
3382
3383 * minibuf.c (Fcompleting_read): Doc fix.
3384
3385 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3386
3387 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
3388 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
3389 Fix doc-strings.
3390
3391 2002-01-26 Richard M. Stallman <rms@gnu.org>
3392
3393 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
3394
3395 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
3396 and scroll_up_aggressively.
3397
3398 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3399
3400 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
3401
3402 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
3403
3404 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3405 (Fprevious_property_change, Fprevious_single_property_change):
3406 Stay within the narrowed-buffer boundaries.
3407
3408 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3409
3410 * term.c (Ftty_display_color_cells): New function.
3411 (syms_of_term): Defsubr it.
3412 (Ftty_display_color_cells, Ftty_display_color_p): Change the
3413 argument name to DISPLAY. Doc fix.
3414
3415 * dispextern.h: Add prototype for set_tty_color_mode and
3416 tty_setup_colors.
3417
3418 2002-01-24 Jason Rumney <jasonr@gnu.org>
3419
3420 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
3421 If region left to draw is not what was expected, mark the frame as
3422 garbaged.
3423
3424 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
3425 Combine the regions returned by BeginPaint and GetUpdateRect.
3426
3427 2002-01-23 Jason Rumney <jasonr@gnu.org>
3428
3429 * w32term.c (x_update_window_begin): Only hide caret if
3430 w32_use_visible_system_caret is set.
3431 (x_update_window_end): Only show caret if
3432 w32_use_visible_system_caret is set.
3433 (syms_of_w32term): Handle SystemParametersInfo call failing.
3434
3435 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3436
3437 2002-01-22 Richard M. Stallman <rms@gnu.org>
3438
3439 * unexelf.c (unexec): Define n so as to cause compilation error
3440 for the code where people have often written n instead of nn.
3441
3442 * .gdbinit (hookpost-run): Defined.
3443
3444 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3445
3446 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
3447
3448 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3449
3450 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
3451 if fullscreen is being set.
3452
3453 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3454
3455 * minibuf.c (Fminibuffer_contents)
3456 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
3457 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
3458
3459 2002-01-21 Richard M. Stallman <rms@gnu.org>
3460
3461 * window.c (check_frame_size): Fix minimum height calculation.
3462
3463 2002-01-20 Ken Raeburn <raeburn@gnu.org>
3464
3465 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
3466 height before comparison.
3467 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
3468
3469 2002-01-20 Jason Rumney <jasonr@gnu.org>
3470
3471 * w32term.c (w32_system_caret_width): Remove.
3472 (w32_use_visible_system_caret): New user flag.
3473 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
3474 Windows reports a screen reader running.
3475 (x_update_window_begin): Hide the system caret.
3476 (x_update_window_end): Show the system caret.
3477 (x_display_and_set_cursor): Don't draw a cursor when
3478 w32_use_visible_system_caret is set. Do not adjust width.
3479
3480 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
3481 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
3482 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
3483 the user requests it. Use system default width when creating.
3484 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
3485
3486 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
3487 New window messages.
3488
3489 2002-01-20 Richard M. Stallman <rms@gnu.org>
3490
3491 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
3492
3493 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3494
3495 * doprnt.c (doprnt1): Fix typos in error call.
3496
3497 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3498
3499 * unexelf.c (unexec) [__sgi]: Support the .got sections.
3500
3501 2002-01-20 Jason Rumney <jasonr@gnu.org>
3502
3503 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
3504 that Windows returns. If a double check fails, try to guess how
3505 ExtTextOut is going to act.
3506
3507 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
3508 in place of stricmp.
3509 (w32_list_synthesized_fonts): Removed.
3510 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
3511 (struct enumfont_t): New element; list.
3512 (enum_font_cb2): List all style and charset variations of a font.
3513 (Fw32_select_font): New optional argument; include_proportional.
3514 Exclude vertical fonts. Exclude proportional fonts unless
3515 include_proportional is non-nil.
3516 (w32_enable_synthesized_fonts): Change to a boolean.
3517 (Fw32_send_sys_command): Doc fix.
3518
3519 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3520
3521 * dispnew.c (update_frame): Move the variable `tem' to the block
3522 where it is used.
3523
3524 2002-01-19 Jason Rumney <jasonr@gnu.org>
3525
3526 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
3527 call to face-set-after-frame-default.
3528
3529 2002-01-18 Richard M. Stallman <rms@gnu.org>
3530
3531 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
3532 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
3533
3534 2002-01-17 Richard M. Stallman <rms@gnu.org>
3535
3536 * window.c (enlarge_window): When exceeding size of parent,
3537 directly delete all the siblings instead of trying to resize it.
3538
3539 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3540
3541 * term.c (set_tty_color_mode): Remove unused variable `tem'.
3542
3543 2002-01-16 Henrik Enberg <henrik@enberg.org>
3544
3545 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3546
3547 2002-01-16 Kim F. Storm <storm@cua.dk>
3548
3549 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
3550 is invisible. This can happen if cursor is on top line of a
3551 window, and we switch to a buffer with a header line.
3552
3553 * w32term.c (x_erase_phys_cursor): Ditto.
3554
3555 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3556
3557 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
3558 `dont_resize' only when used.
3559
3560 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
3561
3562 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
3563
3564 * xdisp.c (display_mode_element): When computing charpos, depend
3565 on multibyteness of elt, not the text in field.
3566
3567 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3568
3569 * buffer.c (Fkill_all_local_variables):
3570 Increment `update_mode_lines' only once.
3571
3572 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3573
3574 * lisp.h (adjust_after_replace_noundo)
3575 (Fupdate_coding_systems_internal): Add prototypes.
3576
3577 * sound.c (Fplay_sound): Initialize header_size also for :data case.
3578
3579 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
3580
3581 Support for the --color command-line argument and tty-color-mode
3582 frame parameter:
3583
3584 * term.c (tty_default_color_capabilities, tty_setup_colors)
3585 (set_tty_color_mode): New functions.
3586 (term_init): Call tty_default_color_capabilities.
3587 (Qtty_color_mode_alist): New variable.
3588 (syms_of_term): Intern and staticpro it.
3589
3590 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
3591 frames.
3592 (do_switch_frame): For termcap frames, switch the tty
3593 color mode as specified by the frame's parameters.
3594 (Qtty_color_mode): New variable.
3595 (syms_of_frame): Intern and staticpro it.
3596
3597 * emacs.c (USAGE2): Add the --color option.
3598 (standard_args): Ditto.
3599
3600 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
3601
3602 * xterm.h (struct x_output): New members want_fullscreen,
3603 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
3604 y_pixels_outer_diff.
3605 New enum for FULLSCREEN_* constants.
3606 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
3607 is NULL.
3608 (x_fullscreen_adjust): Add prototype.
3609
3610 * emacs.c (USAGE2): Add the new full-screen arguments.
3611 (standard_args): Ditto.
3612
3613 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3614 New variables.
3615 (syms_of_xfns): Intern and staticpro them.
3616 (x_frame_parms) <"fullscreen">: New parameter.
3617 (x_fullscreen_move, x_set_fullscreen): New functions.
3618 (x_set_frame_parameters): Support for Qfullscreen.
3619 (x_real_positions): More accurate computation of the frame position.
3620 (x_figure_window_size): Support full-screen frames.
3621 (Fx_create_frame): Default the fullscreen parameter.
3622
3623 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
3624 (XTread_socket) <Expose>: Call x_check_fullscreen.
3625 <ConfigureNotify>: Don't resize to fullscreen.
3626 Call x_check_fullscreen_move, and set the want_fullscreen member of
3627 output_data.x.
3628
3629 2002-01-13 Jason Rumney <jasonr@gnu.org>
3630
3631 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
3632 for mice with more than 3 buttons.
3633
3634 * w32term.c (parse_button): New parameter xbutton. Callers changed.
3635 (w32_read_socket): Handle new "XBUTTON" messages.
3636
3637 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
3638 (syms_of_w32fns): DEFVAR_BOOL it.
3639 (w32_wnd_proc): Handle new "XBUTTON" messages.
3640
3641 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3642
3643 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
3644
3645 2002-01-13 Andreas Schwab <schwab@suse.de>
3646
3647 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
3648
3649 2002-01-12 Andreas Schwab <schwab@suse.de>
3650
3651 * .gdbinit (xbuffer): Remove address operator since data is now a
3652 pointer.
3653
3654 2002-01-11 Richard M. Stallman <rms@gnu.org>
3655
3656 * insdel.c (adjust_after_replace_noundo): New function.
3657
3658 * coding.c (code_convert_region): Don't copy old text if undo disabled.
3659
3660 2002-01-09 Jason Rumney <jasonr@gnu.org>
3661
3662 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
3663 when checking for multiple frames.
3664
3665 2002-01-08 Richard M. Stallman <rms@gnu.org>
3666
3667 * window.c (delete_window): Rewrite the code for changing the
3668 selected window to handle the case where WINDOW is not a leaf.
3669
3670 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
3671
3672 * process.c (send_process): Set src_multibyte to 1 after the call
3673 top setup_coding_system, not before the call.
3674
3675 2002-01-07 Jason Rumney <jasonr@gnu.org>
3676
3677 * xmenu.c (set_frame_menubar, xmenu_show):
3678 (xdialog_show): Initialize wv->help to Qnil.
3679
3680 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
3681 (w32_dialog_show): Initialize wv->help to Qnil.
3682
3683 2002-01-06 Jason Rumney <jasonr@gnu.org>
3684
3685 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
3686
3687 * w32menu.c (w32_menu_display_help): Revert last change.
3688
3689 * xmenu.c (menu_highlight_callback): Revert last change.
3690
3691 2002-01-06 Andreas Schwab <schwab@suse.de>
3692
3693 * insdel.c (make_gap_larger): Make sure buffer size does not
3694 overflow range of int.
3695
3696 2002-01-05 Jason Rumney <jasonr@gnu.org>
3697
3698 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3699 OVERLAPS_P.
3700
3701 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
3702
3703 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
3704 to the left or to the right of the pointer, put it against
3705 the left screen edge.
3706 (x_frame_parms): Add missing braces around initializer.
3707
3708 * w32term.c (x_setup_relief_colors): Don't compute an image's
3709 background color if it doesn't have a Pixmap.
3710 (notice_overwritten_cursor): Don't depend on
3711 output_cursor and updated_area. Compare pixel coordinates with
3712 window's cursor pixel coordinates.
3713 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
3714 Call notice_overwritten_cursor with new arg list.
3715 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
3716 unconditionally.
3717 (x_draw_image_relief): Use predefined macro instead of
3718 constant when the value of `tool_bar_button_relief' is negative.
3719
3720 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
3721
3722 2002-01-04 Richard M. Stallman <rms@gnu.org>
3723
3724 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
3725
3726 2002-01-03 Richard M. Stallman <rms@gnu.org>
3727
3728 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
3729 (Fkey_binding): Try the `keymap' property map first.
3730 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
3731 minor mode bindings.
3732
3733 2002-01-03 Kim F. Storm <storm@cua.dk>
3734
3735 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
3736
3737 2002-01-02 Richard M. Stallman <rms@gnu.org>
3738
3739 * keyboard.c (read_key_sequence): Handle the keymap property
3740 before minor mode maps.
3741
3742 * editfns.c (Fformat): Update thissize from field_width
3743 based on the actual width, in the string case.
3744
3745 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3746
3747 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
3748 when used as truth value to prevent gcc warnings.
3749
3750 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
3751 * w32proc.c: Include <config.h>.
3752
3753 2002-01-01 Andreas Schwab <schwab@suse.de>
3754
3755 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
3756 not EMACS_INT, to make them compatible with DEFVAR_INT.
3757 * lisp.h (max_specpdl_size): Adjust declaration.
3758
3759 2002-01-01 Richard M. Stallman <rms@gnu.org>
3760
3761 * print.c (print_object): Test print_escape_nonascii only for
3762 unibyte strings.
3763 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
3764 when outputting to a multibyte buffer.
3765
3766 2001-12-29 Richard M. Stallman <rms@gnu.org>
3767
3768 * print.c (print_object): In multibyte string, use hex escapes.
3769 Use octal only for unibyte strings.
3770 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
3771
3772 * lread.c (read_escape): New arg BYTEREP for reporting whether
3773 escape forces unibyte or multibyte.
3774 (read1): When reading a string, take note of that info.
3775
3776 2001-12-29 Ken Raeburn <raeburn@gnu.org>
3777
3778 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
3779 comparison to test lisp value returned by Fget.
3780
3781 2001-12-29 Richard M. Stallman <rms@gnu.org>
3782
3783 * lisp.h (max_specpdl_size): Add declaration.
3784
3785 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3786
3787 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
3788 Handle modifier bits. Correct typo in error message.
3789
3790 2001-12-28 Richard M. Stallman <rms@gnu.org>
3791
3792 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
3793 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
3794 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
3795 Update calls to Fdefine_abbrev.
3796 (write_abbrev): Update for changed data format.
3797 Don't list "system" abbrevs.
3798 (Fexpand_abbrev): Update use count with new data format.
3799 (describe_abbrev): Update for changed data format.
3800 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
3801
3802 * config.in (HAVE_MBSINIT): Add #undef.
3803
3804 * strftime.c (mbsinit): Define as no-op if not available.
3805
3806 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
3807 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
3808
3809 * keymap.c (Flookup_key): Error message if key has wrong data type.
3810 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
3811 (exclude_key): New variable.
3812
3813 2001-12-28 Gerd Moellmann <gerd@gnu.org>
3814
3815 * xterm.c (x_setup_relief_colors): Don't compute an image's
3816 background color if it doesn't have a Pixmap.
3817
3818 * xterm.c (notice_overwritten_cursor): Don't depend on
3819 output_cursor and updated_area. Compare pixel coordinates with
3820 window's cursor pixel coordinates.
3821 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
3822 Call notice_overwritten_cursor with new arg list.
3823 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
3824 unconditionally.
3825
3826 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
3827 height of the cursor line to the amount to scroll.
3828
3829 2001-12-27 Richard M. Stallman <rms@gnu.org>
3830
3831 * intervals.c (set_point_both): The position after an invisible,
3832 intangible character is not an acceptable stopping point.
3833
3834 2001-12-27 Ken Raeburn <raeburn@gnu.org>
3835
3836 * window.c (enlarge_window): In new preserve_before code, convert
3837 CURBEG from lisp object to integer before doing arithmetic.
3838
3839 2001-12-27 Richard M. Stallman <rms@gnu.org>
3840
3841 * bytecode.c (Fbyte_code): Undo previous change.
3842
3843 2001-12-26 Kim F. Storm <storm@cua.dk>
3844
3845 * keyboard.c (record_char): Ignore duplicate help-echo events only
3846 separated by mouse-movement. When tracking mouse, only record
3847 first and last mouse-movement event in same window.
3848 Don't record mouse-movement events in keyboard macros.
3849
3850 2001-12-25 Richard M. Stallman <rms@gnu.org>
3851
3852 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
3853 (Fenlarge_window): New arg PRESERVE_BEFORE.
3854
3855 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
3856 instead of Fstring_as_unibyte.
3857
3858 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3859
3860 The following changes remove mocklisp support:
3861
3862 * mocklisp.h, mocklisp.c: Files removed.
3863
3864 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
3865 `Qmocklisp' and `Qmocklisp_arguments'.
3866 Remove prototype of syms_of_mocklisp.
3867
3868 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
3869
3870 * callint.c: Do not include mocklisp.h.
3871 (Fcall_interactively): Do not test for mocklisp case.
3872
3873 * eval.c: Remove variables `Qmocklisp_arguments',
3874 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
3875 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
3876 Do not test for mocklisp case.
3877 (Fwhile): Remove unused variable `tem'.
3878 (syms_of_eval): Remove variable `moclisp-arguments'.
3879
3880 * data.c (wrong_type_argument): Remove mocklisp case.
3881
3882 * doc.c (Fdocumentation): Remove mocklisp case.
3883
3884 * emacs.c (main): Do not call syms_of_mocklisp.
3885
3886 2001-12-21 Richard M. Stallman <rms@gnu.org>
3887
3888 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
3889 to the left or to the right of the pointer, put it against
3890 the left screen edge.
3891
3892 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * Makefile.in (distclean): Remove .gdbinit if we are building
3895 outside the source tree.
3896
3897 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3898
3899 * w32.c (emacs_root_dir): New function.
3900
3901 * msdos.c (emacs_root_dir): New function.
3902
3903 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
3904 of the current drive as the fallback for default_directory.
3905
3906 * dired.c (file_name_completion): Run the elements of
3907 completion-ignored-extensions through ENCODE_FILE.
3908
3909 * lisp.h (scmp): Remove prototype, since it's now a static
3910 function private to dired.c.
3911
3912 2001-12-18 Richard M. Stallman <rms@gnu.org>
3913
3914 * dired.c (scmp): Function moved from minibuf.c.
3915 Delete multibyte handling--used only on encoded strings.
3916
3917 * minibuf.c (scmp): Function moved to dired.c.
3918
3919 * fns.c (merge): Add QUIT call.
3920
3921 2001-12-18 Dave Love <fx@gnu.org>
3922
3923 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
3924 language/georgian.el.
3925
3926 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3927
3928 * Makefile.in (lisp, shortlisp): Synchronize with changes to
3929 lisp/Makefile.in:DONTCOMPILE.
3930
3931 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3932
3933 * xdisp.c (window_box_height): Do not return negative values.
3934 From Gerd Moellmann <gerd@gnu.org>.
3935
3936 * keyboard.c (head_table): Add missing braces around initializer.
3937
3938 * term.c (keys): Likewise.
3939
3940 * xfns.c (x_frame_parms, visual_classes): Likewise.
3941
3942 2001-12-17 Sam Steingold <sds@gnu.org>
3943
3944 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
3945 patch (COMPOSING_P, not COMPOSING).
3946
3947 2001-12-17 Richard M. Stallman <rms@gnu.org>
3948
3949 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
3950
3951 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
3952 before calling decode_coding.
3953
3954 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
3955
3956 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
3957 instead of only for COMPOSITION_DISABLED.
3958
3959 2001-12-16 Richard M. Stallman <rms@gnu.org>
3960
3961 * alloc.c (pure_alloc): After overflow, allocate just a small block.
3962
3963 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
3964
3965 * buffer.h (struct buffer): New field `display_error_modiff'.
3966 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
3967
3968 * window.c (Frecenter): Clear display_error_modiff field.
3969
3970 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
3971 Call redisplay_window, but not if display_error_modiff field says no.
3972 (redisplay_window_error): New function.
3973 (displayed_buffer): New variable.
3974 (redisplay_internal, redisplay_windows): Call the new functions
3975 instead of redisplay_window directly.
3976
3977 2001-12-15 Richard M. Stallman <rms@gnu.org>
3978
3979 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3980
3981 2001-12-14 Andrew Innes <andrewi@gnu.org>
3982
3983 * makefile.w32-in (EMACSLOADPATH): Define.
3984 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
3985 (bootstrap-temacs): Remove dependency on bootstrap-clean.
3986
3987 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
3988
3989 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
3990 parameter have a numeric value all the time.
3991
3992 * w32fns.c (x_report_frame_params): Likewise.
3993
3994 2001-12-12 Richard M. Stallman <rms@gnu.org>
3995
3996 * fileio.c (Fwrite_region): Doc fix.
3997
3998 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
3999 (redisplay_internal): Call clear_image_cache only for window terminals.
4000
4001 2001-12-12 Gerd Moellmann <gerd@gnu.org>
4002
4003 * xdisp.c (move_it_vertically_backward): Change heuristic
4004 for the case that we didn't move far enough initially.
4005
4006 * window.c (Frecenter): Simplify computation in the case of window
4007 system frames and ARG < 0; use window_box_height.
4008
4009 2001-12-11 Richard M. Stallman <rms@gnu.org>
4010
4011 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
4012 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
4013
4014 2001-12-11 Andrew Innes <andrewi@gnu.org>
4015
4016 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
4017 arg is negative.
4018
4019 2001-12-11 Richard M. Stallman <rms@gnu.org>
4020
4021 * m/hp800.h: Split the __hpux conditional into the parts
4022 that are right for GNU/Linux too and the parts that are not.
4023 Use the former if GNU_LINUX.
4024 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
4025
4026 * s/gnu-linux.h (GNU_LINUX): Defined.
4027
4028 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4029
4030 * macros.c, msdos.c, w16select.c: Change doc-string comments to
4031 `new style' [w/`doc:' keyword].
4032
4033 2001-12-10 Jason Rumney <jasonr@gnu.org>
4034
4035 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
4036 before using.
4037
4038 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4039
4040 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
4041 keyword].
4042
4043 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
4044
4045 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
4046
4047 * s/hpux10.h (srand48): Don't undefine.
4048
4049 2001-12-09 Jason Rumney <jasonr@gnu.org>
4050
4051 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
4052 Add comment to explain where the struct came from.
4053 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
4054 (add_menu_item): Process pop-up menus first to avoid memory leak.
4055 (add_menu_item, w32_menu_display_help): Use `help' field as
4056 Lisp_Object.
4057 (w32_free_submenu_strings): Only free owner-drawn strings.
4058
4059 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4060
4061 * COPYING: Moved back.
4062
4063 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
4064 Add parentheses around && within ||.
4065
4066 * indent.c (compute_motion): Likewise.
4067
4068 * intervals.c (merge_properties_sticky): Likewise.
4069
4070 * coding.c (setup_coding_system, shrink_encoding_region)
4071 (Fdecode_sjis_char): Likewise.
4072
4073 2001-12-07 Andreas Schwab <schwab@suse.de>
4074
4075 * xdisp.c (display_mode_element): Don't read past end of string if
4076 it ends with '%'.
4077
4078 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
4079 can hold.
4080
4081 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
4082 from most_positive_fixnum and most_negative_fixnum, resp., and
4083 type changed to Lisp_Object.
4084 (syms_of_data): DEFVAR_LISP them.
4085
4086 2001-12-07 Richard M. Stallman <rms@gnu.org>
4087
4088 * callproc.c (init_callproc): Set Vdata_directory based on the source
4089 location whenever Emacs was run uninstalled.
4090
4091 2001-12-06 Paul Eggert <eggert@twinsun.com>
4092
4093 * config.in (HAVE_WORKING_VFORK): New #undefs.
4094 * process.c (create_process):
4095 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
4096 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
4097 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
4098 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
4099 * m/intel386.h (HAVE_VFORK): Likewise.
4100 * m/mips-siemens.h (HAVE_VFORK): Likewise.
4101 * m/mips.h (HAVE_VFORK): Likewise.
4102 * s/freebsd.h (vfork): Remove #define.
4103 * s/lynxos.h (HAVE_VFORK): Remove #undef.
4104 * s/usg5-4-2.h: Fix comment about vfork.
4105
4106 2001-12-06 Richard M. Stallman <rms@gnu.org>
4107
4108 * s/hpux10.h (random): Add undef.
4109 (HAVE_RANDOM): Define it just once.
4110
4111 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
4112
4113 * eval.c: Undo last change: the standard syntax is not wanted.
4114
4115 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4116
4117 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
4118 scroll bars of the frame before deleting the frame itself. If the
4119 frame has a widget, delete the frame with XtDestroyWidget, and do
4120 not call XDestroyWindow before that.
4121
4122 2001-12-06 Kim F. Storm <storm@cua.dk>
4123
4124 * xfns.c (x_report_frame_params): Return actual fringe widths.
4125
4126 * w32fns.c (x_report_frame_params): Return actual fringe widths.
4127
4128 2001-12-05 Andrew Innes <andrewi@gnu.org>
4129
4130 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
4131 excessively large.
4132
4133 * insdel.c (make_gap_larger): New function.
4134 (make_gap_smaller): New function.
4135 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
4136 make_gap_smaller if arg is negative.
4137
4138 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
4139
4140 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
4141 Pass a dummy argument when calling interrupt_signal.
4142 (parse_menu_item): Mark disabled items before checking for empty def.
4143 (read_char_minibuf_menu_prompt): Make safety more visible.
4144 (read_key_sequence): Add a `first_unbound' variable.
4145 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
4146 unbound prefix as soon as we can detect it.
4147
4148 * doc.c (Fsnarf_documentation): Add prototype.
4149 (get_doc_string): Handle negative arguments.
4150 (Fdocumentation): Use AREF and ASIZE.
4151 Move the calls to get_doc_string to a single place.
4152 Don't confuse an interactive-spec for a docstring reference.
4153 (Fdocumentation_property): Take advantage of the fact that
4154 get_doc_string now ignores the sign of the docstring position.
4155
4156 * eval.c: Use standard syntax for usage in docstrings.
4157
4158 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4159
4160 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
4161
4162 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4163
4164 * xterm.c (x_draw_image_relief): Use predefined macro instead of
4165 constant when the value of `tool_bar_button_relief' is negative.
4166
4167 2001-12-02 Richard M. Stallman <rms@gnu.org>
4168
4169 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
4170 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
4171
4172 * fileio.c (read_non_regular): Delete Fsignal call.
4173
4174 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
4175
4176 * lisp.h (run_hook_list_with_args): Undo last change.
4177
4178 2001-12-01 Gerd Moellmann <gerd@gnu.org>
4179
4180 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
4181
4182 2001-12-01 Jason Rumney <jasonr@gnu.org>
4183
4184 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
4185
4186 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
4187 [!WM_MOUSELEAVE]: Define.
4188
4189 * w32menu.c (current_popup_menu, get_menu_item_info):
4190 (set_menu_item_info): New vars.
4191 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
4192 (w32_menu_show): Set current_popup_menu.
4193 (add_menu_item): Allocate new strings for owner-drawn menu items
4194 and help strings.
4195 Use owner-draw for disabled menu items again.
4196 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
4197 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
4198
4199 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
4200 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
4201 <WM_EXITMENULOOP>: Free menu strings.
4202 <WM_MOUSELEAVE>: Stop tracking mouse.
4203 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
4204
4205 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
4206 and mouse face.
4207
4208 2001-12-01 Kim F. Storm <storm@cua.dk>
4209
4210 The following changes add left-fringe and right-fringe
4211 frame parameters to adjust fringe widths, or remove one or
4212 both fringes.
4213
4214 * frame.h (struct frame): Remove trunc_area_pixel_width and
4215 trunc_area_cols fields.
4216 (Qleft_fringe, Qright_fringe): Declare.
4217 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
4218
4219 * frame.c (Qleft_fringe, Qright_fringe): New vars.
4220 (syms_of_frame): Initialize them.
4221
4222 * window.c (coordinates_in_window): Handle separate left and right
4223 fringe widths.
4224
4225 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
4226 and fringe_cols fields.
4227 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
4228 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
4229 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
4230 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
4231 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
4232 (x_compute_fringe_widths): Add prototype.
4233
4234 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
4235 fill fringe evenly with small dashes.
4236 (x_draw_fringe_bitmap): Clear background if necessary. Align and
4237 clip the new ZV bitmap to avoid jitter between rows.
4238 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
4239 background. Don't draw fringe bitmaps if fringe width is zero.
4240 (x_compute_fringe_widths): New function.
4241 (x_new_font, x_set_window_size_1): Use it.
4242
4243 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
4244 (x_set_frame_parameters): Process `font' parameter before other
4245 parameters as fringe widths depend on it.
4246 (x_set_fringe_width): New function.
4247 (x_figure_window_size): Use x_compute_fringe_widths.
4248 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
4249 parameters.
4250
4251 * widget.c (set_frame_size): Use x_compute_fringe_widths.
4252 (EmacsFrameSetCharSize): Ditto.
4253
4254 * w32term.h: Merged changes from xterm.h.
4255 * w32term.c: Merged changes from xterm.c.
4256 * w32fns.c: Merged changes from xfns.c.
4257
4258 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4259
4260 * COPYING: Removed.
4261
4262 2001-11-29 Dave Love <fx@gnu.org>
4263
4264 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
4265 extra extra slot.
4266 (detect_coding_mask): Fix call of detect_coding_iso2022.
4267
4268 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4269
4270 * fileio.c (file-name-coding-system)
4271 (default-file-name-coding-system): Doc fix (links to referenced
4272 variables added).
4273
4274 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
4275
4276 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
4277 Add dummy uses of gcproN variables.
4278
4279 * category.c (describe_category, describe_category_1)
4280 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
4281 (syms_of_category): Don't defsubr Sdescribe_categories.
4282
4283 2001-11-28 Richard M. Stallman <rms@gnu.org>
4284
4285 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
4286
4287 * Makefile.in (lispdir): New variable, referring to build dir.
4288 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
4289
4290 2001-11-28 Andrew Innes <andrewi@gnu.org>
4291
4292 * w32menu.c (w32_menu_display_help): Actually add the new argument
4293 OWNER.
4294
4295 2001-11-28 Jason Rumney <jasonr@gnu.org>
4296
4297 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
4298 menu items. From David Ponce <dponce@wanadoo.fr>.
4299 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
4300 conditionally.
4301 (w32_menu_display_help): New argument OWNER. Rewritten to store a
4302 help event in the owner frame's keyboard buffer.
4303
4304 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
4305 (Fx_show_tip): Don't subtract last width from row width.
4306
4307 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
4308 (w32_read_socket): Use EQ to compare frames.
4309
4310 2001-11-28 Gerd Moellmann <gerd@gnu.org>
4311
4312 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4313 OVERLAPS_P.
4314
4315 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4316
4317 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
4318 `gcpro3' and `gcpro4'.
4319
4320 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
4321
4322 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
4323
4324 * ccl.c: Use AREF and ASIZE.
4325
4326 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
4327
4328 * lisp.h (run_hook_list_with_args): Remove.
4329 (LIST_END_P): Fix call to wrong_type_argument.
4330 (make_fixnum_or_float): Use EMACS_INT rather than int.
4331
4332 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
4333
4334 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
4335 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
4336
4337 * eval.c: Use AREF and ASIZE.
4338 (Ffetch_bytecode): Add the file name to the error message.
4339
4340 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
4341 which match the end of the file-name.
4342 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
4343 is not a valid env var, but leave it as is instead.
4344
4345 * keymap.c (access_keymap): Handle t bindings like nil bindings.
4346 Make nil bindings in char-tables transparent.
4347 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
4348
4349 2001-11-26 Richard M. Stallman <rms@gnu.org>
4350
4351 * textprop.c (set_text_properties_1): Allow START, END in either order.
4352 Do nothing if range is empty.
4353
4354 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
4355
4356 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
4357 (clean): Not here.
4358
4359 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
4360
4361 * textprop.c (set_text_properties_1): Clearly mark that the
4362 interval should not be empty.
4363
4364 * intervals.c (graft_intervals_into_buffer):
4365 Don't call set_text_properties_1 on an empty interval.
4366
4367 2001-11-25 Richard M. Stallman <rms@gnu.org>
4368
4369 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
4370
4371 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
4372 don't lose the data in it.
4373
4374 2001-11-25 Juanma Barranquero <lektu@terra.es>
4375
4376 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
4377
4378 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
4379
4380 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
4381
4382 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
4383
4384 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
4385
4386 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
4387
4388 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
4389 Niemitalo <kon@iki.fi>.
4390
4391 2001-11-25 Jason Rumney <jasonr@gnu.org>
4392
4393 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
4394
4395 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
4396 (Fx_show_tip): Block input during frame creation.
4397 (Fx_show_tip, Fx_hide_tip): Enable.
4398
4399 2001-11-24 Richard M. Stallman <rms@gnu.org>
4400
4401 * lread.c (Fload): Detect recursive load error for more than 3
4402 nestings of the same file.
4403 (Vrecursive_load_depth_limit): Variable deleted.
4404 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
4405
4406 2001-11-24 Jason Rumney <jasonr@gnu.org>
4407
4408 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
4409 mouse position if either left or top is not specified.
4410
4411 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
4412 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
4413 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
4414 (my_create_tip_window): Assign tip_window.
4415 (x_create_tip_frame): Use same defaults as X.
4416 (compute_tip_xy): Remove unused variable. Use full screen width.
4417 (Fx_show_tip): Do not double height. Call ShowWindow directly.
4418
4419 * w32term.c (x_after_update_window_line): Doc fix.
4420 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
4421 frames.
4422 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
4423
4424 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
4425 for all Windowed systems.
4426
4427 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4428
4429 * msdos.c (IT_clear_screen): If the frame's faces are not yet
4430 realized, use the initial screen colors to clear the screen.
4431
4432 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4433
4434 * textprop.c (Fset_text_properties): Remove unused variables
4435 `unchanged', `prev_changed', `s' and `len'.
4436
4437 * search.c (Freplace_match): Remove unused variable `inslen'.
4438
4439 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
4440
4441 2001-11-22 Jason Rumney <jasonr@gnu.org>
4442
4443 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
4444 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
4445 (my_create_tip_window): New function.
4446 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
4447 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
4448
4449 2001-11-20 Jason Rumney <jasonr@gnu.org>
4450
4451 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
4452 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
4453
4454 * w32fns.c (Vw32_system_coding_system): Remove.
4455 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
4456
4457 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
4458
4459 * fileio.c (Fwrite_region): Move choose_write_coding_system to
4460 after build_annotations.
4461
4462 * syntax.c (describe_syntax): Add dummy arg.
4463 (describe_syntax_1): Update call to describe_vector.
4464
4465 * category.c (describe_category): Add dummy arg.
4466 (describe_category_1): Update call to describe_vector.
4467
4468 * keymap.c (Fdescribe_vector): Add `describer' parameter.
4469 (describe_command, describe_translation): Add dummy second param.
4470 (describe_map): Call elt_describer with two arguments.
4471 (describe_vector_princ): Add `fun' parameter.
4472 Call it instead of the hardcoded `princ'.
4473 (describe_vector): Add arg `args'.
4474 Pass it as a new second argument to elt_describer.
4475
4476 * keymap.h (describe_vector): Update prototype.
4477
4478 * frame.c: Don't include keymap.h any more.
4479 (keys_of_frame): Remove.
4480
4481 * lisp.h (keys_of_frame): Remove declaration.
4482
4483 * emacs.c (main): Don't call `keys_of_frame' any more.
4484
4485 2001-11-14 Andreas Schwab <schwab@suse.de>
4486
4487 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
4488 if defined, 0 otherwise.
4489 (MAP_FAILED): Define if not defined and use it to test mmap failure.
4490 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
4491
4492 2001-11-19 Richard M. Stallman <rms@gnu.org>
4493
4494 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
4495
4496 2001-11-18 Jason Rumney <jasonr@gnu.org>
4497
4498 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
4499 (x_draw_bar_cursor): If the background color of the glyph under
4500 the cursor equals the frame's cursor color, use the glyph's
4501 foreground color for drawing the bar cursor.
4502 (x_after_update_window_line): Clear internal border in different
4503 circumstances.
4504 (w32_set_vertical_scroll_bar): Check for width and height > 0.
4505 (w32_draw_relief_rect): Correct relief by 1 pixel.
4506 (x_set_glyph_string_background_width):
4507 Set extends_to_end_of_line_p if the row's fill_line_p is set and
4508 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
4509 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
4510 if cursor_in_non_selected_windows is false.
4511 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
4512 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
4513 Notice if cursor gets overwritten.
4514 (notice_overwritten_cursor): Renamed from
4515 note_overwritten_text_cursor. Rewritten to take glyph widths
4516 into account, and to take X positions as parameters.
4517 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4518 around call to x_draw_glyphs.
4519 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4520 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4521 color to use for image glyph reliefs.
4522 (x_draw_image_relief): Accept zero tool_bar_button_relief.
4523 (glyph_rect): Remove unused variable `area'.
4524
4525 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
4526 some items.
4527 (x_set_internal_border_width): Set frame garbaged when window
4528 doesn't exist yet.
4529 (Fx_create_frame): Accept zero tool_bar_button_relief.
4530 (x_clear_image_1, four_corners_best, image_background)
4531 (image_background_transparent): New functions.
4532 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
4533 (gs_format): Add `:background' entry.
4534 (lookup_image): Set IMG's background color if specified.
4535 (pbm_load, xbm_load_image, png_load): Set IMG's background field
4536 when appropriate.
4537 (x_clear_image_1): Reset `background_valid' and
4538 `background_transparent_valid' fields.
4539 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4540 calculating it here. Set IMG's background_transparent field.
4541 (enum xpm_keyword_index): Add XPM_BACKGROUND.
4542 (enum png_keyword_index): Add PNG_BACKGROUND.
4543 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4544 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4545 (enum gif_keyword_index): Add GIF_BACKGROUND.
4546 (enum gs_keyword_index): Add GS_BACKGROUND.
4547 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
4548 Pre-calculate image background color where necessary.
4549 (x_create_x_image_and_pixmap, xbm_load, gs_load):
4550 Use display info's n_cbits entry for screen depth.
4551 (Fx_show_tip): Remove unused variables `buffer', `top',
4552 `left', `max_width' and `max_height'.
4553
4554 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
4555
4556 2001-11-18 Gerd Moellmann <gerd@gnu.org>
4557
4558 * puresize.h (BASE_PURESIZE): Increase to 750000.
4559
4560 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4561
4562 * frame.c (Fframe_live_p): Doc fix.
4563
4564 2001-11-18 Richard M. Stallman <rms@gnu.org>
4565
4566 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
4567 (message_dolog_marker3): New static variables hold three markers.
4568 (syms_of_xdisp): Initialize and staticpro them.
4569 (message_dolog): Use message_dolog_marker1..3 instead of
4570 allocating markers each time. Unchain them when done.
4571
4572 2001-11-17 Richard M. Stallman <rms@gnu.org>
4573
4574 * doc.c (Fsnarf_documentation): Doc fix.
4575
4576 2001-11-17 Andreas Schwab <schwab@suse.de>
4577
4578 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
4579
4580 2001-11-17 Richard M. Stallman <rms@gnu.org>
4581
4582 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
4583
4584 2001-11-17 Jason Rumney <jasonr@gnu.org>
4585
4586 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
4587
4588 2001-11-17 Gerd Moellmann <gerd@gnu.org>
4589
4590 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
4591 with invalid position.
4592
4593 2001-11-16 Richard M. Stallman <rms@gnu.org>
4594
4595 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
4596
4597 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
4598 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
4599 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
4600
4601 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
4602
4603 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
4604
4605 * fileio.c (build_annotations): Split off the tail.
4606 (build_annotations_2): New fun. Extracted from build_annotations.
4607 (Fwrite_region): Split the call to build_annotations into two
4608 calls to build_annotations and build_annotations_2.
4609
4610 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4611
4612 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
4613 clear_waiting_for_input with argument.
4614
4615 * xterm.h (x_update_cursor): Remove duplicated prototype.
4616
4617 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
4618
4619 * xterm.c (waiting_for_input): Remove unnecessary declaration.
4620
4621 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
4622
4623 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
4624
4625 * fileio.c (choose_write_coding_system): New fun, extracted
4626 from Fwrite_region.
4627 (Fwrite_region): Use it.
4628
4629 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
4630 (funcall_lambda, run_hook_with_args): Make static and add prototype.
4631 (ml_apply, find_handler_clause): Add prototype.
4632
4633 2001-11-16 Eli Zaretskii <eliz@gnu.org>
4634
4635 * config.in: Add #undef HAVE_COFF_H.
4636
4637 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
4638 Required for ISC 4.1.
4639
4640 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
4641
4642 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
4643 Andrew Wiseman <a.wiseman@btclick.com>.
4644
4645 2001-11-16 Kim F. Storm <storm@cua.dk>
4646
4647 The following changes are made to clean up the various internal
4648 references to the fringes to actually use the term `fringe' for
4649 them. Previously, they were called `flags areas', `bitmap areas',
4650 `left/right side of windows', or implicitly as `flags' or
4651 `bitmaps':
4652
4653 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
4654 Comments fixed. Use renamed symbols.
4655
4656 * dispnew.c: Comment fix. Use renamed symbols.
4657
4658 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
4659 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
4660 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
4661
4662 * msdos.c: Comment fix.
4663
4664 * w32fns.c: Use renamed symbols.
4665
4666 * w32term.c: Comment fixes. Use renamed symbols.
4667 (fringe_bitmap_type): Renamed from bitmap_type.
4668 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
4669 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
4670 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
4671
4672 * w32term.h: Comment fixes. Use renamed symbols.
4673 (fringes_extra): Renamed from flags_areas_extra.
4674 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
4675 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
4676 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
4677 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
4678 (FRAME_X_LEFT_FRINGE_WIDTH):
4679 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
4680 (FRAME_X_RIGHT_FRINGE_WIDTH):
4681 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
4682
4683 * widget.c: Use renamed symbols.
4684
4685 * window.c: Comment fixes. Use renamed symbols.
4686 (coordinates-in-window-p): Doc fix.
4687
4688 * xdisp.c: Comment fixes. Use renamed symbols.
4689
4690 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
4691
4692 * xfns.c: Use renamed symbols.
4693
4694 * xterm.c: Comment fixes. Use renamed symbols.
4695 (fringe_bitmap_type): Renamed from bitmap_type.
4696 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
4697 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
4698 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
4699
4700 * xterm.h: Comment fixes. Use renamed symbols.
4701 (fringes_extra): Renamed from flags_areas_extra.
4702 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
4703 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
4704 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
4705 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
4706 (FRAME_X_LEFT_FRINGE_WIDTH):
4707 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
4708 (FRAME_X_RIGHT_FRINGE_WIDTH):
4709 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
4710
4711 2001-11-15 Jason Rumney <jasonr@gnu.org>
4712
4713 * w32menu.c (add-menu-item): Make help_echo and radio buttons
4714 work for most menu items. From David Ponce
4715 <david.ponce@wanadoo.fr>.
4716
4717 2001-11-15 Gerd Moellmann <gerd@gnu.org>
4718
4719 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
4720 Some x_set_* function expect to be called even if old and new
4721 value are equal.
4722
4723 * xdisp.c (build_desired_tool_bar_string): Accept zero
4724 tool_bar_button_relief.
4725
4726 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
4727
4728 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
4729
4730 * xterm.c (x_draw_bar_cursor): If the background color of the
4731 glyph under the cursor equals the frame's cursor color, use
4732 the glyph's foreground color for drawing the bar cursor.
4733
4734 * dispnew.c (direct_output_forward_char): Fix character/byte
4735 position comparison.
4736
4737 2001-11-15 Miles Bader <miles@gnu.org>
4738
4739 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
4740 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
4741 Update arguments to find_field.
4742 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
4743 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
4744 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
4745 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
4746
4747 2001-11-14 Richard M. Stallman <rms@gnu.org>
4748
4749 * editfns.c (Fpropertize): Allow call with 1 arg.
4750
4751 * dispextern.h (image_background, image_background_transparent):
4752 Conditionalize on HAVE_X_WINDOWS.
4753
4754 2001-11-13 Richard M. Stallman <rms@gnu.org>
4755
4756 * print.c (Fprin1_to_string): Doc fix.
4757
4758 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
4759
4760 * floatfns.c (Fceiling, Ffloor): Doc fixes.
4761
4762 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
4763
4764 * fileio.c (Ffile_accessible_directory_p): Doc fix.
4765
4766 * eval.c (syms_of_eval): Doc fix.
4767
4768 * coding.c (syms_of_coding): Doc fix.
4769
4770 * doc.c (Fsnarf_documentation): Doc fix.
4771
4772 * dispnew.c (syms_of_display): Doc fix.
4773
4774 * category.c (Fget_unused_category): Doc fix.
4775
4776 * buffer.c (syms_of_buffer): Doc fixes.
4777
4778 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
4779
4780 * print.c (prin1, print): Doc fix.
4781
4782 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4783
4784 * fontset.h: Remove declarations of variables
4785 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
4786
4787 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
4788 `Vclip_large_size_font'.
4789
4790 2001-11-13 Jason Rumney <jasonr@gnu.org>
4791
4792 * w32fns.c: Doc fix.
4793
4794 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4795
4796 * xfaces.c (Fface_attributes_as_vector): Doc fix.
4797
4798 * fns.c: Doc fix.
4799
4800 * emacs.c: Doc fix.
4801
4802 * coding.c: Doc fix.
4803
4804 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
4805 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
4806 `new style' [w/`doc:' keyword].
4807
4808 2001-11-12 Richard M. Stallman <rms@gnu.org>
4809
4810 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
4811 LeaveNotify events. Only FocusIn and FocusOut do that now.
4812 (x_display_and_set_cursor): Do display hollow cursors in active
4813 minibuffer windows when they are not selected.
4814
4815 2001-11-12 Jason Rumney <jasonr@gnu.org>
4816
4817 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
4818 * w32term.c: Change doc-string comments to `new style'.
4819 [w/`doc:' keyword]. Doc fixes.
4820
4821 * w32fns.c: Don't define max.
4822 (Fx_open_connection): Only execute once.
4823
4824 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4825
4826 * ccl.c: Change macros to use do-while block instead of if-else.
4827 Use braces to follow GNU Coding Standards.
4828
4829 2001-11-11 Richard M. Stallman <rms@gnu.org>
4830
4831 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
4832
4833 * lread.c (read_escape): Use end_of_file_error for reporting eof.
4834
4835 * insdel.c (replace_range): Use adjust_markers_for_replace
4836 instead of adjust_markers_for_delete and adjust_markers_for_insert.
4837
4838 * intervals.h: Declare set_text_properties and set_text_properties_1.
4839
4840 * textprop.c (set_text_properties_1): New subroutine
4841 broken out of set_text_properties.
4842 (set_text_properties): Use set_text_properties_1.
4843
4844 * intervals.c (graft_intervals_into_buffer):
4845 Use set_text_properties_1 to clear out properties.
4846
4847 * search.c (Freplace_match): Use replace_range to insert
4848 and delete. Don't request property inheritance from
4849 surrounding text.
4850
4851 2001-11-10 Jason Rumney <jasonr@gnu.org>
4852
4853 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
4854 vertical fonts. Allow them if face name is explicitly specified.
4855 Do not give up if we find a font that cannot be converted to an xlfd.
4856
4857 2001-11-10 Gerd Moellmann <gerd@gnu.org>
4858
4859 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
4860 instead of malloc/free.
4861
4862 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4863
4864 * xfaces.c (merge_face_vectors): Use braces to follow GNU
4865 Coding Standards.
4866 (Finternal_set_lisp_face_attribute): Likewise.
4867
4868 * buffer.c (Fbury_buffer): Likewise.
4869
4870 * indent.c (current_column_1): Remove unused variable `prev_col'.
4871
4872 * coding.c (encode_coding): Use precomputed value of `src'.
4873 (encode_coding): Remove unused variable `src_end'.
4874 (code_convert_region): Remove unused variables `count'.
4875
4876 2001-11-07 Jason Rumney <jasonr@gnu.org>
4877
4878 * w32term.c (x_display_and_set_cursor): Do not move system caret
4879 if cursor_glyph is NULL.
4880
4881 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4882
4883 * keymap.c (access_keymap): Fix compilation error.
4884
4885 2001-11-07 Miles Bader <miles@gnu.org>
4886
4887 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
4888
4889 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4890
4891 * intervals.c (graft_intervals_into_buffer):
4892 Remove #ifdef'd-out code.
4893 (graft_intervals_into_buffer): Remove unused variable `middle'.
4894
4895 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
4896 code (eval-current-buffer).
4897 Change doc-string comments to `new style' [w/`doc:' keyword].
4898
4899 2001-11-06 Richard M. Stallman <rms@gnu.org>
4900
4901 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
4902
4903 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
4904
4905 * lread.c (read1): Fix behavior with nested backquoting.
4906
4907 * keyboard.c (make_lispy_event): Check integerness and fix
4908 Lisp_Object/int mixup.
4909
4910 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4911
4912 * fns.c (copy_hash_table): Remove unused variable `v'.
4913
4914 * fontset.c (fontset_font_pattern): Remove unused variable
4915 `family_registry'.
4916
4917 * indent.c (current_column_1): Remove unused variable `prev_col'.
4918
4919 2001-11-05 Richard M. Stallman <rms@gnu.org>
4920
4921 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
4922
4923 * buffer.c (Fkill_buffer): Don't delete auto save file
4924 if buffer is modified.
4925
4926 2001-11-05 Andrew Innes <andrewi@gnu.org>
4927
4928 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
4929 CHECK_NUMBER_CDR.
4930
4931 2001-11-05 Richard M. Stallman <rms@gnu.org>
4932
4933 * unexelf.c (unexec): Minor changes; clean up comments.
4934
4935 2001-11-05 Sam Steingold <sds@gnu.org>
4936
4937 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
4938
4939 2001-11-05 Andreas Schwab <schwab@suse.de>
4940
4941 * sound.c (sound_perror): Save errno from being clobbered.
4942
4943 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
4944
4945 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
4946 the program image directly.
4947
4948 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4949
4950 * buffer.h (Fbuffer_local_value): Add prototype.
4951
4952 2001-11-04 Richard M. Stallman <rms@gnu.org>
4953
4954 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
4955 and CHECK_BUFFER.
4956
4957 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
4958 (record_char): Likewise.
4959
4960 * keyboard.c (make_lispy_event): Don't insist a drag event must
4961 move to a different buffer position. Instead, check for moving at
4962 least double_click_fuzz.
4963
4964 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
4965
4966 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
4967
4968 * indent.c (current_column_1, Fmove_to_column): Separate the code
4969 for display-table glyphs from the code buffer text, to fix
4970 bugs in the former.
4971
4972 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
4973
4974 * buffer.c (Fbuffer_local_value): New function.
4975 (syms_of_buffer): Defsubr it.
4976
4977 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
4978 value of `cursor-in-non-selected-windows'.
4979
4980 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
4981 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
4982 (syms_of_xdisp): Initialize it.
4983
4984 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4985
4986 * xfns.c (Fx_create_frame): Doc fix.
4987
4988 * coding.c: Change doc-string comments to `new style' [w/`doc:'
4989 keyword].
4990
4991 * eval.c (top_level_value, top_level_set): Remove commented and
4992 #ifdef'd-out code.
4993 (Fdefvar): Fix usage in doc-string.
4994
4995 2001-11-03 Richard M. Stallman <rms@gnu.org>
4996
4997 * xfns.c: Include unistd.h, if it exists.
4998
4999 * editfns.c: Move the include of ctype.h after unistd.h.
5000
5001 * gmalloc.c: Test BROKEN_PROTOTYPES.
5002
5003 2001-11-03 Ken Raeburn <raeburn@gnu.org>
5004
5005 * lisp.h (CHECK_STRING_CAR): New macro.
5006 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
5007 treating XCAR and XCDR as lvalues.
5008 (openp): Use CHECK_STRING_CAR.
5009 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
5010
5011 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
5012
5013 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
5014 (SIGMASKTYPE): Define.
5015
5016 * syssignal.h (sigunblock): Don't define if already defined.
5017
5018 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5019
5020 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
5021 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
5022 Fix typos in comments.
5023
5024 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
5025 and #ifdef'd-out code.
5026 Fix and reindent comments.
5027
5028 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
5029
5030 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
5031 argument `i' in macros.
5032
5033 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
5034 `i' in macros.
5035
5036 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
5037 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
5038 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
5039 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
5040 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
5041 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
5042 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
5043 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
5044 in macros.
5045
5046 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
5047 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
5048 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
5049 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
5050 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
5051 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
5052 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
5053 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
5054 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
5055 (remove unused second argument).
5056
5057 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
5058
5059 * syntax.c (describe_syntax): New wrapper.
5060 (Finternal_describe_syntax_value): Rename from describe_syntax.
5061 Don't insert space at front and \n at the end.
5062 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
5063
5064 * regex.c (re_wctype): Try to fix some warnings.
5065 (regcomp, regexec): Don't forget the __restrict.
5066
5067 2001-11-02 Richard M. Stallman <rms@gnu.org>
5068
5069 * textprop.c (Fget_char_property): Doc fix.
5070
5071 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5072
5073 * process.c (Fstart_process): Add usage to doc-string.
5074
5075 * data.c (Fsetq_default): Ditto.
5076
5077 * callint.c (Finteractive): Ditto.
5078
5079 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
5080
5081 * macros.c: Don't include keymap.h any more.
5082
5083 2001-11-01 Richard M. Stallman <rms@gnu.org>
5084
5085 * data.c (Fmake_local_variable): Doc fix.
5086
5087 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
5088 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
5089
5090 * keymap.c (Fdescribe_buffer_bindings): Print character property
5091 bindings along with or instead of the buffer local map.
5092 Make the overriding maps override what they should.
5093
5094 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5095
5096 * window.c (grow_mini_window): Fix typo in comment.
5097
5098 2001-11-01 Gerd Moellmann <gerd@gnu.org>
5099
5100 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
5101 (XTset_vertical_scroll_bar): Likewise.
5102
5103 * xfns.c (x_build_heuristic_mask): Use four_corners_best
5104 instead of IMAGE_BACKGROUND.
5105
5106 * xfns.c (four_corners_best): Reindent.
5107
5108 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5109 Handle :box so that it is possible to specify sexprs.
5110
5111 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
5112
5113 * s/hpux11.h: New file.
5114
5115 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5116
5117 * emacs.c (USAGE1): Show command line option --no-window-system
5118 instead of --no-windows in usage.
5119 (standard_args): Rename --no-windows to --no-window-system.
5120 (bug_reporting_address): Follow Emacs coding conventions.
5121
5122 * eval.c (Fcommandp): Doc fix.
5123 Change doc-string comments to `new style' [w/`doc:' keyword].
5124
5125 * frame.c (Fframe_live_p): Doc fix.
5126
5127 * buffer.c (selective-display-ellipses): Doc fix.
5128
5129 2001-10-31 Gerd Moellmann <gerd@gnu.org>
5130
5131 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
5132
5133 * xfaces.c (realize_x_face): If C is not a single-byte character,
5134 set the face's colors_copied_bitwise_p instead of the defaulted_p
5135 members which have a different meaning.
5136 (free_face_colors): Do nothing for a face whose colors have been
5137 copied bitwise.
5138
5139 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
5140
5141 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5142
5143 * marker.c, mocklisp.c: Change doc-string comments to `new style'
5144 [w/`doc:' keyword].
5145
5146 2001-10-31 Gerd Moellmann <gerd@gnu.org>
5147
5148 * fns.c (require_unwind): Return Lisp_Object.
5149
5150 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5151
5152 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
5153 (last-input-char): Revert doc-string to be the same as the
5154 doc-string of `last-input-event'.
5155
5156 * xdisp.c: Fix typos in comments.
5157
5158 2001-10-31 Gerd Moellmann <gerd@gnu.org>
5159
5160 * window.c (grow_mini_window): Handle case that the root
5161 window is already smaller than the nominal mininum height.
5162
5163 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
5164
5165 * emacs.c (main): Don't call keys_of_macros any more.
5166
5167 * lisp.h (keys_of_macros): Remove.
5168
5169 * macros.c (keys_of_macros): Remove.
5170
5171 * xfaces.c (Fface_attribute_relative_p): Declare args.
5172
5173 2001-10-30 Jason Rumney <jasonr@gnu.org>
5174
5175 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
5176 (enum_font_cb2): Ignore fonts with vertical orientation.
5177
5178 2001-10-30 Richard M. Stallman <rms@gnu.org>
5179
5180 * keyboard.c (Finput_pending_p): Doc fix.
5181
5182 2001-10-30 Gerd Moellmann <gerd@gnu.org>
5183
5184 * xterm.c (x_after_update_window_line): Don't run the code
5185 clearing in borders for rows whose visible height is 0.
5186
5187 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
5188 resized_p flag is set. If not set, use the much less flickering
5189 method previously used.
5190
5191 * dispnew.c (change_frame_size_1): Set frame's resized_p.
5192
5193 * frame.h (struct frame) <resized_p>: New member.
5194
5195 * lread.c (to_multibyte): Ensure read_buffer is at least twice
5196 as large as the number of bytes to convert.
5197
5198 * lread.c (to_multibyte): New function.
5199 (read1): Use it.
5200
5201 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
5202
5203 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
5204
5205 2001-10-30 Gerd Moellmann <gerd@gnu.org>
5206
5207 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
5208 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
5209 if the row's fill_line_p is set and drawing the last glyph with
5210 DRAW_IMAGE_{RAISED,SUNKEN}.
5211
5212 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
5213
5214 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
5215
5216 * xmenu.c: Include coding.h and charset.h.
5217 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
5218 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
5219 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
5220 Explicitly set wv->help. Use `TRUE' rather than `True'.
5221 (menu_help_callback): Use empty_string.
5222
5223 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
5224 (Fx_popup_dialog): Explicitly init f.
5225 (w32_menu_display_help): Use empty_string.
5226
5227 2001-10-29 Richard M. Stallman <rms@gnu.org>
5228
5229 * fns.c (Frequire): Detect recursive try to require the same
5230 feature 3 or more levels deep, and get error.
5231 (require_unwind): New subroutine.
5232 (require_nesting_list): New variable.
5233 (syms_of_fns): Init and staticpro it.
5234
5235 * print.c (print_object): Clarify indication of insertion type.
5236
5237 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
5238
5239 * coding.c (syms_of_coding): Document that locale-coding-system is
5240 used for decoding input on X.
5241
5242 * window.c (Fscroll_left, Fscroll_right): Doc fix.
5243
5244 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5245
5246 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
5247 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
5248
5249 2001-10-29 Gerd Moellmann <gerd@gnu.org>
5250
5251 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
5252 use NO_CURSOR if cursor_in_non_selected_windows is false.
5253
5254 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
5255 the slant attribute if FRAME is t.
5256
5257 * xfns.c (x_set_internal_border_width): Set frame garbaged
5258 when X window doesn't exist yet.
5259
5260 * xterm.c (x_after_update_window_line): Clear internal border
5261 in different circumstances.
5262
5263 * xterm.c (XTread_socket) <KeyPress>: Don't use
5264 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
5265 <handa@etl.go.jp>.
5266
5267 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5268
5269 * m/ibms390.h: New file. From Adam Thornton
5270 <athornton@sinenomine.net>.
5271
5272 2001-10-28 Gerd Moellmann <gerd@gnu.org>
5273
5274 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
5275
5276 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
5277 a loop counter.
5278
5279 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5280
5281 * emacs.c: Use argv[0] instead of emacs when -t was specified.
5282
5283 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
5284 keyword].
5285 Fix typos in comments.
5286
5287 * emacs.c (bug_reporting_address): New function.
5288 Use it when displaying usage message.
5289
5290 * minibuf.c (read_minibuf): Remove unused external declaration of
5291 variable `Qread_only'.
5292
5293 * keymap.c (access_keymap): Remove unused variable `charset'.
5294
5295 2001-10-28 Miles Bader <miles@gnu.org>
5296
5297 * xfaces.c (merge_face_heights): Handle TO being relative as well.
5298 Remove #ifdef'd-out code.
5299 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
5300 (syms_of_xfaces): Initialize them.
5301
5302 2001-10-27 Jason Rumney <jasonr@gnu.org>
5303
5304 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
5305 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
5306 position using the system caret.
5307
5308 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
5309 (w32_system_caret_height, w32_system_caret_x)
5310 (w32_system_caret_y): New variables for tracking system caret.
5311 (w32_initialize): Initialize them.
5312 (x_display_and_set_cursor): Make system caret follow the active cursor.
5313
5314 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
5315 New messages types.
5316
5317 * w32term.c (note_mouse_highlight): Clear old help_echo.
5318
5319 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5320
5321 * xterm.c: Fix typo in a comment.
5322
5323 * emacs.c: Fix typos in comments.
5324 Remove unnecessary spaces.
5325 Change doc-string comments to `new style' [w/`doc:' keyword].
5326 (USAGE2): Fix typos in usage string.
5327
5328 * xterm.c: Fix typo in a comment.
5329
5330 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
5331 emacs.c.
5332
5333 2001-10-27 Gerd Moellmann <gerd@gnu.org>
5334
5335 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
5336 instead of 1/2 line_height in the heuristic for skipping
5337 farther backward when target_y was not reached.
5338
5339 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
5340 Display errno only if non-zero.
5341 (sound_warning): New function.
5342 (vox_configure): Don't treat failing to set sample rate as error.
5343 (various places): Improve error messages.
5344
5345 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
5346
5347 * fileio.c (Faccess_file): Run the argument filename through
5348 Fexpand_file_name, before using it.
5349
5350 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
5351 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
5352
5353 2001-10-26 Gerd Moellmann <gerd@gnu.org>
5354
5355 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
5356
5357 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5358 Fix clearing in the case of scroll bars on the right.
5359
5360 2001-10-26 Juanma Barranquero <lektu@terra.es>
5361
5362 * w32gui.h (XImage): Add a dummy typedef.
5363
5364 2001-10-26 Gerd Moellmann <gerd@gnu.org>
5365
5366 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
5367
5368 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
5369
5370 * frame.c (Fframe_parameter): Fix last change.
5371
5372 * fileio.c: Revert last change (which removed old commented-out
5373 version of expand-file-name). Add a comment that explains why
5374 this old version should not be removed.
5375
5376 2001-10-25 Gerd Moellmann <gerd@gnu.org>
5377
5378 * frame.c (Fframe_parameter): Fix a bug whereby some
5379 ``artificial'' frame parameters, like `minibuffer' were not
5380 obtained by calling Fframe_parameters.
5381
5382 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
5383 cursor differently.
5384
5385 * xdisp.c (move_it_vertically_backward): Compute line height
5386 differently. Add heuristic to try to be more compatible to 20.x.
5387
5388 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
5389
5390 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
5391
5392 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
5393 boolean.
5394
5395 2001-10-25 Miles Bader <miles@gnu.org>
5396
5397 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
5398 BG is a pointer to a structure, not a structure.
5399 (gif_format, png_format): Add missing commas.
5400
5401 2001-10-24 Richard M. Stallman <rms@gnu.org>
5402
5403 * xfaces.c (Fface_attributes_as_vector): New function.
5404 (syms_of_xfaces): Defsubr it.
5405
5406 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5407
5408 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
5409 variable `area'.
5410
5411 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5412
5413 * search.c (scan_newline): Remove unused variable `selective_display'.
5414
5415 2001-10-25 Miles Bader <miles@gnu.org>
5416
5417 * dispextern.h (struct image): Add `background',
5418 `background_valid', and `background_transparent' fields.
5419 (image_background, image_background_transparent): New declarations.
5420 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
5421 * xfns.c (image_background, image_background_transparent)
5422 (four_corners_best): New functions.
5423 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
5424 (gs_format): Add `:background' entry.
5425 (lookup_image): Set IMG's background color if specified.
5426 (pbm_load, xbm_load_image, png_load): Set IMG's background field
5427 when appropriate.
5428 (x_clear_image_1): Reset `background_valid' and
5429 `background_transparent_valid' fields.
5430 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
5431 calculating it here. Set IMG's background_transparent field.
5432 (enum xpm_keyword_index): Add XPM_BACKGROUND.
5433 (enum png_keyword_index): Add PNG_BACKGROUND.
5434 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
5435 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
5436 (enum gif_keyword_index): Add GIF_BACKGROUND.
5437 (enum gs_keyword_index): Add GS_BACKGROUND.
5438 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
5439 Pre-calculate image background color where necessary.
5440 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
5441 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
5442 color to use for image glyph reliefs.
5443
5444 2001-10-24 Gerd Moellmann <gerd@gnu.org>
5445
5446 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
5447 in full-width rows.
5448
5449 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5450 Fix clearing of area not covered by scroll bar.
5451
5452 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5453
5454 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
5455 and `real_start'.
5456 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
5457 (glyph_rect): Remove unused variable `area'.
5458
5459 2001-10-24 Gerd Moellmann <gerd@gnu.org>
5460
5461 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
5462
5463 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
5464 (row_containing_pos): Take additional argument DY.
5465 Treat rows ending in middle of char differently.
5466 (display_line): Handle tabs on window systems differently.
5467
5468 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
5469 with additional argument.
5470
5471 * dispextern.h (row_containing_pos): Adjust prototype.
5472
5473 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
5474 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
5475 (try_window_id, try_window_reusing_current_matrix)
5476 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
5477 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
5478
5479 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5480
5481 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
5482 gnuemacs).
5483 (HAVE_BOXES): Fix typo in comment.
5484 (push_menu_pane): Fix typo in comment.
5485
5486 * xdisp.c: (display_prop_string_p): Remove unused local declaration
5487 of `Qwhen'.
5488 (single_display_prop_string_p): Remove unused local declarations
5489 of `Qwhen' and `Qmargin'.
5490 (string_buffer_position): Remove unused variable `around'.
5491 (store_frame_title): Remove unused variable `width'.
5492
5493 * window.c: Don't define max.
5494 (coordinates_in_window): Remove unused variable `uy'.
5495
5496 * widget.c: Don't define max.
5497
5498 * process.c: Don't define max.
5499 (create_process): Remove unused variable `buffer'.
5500
5501 2001-10-23 Gerd Moellmann <gerd@gnu.org>
5502
5503 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
5504
5505 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
5506
5507 * xfaces.c (Finternal_set_lisp_face_attribute)
5508 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
5509 frame is on a windowed display.
5510
5511 2001-10-23 Gerd Moellmann <gerd@gnu.org>
5512
5513 * dispnew.c (sync_window_with_frame_matrix_rows):
5514 Fix handling of windows which aren't full-width, fix handling
5515 of marginal areas.
5516
5517 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
5518
5519 2001-10-23 Andreas Schwab <schwab@suse.de>
5520
5521 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
5522 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
5523
5524 2001-10-23 Gerd Moellmann <gerd@gnu.org>
5525
5526 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
5527 REAL_END. Notice if cursor gets overwritten.
5528 (notice_overwritten_cursor): Take X positions as parameters.
5529 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
5530 around call to x_draw_glyphs.
5531
5532 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5533
5534 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
5535 instead of C) and usage.
5536
5537 * editfns.c (char-to-string): Fix argument names (use CHAR instead
5538 of C) and usage.
5539
5540 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
5541 `left', `max_width' and `max_height'.
5542
5543 2001-10-23 Gerd Moellmann <gerd@gnu.org>
5544
5545 * xdisp.c (display_line): For a tab continued to the next line,
5546 set row's ends_in_middle_of_char_p.
5547
5548 2001-10-22 Gerd Moellmann <gerd@gnu.org>
5549
5550 * xdisp.c (display_line): Fix computation of continuation lines
5551 width for TABs.
5552
5553 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5554
5555 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
5556 `Qlaplace'.
5557
5558 * fileio.c: Remove unused code.
5559
5560 2001-10-22 Miles Bader <miles@gnu.org>
5561
5562 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
5563 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
5564 Remove `DOC_STRINGS_IN_COMMENTS' cases.
5565
5566 2001-10-21 Jason Rumney <jasonr@gnu.org>
5567
5568 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
5569
5570 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5571
5572 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
5573 (Finsert_string): Avoid the multi-line string literals warning.
5574
5575 2001-10-22 Miles Bader <miles@gnu.org>
5576
5577 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
5578 (Fdocumentation): Don't use it.
5579 (syms_of_doc): Don't initialize it.
5580
5581 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
5582 * print.c (Fwith_output_to_temp_buffer): Likewise.
5583 * window.c (Fsave_window_excursion): Likewise.
5584 * editfns.c (Fsave_excursion, Fsave_current_buffer)
5585 (Fsave_restriction): Likewise.
5586 * eval.c (Frun_hooks, Frun_hook_with_args)
5587 (Frun_hook_with_args_until_failure)
5588 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
5589 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
5590 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
5591 (Funwind_protect, Fcondition_case): Likewise.
5592 * coding.c (Ffind_operation_coding_system): Likewise.
5593 * keyboard.c (Ftrack_mouse): Likewise.
5594
5595 2001-10-21 Miles Bader <miles@gnu.org>
5596
5597 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
5598 (Fmake_hash_table): Add usage: string to doc string.
5599 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
5600 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
5601 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
5602 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
5603 (Fml_prefix_argument_loop): Likewise.
5604
5605 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5606
5607 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
5608
5609 * sysdep.c (init_sys_modes): Change doc-string comments to `new
5610 style' [w/`doc:' keyword].
5611
5612 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
5613 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
5614 comments to `new style' [w/`doc:' keyword].
5615
5616 2001-10-21 Jason Rumney <jasonr@gnu.org>
5617
5618 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
5619
5620 * w32term.c (remember_mouse_glyph): New function.
5621 (w32_mouse_position): Use it.
5622 (note_mouse_movement): If the mouse moved off the glyph, remember
5623 its new position.
5624
5625 * w32term.h (struct w32_output): Correct spelling of x_compatible.
5626 (w32_display_info): Add mouse_face_overlay.
5627
5628 * w32term.c (notice_overwritten_cursor): Renamed from
5629 note_overwritten_text_cursor. Rewritten to take glyph widths into
5630 account.
5631 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5632 (fast_find_string_pos): New function.
5633 (fast_find_position): Return the correct vpos. Add parameter
5634 STOP. In the final row, stop before glyphs having STOP as object.
5635 Don't consider glyphs that are not from a buffer.
5636 (fast_find_position) [0]: Add a presumably more correct version
5637 for after 21.1.
5638 (expose_window_tree, expose_frame): Don't compute intersections here.
5639 (expose_window): Do it here instead.
5640 (expose_window_tree, expose_window, expose_line): Return 1 when
5641 overwriting mouse-face.
5642 (expose_window): If W is the window currently being updated, mark
5643 the frame garbaged.
5644 (expose_frame): If mouse-face was overwritten, redo it.
5645 (x_use_underline_position_properties): New variable.
5646 (syms_of_xterm): DEFVAR_BOOL it.
5647 (x_draw_glyph_string): Add comment to use it in future.
5648 (x_draw_glyph_string): Restore clipping after drawing box.
5649 Fix a computation of the underline position.
5650 (w32_get_glyph_string_clip_rect): Minor cleanup.
5651 (x_fill_stretch_glyph_string): Remove an assertion.
5652 (x_produce_glyphs): Don't convert multibyte characters
5653 to unibyte characters in unibyte buffers.
5654 (cursor_in_mouse_face_p): New function.
5655 (x_draw_stretch_glyph_string): Use it to choose a different GC
5656 when drawing a cursor within highlighted text. Don't draw
5657 background again if it has already been drawn.
5658 (x_draw_glyph_string_box): Don't draw a full-width
5659 box just because the glyph row's full_width_p flag is set.
5660 (x_draw_glyphs): Fix computation of rightmost x for
5661 full-width rows.
5662 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
5663 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
5664 change bottom shadow accordingly. Some cleanup.
5665 (x_update_window_end): Handle overwritten mouse face
5666 also for tool bar windows.
5667 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5668 DRAW is DRAW_IMAGE_RAISED.
5669 (clear_mouse_face): Return 1 if text with mouse face was
5670 actually redrawn. Make the function static. Reset
5671 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
5672 optimize away highlighting if we pass over that same overlay again.
5673 (note_mouse_highlight): Call mouse_face_overlay_overlaps
5674 to detect a case where we have to highlight a different region
5675 despite not having left the currently highlighted region.
5676 Set mouse_face_overlay in the x_display_info. Avoid changing the
5677 mouse pointer shape when show_mouse_face has already done it, or
5678 there is no need. Handle mouse-face and help-echo in strings.
5679 (glyph_rect): New function.
5680 (w32_mouse_position): Use it to raise the threshold for mouse
5681 movement event generation.
5682 (w32_initialize_display_info): Initialize the x_display_info's
5683 mouse_face_overlay.
5684 (w32_set_vertical_scroll_bar): Don't clear a zero height
5685 or width area.
5686 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5687 a widget to zero height.
5688
5689 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
5690 Protect unibyte strings created by replacing their multibyte
5691 equivalents in menu_items.
5692 (w32_menu_show): Don't overwrite an item's name with its key
5693 description in case the description is a multibyte string.
5694 (single_submenu): Some cleanup.
5695
5696 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
5697 (postprocess_image): New function.
5698 (lookup_image): Call it for all image types except PostScript.
5699 (x_kill_gs_process): Call postprocess_image.
5700 (tiff_error_handler, tiff_warning_handler): New functions.
5701 (tiff_load): Install them as handlers.
5702 (x_kill_gs_process): Recognize if someone has cleared the image
5703 cache under us.
5704 (valid_image_p): Protect better against invalid image
5705 specifications. Previous code could signal an error.
5706 (Fx_hide_tip, Fshow_tip): Doc fix.
5707 (Fv_max_tooltip_size): New variable.
5708 (syns_of_xfns): DEFVAR_LISP it.
5709 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
5710 window buffer to *tip* right after creating the frame. Set frame's
5711 window_width. Use a maximum tooltip size specified by
5712 Vx_max_tooltip_size, if that has valid contents.
5713 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5714 Make sure the tooltip is completely visible.
5715 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
5716 (Fx_create_frame): Adjust the frame's height for presence
5717 of the tool bar before calling x_figure_window_size.
5718 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
5719 when the window gets smaller.
5720 (x_set_foreground_color): Set frame's cursor_pixel.
5721 (x_set_foreground_color, x_set_background_color): Cleaned up.
5722 (x_set_font): Handle case of x_new_fontset returning the same name
5723 as before, although there was a change in fontsets.
5724
5725 2001-10-21 Miles Bader <miles@gnu.org>
5726
5727 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
5728 (Flogxor): Add usage: string to doc string.
5729 * charset.c (Fstring): Likewise.
5730 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
5731 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
5732
5733 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5734
5735 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
5736
5737 * alloc.c: Reindent DEFUNs with doc: keywords.
5738
5739 * abbrev.c (Finsert_abbrev_table_description): Reindent.
5740
5741 * frame.c: Change doc-string comments to `new style' [w/`doc:'
5742 keyword].
5743
5744 See ChangeLog.9 for earlier changes.
5745
5746 ;; Local Variables:
5747 ;; coding: iso-2022-7bit
5748 ;; End:
5749
5750 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
5751 Copying and distribution of this file, with or without modification,
5752 are permitted provided the copyright notice and this notice are preserved.