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