1 2002-07-11 Richard M. Stallman <rms@gnu.org>
3 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
5 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
7 2002-07-11 Juanma Barranquero <lektu@terra.es>
9 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
10 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
16 2002-07-10 Juanma Barranquero <lektu@terra.es>
18 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
21 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
23 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
25 2002-07-09 Kenichi Handa <handa@etl.go.jp>
27 * callproc.c (Fcall_process): Fix previous change.
29 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
31 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
32 Add support for hash-tables.
33 (Ftry_completion): Return t even if the string appears multiple times.
35 * fns.c (Fnconc): Use XCDR.
36 (Fprovide): Use CONSP and XCDR.
37 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
38 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
39 (Fmake_hash_table): Accept `:size nil'.
40 (Fmakehash): Delete: moved to subr.el.
41 (syms_of_fns): Don't defsubr makehash.
43 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
44 (HASH_TABLE_SIZE): Move from fns.c.
46 2002-07-07 Richard M. Stallman <rms@gnu.org>
48 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
49 Instead just return 0 when there is something to be done.
50 (try_scrolling): If make_cursor_line_fully_visible returns 0,
51 retry scrolling as if cursor were off the bottom.
52 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
53 return CURSOR_MOVEMENT_MUST_SCROLL.
54 (redisplay_window): If make_cursor_line_fully_visible returns 0,
57 * buffer.c (Fbuffer_local_value): Store current value into its binding
58 so we get the up-to-date value for the binding that is loaded.
60 * eval.c (Fdefmacro): Doc fix.
62 2002-07-05 Dave Love <fx@gnu.org>
64 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
67 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
68 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
69 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
70 CCL_LookupCharConstTbl.
71 (syms_of_ccl): Defvar translation-hash-table-vector.
73 2002-07-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
75 * xdisp.c: Remove unused variable `face'.
77 2002-07-04 Juanma Barranquero <lektu@terra.es>
79 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
80 obsolescence information.
82 2002-07-03 Andrew Choi <akochoi@shaw.ca>
84 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
85 pattern. Search cache first.
86 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
88 (XLoadQueryFont): Use it.
90 2002-07-02 Richard M. Stallman <rms@gnu.org>
92 * keymap.c (Fdefine_key): Doc fix.
94 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
96 2002-07-02 Juanma Barranquero <lektu@terra.es>
98 * keymap.c (syms_of_keymap): Fix typo.
100 2002-07-01 Andrew Choi <akochoi@shaw.ca>
102 * s/darwin.h: Define POSIX_SIGNALS.
104 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
105 and FSRefMakePath to convert FSSpec returned with Apple Event to
107 (mac_initialize) [TARGET_API_MAC_CARBON]:
108 Call init_required_apple_events and disable the `Quit' menu item
109 provided automatically by the Carbon Toolbox.
111 2002-07-01 Dave Love <fx@gnu.org>
113 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
116 * xterm.c: Fix prototype for K&R.
118 * term.c (costs_set): Declare static, non-initialized for pcc.
120 2002-07-01 Richard M. Stallman <rms@gnu.org>
122 * keyboard.c (timer_last_idleness_start_time): New variable.
123 (timer_start_idle): Set that.
124 (read_key_sequence): Use that to reset timer_idleness_start_time
127 * window.c (Frecenter): With arg, set optional_new_start.
129 * xdisp.c (redisplay_internal): Make optional_new_start really work.
131 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
132 buffer for completion.
134 2002-06-29 Ken Raeburn <raeburn@gnu.org>
136 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
138 2002-06-28 Jan D. <jan.h.d@swipnet.se>
140 * keyboard.c (readable_filtered_events): New function that filters
141 FOCUS_IN_EVENT depending on parameter.
142 (readable_events): Calls readable_filtered_events, not filtering
144 (get_filtered_input_pending): New function, filtering parameter passed
145 to readable_filtered_events.
146 (get_input_pending): Calls get_filtered_input_pending, not filtering
148 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
151 * xterm.h (struct x_output): Add focus_state.
153 * xterm.c (x_focus_changed): New function.
154 (x_detect_focus_change): New function.
155 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
156 EnterNotify and LeaveNotify to track X focus changes.
158 2002-06-28 Andreas Schwab <schwab@suse.de>
160 * lisp.h: Remove duplicate declaration of
161 code_convert_string_norecord.
163 2002-06-27 Kim F. Storm <storm@cua.dk>
165 * xdisp.c: (mode_line_string_list, mode_line_string_face)
166 (mode_line_string_face_prop): New variables.
167 (store_mode_line_string): New function.
168 (display_mode_element): Use store_mode_line_string to
169 add mode-line string elements to mode_line_string_list
170 when mode_line_string_list is non-nil.
171 (Fformat_mode_line): Now returns propertized string by
172 default. New arg NO-PROPS to ignore properties.
173 (decode_mode_spec): Only add two dashes for %- in propertized
175 (syms_of_xdisp): Init and staticpro mode_line_string_list.
177 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
179 * minibuf.c (minibuffer_completion_contents): Add return type.
181 2002-06-27 Juanma Barranquero <lektu@terra.es>
183 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
185 2002-06-26 Juanma Barranquero <lektu@terra.es>
187 * fileio.c (read_file_name_cleanup): Add missing return.
189 2002-06-26 Richard M. Stallman <rms@gnu.org>
191 * window.c (Frecenter): Don't set force_start flag.
193 * minibuf.c (do_completion, Fminibuffer_complete_word)
194 (Fminibuffer_completion_help): Complete just the text before point.
195 (minibuffer_completion_contents): New function.
197 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
199 * frame.c (frames_bury_buffer): Function deleted.
201 2002-06-25 Miles Bader <miles@gnu.org>
203 * callint.c (Fcall_interactively): When checking to see if doprnt hit
204 the end of callint_message, allow for a terminating '\0'.
206 2002-06-24 Juanma Barranquero <lektu@terra.es>
208 * w32select.c: Include composite.h
210 * w16select.c: Likewise.
212 2002-06-24 Kenichi Handa <handa@etl.go.jp>
214 * callproc.c (Fcall_process): If code detection is necessary,
215 call detect_coding directly here.
217 * coding.c (detect_eol): Preserve coding->cmp_data.
219 * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
221 * w32fns.c (w32_to_x_font): Disable composition handling.
223 * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
225 * xselect.c (selection_data_to_lisp_data): Disable composition
228 * xterm.c (XTread_socket): Disable composition handling.
230 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
232 * print.c (temp_output_buffer_setup): Kill all local variables.
234 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
236 * lread.c (Fread): Remove redundant and imprecise declaration.
238 * xfns.c (check_x_display_info): Use check_x_frame.
240 * .gdbinit (xprintsym): Use the new `xname' field.
243 2002-06-22 Jason Rumney <jasonr@gnu.org>
245 * w32fns.c (file_dialog_callback): New function.
246 (Fx_file_dialog): Allow selecting directories as well as files.
248 2002-06-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
250 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
251 OpenBSD. Add support for mipseb-*-netbsd* machines.
253 2002-06-17 Andrew Choi <akochoi@shaw.ca>
255 * macterm.c (mac_scroll_area): Set foreground and backcolor to
256 black and white before scrolling. Restore frame background and
257 foreground color after scrolling.
258 (do_window_update): Call XClearWindow before calling expose_frame.
259 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
260 FRAME_FOREGROUND_PIXEL of frame.
262 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
263 test Mac command key as <ALT> key.
265 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
267 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
269 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
270 Lookup keys in function-key-map immediately so that key-translation-map
271 can be applied earlier.
272 Remove function_key_possible and key_translation_possible, replaced
273 by checking `keytran_start < t'.
275 * .gdbinit (xsymbol): Use the new `xname' field.
277 2002-06-17 Andrew Choi <akochoi@shaw.ca>
279 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
280 test Mac command key as <ALT> key.
282 * mac.c (do_applescript): Call initialize_applescript if necessary
283 when first called. Dispose of result_desc only when there is no error.
284 (Fdo_applescript): Use %d format specifier instead of %ld.
286 2002-06-16 Andrew Choi <akochoi@shaw.ca>
288 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
289 of FrontWindow for cases keyDown and autoKey.
291 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
292 Vdefault_fontset to Monaco with mac-roman coding.
294 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
295 init_process before and after inclusion of Carbon/Carbon.h, resp.
297 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
299 (add_font_name_table_entry): New function.
300 (init_font_name_table): Use add_font_name_table_entry; add italic,
301 bold, and bold-italic entries for truetype fonts.
303 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
305 (try_font_list) [MAC_OS]: If no font matches given registry, try
306 fonts with any registry matching face_family.
307 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
309 * s/darwin.h: If autoconf detects the Ncurses library, define
310 LIBS_TERMCAP to -lncurses to use it.
312 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
314 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
316 2002-06-15 Richard M. Stallman <rms@gnu.org>
318 * window.c (Fset_window_configuration): Explicitly preserve
319 the point value that new_current_buffer had at the start.
321 2002-06-14 Juanma Barranquero <lektu@terra.es>
323 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
326 2002-06-14 Kim F. Storm <storm@cua.dk>
328 * insdel.c (insert_1_both, insert_from_string_1)
329 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
330 insert happened in the end_unchanged region. Otherwise, the
331 redisplay may be confused and duplicate the last line in the
332 buffer [seen after save-buffer when require-final-newline==t].
334 2002-06-13 Jason Rumney <jasonr@gnu.org>
336 * w32.c (init_environment): Remove EMACSLOCKDIR.
337 (stat): Swap _S_IFDIR and _S_IFREG.
339 2002-06-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
341 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
342 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
343 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
344 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
345 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
346 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
347 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
348 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
349 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
350 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
351 SELECTION_REQUEST_EVENT, selection_clear_event to
352 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
353 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
354 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
355 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
356 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
357 no_event to NO_EVENT.
359 2002-06-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
361 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
363 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
365 * intervals.c (textget): Don't forget to `return'.
366 (lookup_char_property): Use XCAR/XCDR.
368 2002-06-12 Juanma Barranquero <lektu@terra.es>
370 * xdisp.c (Fformat_mode_line): Fix typo.
372 2002-06-12 Kim F. Storm <storm@cua.dk>
374 * xdisp.c (Fformat_mode_line): New function.
375 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
376 (store_frame_title_char, store_frame_title): Use unconditionally.
377 (init_xdisp): Defsubr Fformat_mode_line.
378 Initialize frame_title_buf etc. unconditionally.
380 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
382 * keyboard.c (read_key_sequence):
383 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
384 things through those maps after downcasing events.
385 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
386 applies after function-key-map.
387 Make sure that keytran can be done in the middle in the sequence.
388 Be careful not to throw away events past the one we downcase.
390 * lread.c (read_integer): Remove unused var `tem'.
391 (read1): Fix int/Lisp_Object mixup.
393 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
395 2002-06-11 Richard M. Stallman <rms@gnu.org>
397 * keyboard.c (readable_events): Ignore any number of
398 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
400 2002-06-09 Miles Bader <miles@gnu.org>
402 * xfaces.c (Ftty_supports_face_attributes_p): New function.
403 (parse_rgb_list, tty_lookup_color): New functions.
404 (tty_defined_color): Use `tty_lookup_color' to do all the work.
405 (color_distance, Fcolor_distance): New functions.
406 (TTY_SAME_COLOR_THRESHOLD): New macro.
407 (Qtty_color_standard_values): New variable.
408 (syms_of_xfaces): Initialize new vars & functions.
410 2002-06-08 Colin Walters <walters@verbum.org>
412 * textprop.c (Vchar_property_alias_alist): New variable.
413 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
415 * intervals.c (lookup_char_property): New function for looking up
416 overlay and text properties, created from textget.
419 * intervals.h (lookup_char_property): Declare.
420 (Vchar_property_alias_alist): Declare.
422 * buffer.c (Foverlay_get): Use lookup_char_property.
424 2002-06-07 Sam Steingold <sds@gnu.org>
426 * xselect.c (lisp_data_to_selection_data): Fix last change:
427 *data_ret is not a Lisp string, while unibyte_string is.
429 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
431 * xselect.c (lisp_data_to_selection_data): Fix last change:
434 2002-06-07 Andreas Schwab <schwab@suse.de>
436 * m/amdx86-64.h: New file.
438 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
440 * fns.c (Fstring_make_unibyte): Doc fix.
442 * xselect.c (lisp_data_to_selection_data): If the requested type
443 is STRING, call string_make_unibyte to encode the selected text
446 * window.c (Fset_window_hscroll): Doc fix.
448 2002-06-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
450 * fileio.c (choose_write_coding_system):
451 Call select-safe-coding-system properly.
453 2002-06-03 Richard M. Stallman <rms@gnu.org>
455 * xdisp.c (message_with_string): Error if STRING is not a string.
457 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
459 * fileio.c (choose_write_coding_system): Pass FILE arg to
460 Vselect_safe_coding_system_function.
462 2002-06-03 Ken Raeburn <raeburn@gnu.org>
464 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
466 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
468 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
469 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
470 * keymap.c (describe_command): Likewise.
471 * minibuf.c (read_minibuf): Likewise.
473 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
474 Cast `current_column' return value to int.
475 (back_to_previous_visible_line_start)
476 (reseat_at_next_visible_line_start, next_element_from_buffer):
477 Cast `indented_beyond_p' 3rd arg to float.
479 * indent.c (last_known_column): Now a float.
480 (current_column_1, position_indentation, current_column)
481 (string_display_width): Return float.
482 (Fcurrent_column): Cast `current_column' return value to int.
483 (Fcurrent_indentation): Cast `position_indentation' retval to int.
484 (indented_beyond_p): Third arg now a float.
485 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
487 * lisp.h (current_column): Now returns float.
488 (indented_beyond_p): 3rd arg now a float.
490 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
492 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
493 is Qcompound_text_with_extensions.
495 * xselect.c (lisp_data_to_selection_data): Always set selection
496 type as string if x_encode_text returns streingp non-NULL.
498 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
500 2002-05-30 Richard M. Stallman <rms@gnu.org>
502 * window.c (Fset_window_configuration): Correct the handling
503 of point in current buffer, to work with multiple windows.
505 2002-05-29 Colin Walters <walters@verbum.org>
507 * lread.c (Fread_from_string): Don't depend on order of evaluation
508 for C function parameters.
510 2002-05-28 Richard M. Stallman <rms@gnu.org>
512 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
513 way for blinked-off state and for a nonselected window.
515 * window.c (window_scroll_pixel_based): Don't call Fbolp;
516 instead, see if the new start pos is at beginning of line.
518 * fileio.c (Fwrite_region): If START is a string, don't
519 make any annotations.
521 * eval.c (syms_of_eval): Doc fix.
523 2002-05-28 Colin Walters <walters@debian.org>
525 * emacs.c (USAGE1): Add --no-splash.
526 (standard_args): Ditto.
528 2002-05-28 Colin Walters <walters@gnu.org>
530 * lread.c (readchar_count): New variable.
531 (readchar): Increment it.
532 (unreadchar): Decrement it.
533 (read_multibyte): Decrement it.
534 (Vread_with_symbol_positions): New variable.
535 (Vread_symbol_positions_list): New variable.
536 (read_internal_start): New function, created from Fread and
537 Fread_from_string. Handle Vread_symbol_positions_list and
538 Vread_with_symbol_positions.
539 (readevalloop, Fread, Fread_from_string): Use it.
540 (read1): Use readchar_count to add symbol positions to
541 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
542 (syms_of_lread): DEFVAR_LISP and initialize them.
544 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
545 (substitute_object_recurse, substitute_object_in_subtree)
546 (substitute_in_interval): Prototype.
547 (read_multibyte): Return c if it's less than zero.
549 2002-05-28 Kim F. Storm <storm@cua.dk>
551 * fileio.c (Fread_file_name_internal): Added brute-force
552 speed up for using predicate file-directory-p.
554 2002-05-28 Kim F. Storm <storm@cua.dk>
556 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
558 (syms_of_fileio): DEFVAR_LISP them.
559 (read_file_name_cleanup): New unwind function.
560 (Fread_file_name_internal): Only return completions satifying
561 Vread_file_name_predicate. Temporarily unwind protect and rebind
562 default-directory while checking completions against the predicate.
563 (Fread_file_name): Added PREDICATE argument. Specbind it to
564 Vread_file_name_predicate during completion.
565 Call Vread_file_name_function to read the file name if non-nil.
567 * lisp.h (Fread_file_name): Now has 6 args.
569 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
570 predicate for Fread_file_name when reading directory name.
571 Supply Qnil for predicate in other calls to Fread_file_name.
573 2002-05-26 Miles Bader <miles@gnu.org>
575 * term.c (tty_capable_p): New function.
576 * dispextern.h (tty_capable_p): New function declaration.
577 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
578 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
580 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
582 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
583 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
584 (Vwrite_region_annotate_functions): Docstring fix.
586 2002-05-23 Kim F. Storm <storm@cua.dk>
588 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
589 phys_cursor's hpos is overwritten. This is still not completely
590 correct, as it doesn't really make sense to use hpos at all to
591 get the cursor glyph (as that is relative to the width of the
592 characters on the line, which may have changed during the update).
594 2002-05-22 Jason Rumney <jasonr@gnu.org>
596 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
598 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
599 Use modified enumfont_t struct.
601 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
603 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
604 Handle the `hbar' cursor type.
605 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
607 * w32fns.c (Qhbar): New variable.
608 (x_specified_cursor_type): Use it.
610 2002-05-21 Ken Raeburn <raeburn@gnu.org>
612 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
613 now, when the address is needed.
615 2002-05-21 Colin Walters <walters@gnu.org>
617 * Makefile.in (shortlisp): Add font-core.el.
619 2002-05-20 Richard M. Stallman <rms@gnu.org>
621 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
623 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
624 equivalent key bindings here.
626 2002-05-20 Ken Raeburn <raeburn@gnu.org>
628 Change symbol structure to contain a lisp object for the symbol
630 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
631 object field named "xname".
632 (SYMBOL_NAME): New macro.
633 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
635 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
636 (mark_object, gc_sweep): Use symbol xname field and XSTRING
637 instead of name field.
638 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
639 SYMBOL_NAME instead of XSYMBOL and name field.
640 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
641 instead of XSYMBOL and name field.
642 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
643 and SYMBOL_NAME instead of XSYMBOL and name field.
644 * coding.c (Fread_coding_system, code_convert_region1)
645 (code_convert_string1, code_convert_string_norecord)
646 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
647 XSYMBOL and name field.
648 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
649 (Fmake_variable_buffer_local, Fmake_local_variable)
650 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
651 of XSYMBOL and name field.
652 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
653 XSYMBOL and name field.
654 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
655 instead of XSYMBOL and name field.
656 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
657 XSYMBOL and name field.
658 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
659 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
660 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
661 instead of XSYMBOL and name field.
662 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
663 (parse_modifiers, apply_modifiers, Fevent_convert_list)
664 (parse_solitary_modifier, Fexecute_extended_command):
665 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
666 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
667 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
668 of XSYMBOL and name field.
669 (describe_command, describe_translation): Use SYMBOL_NAME and
670 assignment instead of XSYMBOL and name field and XSETSTRING.
671 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
672 instead of XSYMBOL and name field.
673 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
674 name field and XSETSTRING.
675 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
676 of XSYMBOL and name field.
677 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
678 assignment instead of XSYMBOL and name field and XSETSTRING.
679 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
680 XSTRING instead of XSYMBOL and name field.
681 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
682 and XSTRING instead of XSYMBOL and name field.
683 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
684 and XSTRING instead of XSYMBOL and name field.
685 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
686 XSTRING instead of XSYMBOL and name field.
687 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
688 of XSYMBOL and name field.
689 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
690 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
692 2002-05-19 Ken Raeburn <raeburn@gnu.org>
694 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
695 and XCDR real rvalues in most configurations.
697 * buffer.c (fix_overlays_in_range, fix_overlays_before):
698 Don't take the address of the cdr part of a cons cell; instead, track
699 the parent cell and call XSETCDR, or set the variable for the head
700 of the list if we haven't started down the list yet.
702 2002-05-19 Richard M. Stallman <rms@gnu.org>
704 * doc.c (reread_doc_file): Don't ask for confirmation.
706 2002-05-18 Jason Rumney <jasonr@gnu.org>
708 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
709 (xbm_load_image): Use it.
711 (xbm_read_bitmap_data): Reverted to xfns.c version.
712 From David Ponce <david@dponce.com>.
714 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
716 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
719 2002-05-16 Juanma Barranquero <lektu@terra.es>
721 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
723 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
725 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
727 (read_char_minibuf_menu_prompt): Fix typo.
729 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
731 * eval.c (Fcommandp): Doc fix.
733 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
735 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
736 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
737 (Fset_keymap_parent): Gcpro a bit more.
738 (access_keymap): Gcpro around meta_map call and around the main loop.
739 (get_keyelt): Gcpro when following indirect references.
740 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
741 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
742 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
743 Remove useless ad-hoc remap code.
745 2002-05-13 Richard M. Stallman <rms@gnu.org>
747 * search.c (search_buffer): Give up boyer moore search if inverse
748 translation change charset_base.
750 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
752 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
753 characters is carried over from the previous block of text, adjust
754 coding->produced to account for the extra character.
756 2002-05-11 Andreas Schwab <schwab@suse.de>
758 * coding.c (intersection): Keep the elements of the returned list
759 in the same order as in the first list.
761 2002-05-11 Kim F. Storm <storm@cua.dk>
763 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
764 only update cmm_size if realloc actually succeeds.
765 Testing with initial size of 2 elements revealed that using
766 realloc on GNU/Linux would cause a random trap in xmalloc
767 later on, so I rewrote the code to use malloc/bcopy/free instead
770 2002-05-10 Jason Rumney <jasonr@gnu.org>
772 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
774 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
776 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
777 parens, to ensure correct evaluation order.
779 2002-05-10 Kim F. Storm <storm@cua.dk>
781 * keymap.c (Vemulation_mode_map_alists): New variable.
782 (syms_of_keymap): DEFVAR_LISP it.
783 (current_minor_maps): Process keymap alists in that list before
784 minor-mode-overriding-map-alist and minor-mode-map-alist.
786 2002-05-09 Richard M. Stallman <rms@gnu.org>
788 * search.c (Freplace_match): Doc fix.
790 2002-05-09 Kim F. Storm <storm@cua.dk>
792 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
793 Enlarge cursor rectangle drawn around image with non-zero relief.
795 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
796 Enlarge cursor rectangle drawn around image with non-zero relief.
798 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
799 Enlarge cursor rectangle drawn around image with non-zero relief.
801 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
803 * xselect.c (lisp_data_to_selection_data): Don't set selection
804 type if comes from the Lisp object's car. If the selection
805 contains a pure ASCII text, always return QSTRING as its type.
807 2002-05-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
809 * mac.c (mac-cut-function): Doc fix.
811 2002-05-05 Richard M. Stallman <rms@gnu.org>
813 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
815 2002-05-04 Jason Rumney <jasonr@gnu.org>
817 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
818 for event-click-count.
820 * process.c (init_process): Only add server subfeature if we can
821 use non-blocking I/O.
823 2002-05-04 Andrew Choi <akochoi@shaw.ca>
825 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
828 2002-05-03 Jason Rumney <jasonr@gnu.org>
830 * process.c (Fmake_network_process): Only support server sockets
831 when we can make them non-blocking.
833 * s/ms-w32.h (HAVE_SELECT): Define.
835 * w32.h (FILE_NDELAY): New flag.
837 * w32.c (sys_getpeername, fcntl): New functions.
838 (_sys_read_ahead): Temporarily block on non-blocking sockets.
840 * w32proc.c: include sys/file.h.
842 2002-05-03 Colin Walters <walters@verbum.org>
844 * callproc.c (Vgame_score_directory): Renamed to
845 Vshared_game_score_directory.
847 2002-04-30 Richard M. Stallman <rms@gnu.org>
849 * s/gnu.h [emacs]: Include stdio.h.
850 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
852 * eval.c (do_autoload): Error if called while preparing to dump.
854 * fns.c (Frequire): Error if need to load while preparing to dump.
856 2002-04-28 Colin Walters <walters@verbum.org>
858 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
859 Default to "~/.emacs.d/games".
861 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
863 * lread.c (openp): Change arg exec_only to predicate.
864 (build_load_history): Use XCAR/XCDR.
865 (Flocate_file_internal): New fun.
866 (syms_of_lread): Defsubr it.
867 (Fload): Update call to openp.
869 * lisp.h (openp): Update prototype.
871 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
872 * w32proc.c (sys_spawnve):
873 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
874 * w32.c (check_windows_init_file):
875 * sound.c (Fplay_sound_internal):
876 * process.c (Fstart_process):
877 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
878 * mac.c (run_mac_command):
879 * emacs.c (init_cmdargs):
880 * callproc.c (Fcall_process): Update call to openp.
882 * textprop.c (remove_properties): Don't use XCAR without CONSP.
884 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
886 2002-04-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
888 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
889 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
891 2002-04-28 Richard M. Stallman <rms@gnu.org>
893 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
895 * eval.c (Fcommandp): New arg for_call_interactively.
896 * lisp.h (Fcommandp): Declare new arg.
898 2002-04-28 Jason Rumney <jasonr@gnu.org>
900 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
902 * w32.c (stat, fstat): Use file index information to generate
903 inodes for directories where available.
905 2002-04-26 Andrew Choi <akochoi@shaw.ca>
907 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
908 [HAVE_CARBON]: Include Mac object files.
910 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
911 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
912 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
913 MAC_OSX, and MAC_OS instead of macintosh.
915 * editfns.c [MAC_OS8]: Include stdio.h.
917 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
919 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
922 * process.c: Declare QCfamily and QCfilter as extern.
923 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
926 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
928 * tparam.c [MAC_OSX]: Don't define BC and UP.
930 * config.in [HAVE_CARBON]: Add.
932 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
933 Move here from mac/src and mac/inc.
935 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
937 2002-04-26 Gerd Moellmann <gerd@gnu.org>
939 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
940 Compute phys_cursor_width from the x position returned
941 by x_draw_glyhs, which is cheaper.
942 (x_display_and_set_cursor): Compute the buffer-local value
943 of `cursor-in-non-selected-windows' only when needed.
945 2002-04-25 Gerd Moellmann <gerd@gnu.org>
947 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
948 cursor on a stretch glyph has a width that depends on
951 2002-04-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
953 * abbrev.c (abbrev-start-location): Doc fix.
955 * indent.c (Fvertical_motion): Fix last change.
957 2002-04-25 Gerd Moellmann <gerd@gnu.org>
959 * indent.c (Fvertical_motion): Move to the start of the line
960 containing PT before moving up or down.
962 2002-04-24 Gerd Moellmann <gerd@gnu.org>
964 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
965 case of writing a whole row, more or less analogous to the case of
966 writing only parts of a row.
968 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
971 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
973 2002-04-23 Colin Walters <walters@verbum.org>
975 * buffer.c (syms_of_buffer): Doc fix.
977 2002-04-23 Gerd Moellmann <gerd@gnu.org>
979 * xterm.c (notice_overwritten_cursor): Handle the special case
980 of the cursor being in the first blank non-text line at the
983 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
984 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
985 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
986 bar cursors only, to make phys_cursor_width contain what its name
988 (notice_overwritten_cursor): Consider the cursor image erased if
989 the output area intersects the cursor image in y-direction.
991 2002-04-23 Simon Marshall <simon@gnu.org>
993 * xfns.c (x_set_mouse_color): Change default for cross_cursor
996 2002-04-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
998 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
1000 2002-04-22 Kim F. Storm <storm@cua.dk>
1002 * textprop.c (remove_properties): Fixed trap for malformed plist.
1004 2002-04-22 Richard M. Stallman <rms@gnu.org>
1006 * cmds.c (Fend_of_line): Handle intangible text in mid line.
1008 * window.c (make_window): Initialize height_fixed_p,
1009 last_cursor_off_p, and p->cursor_off_p slots.
1011 2002-04-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1013 * fns.c (use-dialog-box): Doc fix.
1015 2002-04-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1017 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
1018 variables `row', `i' and `area'.
1019 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
1022 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
1024 * xfaces.c (clear_font_table): Don't free the default font of
1025 a frame even if it's on another display.
1026 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
1029 2002-04-19 Juanma Barranquero <lektu@terra.es>
1031 * indent.c (Fmove_to_column): Remove unused local variable
1032 `next_boundary_byte'.
1033 (current_column_1): Likewise.
1035 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1037 * msdos.c (Qhbar): New variable.
1038 (syms_of_msdos): Intern and staticpro it.
1039 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
1042 2002-04-19 Dave Lambert <dlambert@acm.org>
1044 Theses change implement an underscore-like (`hbar') cursor.
1046 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
1048 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
1049 Handle the `hbar' cursor type.
1050 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
1052 * xfns.c (Qhbar): New variable.
1053 (syms_of_xfns): Intern and staticpro it.
1054 (x_specified_cursor_type): Handle `hbar' cursor.
1056 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
1059 2002-04-18 Richard M. Stallman <rms@gnu.org>
1061 * textprop.c (remove_properties): New arg LIST allows scanning
1062 either a list or a plist.
1063 (interval_has_some_properties_list): New function, like
1064 interval_has_some_properties using list instead of plist.
1065 All callers changed.
1066 (Fremove_list_of_text_properties): New function.
1067 (syms_of_textprop): Defsubr it.
1069 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
1071 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
1073 2002-04-17 Juanma Barranquero <lektu@terra.es>
1075 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
1077 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
1079 * window.c (coordinates_in_window): Don't report on margin area
1080 if its width is zero.
1082 2002-04-16 Jason Rumney <jasonr@gnu.org>
1084 * w32fns.c (Fx_file_dialog): Decode file name before using.
1086 * w32term.c (construct_drag_n_drop): Likewise.
1088 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
1090 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
1091 store load-history in pure space.
1093 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
1095 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
1097 * xterm.c (Qlatin_1, Qutf_8): New vars.
1098 (syms_of_xterm): Initialize them.
1099 (XTread_socket): Eliminate incorrect optimization that tried to avoid
1100 decoding the output of X*LookupString.
1101 Always use latin-1 to decode the output of XLookupString.
1102 Try Xutf8LookupString if XmbLookupString failed.
1104 * region-cache.c (new_region_cache): Use BEG.
1106 2002-04-16 Gerd Moellmann <gerd@gnu.org>
1108 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
1109 configuration files.
1110 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
1113 2002-04-15 Andreas Schwab <schwab@suse.de>
1115 * config.in: Regenerated using autoheader.
1117 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
1118 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
1119 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
1120 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
1121 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
1122 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
1123 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
1124 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
1125 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
1126 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
1127 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
1128 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
1129 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
1130 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
1131 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
1132 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
1133 STACK_DIRECTION, now set by autoconf.
1135 2002-04-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1137 * dispnew.c (marginal_area_string): Sort arguments.
1139 * dispextern.h (marginal_area_string): Add prototype.
1141 2002-04-13 Richard M. Stallman <rms@gnu.org>
1143 * fileio.c (Finsert_file_contents):
1144 Don't call temp_output_buffer_setup--do just part, by hand.
1146 * coding.c (run_pre_post_conversion_on_str):
1147 Don't call temp_output_buffer_setup--do just part, by hand.
1149 * keyboard.c (command_loop_1): Don't call start_hourglass
1150 or cancel_hourglass when executing a macro.
1152 * marker.c (count_markers): New function.
1154 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
1155 grow without limit. Move recently used elements to the front.
1157 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1159 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
1161 2002-04-12 Gerd Moellmann <gerd@gnu.org>
1163 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
1164 rows marginal areas.
1165 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
1166 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1168 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
1170 2002-04-12 Dave Love <fx@gnu.org>
1172 * dispnew.c (marginal_area_string): New.
1174 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
1175 (Qleft_margin, Qright_margin): Declare.
1176 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
1178 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
1179 note_mode_line_highlight and extended.
1181 * keyboard.c (Qleft_margin, Qright_margin): Declare.
1182 (make_lispy_event): Deal with mouse events in margins.
1184 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
1186 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
1188 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
1189 than deactivating the mark if tmm is set to `lambda'.
1190 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
1191 Use a single event for HELP_EVENT.
1192 (Fexecute_extended_command): Save last_point_position.
1194 2002-04-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1196 * lisp.h (Fpropertize): Add prototype.
1198 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
1200 2002-04-10 Colin Walters <walters@verbum.org>
1202 * config.in: Add HAVE_SHARED_GAME_DIR.
1204 * callproc.c: (Vgame_score_directory): New variable.
1205 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
1207 2002-04-10 Richard M. Stallman <rms@gnu.org>
1209 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
1211 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
1213 * minibuf.c (read_minibuf): Use empty_string.
1214 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
1215 Short-circuit the search as soon as it "failed".
1216 (Fall_completions): Allow lambda forms and lists of strings for alist.
1217 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
1218 when require_match is nil.
1219 (Ftest_completion): Rename from `test_completion' and export to elisp.
1220 Call the predicate also when alist is a list.
1221 Obey Vcompletion_regexp_list.
1222 (do_completion, Fminibuffer_complete_and_exit): Use it.
1223 (Fassoc_string): Rename from `assoc_for_completion'.
1224 Allow list of strings as well and export to elisp.
1226 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
1228 * puresize.h (BASE_PURESIZE): Increase to 900KB.
1230 2002-04-08 Juanma Barranquero <lektu@terra.es>
1232 * w32.c (sys_accept): Don't hide variable `s'.
1234 2002-04-05 Gerd Moellmann <gerd@gnu.org>
1236 * callint.c (Fcall_interactively): Use INTEGERP instead of
1237 NUMBERP for checking Vhistory_length.
1239 2002-04-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1241 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
1242 Doc fix to reflect it.
1244 2002-04-04 Richard M. Stallman <rms@gnu.org>
1246 * xdisp.c (display_mode_element): New arg RISKY.
1247 Disregard text props found or specified within a variable
1248 that isn't marked risky-local-variable.
1249 (Qrisky_local_variable): New variable.
1250 (syms_of_xdisp): Init and staticpro it.
1252 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
1254 * undo.c (record_point): New fun.
1255 (record_delete, record_insert): Use it.
1257 2002-04-03 Juanma Barranquero <lektu@terra.es>
1259 * doc.c (Fdocumentation): Add missing parentheses.
1260 (Fdocumentation_property): Likewise.
1262 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
1264 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
1265 data is 0, just return nil.
1267 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
1269 * msdos.c (syms_of_msdos): Fix last change with
1270 mouse_autoselect_window.
1272 2002-04-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1274 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
1275 mouse_autoselect_window.
1277 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
1279 * keyboard.c (make_lispy_event): Handle unknown keysyms together
1280 with system-specific keysyms. Use it also for unknown function keys.
1282 * doc.c (reread_doc_file): Return whether reload was attempted.
1283 (Fdocumentation, Fdocumentation_property): Don't try to reload
1284 if the doc is 0 and only ask once.
1286 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
1288 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
1290 * keyboard.c (read_char): If the event was Qselect_window,
1291 restore timer_idleness_start_time to its previous value.
1293 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
1295 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
1297 * region-cache.c (new_region_cache): Use BEG.
1299 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
1300 Use BEG and BEG_BYTE.
1302 * doc.c (get_doc_string): Return nil if the location is wrong.
1303 (reread_doc_file): New fun.
1304 (Fdocumentation, Fdocumentation_property):
1305 Call it if get_doc_string fails.
1306 (Fsnarf_documentation): Make it work for a dumped Emacs.
1308 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
1309 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
1311 * charset.c (Fstring): Allow 0 arguments.
1313 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
1315 * process.c (DATAGRAM_CONN_P, list_processes_1)
1316 (Fprocess_datagram_address, Fset_process_datagram_address)
1317 (Fset_network_process_options, server_accept_connection):
1318 Fix some int/Lisp_Object confusions (thank you union types).
1320 2002-04-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1322 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
1324 * w32term.c: Likewise.
1325 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
1327 * keyboard.c (Qselect_window): New symbol.
1328 (head_table): Use it.
1329 (keys_of_keyboard): Bound select-window event to handle-select-window.
1330 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
1332 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
1333 (last_window): New variable.
1334 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
1335 (note_mouse_movement): Remove reimplemented code in #if 0.
1336 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
1339 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
1341 2002-03-31 Gerd Moellmann <gerd@gnu.org>
1343 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
1346 2002-03-30 Richard M. Stallman <rms@gnu.org>
1348 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
1349 loop whenever it stops making progress.
1351 * widget.c (set_frame_size): Don't call change_frame_size.
1353 2002-03-30 Gerd Moellmann <gerd@gnu.org>
1355 * dispnew.c (direct_output_for_insert):
1356 Call mark_window_display_accurate.
1358 2002-03-29 Jason Rumney <jasonr@gnu.org>
1360 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
1362 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1364 * Makefile.in (lread.o): Depend on coding.h.
1366 * lread.c (openp, Fload): Encode the file name before passing it
1367 to `stat', `access', and `emacs_open'.
1368 (openp): GCPRO the encoded file name. Don't recompute Lisp
1369 strings unnecessarily.
1371 2002-03-29 Kim F. Storm <storm@cua.dk>
1373 * fns.c (Flax_plist_put): Doc fix.
1375 2002-03-28 Miles Bader <miles@gnu.org>
1377 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
1379 2002-03-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1381 * process.c (set-network-process-options): Add usage.
1382 (make-network-process): Doc fix.
1384 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1386 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
1388 2002-03-26 Richard M. Stallman <rms@gnu.org>
1390 * fns.c (Fsubstring_no_properties): New function.
1391 (Flax_plist_get, Flax_plist_put): New functions.
1392 (syms_of_fns): defsubr them.
1394 * xdisp.c (update_menu_bar): Test only update_mode_lines;
1395 don't test or alter w->update_mode_line.
1397 * window.c (Fdisplay_buffer): Doc fix.
1399 2002-03-24 Richard M. Stallman <rms@gnu.org>
1401 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
1403 2002-03-24 Gerd Moellmann <gerd@gnu.org>
1405 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
1406 (Fdefmacro): Handle `(declare ...)'.
1407 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
1408 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
1410 2002-03-24 Jason Rumney <jasonr@gnu.org>
1412 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
1413 (xbm_file_p): Add prototypes.
1414 (xbm_format, xbm_image_p): Sync with xfns.c.
1415 (reflect_byte): New function.
1416 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
1417 (xbm_load_image): Create bitmaps with a depth of 1.
1418 (init_xfns): Enable XBM images.
1420 2002-03-23 Jason Rumney <jasonr@gnu.org>
1422 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
1423 correctly. Do not pass up_modifier to keyboard buffer.
1425 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
1427 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
1429 * Makefile.in (bootstrapclean): New target.
1430 (bootstrap-temacs, bootstrap-doc): Remove.
1431 (bootstrap-emacs): Use a bog-standard `temacs'.
1432 Don't bother to build a DOC file.
1434 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
1436 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
1437 in temacs even if !CANNOT_DUMP.
1438 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
1440 * alloc.c (check_pure_size): Only output a warning.
1442 2002-03-22 Jason Rumney <jasonr@gnu.org>
1444 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
1447 * w32term.c (zv_bits): Declare as short, for word alignment.
1448 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
1449 (syms_of_w32term): Define x-use-underline-position-properties.
1451 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
1452 (clear_image_cache): Block input, fix logic, clear matrices in
1453 all frames that share this cache.
1455 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
1457 * emacs.c (main): Update the Copyright year in the blurb printed
1458 by "emacs --version".
1460 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
1462 * xterm.c (XTread_socket): If XK_ISO_Lock and
1463 XK_ISO_Last_Group_Lock are defined, handle keysyms between
1464 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
1466 2002-03-21 Kim F. Storm <storm@cua.dk>
1468 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
1469 menu-bar bindings in keymap and local-map properties _are_ used.
1470 But try keymap property first in accordance with 2002-01-03 patch.
1471 Added comment describing why this is not always reliable.
1472 (tool_bar_items): Ditto for tool-bar.
1474 2002-03-21 Jason Rumney <jasonr@gnu.org>
1476 * w32fns.c (x_clear_image_1): Disable color table code.
1478 2002-03-21 Kim F. Storm <storm@cua.dk>
1480 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
1481 removed the wrong version of the DEFUN macro; fixed it.
1483 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
1484 Fmember rather than Fmemq).
1485 (Fprovide): Check that subfeatures is a list.
1487 * process.c (QCfeature, QCdatagram): Removed variables.
1488 (QCtype, Qdatagram): New variables.
1489 (network_process_featurep): Removed function.
1490 (Fmake_network_process): Removed :feature check.
1491 Use :type 'datagram instead of :datagram t to create a datagram
1492 socket. This allows us to add other connection types (e.g. raw
1493 sockets) later in a consistent manner.
1494 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
1495 supported subfeatures for feature make-network-process.
1496 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
1497 Intern and staticpro QCtype and Qdatagram.
1498 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
1500 * xfns.c: (QCtype): Remove duplicate declaration and
1501 initialization (is now declared in process.c).
1503 * w32fns.c: (QCtype): Remove duplicate declaration and
1504 initialization (is now declared in process.c).
1506 2002-03-21 Richard M. Stallman <rms@gnu.org>
1508 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
1509 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
1510 when jumping to `fail' to avoid undoing reg changes in the
1511 last iteration of the loop.
1512 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
1514 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
1515 Depend on process.h.
1517 2002-03-20 Jason Rumney <jasonr@gnu.org>
1519 Most of the following changes are still conditional on HAVE_IMAGES
1520 which is not set by default on Windows.
1522 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
1524 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
1525 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
1526 (four_corners_best, x_clear_image_1, x_clear_image)
1527 (x_alloc_image_color, postprocess_image)
1528 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
1529 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
1530 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
1532 * w32gui.h (struct XImage): Define.
1534 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
1535 extract mouse co-ordinates.
1537 2002-03-20 Jason Rumney <jasonr@gnu.org>
1539 * w32.c (init_winsock): Dynamically load new server and UDP
1541 (socket_to_fd): New function.
1542 (sys_socket): Use it.
1543 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
1544 (sys_recvfrom, sys_sendto): New wrapper functions.
1546 * process.c (QCfamily, QCfilter): Remove duplicate declaration
1549 * makefile.w32-in (LIBS): Remove $(WSOCK32).
1551 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
1553 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
1554 use "sun" as a variable, it's a predefined constant on Sun
1557 2002-03-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1559 * bytecode.c (Fbyte_code): Revert last change.
1561 2002-03-19 Kim F. Storm <storm@cua.dk>
1563 * makefile.w32-in (LIBS): Add $(WSOCK32).
1564 From David Ponce <dponce@voila.fr>.
1566 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1568 * process.c (wait_reading_process_input): Move variables `pname'
1569 and `pnamelen' down where they are used.
1571 * bytecode.c (Fbyte_code): Discard unused computed value to
1572 prevent gcc warning.
1574 * lisp.h (Fplist_member): Add prototype.
1576 2002-03-18 Kim F. Storm <storm@cua.dk>
1578 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
1579 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
1582 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
1583 Remove explicit GNU_LINUX settings for datagram support.
1585 2002-03-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1587 * process.c (Fmake_network_process): Remove unused variable `sa'.
1588 Doc fix. Add usage:.
1589 (set_socket_options): Remove unused variables `optnum' and
1592 2002-03-17 Richard M. Stallman <rms@gnu.org>
1594 * xdisp.c (cursor_type_changed): New variable.
1595 (redisplay_internal): Redisplay all windows if cursor_type_changed.
1596 Clear it when clearing windows_or_buffers_changed.
1597 (try_cursor_movement, redisplay_window, try_window_id)
1598 (try_window_reusing_current_matrix): Test cursor_type_changed
1599 along with windows_or_buffers_changed.
1601 * window.h (cursor_type_changed): New variable.
1603 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
1604 not update_mode_lines, and always set it to 1.
1606 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
1607 if no frames needed redrawing.
1609 2002-03-17 Kim F. Storm <storm@cua.dk>
1611 The following changes add support for network server processes,
1612 datagram connections, and local (unix) sockets.
1614 * process.h (struct Lisp_Process): New member log.
1615 Doc fix: Member command used to indicate stopped network process.
1616 Doc fix: Member childp contains plist for network process.
1617 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
1619 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
1620 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
1621 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
1623 (NETCONN1_P): New macro.
1624 (DATAGRAM_SOCKETS): New conditional symbol.
1625 (datagram_address): New array.
1626 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
1627 (status_message): Use concat3.
1628 (Fprocess_status): Add `listen' status to doc string. Return `stop'
1629 for a stopped network process.
1630 (Fset_process_buffer): Update contact plist for network process.
1631 (Fset_process_filter): Ditto. Don't enable input for stopped
1632 network processes. Server must listen, even if filter is t.
1633 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
1635 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
1636 (Fprocess_contact): Added KEY argument. Handle datagrams.
1637 (list_processes_1): Optionally show only processes with the query
1638 on exit flag set. Dynamically adjust column widths. Omit tty
1639 column if not needed. Report stopped network processes.
1640 Identify server and datagram network processes.
1641 (Flist_processes): New optional arg `query-only'.
1642 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1643 (conv_lisp_to_sockaddr, set_socket_options)
1644 (network_process_featurep, unwind_request_sigio): New helper functions.
1645 (Fprocess_datagram_address, Fset_process_datagram_address):
1646 (Fset_network_process_options): New lisp functions.
1647 (Fopen_network_stream): Removed. Now defined in simple.el.
1648 (Fmake_network_process): New lisp function. Code is based on previous
1649 Fopen_network_stream, but heavily reworked with new property list based
1650 argument list, support for datagrams, server processes, and local
1651 sockets in addition to old client-only functionality.
1652 (server_accept_connection): New function.
1653 (wait_reading_process_input): Use it to handle incoming connects.
1654 Do not enable input on a new connection if process is stopped.
1655 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
1656 (send_process): Handle datagram sockets.
1657 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
1658 network process is indicated by setting command field to t .
1659 (Fprocess_send_eof): No-op if datagram connection.
1660 (Fstatus_notify): Don't read input for a stream server socket or a
1661 stopped network process.
1662 (init_process): Initialize datagram_address array.
1663 (syms_of_process): Intern and staticpro new variables, defsubr new
1666 2002-03-16 Jason Rumney <jasonr@gnu.org>
1668 * w32fns.c (w32_to_all_x_charsets): Return correct type in
1671 2002-03-16 Richard M. Stallman <rms@gnu.org>
1673 * xdisp.c (redisplay_internal, redisplay_windows):
1674 Use list_of_error to call internal_condition_case_1.
1675 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
1676 so as to catch all errors with no possibility of debugger redisplay.
1677 (list_of_error): New variable.
1678 (syms_of_xdisp): Init and staticpro it.
1680 * print.c (print_object): Delete `\ ' from printed rep of frame.
1682 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
1684 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
1685 until its implementation is fixed.
1687 2002-03-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1689 * xfns.c (png_load): Remove unused variable `gamma_str'.
1691 2002-03-14 Richard M. Stallman <rms@gnu.org>
1693 * xfns.c (x_real_positions): Handle failure in XQueryTree.
1695 2002-03-14 Miles Bader <miles@gnu.org>
1697 * intervals.c (adjust_for_invis_intang): New function.
1698 (set_point_both): Use `adjust_for_invis_intang' to do most of the
1699 work for dealing with invisible+intangible regions. Do so before
1700 and after both forward and backward movements, to handle both
1701 front-sticky and rear-sticky cases.
1702 * textprop.c (text_property_stickiness): Function moved here from
1704 * intervals.h (text_property_stickiness): New declaration.
1705 * editfns.c (char_property_eq): Function removed.
1706 (text_property_stickiness): Function moved to `textprop.c'.
1708 2002-03-13 Jason Rumney <jasonr@gnu.org>
1710 * config.in: Add STRFTIME_NO_POSIX2.
1712 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
1713 and %OX when underlying strftime does not.
1715 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
1717 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
1718 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
1719 line) to avoid annoying flicker.
1720 (xm_scroll_callback): Get rid of the now unnecessary kludge.
1721 (XTread_socket): Mark it static.
1723 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
1725 2002-03-13 Kim F. Storm <storm@cua.dk>
1727 * puresize.h (BASE_PURESIZE): Increase to 775000.
1729 2002-03-12 Juanma Barranquero <lektu@terra.es>
1731 * editfns.c (syms_of_editfns): Fix typo.
1733 2002-03-12 Gerd Moellmann <gerd@gnu.org>
1735 * xsmfns.c: Include stdio.h because termhooks.h needs it.
1736 Include termopt.h for interrupt_input.
1738 2002-03-11 Andreas Schwab <schwab@suse.de>
1740 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
1742 2002-03-11 Gerd Moellmann <gerd@gnu.org>
1744 * xterm.c (note_mouse_movement): Put code for
1745 x_autoselect_window_p in #if 0.
1747 * lread.c (Fload): Don't assume that message_with_string uses the
1748 string it is given like a C string.
1750 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1752 * xterm.h (x_session_check_input, x_session_initialize): Declared.
1754 * xterm.c: (XTread_socket): Add call to x_session_check_input and
1755 x_session_have_connection.
1756 (x_initialize): Add call to x_session_initialize.
1758 * termhooks.h (enum event_kind): Add save_session_event.
1760 * keyboard.c: Add Emacs event save_session_event.
1762 * emacs.c (main): Add call to syms_of_xsmfns.
1764 * lisp.h: Declare syms_of_xsmfns as extern.
1766 * config.in: Add HAVE_X_SM.
1768 * Makefile.in (LIBXT): Add -lSM -lICE
1769 if HAVE_X_SM and not USE_X_TOOLKIT.
1770 (XOBJ): New file xsmfns.c added.
1772 * xsmfns.c: New file for X session management.
1774 2002-03-09 Jason Rumney <jasonr@gnu.org>
1776 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
1777 read-only when setting modified time.
1779 2002-03-08 Gerd Moellmann <gerd@gnu.org>
1781 * xdisp.c (move_it_vertically_backward): At the end of the
1782 function, when moving forward by lines, treat terminal frames
1785 * keyboard.c (echo_char): Make sure to add a separator between
1786 keys even if echo_dash hasn't been called.
1788 * xdisp.c: Use new string macros.
1789 (update_echo_area): Pass number of bytes to message3 instead of
1791 (set_message_1): Don't access a string's size_byte directly.
1792 (decode_mode_spec_coding): Use number of bytes of eoltype string
1793 instead number of chars.
1795 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
1797 2002-03-08 Juanma Barranquero <lektu@terra.es>
1799 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
1802 2002-03-06 Jason Rumney <jasonr@gnu.org>
1804 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
1806 2002-03-06 Gerd Moellmann <gerd@gnu.org>
1808 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
1809 (cancel_echoing, echo_length, echo_truncate): Changed to
1810 work with new kboard definition.
1811 (echo_now): Use message3_nolog instead of message2_nolog.
1813 * alloc.c (mark_kboards): Mark echo_string.
1815 * keyboard.h (ECHOBUFSIZE): Removed.
1816 (struct kboard): Member echoptr removed, member echobuf renamed
1819 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
1820 message3 instead of message2 to display the message using STRING's
1823 2002-03-05 Andreas Schwab <schwab@suse.de>
1825 * xdisp.c (hscroll_margin): Change to EMACS_INT.
1827 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
1829 * frame.c (default-frame-alist): Explain that setting it doesn't
1830 affect existing frames.
1832 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
1834 * indent.c (skip_invisible): Fix my brain fart.
1836 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
1838 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
1840 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
1841 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
1842 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
1843 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
1844 and variables to use EMACS_INT instead of just int.
1846 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
1848 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1850 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
1851 environment, pass it down with corrected value.
1853 2002-03-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1855 * lread.c (read_filtered_event): Do not call start_hourglass
1858 2002-03-04 Juanma Barranquero <lektu@terra.es>
1860 * w32term.c (x_display_and_set_cursor): Fix typo.
1862 2002-03-03 Richard M. Stallman <rms@gnu.org>
1864 * fileio.c (Fmake_temp_name): Doc fix.
1866 2002-03-03 Gary Wong <gtw@gnu.org>
1868 * termcap.c [!emacs]: Replace ospeed for building standalone
1869 libtermcap, for binary compatibility.
1871 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
1873 2002-03-03 Richard M. Stallman <rms@gnu.org>
1875 * xrdb.c (file_p): Rename arg `path' to `filename'.
1877 * abbrev.c (Fexpand_abbrev): Increment plist as use count
1878 only if it is an integer.
1880 * xfns.c (png_load): Set screen_gamma based on f->gamma.
1881 If png_get_sRGB gives an answer, call png_set_gamma
1882 using the default image gamma value.
1884 * lread.c (read1): When reading from a file, default string to
1885 multibyte only if it has some multibyte characters.
1887 * print.c (print_object): Output multibyte chars 128...255
1888 using \x even if ! print_escape_multibyte.
1890 * xdisp.c (display_mode_element): Move the places where
1891 bytepos, charpos, this, and lisp_string are set.
1892 Use lisp_string to set bytepos.
1894 * xdisp.c (redisplay_internal):
1895 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
1897 * xdisp.c (display_mode_element): Merge properties specified with
1898 :propertize onto those that come with the string.
1900 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
1902 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
1903 automatic-hscrolling. Users changed.
1904 <hscroll-margin>: Renamed from automatic-hscroll-margin.
1906 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
1908 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1910 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
1912 2002-03-02 Kim F. Storm <storm@cua.dk>
1914 * window.c (Fminibuffer_selected_window): New function.
1915 (syms_of_window): Defsubr it.
1917 2002-03-01 Kim F. Storm <storm@cua.dk>
1919 * window.h (struct window): New member phys_cursor_width.
1921 * window.c (make_window, replace_window): Init phys_cursor_width.
1923 * xterm.c (x_display_and_set_cursor): Blink box cursor using
1924 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1926 * w32term.c (x_display_and_set_cursor): Blink box cursor using
1927 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1929 * lisp.h (GCPRO6): New macro.
1931 * process.c (Fopen_network_stream): Use GCPRO6.
1933 2002-03-01 Kim F. Storm <storm@cua.dk>
1935 * process.c (Qconnect, Qfailed): New variables.
1936 (syms_of_process): Intern and staticpro them.
1937 (Fprocess_status): Document connect and failed return values.
1938 [NON_BLOCKING_CONNECT]: New conditional.
1939 (connect_wait_mask, num_pending_connects): New variables.
1940 (status_message): Convert Qfailed status.
1941 (Fopen_network_stream): Added support for non-blocking connect.
1942 New optional args: filter, sentinel, non_blocking. Doc updated.
1943 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
1944 (deactivate_process): Handle pending non-blocking connect.
1945 (wait_reading_process_input): Poll for status of non-blocking
1946 connects. Exec sentinel directly when connect succeeds.
1947 (status_notify): Don't read process output if not yet connected.
1949 2002-02-28 Kim F. Storm <storm@cua.dk>
1951 * window.c: (minibuf_selected_window): Renamed from
1952 Vminibuf_selected_window. Users changed.
1953 (syms_of_window): Staticpro it.
1955 2002-02-26 Kim F. Storm <storm@cua.dk>
1957 The following changes add a new Vminibuf_selected_window variable
1958 which is similar to Vminibuf_scroll_window, but which is only set
1959 on entry to the minibuffer (from a non-minibuffer window):
1961 * window.c: (Vminibuf_selected_window): New variable.
1962 (struct save_window_data): New member minibuf_selected_window.
1963 (Fset_window_configuration): Restore Vminibuf_selected_window.
1964 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
1965 Set minibuf_scroll_window member to nil if minibuf_level is 0.
1966 (compare_window_configurations): Compare minibuf_selected_window.
1968 * window.h: (Vminibuf_selected_window): Declare extern.
1970 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
1971 entry to minibuffer or on entry from a non-minibuffer window.
1973 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
1974 Vminibuf_selected_window instead of Vminibuf_scroll_window.
1976 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
1977 instead of Vminibuf_scroll_window when deciding in which window
1978 the region should be highlighted. Consequently, the region remains
1979 highlighteded even when a completion buffer is also displayed.
1981 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
1983 * fileio.c (Fsubstitute_in_file_name): Fix the change from
1986 * xselect.c (Qcompound_text_with_extensions): Renamed from
1987 Qcompound_text_no_extensions.
1988 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
1990 2002-02-26 Juanma Barranquero <lektu@terra.es>
1992 * w32proc.c (syms_of_ntproc): Doc fix.
1994 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1996 * intervals.h: Include "dispextern.h" unconditionally.
1998 2002-02-24 Jason Rumney <jasonr@gnu.org>
2000 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
2002 (lisp): Add emacs-lisp/backquote.elc.
2004 2002-02-24 Kim F. Storm <storm@cua.dk>
2006 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
2007 The validation of the event type was too strict as it didn't
2008 allow string events; buffer names are used in bindings for
2009 menu-bar-select-buffer (see `menu-bar-update-buffers').
2011 2002-02-23 Kim F. Storm <storm@cua.dk>
2013 The following changes rework my patch of 2002-02-06 which
2014 added command remapping by entering the commands directly into
2015 the keymaps. Now, command remapping uses an explicit `remap'
2016 prefix in the keymaps, i.e. [remap COMMAND].
2018 * keymap.c (Qremap, remap_command_vector): New variables.
2019 (is_command_symbol): Removed function.
2020 (Fdefine_key): No longer accept a symbol for KEY.
2021 Added validation of [remap COMMAND] argument for KEY.
2022 The DEF is no longer required to be a symbol when remapping a command.
2023 (Fremap_command): New function to remap command through keymaps.
2024 (Flookup_key): Perform command remapping initiated by
2025 Fremap_command directly for speed.
2026 (Fkey_binding): Use Fremap_command for command remapping.
2027 (where_is_internal): Handle new command remapping representation.
2028 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
2029 staticpro them. Defsubr Fremap_command.
2031 * keymap.h (Fremap_command): Declare extern.
2032 (is_command_symbol): Remove extern.
2034 * keyboard.c (command_loop_1): Use Fremap_command for command
2035 remapping; now try command remapping for all symbols.
2037 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2039 * coding.h (run_pre_post_conversion_on_str): Add prototype.
2041 2002-02-23 Jason Rumney <jasonr@gnu.org>
2043 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
2044 on the string before encoding it.
2045 (Fw32_get_clipboard_data): Run post-read-conversion on the string
2048 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
2050 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2052 * w32term.c (enter_timestamp): Remove unused static variable to
2055 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
2057 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2059 * w16select.c (Fw16_get_clipboard_data): Fix last change.
2061 * xselect.c (selection_data_to_lisp_data): Fix last change.
2063 2002-02-22 Jason Rumney <jasonr@gnu.org>
2065 * w32term.h (struct w32_output): New member menu_command_in_progress.
2067 * w32menu.c (menubar_selection_callback): Free the menu and
2068 clear the menu_command_in_progress flag.
2070 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
2071 (menu_free_timer): New variable.
2072 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
2073 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
2074 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
2075 menu command is in progress.
2076 <WM_COMMAND>: Set the menu_command_in_progress flag.
2077 Kill any menu_free_timer that is running.
2079 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
2080 Call ExtTextOutA rather than ExtTextOut.
2082 2002-02-22 Eli Zaretskii <eliz@gnu.org>
2084 * puresize.h (BASE_PURESIZE): Increase to 755000.
2086 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2088 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
2089 on the string before encoding it.
2090 (Fw16_get_clipboard_data): Run post-read-conversion on the string
2093 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2095 Support for ICCCM Extended Segments in X selections:
2097 * xselect.c <Qcompound_text_no_extensions>: New variable.
2098 (syms_of_xselect): Intern and staticpro it.
2099 (selection_data_to_lisp_data): Run post-read-conversion on decoded
2101 (lisp_data_to_selection_data): If next-selection-coding-system is
2102 compound-text-no-extensions, set the type of selection to be
2105 * xterm.h (x_encode_text): Update prototype.
2107 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
2108 callers changed. If SELECTIONP is non-zero, run the
2109 pre-write-conversion function before encoding the selection text.
2111 2002-02-21 Kim F. Storm <storm@cua.dk>
2113 * frame.c (syms_of_frame): Change mouse-highlight default to t.
2115 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
2116 Correct composing of language-change event.
2118 2002-02-20 Kim F. Storm <storm@cua.dk>
2120 * keyboard.c (menu_bar_items): Don't include keymap or local-map
2121 bindings at PT when building menu (the menu is not updated often
2122 enough for this to work reliable).
2123 (tool_bar_items): Likewise.
2124 (current_active_maps): Removed unused (and buggy) function.
2126 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2128 * xfns.c (gif_load): Use correct width and height for GIF images.
2130 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
2132 * floatfns.c (Fatan): Accept an optional second arg and call
2133 atan2 if passed 2 args.
2135 2002-02-18 Jason Rumney <jasonr@gnu.org>
2137 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
2139 2002-02-17 Jason Rumney <jasonr@gnu.org>
2141 * w32term.c (x_autoselect_window_p): New variable.
2142 (syms_of_w32term): DEFVAR_BOOL and initialize it.
2143 (note_mouse_movement): Use it.
2145 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
2147 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
2149 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2151 (syms_of_w32fns): Intern and staticpro them.
2152 (x_frame_parms) <"fullscreen">: New parameter.
2153 (x_fullscreen_move, x_set_fullscreen): New functions.
2154 (x_set_frame_parameters): Support Qfullscreen.
2155 (x_real_positions): Save x/y_pixels_diff frame params.
2156 (x_figure_window_size): Support full-screen frames.
2157 (Fx_create_frame): Default the fullscreen parameter.
2159 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
2160 (x_fullscreen_adjust): New functions.
2161 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
2162 fullscreen. Call x_check_fullscreen_move, and set the
2163 want_fullscreen member of output_data.w32
2164 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
2166 * w32term.h: New enum for FULLSCREEN_* constants.
2167 (struct w32_output): New members want_fullscreen, x_pixels_diff,
2168 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
2169 (x-fullscreen-adjust): New prototype.
2171 2002-02-17 Kim F. Storm <storm@cua.dk>
2173 * frame.c: (Vmouse_highlight): New variable.
2174 (syms_of_frame): DEFVAR_LISP it.
2176 * frame.h: (Vmouse_highlight): Declare extern.
2178 * xterm.h (struct x_display_info): Add mouse_face_hidden.
2180 * xterm.c (disable_mouse_highlight): Removed variable.
2181 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2182 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2183 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
2184 and on after keyboard input.
2185 (x_term_init): Initialize mouse_face_hidden.
2187 * msdos.h (struct display_info): Add mouse_face_hidden.
2189 * msdos.c (disable_mouse_highlight): Removed variable.
2190 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2191 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2192 (internal_terminal_init): Initialize mouse_face_hidden.
2193 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
2194 and on after keyboard input.
2196 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
2198 * w32term.c (disable_mouse_highlight): Removed variable.
2199 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
2200 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2201 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
2202 and on after keyboard input.
2203 (w32_initialize_display_info): Initialize mouse_face_hidden.
2205 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
2207 * msdos.c (last_mouse_window): New variable.
2208 (dos_rawgetc): Fix last change--if the mouse is in the same window
2209 as recorded in last_mouse_window, don't select this window.
2211 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
2213 * msdos.c (x_autoselect_window_p): New variable.
2214 (syms_of_msdos): Defvar it.
2215 (dos_rawgetc): If x_autoselect_window_p is set, select the window
2216 in which the last mouse movement occured, unless it is already
2219 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2221 (syms_of_xdisp): DEVFAR them.
2222 (hscroll_window_tree): Use automatic_hscroll_margin and
2223 Vautomatic_hscroll_step to compute the amount of window scrolling.
2225 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2227 * xterm.c (x-autoselect-window): New variable.
2228 (note_mouse_movement): Use it.
2230 * keyboard.c: Do not include "systime.h" twice.
2232 2002-02-15 Andreas Schwab <schwab@suse.de>
2234 * puresize.h (BASE_PURESIZE): Increase to 9/5.
2236 * alloc.c (NSTATICS): Increase to 1280.
2238 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2240 * alloc.c (NSTATICS): Bump to 1026.
2242 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
2243 (Vx_super_keysym): New variables.
2244 (syms_of_xterm): DEFVAR_LISP them.
2245 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
2246 variables to determine which keys to use for the various modifiers.
2248 2002-02-13 Kim F. Storm <storm@cua.dk>
2250 * window.c: (Vmode_line_in_non_selected_windows): Removed.
2251 (mode_line_in_non_selected_windows): New variable.
2252 (syms_of_window): DEFVAR_BOOL it.
2254 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
2255 Use mode_line_in_non_selected_windows.
2256 (mode_line_in_non_selected_windows): Declare extern.
2257 (Vmode_line_in_non_selected_windows): Removed extern.
2259 2002-02-13 Richard M. Stallman <rms@gnu.org>
2261 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
2262 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
2263 (Fclear_this_command_keys): Doc fixes.
2265 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
2266 (update_face_from_frame_parameter): Increment face_change_count
2267 and windows_or_buffers_changed to force redisplay using changed faces.
2269 * xdisp.c (QCpropertize): New variable.
2270 (mode_line_proptrans_alist): New variable.
2271 (display_mode_element): New arg PROPS; all calls changed.
2272 Implement this, for strings.
2273 Handle literal output of strings by sharing the
2274 main-line code for strings, using local var `literal'.
2275 Handle :propertize feature.
2276 (syms_of_xdisp): Initialze and staticpro QCpropertize and
2277 mode_line_proptrans_alist.
2279 2002-02-11 Kim F. Storm <storm@cua.dk>
2281 * window.c: (Vmode_line_in_non_selected_windows): New variable.
2282 (syms_of_window): DEFVAR_LISP it.
2284 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
2285 (CURRENT_MODE_LINE_FACE_ID): Use it.
2286 (Vmode_line_in_non_selected_windows): Declare extern.
2288 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
2289 to get mode line face.
2291 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
2293 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
2294 variables; cus-start.el doesn't need them anymore.
2296 2002-02-09 Kim F. Storm <storm@cua.dk>
2298 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
2299 reduction. This fixes a display problem where stray newlines were
2300 inserted in the window (corrected by C-l). Clarified code (IMHO).
2302 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
2304 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
2306 * xdisp.c (display_mode_lines): Fix last change.
2308 2002-02-09 Jason Rumney <jasonr@gnu.org>
2310 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
2312 (w32_load_system_font): Prevent Cleartype fonts from loading.
2313 (Fx_show_tip): Ensure tip frames are above other topmost windows.
2315 2002-02-09 Kim F. Storm <storm@cua.dk>
2317 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
2318 (CURRENT_MODE_LINE_HEIGHT): Use it.
2319 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
2321 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
2322 (pos_visible_p, handle_face_prop): Likewise.
2323 (display_mode_lines): Likewise, but for the real selected window.
2324 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
2326 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
2327 in non-selected windows.
2328 (realize_basic_faces): Realize it.
2329 (syms_of_term): Intern and staticpro it.
2331 2002-02-08 Kim F. Storm <storm@cua.dk>
2333 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
2334 Changed mail addresses to emacs-devel@gnu.org.
2336 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
2338 * fileio.c (Fsubstitute_in_file_name): If the file name includes
2339 ~user, and there's no such user, don't discard everything before ~user.
2341 * floatfns.c (Fround): Doc fix.
2343 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2345 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
2347 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
2349 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
2351 2002-02-07 Kim F. Storm <storm@cua.dk>
2353 * keymap.c (where_is_internal): Only check whether definition is
2354 remapped if it fulfills is_command_symbol.
2356 2002-02-07 Andreas Schwab <schwab@suse.de>
2358 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
2360 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
2362 2002-02-06 Kim F. Storm <storm@cua.dk>
2364 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
2365 defining command remapping. Doc updated.
2366 (Flookup_key): Remap command through keymap if KEY is a symbol.
2367 (is_command_symbol): New function.
2368 (Fkey_binding): Use it. New optional argument NO-REMAP.
2369 Doc updated. Callers changed. Perform command remapping via
2370 recursive call unless that arg is non-nil.
2371 (where_is_internal): New argument no_remap. Callers changed.
2372 Call recursively to find original key bindings for a remapped
2373 comand unless that arg is non-nil.
2374 (Fwhere_is_internal): New optional argument NO-REMAP.
2375 Doc updated. Callers changed. Pass arg to where_is_internal.
2377 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
2378 (is_command_symbol): Added prototype.
2380 * keyboard.c (Vthis_original_command): New variable.
2381 (syms_of_keyboard): DEFVAR_LISP it.
2382 (command_loop_1): Set it, and perform command remapping.
2384 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2386 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2388 2002-02-06 Jason Rumney <jasonr@gnu.org>
2390 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
2392 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
2394 * charset.c (get_charset_id): Use if-else instead of ?:.
2396 2002-02-06 Richard M. Stallman <rms@gnu.org>
2398 * filelock.c (S_ISLNK): Define if not defined.
2400 2002-02-03 Richard M. Stallman <rms@gnu.org>
2402 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
2404 * lread.c (read1): Redesign strategy for force_multibyte and
2405 force_singlebyte. Now is_multibyte records whether read_buffer
2406 is multibyte. Encountering any multibyte character makes it so.
2408 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
2410 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
2411 with the same sequence, map that sequence to f10 rather than f0.
2413 2002-02-03 Andreas Schwab <schwab@suse.de>
2415 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
2416 latter never being defined on GNU/Linux.
2418 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2420 * xfaces.c (realize_default_face): Don't set the weight and slant
2421 of the default face to Qnormal, unless these attributes are
2424 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2426 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
2427 Call cancel_hourglass unconditionally.
2429 * eval.c (Fsignal): Remove duplicated declaration of
2430 the variable `display_hourglass_p'.
2432 2002-01-31 Richard M. Stallman <rms@gnu.org>
2434 * editfns.c (region_limit): Nicer error message.
2436 * coding.c (decode_composition_emacs_mule):
2437 Give up if NCOMPONENT gets too large to index `component'.
2439 * callint.c (check_mark): New arg to specify clearer error message.
2442 2002-01-27 Richard M. Stallman <rms@gnu.org>
2444 * minibuf.c (Fcompleting_read): Doc fix.
2446 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2448 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
2449 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
2452 2002-01-26 Richard M. Stallman <rms@gnu.org>
2454 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
2456 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
2457 and scroll_up_aggressively.
2459 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2461 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
2463 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
2465 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2466 (Fprevious_property_change, Fprevious_single_property_change):
2467 Stay within the narrowed-buffer boundaries.
2469 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2471 * term.c (Ftty_display_color_cells): New function.
2472 (syms_of_term): Defsubr it.
2473 (Ftty_display_color_cells, Ftty_display_color_p): Change the
2474 argument name to DISPLAY. Doc fix.
2476 * dispextern.h: Add prototype for set_tty_color_mode and
2479 2002-01-24 Jason Rumney <jasonr@gnu.org>
2481 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
2482 If region left to draw is not what was expected, mark the frame as
2485 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
2486 Combine the regions returned by BeginPaint and GetUpdateRect.
2488 2002-01-23 Jason Rumney <jasonr@gnu.org>
2490 * w32term.c (x_update_window_begin): Only hide caret if
2491 w32_use_visible_system_caret is set.
2492 (x_update_window_end): Only show caret if
2493 w32_use_visible_system_caret is set.
2494 (syms_of_w32term): Handle SystemParametersInfo call failing.
2496 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
2498 2002-01-22 Richard M. Stallman <rms@gnu.org>
2500 * unexelf.c (unexec): Define n so as to cause compilation error
2501 for the code where people have often written n instead of nn.
2503 * .gdbinit (hookpost-run): Defined.
2505 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2507 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
2509 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2511 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
2512 if fullscreen is being set.
2514 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2516 * minibuf.c (Fminibuffer_contents)
2517 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
2518 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
2520 2002-01-21 Richard M. Stallman <rms@gnu.org>
2522 * window.c (check_frame_size): Fix minimum height calculation.
2524 2002-01-20 Ken Raeburn <raeburn@gnu.org>
2526 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
2527 height before comparison.
2528 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
2530 2002-01-20 Jason Rumney <jasonr@gnu.org>
2532 * w32term.c (w32_system_caret_width): Remove.
2533 (w32_use_visible_system_caret): New user flag.
2534 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
2535 Windows reports a screen reader running.
2536 (x_update_window_begin): Hide the system caret.
2537 (x_update_window_end): Show the system caret.
2538 (x_display_and_set_cursor): Don't draw a cursor when
2539 w32_use_visible_system_caret is set. Do not adjust width.
2541 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
2542 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
2543 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
2544 the user requests it. Use system default width when creating.
2545 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
2547 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
2548 New window messages.
2550 2002-01-20 Richard M. Stallman <rms@gnu.org>
2552 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
2554 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2556 * doprnt.c (doprnt1): Fix typos in error call.
2558 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2560 * unexelf.c (unexec) [__sgi]: Support the .got sections.
2562 2002-01-20 Jason Rumney <jasonr@gnu.org>
2564 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
2565 that Windows returns. If a double check fails, try to guess how
2566 ExtTextOut is going to act.
2568 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
2569 in place of stricmp.
2570 (w32_list_synthesized_fonts): Removed.
2571 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
2572 (struct enumfont_t): New element; list.
2573 (enum_font_cb2): List all style and charset variations of a font.
2574 (Fw32_select_font): New optional argument; include_proportional.
2575 Exclude vertical fonts. Exclude proportional fonts unless
2576 include_proportional is non-nil.
2577 (w32_enable_synthesized_fonts): Change to a boolean.
2578 (Fw32_send_sys_command): Doc fix.
2580 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2582 * dispnew.c (update_frame): Move the variable `tem' to the block
2585 2002-01-19 Jason Rumney <jasonr@gnu.org>
2587 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
2588 call to face-set-after-frame-default.
2590 2002-01-18 Richard M. Stallman <rms@gnu.org>
2592 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
2593 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
2595 2002-01-17 Richard M. Stallman <rms@gnu.org>
2597 * window.c (enlarge_window): When exceeding size of parent,
2598 directly delete all the siblings instead of trying to resize it.
2600 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2602 * term.c (set_tty_color_mode): Remove unused variable `tem'.
2604 2002-01-16 Henrik Enberg <henrik@enberg.org>
2606 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
2608 2002-01-16 Kim F. Storm <storm@cua.dk>
2610 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
2611 is invisible. This can happen if cursor is on top line of a
2612 window, and we switch to a buffer with a header line.
2614 * w32term.c (x_erase_phys_cursor): Ditto.
2616 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2618 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
2619 `dont_resize' only when used.
2621 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
2623 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
2625 * xdisp.c (display_mode_element): When computing charpos, depend
2626 on multibyteness of elt, not the text in field.
2628 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2630 * buffer.c (Fkill_all_local_variables):
2631 Increment `update_mode_lines' only once.
2633 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2635 * lisp.h (adjust_after_replace_noundo)
2636 (Fupdate_coding_systems_internal): Add prototypes.
2638 * sound.c (Fplay_sound): Initialize header_size also for :data case.
2640 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
2642 Support for the --color command-line argument and tty-color-mode
2645 * term.c (tty_default_color_capabilities, tty_setup_colors)
2646 (set_tty_color_mode): New functions.
2647 (term_init): Call tty_default_color_capabilities.
2648 (Qtty_color_mode_alist): New variable.
2649 (syms_of_term): Intern and staticpro it.
2651 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
2653 (do_switch_frame): For termcap frames, switch the tty
2654 color mode as specified by the frame's parameters.
2655 (Qtty_color_mode): New variable.
2656 (syms_of_frame): Intern and staticpro it.
2658 * emacs.c (USAGE2): Add the --color option.
2659 (standard_args): Ditto.
2661 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
2663 * xterm.h (struct x_output): New members want_fullscreen,
2664 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
2665 y_pixels_outer_diff.
2666 New enum for FULLSCREEN_* constants.
2667 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
2669 (x_fullscreen_adjust): Add prototype.
2671 * emacs.c (USAGE2): Add the new full-screen arguments.
2672 (standard_args): Ditto.
2674 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2676 (syms_of_xfns): Intern and staticpro them.
2677 (x_frame_parms) <"fullscreen">: New parameter.
2678 (x_fullscreen_move, x_set_fullscreen): New functions.
2679 (x_set_frame_parameters): Support for Qfullscreen.
2680 (x_real_positions): More accurate computation of the frame position.
2681 (x_figure_window_size): Support full-screen frames.
2682 (Fx_create_frame): Default the fullscreen parameter.
2684 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
2685 (XTread_socket) <Expose>: Call x_check_fullscreen.
2686 <ConfigureNotify>: Don't resize to fullscreen.
2687 Call x_check_fullscreen_move, and set the want_fullscreen member of
2690 2002-01-13 Jason Rumney <jasonr@gnu.org>
2692 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
2693 for mice with more than 3 buttons.
2695 * w32term.c (parse_button): New parameter xbutton. Callers changed.
2696 (w32_read_socket): Handle new "XBUTTON" messages.
2698 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
2699 (syms_of_w32fns): DEFVAR_BOOL it.
2700 (w32_wnd_proc): Handle new "XBUTTON" messages.
2702 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2704 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
2706 2002-01-13 Andreas Schwab <schwab@suse.de>
2708 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
2710 2002-01-12 Andreas Schwab <schwab@suse.de>
2712 * .gdbinit (xbuffer): Remove address operator since data is now a
2715 2002-01-11 Richard M. Stallman <rms@gnu.org>
2717 * insdel.c (adjust_after_replace_noundo): New function.
2719 * coding.c (code_convert_region): Don't copy old text if undo disabled.
2721 2002-01-09 Jason Rumney <jasonr@gnu.org>
2723 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
2724 when checking for multiple frames.
2726 2002-01-08 Richard M. Stallman <rms@gnu.org>
2728 * window.c (delete_window): Rewrite the code for changing the
2729 selected window to handle the case where WINDOW is not a leaf.
2731 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
2733 * process.c (send_process): Set src_multibyte to 1 after the call
2734 top setup_coding_system, not before the call.
2736 2002-01-07 Jason Rumney <jasonr@gnu.org>
2738 * xmenu.c (set_frame_menubar, xmenu_show):
2739 (xdialog_show): Initialize wv->help to Qnil.
2741 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
2742 (w32_dialog_show): Initialize wv->help to Qnil.
2744 2002-01-06 Jason Rumney <jasonr@gnu.org>
2746 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
2748 * w32menu.c (w32_menu_display_help): Revert last change.
2750 * xmenu.c (menu_highlight_callback): Revert last change.
2752 2002-01-06 Andreas Schwab <schwab@suse.de>
2754 * insdel.c (make_gap_larger): Make sure buffer size does not
2755 overflow range of int.
2757 2002-01-05 Jason Rumney <jasonr@gnu.org>
2759 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2762 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
2764 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
2765 to the left or to the right of the pointer, put it against
2766 the left screen edge.
2767 (x_frame_parms): Add missing braces around initializer.
2769 * w32term.c (x_setup_relief_colors): Don't compute an image's
2770 background color if it doesn't have a Pixmap.
2771 (notice_overwritten_cursor): Don't depend on
2772 output_cursor and updated_area. Compare pixel coordinates with
2773 window's cursor pixel coordinates.
2774 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2775 Call notice_overwritten_cursor with new arg list.
2776 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2778 (x_draw_image_relief): Use predefined macro instead of
2779 constant when the value of `tool_bar_button_relief' is negative.
2781 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
2783 2002-01-04 Richard M. Stallman <rms@gnu.org>
2785 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
2787 2002-01-03 Richard M. Stallman <rms@gnu.org>
2789 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
2790 (Fkey_binding): Try the `keymap' property map first.
2791 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
2792 minor mode bindings.
2794 2002-01-03 Kim F. Storm <storm@cua.dk>
2796 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
2798 2002-01-02 Richard M. Stallman <rms@gnu.org>
2800 * keyboard.c (read_key_sequence): Handle the keymap property
2801 before minor mode maps.
2803 * editfns.c (Fformat): Update thissize from field_width
2804 based on the actual width, in the string case.
2806 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2808 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
2809 when used as truth value to prevent gcc warnings.
2811 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
2812 * w32proc.c: Include <config.h>.
2814 2002-01-01 Andreas Schwab <schwab@suse.de>
2816 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
2817 not EMACS_INT, to make them compatible with DEFVAR_INT.
2818 * lisp.h (max_specpdl_size): Adjust declaration.
2820 2002-01-01 Richard M. Stallman <rms@gnu.org>
2822 * print.c (print_object): Test print_escape_nonascii only for
2824 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
2825 when outputting to a multibyte buffer.
2827 2001-12-29 Richard M. Stallman <rms@gnu.org>
2829 * print.c (print_object): In multibyte string, use hex escapes.
2830 Use octal only for unibyte strings.
2831 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
2833 * lread.c (read_escape): New arg BYTEREP for reporting whether
2834 escape forces unibyte or multibyte.
2835 (read1): When reading a string, take note of that info.
2837 2001-12-29 Ken Raeburn <raeburn@gnu.org>
2839 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
2840 comparison to test lisp value returned by Fget.
2842 2001-12-29 Richard M. Stallman <rms@gnu.org>
2844 * lisp.h (max_specpdl_size): Add declaration.
2846 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
2848 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
2849 Handle modifier bits. Correct typo in error message.
2851 2001-12-28 Richard M. Stallman <rms@gnu.org>
2853 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
2854 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
2855 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2856 Update calls to Fdefine_abbrev.
2857 (write_abbrev): Update for changed data format.
2858 Don't list "system" abbrevs.
2859 (Fexpand_abbrev): Update use count with new data format.
2860 (describe_abbrev): Update for changed data format.
2861 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
2863 * config.in (HAVE_MBSINIT): Add #undef.
2865 * strftime.c (mbsinit): Define as no-op if not available.
2867 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
2868 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
2870 * keymap.c (Flookup_key): Error message if key has wrong data type.
2871 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
2872 (exclude_key): New variable.
2874 2001-12-28 Gerd Moellmann <gerd@gnu.org>
2876 * xterm.c (x_setup_relief_colors): Don't compute an image's
2877 background color if it doesn't have a Pixmap.
2879 * xterm.c (notice_overwritten_cursor): Don't depend on
2880 output_cursor and updated_area. Compare pixel coordinates with
2881 window's cursor pixel coordinates.
2882 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2883 Call notice_overwritten_cursor with new arg list.
2884 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2887 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
2888 height of the cursor line to the amount to scroll.
2890 2001-12-27 Richard M. Stallman <rms@gnu.org>
2892 * intervals.c (set_point_both): The position after an invisible,
2893 intangible character is not an acceptable stopping point.
2895 2001-12-27 Ken Raeburn <raeburn@gnu.org>
2897 * window.c (enlarge_window): In new preserve_before code, convert
2898 CURBEG from lisp object to integer before doing arithmetic.
2900 2001-12-27 Richard M. Stallman <rms@gnu.org>
2902 * bytecode.c (Fbyte_code): Undo previous change.
2904 2001-12-26 Kim F. Storm <storm@cua.dk>
2906 * keyboard.c (record_char): Ignore duplicate help-echo events only
2907 separated by mouse-movement. When tracking mouse, only record
2908 first and last mouse-movement event in same window.
2909 Don't record mouse-movement events in keyboard macros.
2911 2001-12-25 Richard M. Stallman <rms@gnu.org>
2913 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
2914 (Fenlarge_window): New arg PRESERVE_BEFORE.
2916 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
2917 instead of Fstring_as_unibyte.
2919 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2921 The following changes remove mocklisp support:
2923 * mocklisp.h, mocklisp.c: Files removed.
2925 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
2926 `Qmocklisp' and `Qmocklisp_arguments'.
2927 Remove prototype of syms_of_mocklisp.
2929 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
2931 * callint.c: Do not include mocklisp.h.
2932 (Fcall_interactively): Do not test for mocklisp case.
2934 * eval.c: Remove variables `Qmocklisp_arguments',
2935 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
2936 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
2937 Do not test for mocklisp case.
2938 (Fwhile): Remove unused variable `tem'.
2939 (syms_of_eval): Remove variable `moclisp-arguments'.
2941 * data.c (wrong_type_argument): Remove mocklisp case.
2943 * doc.c (Fdocumentation): Remove mocklisp case.
2945 * emacs.c (main): Do not call syms_of_mocklisp.
2947 2001-12-21 Richard M. Stallman <rms@gnu.org>
2949 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
2950 to the left or to the right of the pointer, put it against
2951 the left screen edge.
2953 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
2955 * Makefile.in (distclean): Remove .gdbinit if we are building
2956 outside the source tree.
2958 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2960 * w32.c (emacs_root_dir): New function.
2962 * msdos.c (emacs_root_dir): New function.
2964 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
2965 of the current drive as the fallback for default_directory.
2967 * dired.c (file_name_completion): Run the elements of
2968 completion-ignored-extensions through ENCODE_FILE.
2970 * lisp.h (scmp): Remove prototype, since it's now a static
2971 function private to dired.c.
2973 2001-12-18 Richard M. Stallman <rms@gnu.org>
2975 * dired.c (scmp): Function moved from minibuf.c.
2976 Delete multibyte handling--used only on encoded strings.
2978 * minibuf.c (scmp): Function moved to dired.c.
2980 * fns.c (merge): Add QUIT call.
2982 2001-12-18 Dave Love <fx@gnu.org>
2984 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
2985 language/georgian.el.
2987 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2989 * Makefile.in (lisp, shortlisp): Synchronize with changes to
2990 lisp/Makefile.in:DONTCOMPILE.
2992 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2994 * xdisp.c (window_box_height): Do not return negative values.
2995 From Gerd Moellmann <gerd@gnu.org>.
2997 * keyboard.c (head_table): Add missing braces around initializer.
2999 * term.c (keys): Likewise.
3001 * xfns.c (x_frame_parms, visual_classes): Likewise.
3003 2001-12-17 Sam Steingold <sds@gnu.org>
3005 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
3006 patch (COMPOSING_P, not COMPOSING).
3008 2001-12-17 Richard M. Stallman <rms@gnu.org>
3010 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
3012 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
3013 before calling decode_coding.
3015 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
3017 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
3018 instead of only for COMPOSITION_DISABLED.
3020 2001-12-16 Richard M. Stallman <rms@gnu.org>
3022 * alloc.c (pure_alloc): After overflow, allocate just a small block.
3024 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
3026 * buffer.h (struct buffer): New field `display_error_modiff'.
3027 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
3029 * window.c (Frecenter): Clear display_error_modiff field.
3031 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
3032 Call redisplay_window, but not if display_error_modiff field says no.
3033 (redisplay_window_error): New function.
3034 (displayed_buffer): New variable.
3035 (redisplay_internal, redisplay_windows): Call the new functions
3036 instead of redisplay_window directly.
3038 2001-12-15 Richard M. Stallman <rms@gnu.org>
3040 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3042 2001-12-14 Andrew Innes <andrewi@gnu.org>
3044 * makefile.w32-in (EMACSLOADPATH): Define.
3045 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
3046 (bootstrap-temacs): Remove dependency on bootstrap-clean.
3048 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
3050 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
3051 parameter have a numeric value all the time.
3053 * w32fns.c (x_report_frame_params): Likewise.
3055 2001-12-12 Richard M. Stallman <rms@gnu.org>
3057 * fileio.c (Fwrite_region): Doc fix.
3059 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
3060 (redisplay_internal): Call clear_image_cache only for window terminals.
3062 2001-12-12 Gerd Moellmann <gerd@gnu.org>
3064 * xdisp.c (move_it_vertically_backward): Change heuristic
3065 for the case that we didn't move far enough initially.
3067 * window.c (Frecenter): Simplify computation in the case of window
3068 system frames and ARG < 0; use window_box_height.
3070 2001-12-11 Richard M. Stallman <rms@gnu.org>
3072 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
3073 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
3075 2001-12-11 Andrew Innes <andrewi@gnu.org>
3077 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
3080 2001-12-11 Richard M. Stallman <rms@gnu.org>
3082 * m/hp800.h: Split the __hpux conditional into the parts
3083 that are right for GNU/Linux too and the parts that are not.
3084 Use the former if GNU_LINUX.
3085 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
3087 * s/gnu-linux.h (GNU_LINUX): Defined.
3089 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3091 * macros.c, msdos.c, w16select.c: Change doc-string comments to
3092 `new style' [w/`doc:' keyword].
3094 2001-12-10 Jason Rumney <jasonr@gnu.org>
3096 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
3099 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3101 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
3104 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
3106 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
3108 * s/hpux10.h (srand48): Don't undefine.
3110 2001-12-09 Jason Rumney <jasonr@gnu.org>
3112 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
3113 Add comment to explain where the struct came from.
3114 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
3115 (add_menu_item): Process pop-up menus first to avoid memory leak.
3116 (add_menu_item, w32_menu_display_help): Use `help' field as
3118 (w32_free_submenu_strings): Only free owner-drawn strings.
3120 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3122 * COPYING: Moved back.
3124 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
3125 Add parentheses around && within ||.
3127 * indent.c (compute_motion): Likewise.
3129 * intervals.c (merge_properties_sticky): Likewise.
3131 * coding.c (setup_coding_system, shrink_encoding_region)
3132 (Fdecode_sjis_char): Likewise.
3134 2001-12-07 Andreas Schwab <schwab@suse.de>
3136 * xdisp.c (display_mode_element): Don't read past end of string if
3139 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
3142 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
3143 from most_positive_fixnum and most_negative_fixnum, resp., and
3144 type changed to Lisp_Object.
3145 (syms_of_data): DEFVAR_LISP them.
3147 2001-12-07 Richard M. Stallman <rms@gnu.org>
3149 * callproc.c (init_callproc): Set Vdata_directory based on the source
3150 location whenever Emacs was run uninstalled.
3152 2001-12-06 Paul Eggert <eggert@twinsun.com>
3154 * config.in (HAVE_WORKING_VFORK): New #undefs.
3155 * process.c (create_process):
3156 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
3157 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
3158 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
3159 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
3160 * m/intel386.h (HAVE_VFORK): Likewise.
3161 * m/mips-siemens.h (HAVE_VFORK): Likewise.
3162 * m/mips.h (HAVE_VFORK): Likewise.
3163 * s/freebsd.h (vfork): Remove #define.
3164 * s/lynxos.h (HAVE_VFORK): Remove #undef.
3165 * s/usg5-4-2.h: Fix comment about vfork.
3167 2001-12-06 Richard M. Stallman <rms@gnu.org>
3169 * s/hpux10.h (random): Add undef.
3170 (HAVE_RANDOM): Define it just once.
3172 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
3174 * eval.c: Undo last change: the standard syntax is not wanted.
3176 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3178 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
3179 scroll bars of the frame before deleting the frame itself. If the
3180 frame has a widget, delete the frame with XtDestroyWidget, and do
3181 not call XDestroyWindow before that.
3183 2001-12-06 Kim F. Storm <storm@cua.dk>
3185 * xfns.c (x_report_frame_params): Return actual fringe widths.
3187 * w32fns.c (x_report_frame_params): Return actual fringe widths.
3189 2001-12-05 Andrew Innes <andrewi@gnu.org>
3191 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
3194 * insdel.c (make_gap_larger): New function.
3195 (make_gap_smaller): New function.
3196 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
3197 make_gap_smaller if arg is negative.
3199 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
3201 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
3202 Pass a dummy argument when calling interrupt_signal.
3203 (parse_menu_item): Mark disabled items before checking for empty def.
3204 (read_char_minibuf_menu_prompt): Make safety more visible.
3205 (read_key_sequence): Add a `first_unbound' variable.
3206 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
3207 unbound prefix as soon as we can detect it.
3209 * doc.c (Fsnarf_documentation): Add prototype.
3210 (get_doc_string): Handle negative arguments.
3211 (Fdocumentation): Use AREF and ASIZE.
3212 Move the calls to get_doc_string to a single place.
3213 Don't confuse an interactive-spec for a docstring reference.
3214 (Fdocumentation_property): Take advantage of the fact that
3215 get_doc_string now ignores the sign of the docstring position.
3217 * eval.c: Use standard syntax for usage in docstrings.
3219 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3221 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
3223 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3225 * xterm.c (x_draw_image_relief): Use predefined macro instead of
3226 constant when the value of `tool_bar_button_relief' is negative.
3228 2001-12-02 Richard M. Stallman <rms@gnu.org>
3230 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
3231 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
3233 * fileio.c (read_non_regular): Delete Fsignal call.
3235 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
3237 * lisp.h (run_hook_list_with_args): Undo last change.
3239 2001-12-01 Gerd Moellmann <gerd@gnu.org>
3241 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
3243 2001-12-01 Jason Rumney <jasonr@gnu.org>
3245 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
3247 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
3248 [!WM_MOUSELEAVE]: Define.
3250 * w32menu.c (current_popup_menu, get_menu_item_info):
3251 (set_menu_item_info): New vars.
3252 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
3253 (w32_menu_show): Set current_popup_menu.
3254 (add_menu_item): Allocate new strings for owner-drawn menu items
3256 Use owner-draw for disabled menu items again.
3257 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
3258 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
3260 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
3261 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
3262 <WM_EXITMENULOOP>: Free menu strings.
3263 <WM_MOUSELEAVE>: Stop tracking mouse.
3264 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
3266 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
3269 2001-12-01 Kim F. Storm <storm@cua.dk>
3271 The following changes add left-fringe and right-fringe
3272 frame parameters to adjust fringe widths, or remove one or
3275 * frame.h (struct frame): Remove trunc_area_pixel_width and
3276 trunc_area_cols fields.
3277 (Qleft_fringe, Qright_fringe): Declare.
3278 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
3280 * frame.c (Qleft_fringe, Qright_fringe): New vars.
3281 (syms_of_frame): Initialize them.
3283 * window.c (coordinates_in_window): Handle separate left and right
3286 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
3287 and fringe_cols fields.
3288 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
3289 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
3290 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
3291 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
3292 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
3293 (x_compute_fringe_widths): Add prototype.
3295 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
3296 fill fringe evenly with small dashes.
3297 (x_draw_fringe_bitmap): Clear background if necessary. Align and
3298 clip the new ZV bitmap to avoid jitter between rows.
3299 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
3300 background. Don't draw fringe bitmaps if fringe width is zero.
3301 (x_compute_fringe_widths): New function.
3302 (x_new_font, x_set_window_size_1): Use it.
3304 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
3305 (x_set_frame_parameters): Process `font' parameter before other
3306 parameters as fringe widths depend on it.
3307 (x_set_fringe_width): New function.
3308 (x_figure_window_size): Use x_compute_fringe_widths.
3309 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
3312 * widget.c (set_frame_size): Use x_compute_fringe_widths.
3313 (EmacsFrameSetCharSize): Ditto.
3315 * w32term.h: Merged changes from xterm.h.
3316 * w32term.c: Merged changes from xterm.c.
3317 * w32fns.c: Merged changes from xfns.c.
3319 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3323 2001-11-29 Dave Love <fx@gnu.org>
3325 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
3327 (detect_coding_mask): Fix call of detect_coding_iso2022.
3329 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3331 * fileio.c (file-name-coding-system)
3332 (default-file-name-coding-system): Doc fix (links to referenced
3335 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
3337 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3338 Add dummy uses of gcproN variables.
3340 * category.c (describe_category, describe_category_1)
3341 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3342 (syms_of_category): Don't defsubr Sdescribe_categories.
3344 2001-11-28 Richard M. Stallman <rms@gnu.org>
3346 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
3348 * Makefile.in (lispdir): New variable, referring to build dir.
3349 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
3351 2001-11-28 Andrew Innes <andrewi@gnu.org>
3353 * w32menu.c (w32_menu_display_help): Actually add the new argument
3356 2001-11-28 Jason Rumney <jasonr@gnu.org>
3358 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
3359 menu items. From David Ponce <dponce@wanadoo.fr>.
3360 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
3362 (w32_menu_display_help): New argument OWNER. Rewritten to store a
3363 help event in the owner frame's keyboard buffer.
3365 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
3366 (Fx_show_tip): Don't subtract last width from row width.
3368 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
3369 (w32_read_socket): Use EQ to compare frames.
3371 2001-11-28 Gerd Moellmann <gerd@gnu.org>
3373 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3376 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3378 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
3379 `gcpro3' and `gcpro4'.
3381 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
3383 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
3385 * ccl.c: Use AREF and ASIZE.
3387 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
3389 * lisp.h (run_hook_list_with_args): Remove.
3390 (LIST_END_P): Fix call to wrong_type_argument.
3391 (make_fixnum_or_float): Use EMACS_INT rather than int.
3393 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
3395 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
3396 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
3398 * eval.c: Use AREF and ASIZE.
3399 (Ffetch_bytecode): Add the file name to the error message.
3401 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
3402 which match the end of the file-name.
3403 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
3404 is not a valid env var, but leave it as is instead.
3406 * keymap.c (access_keymap): Handle t bindings like nil bindings.
3407 Make nil bindings in char-tables transparent.
3408 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
3410 2001-11-26 Richard M. Stallman <rms@gnu.org>
3412 * textprop.c (set_text_properties_1): Allow START, END in either order.
3413 Do nothing if range is empty.
3415 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
3417 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
3420 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
3422 * textprop.c (set_text_properties_1): Clearly mark that the
3423 interval should not be empty.
3425 * intervals.c (graft_intervals_into_buffer):
3426 Don't call set_text_properties_1 on an empty interval.
3428 2001-11-25 Richard M. Stallman <rms@gnu.org>
3430 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
3432 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
3433 don't lose the data in it.
3435 2001-11-25 Juanma Barranquero <lektu@terra.es>
3437 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
3439 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
3441 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
3443 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
3445 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
3447 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
3449 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
3450 Niemitalo <kon@iki.fi>.
3452 2001-11-25 Jason Rumney <jasonr@gnu.org>
3454 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
3456 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
3457 (Fx_show_tip): Block input during frame creation.
3458 (Fx_show_tip, Fx_hide_tip): Enable.
3460 2001-11-24 Richard M. Stallman <rms@gnu.org>
3462 * lread.c (Fload): Detect recursive load error for more than 3
3463 nestings of the same file.
3464 (Vrecursive_load_depth_limit): Variable deleted.
3465 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
3467 2001-11-24 Jason Rumney <jasonr@gnu.org>
3469 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
3470 mouse position if either left or top is not specified.
3472 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
3473 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
3474 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
3475 (my_create_tip_window): Assign tip_window.
3476 (x_create_tip_frame): Use same defaults as X.
3477 (compute_tip_xy): Remove unused variable. Use full screen width.
3478 (Fx_show_tip): Do not double height. Call ShowWindow directly.
3480 * w32term.c (x_after_update_window_line): Doc fix.
3481 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
3483 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
3485 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
3486 for all Windowed systems.
3488 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3490 * msdos.c (IT_clear_screen): If the frame's faces are not yet
3491 realized, use the initial screen colors to clear the screen.
3493 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3495 * textprop.c (Fset_text_properties): Remove unused variables
3496 `unchanged', `prev_changed', `s' and `len'.
3498 * search.c (Freplace_match): Remove unused variable `inslen'.
3500 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
3502 2001-11-22 Jason Rumney <jasonr@gnu.org>
3504 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
3505 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
3506 (my_create_tip_window): New function.
3507 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
3508 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
3510 2001-11-20 Jason Rumney <jasonr@gnu.org>
3512 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
3513 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
3515 * w32fns.c (Vw32_system_coding_system): Remove.
3516 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
3518 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
3520 * fileio.c (Fwrite_region): Move choose_write_coding_system to
3521 after build_annotations.
3523 * syntax.c (describe_syntax): Add dummy arg.
3524 (describe_syntax_1): Update call to describe_vector.
3526 * category.c (describe_category): Add dummy arg.
3527 (describe_category_1): Update call to describe_vector.
3529 * keymap.c (Fdescribe_vector): Add `describer' parameter.
3530 (describe_command, describe_translation): Add dummy second param.
3531 (describe_map): Call elt_describer with two arguments.
3532 (describe_vector_princ): Add `fun' parameter.
3533 Call it instead of the hardcoded `princ'.
3534 (describe_vector): Add arg `args'.
3535 Pass it as a new second argument to elt_describer.
3537 * keymap.h (describe_vector): Update prototype.
3539 * frame.c: Don't include keymap.h any more.
3540 (keys_of_frame): Remove.
3542 * lisp.h (keys_of_frame): Remove declaration.
3544 * emacs.c (main): Don't call `keys_of_frame' any more.
3546 2001-11-14 Andreas Schwab <schwab@suse.de>
3548 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
3549 if defined, 0 otherwise.
3550 (MAP_FAILED): Define if not defined and use it to test mmap failure.
3551 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
3553 2001-11-19 Richard M. Stallman <rms@gnu.org>
3555 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
3557 2001-11-18 Jason Rumney <jasonr@gnu.org>
3559 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
3560 (x_draw_bar_cursor): If the background color of the glyph under
3561 the cursor equals the frame's cursor color, use the glyph's
3562 foreground color for drawing the bar cursor.
3563 (x_after_update_window_line): Clear internal border in different
3565 (w32_set_vertical_scroll_bar): Check for width and height > 0.
3566 (w32_draw_relief_rect): Correct relief by 1 pixel.
3567 (x_set_glyph_string_background_width):
3568 Set extends_to_end_of_line_p if the row's fill_line_p is set and
3569 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
3570 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
3571 if cursor_in_non_selected_windows is false.
3572 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
3573 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
3574 Notice if cursor gets overwritten.
3575 (notice_overwritten_cursor): Renamed from
3576 note_overwritten_text_cursor. Rewritten to take glyph widths
3577 into account, and to take X positions as parameters.
3578 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3579 around call to x_draw_glyphs.
3580 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3581 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3582 color to use for image glyph reliefs.
3583 (x_draw_image_relief): Accept zero tool_bar_button_relief.
3584 (glyph_rect): Remove unused variable `area'.
3586 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
3588 (x_set_internal_border_width): Set frame garbaged when window
3590 (Fx_create_frame): Accept zero tool_bar_button_relief.
3591 (x_clear_image_1, four_corners_best, image_background)
3592 (image_background_transparent): New functions.
3593 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3594 (gs_format): Add `:background' entry.
3595 (lookup_image): Set IMG's background color if specified.
3596 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3598 (x_clear_image_1): Reset `background_valid' and
3599 `background_transparent_valid' fields.
3600 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3601 calculating it here. Set IMG's background_transparent field.
3602 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3603 (enum png_keyword_index): Add PNG_BACKGROUND.
3604 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3605 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3606 (enum gif_keyword_index): Add GIF_BACKGROUND.
3607 (enum gs_keyword_index): Add GS_BACKGROUND.
3608 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3609 Pre-calculate image background color where necessary.
3610 (x_create_x_image_and_pixmap, xbm_load, gs_load):
3611 Use display info's n_cbits entry for screen depth.
3612 (Fx_show_tip): Remove unused variables `buffer', `top',
3613 `left', `max_width' and `max_height'.
3615 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
3617 2001-11-18 Gerd Moellmann <gerd@gnu.org>
3619 * puresize.h (BASE_PURESIZE): Increase to 750000.
3621 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3623 * frame.c (Fframe_live_p): Doc fix.
3625 2001-11-18 Richard M. Stallman <rms@gnu.org>
3627 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
3628 (message_dolog_marker3): New static variables hold three markers.
3629 (syms_of_xdisp): Initialize and staticpro them.
3630 (message_dolog): Use message_dolog_marker1..3 instead of
3631 allocating markers each time. Unchain them when done.
3633 2001-11-17 Richard M. Stallman <rms@gnu.org>
3635 * doc.c (Fsnarf_documentation): Doc fix.
3637 2001-11-17 Andreas Schwab <schwab@suse.de>
3639 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
3641 2001-11-17 Richard M. Stallman <rms@gnu.org>
3643 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
3645 2001-11-17 Jason Rumney <jasonr@gnu.org>
3647 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
3649 2001-11-17 Gerd Moellmann <gerd@gnu.org>
3651 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
3652 with invalid position.
3654 2001-11-16 Richard M. Stallman <rms@gnu.org>
3656 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
3658 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
3659 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
3660 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
3662 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
3664 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3666 * fileio.c (build_annotations): Split off the tail.
3667 (build_annotations_2): New fun. Extracted from build_annotations.
3668 (Fwrite_region): Split the call to build_annotations into two
3669 calls to build_annotations and build_annotations_2.
3671 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3673 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
3674 clear_waiting_for_input with argument.
3676 * xterm.h (x_update_cursor): Remove duplicated prototype.
3678 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
3680 * xterm.c (waiting_for_input): Remove unnecessary declaration.
3682 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
3684 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3686 * fileio.c (choose_write_coding_system): New fun, extracted
3688 (Fwrite_region): Use it.
3690 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
3691 (funcall_lambda, run_hook_with_args): Make static and add prototype.
3692 (ml_apply, find_handler_clause): Add prototype.
3694 2001-11-16 Eli Zaretskii <eliz@gnu.org>
3696 * config.in: Add #undef HAVE_COFF_H.
3698 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
3699 Required for ISC 4.1.
3701 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
3703 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
3704 Andrew Wiseman <a.wiseman@btclick.com>.
3706 2001-11-16 Kim F. Storm <storm@cua.dk>
3708 The following changes are made to clean up the various internal
3709 references to the fringes to actually use the term `fringe' for
3710 them. Previously, they were called `flags areas', `bitmap areas',
3711 `left/right side of windows', or implicitly as `flags' or
3714 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
3715 Comments fixed. Use renamed symbols.
3717 * dispnew.c: Comment fix. Use renamed symbols.
3719 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
3720 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
3721 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
3723 * msdos.c: Comment fix.
3725 * w32fns.c: Use renamed symbols.
3727 * w32term.c: Comment fixes. Use renamed symbols.
3728 (fringe_bitmap_type): Renamed from bitmap_type.
3729 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3730 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
3731 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3733 * w32term.h: Comment fixes. Use renamed symbols.
3734 (fringes_extra): Renamed from flags_areas_extra.
3735 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3736 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3737 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3738 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3739 (FRAME_X_LEFT_FRINGE_WIDTH):
3740 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3741 (FRAME_X_RIGHT_FRINGE_WIDTH):
3742 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3744 * widget.c: Use renamed symbols.
3746 * window.c: Comment fixes. Use renamed symbols.
3747 (coordinates-in-window-p): Doc fix.
3749 * xdisp.c: Comment fixes. Use renamed symbols.
3751 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
3753 * xfns.c: Use renamed symbols.
3755 * xterm.c: Comment fixes. Use renamed symbols.
3756 (fringe_bitmap_type): Renamed from bitmap_type.
3757 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3758 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
3759 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3761 * xterm.h: Comment fixes. Use renamed symbols.
3762 (fringes_extra): Renamed from flags_areas_extra.
3763 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3764 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3765 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3766 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3767 (FRAME_X_LEFT_FRINGE_WIDTH):
3768 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3769 (FRAME_X_RIGHT_FRINGE_WIDTH):
3770 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3772 2001-11-15 Jason Rumney <jasonr@gnu.org>
3774 * w32menu.c (add-menu-item): Make help_echo and radio buttons
3775 work for most menu items. From David Ponce
3776 <david.ponce@wanadoo.fr>.
3778 2001-11-15 Gerd Moellmann <gerd@gnu.org>
3780 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
3781 Some x_set_* function expect to be called even if old and new
3784 * xdisp.c (build_desired_tool_bar_string): Accept zero
3785 tool_bar_button_relief.
3787 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
3789 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
3791 * xterm.c (x_draw_bar_cursor): If the background color of the
3792 glyph under the cursor equals the frame's cursor color, use
3793 the glyph's foreground color for drawing the bar cursor.
3795 * dispnew.c (direct_output_forward_char): Fix character/byte
3796 position comparison.
3798 2001-11-15 Miles Bader <miles@gnu.org>
3800 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
3801 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
3802 Update arguments to find_field.
3803 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
3804 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
3805 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
3806 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
3808 2001-11-14 Richard M. Stallman <rms@gnu.org>
3810 * editfns.c (Fpropertize): Allow call with 1 arg.
3812 * dispextern.h (image_background, image_background_transparent):
3813 Conditionalize on HAVE_X_WINDOWS.
3815 2001-11-13 Richard M. Stallman <rms@gnu.org>
3817 * print.c (Fprin1_to_string): Doc fix.
3819 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
3821 * floatfns.c (Fceiling, Ffloor): Doc fixes.
3823 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
3825 * fileio.c (Ffile_accessible_directory_p): Doc fix.
3827 * eval.c (syms_of_eval): Doc fix.
3829 * coding.c (syms_of_coding): Doc fix.
3831 * doc.c (Fsnarf_documentation): Doc fix.
3833 * dispnew.c (syms_of_display): Doc fix.
3835 * category.c (Fget_unused_category): Doc fix.
3837 * buffer.c (syms_of_buffer): Doc fixes.
3839 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
3841 * print.c (prin1, print): Doc fix.
3843 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3845 * fontset.h: Remove declarations of variables
3846 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
3848 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
3849 `Vclip_large_size_font'.
3851 2001-11-13 Jason Rumney <jasonr@gnu.org>
3853 * w32fns.c: Doc fix.
3855 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3857 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3863 * coding.c: Doc fix.
3865 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
3866 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
3867 `new style' [w/`doc:' keyword].
3869 2001-11-12 Richard M. Stallman <rms@gnu.org>
3871 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
3872 LeaveNotify events. Only FocusIn and FocusOut do that now.
3873 (x_display_and_set_cursor): Do display hollow cursors in active
3874 minibuffer windows when they are not selected.
3876 2001-11-12 Jason Rumney <jasonr@gnu.org>
3878 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3879 * w32term.c: Change doc-string comments to `new style'.
3880 [w/`doc:' keyword]. Doc fixes.
3882 * w32fns.c: Don't define max.
3883 (Fx_open_connection): Only execute once.
3885 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3887 * ccl.c: Change macros to use do-while block instead of if-else.
3888 Use braces to follow GNU Coding Standards.
3890 2001-11-11 Richard M. Stallman <rms@gnu.org>
3892 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
3894 * lread.c (read_escape): Use end_of_file_error for reporting eof.
3896 * insdel.c (replace_range): Use adjust_markers_for_replace
3897 instead of adjust_markers_for_delete and adjust_markers_for_insert.
3899 * intervals.h: Declare set_text_properties and set_text_properties_1.
3901 * textprop.c (set_text_properties_1): New subroutine
3902 broken out of set_text_properties.
3903 (set_text_properties): Use set_text_properties_1.
3905 * intervals.c (graft_intervals_into_buffer):
3906 Use set_text_properties_1 to clear out properties.
3908 * search.c (Freplace_match): Use replace_range to insert
3909 and delete. Don't request property inheritance from
3912 2001-11-10 Jason Rumney <jasonr@gnu.org>
3914 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
3915 vertical fonts. Allow them if face name is explicitly specified.
3916 Do not give up if we find a font that cannot be converted to an xlfd.
3918 2001-11-10 Gerd Moellmann <gerd@gnu.org>
3920 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
3921 instead of malloc/free.
3923 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3925 * xfaces.c (merge_face_vectors): Use braces to follow GNU
3927 (Finternal_set_lisp_face_attribute): Likewise.
3929 * buffer.c (Fbury_buffer): Likewise.
3931 * indent.c (current_column_1): Remove unused variable `prev_col'.
3933 * coding.c (encode_coding): Use precomputed value of `src'.
3934 (encode_coding): Remove unused variable `src_end'.
3935 (code_convert_region): Remove unused variables `count'.
3937 2001-11-07 Jason Rumney <jasonr@gnu.org>
3939 * w32term.c (x_display_and_set_cursor): Do not move system caret
3940 if cursor_glyph is NULL.
3942 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3944 * keymap.c (access_keymap): Fix compilation error.
3946 2001-11-07 Miles Bader <miles@gnu.org>
3948 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
3950 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3952 * intervals.c (graft_intervals_into_buffer):
3953 Remove #ifdef'd-out code.
3954 (graft_intervals_into_buffer): Remove unused variable `middle'.
3956 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
3957 code (eval-current-buffer).
3958 Change doc-string comments to `new style' [w/`doc:' keyword].
3960 2001-11-06 Richard M. Stallman <rms@gnu.org>
3962 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
3964 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
3966 * lread.c (read1): Fix behavior with nested backquoting.
3968 * keyboard.c (make_lispy_event): Check integerness and fix
3969 Lisp_Object/int mixup.
3971 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3973 * fns.c (copy_hash_table): Remove unused variable `v'.
3975 * fontset.c (fontset_font_pattern): Remove unused variable
3978 * indent.c (current_column_1): Remove unused variable `prev_col'.
3980 2001-11-05 Richard M. Stallman <rms@gnu.org>
3982 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
3984 * buffer.c (Fkill_buffer): Don't delete auto save file
3985 if buffer is modified.
3987 2001-11-05 Andrew Innes <andrewi@gnu.org>
3989 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
3992 2001-11-05 Richard M. Stallman <rms@gnu.org>
3994 * unexelf.c (unexec): Minor changes; clean up comments.
3996 2001-11-05 Sam Steingold <sds@gnu.org>
3998 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
4000 2001-11-05 Andreas Schwab <schwab@suse.de>
4002 * sound.c (sound_perror): Save errno from being clobbered.
4004 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
4006 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
4007 the program image directly.
4009 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4011 * buffer.h (Fbuffer_local_value): Add prototype.
4013 2001-11-04 Richard M. Stallman <rms@gnu.org>
4015 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
4018 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
4019 (record_char): Likewise.
4021 * keyboard.c (make_lispy_event): Don't insist a drag event must
4022 move to a different buffer position. Instead, check for moving at
4023 least double_click_fuzz.
4025 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
4027 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
4029 * indent.c (current_column_1, Fmove_to_column): Separate the code
4030 for display-table glyphs from the code buffer text, to fix
4033 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
4035 * buffer.c (Fbuffer_local_value): New function.
4036 (syms_of_buffer): Defsubr it.
4038 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
4039 value of `cursor-in-non-selected-windows'.
4041 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
4042 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
4043 (syms_of_xdisp): Initialize it.
4045 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4047 * xfns.c (Fx_create_frame): Doc fix.
4049 * coding.c: Change doc-string comments to `new style' [w/`doc:'
4052 * eval.c (top_level_value, top_level_set): Remove commented and
4054 (Fdefvar): Fix usage in doc-string.
4056 2001-11-03 Richard M. Stallman <rms@gnu.org>
4058 * xfns.c: Include unistd.h, if it exists.
4060 * editfns.c: Move the include of ctype.h after unistd.h.
4062 * gmalloc.c: Test BROKEN_PROTOTYPES.
4064 2001-11-03 Ken Raeburn <raeburn@gnu.org>
4066 * lisp.h (CHECK_STRING_CAR): New macro.
4067 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
4068 treating XCAR and XCDR as lvalues.
4069 (openp): Use CHECK_STRING_CAR.
4070 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
4072 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
4074 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
4075 (SIGMASKTYPE): Define.
4077 * syssignal.h (sigunblock): Don't define if already defined.
4079 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4081 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
4082 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
4083 Fix typos in comments.
4085 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
4086 and #ifdef'd-out code.
4087 Fix and reindent comments.
4089 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
4091 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
4092 argument `i' in macros.
4094 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
4097 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
4098 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
4099 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
4100 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
4101 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
4102 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
4103 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
4104 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
4107 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
4108 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
4109 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
4110 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
4111 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
4112 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
4113 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
4114 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
4115 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
4116 (remove unused second argument).
4118 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
4120 * syntax.c (describe_syntax): New wrapper.
4121 (Finternal_describe_syntax_value): Rename from describe_syntax.
4122 Don't insert space at front and \n at the end.
4123 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
4125 * regex.c (re_wctype): Try to fix some warnings.
4126 (regcomp, regexec): Don't forget the __restrict.
4128 2001-11-02 Richard M. Stallman <rms@gnu.org>
4130 * textprop.c (Fget_char_property): Doc fix.
4132 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4134 * process.c (Fstart_process): Add usage to doc-string.
4136 * data.c (Fsetq_default): Ditto.
4138 * callint.c (Finteractive): Ditto.
4140 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
4142 * macros.c: Don't include keymap.h any more.
4144 2001-11-01 Richard M. Stallman <rms@gnu.org>
4146 * data.c (Fmake_local_variable): Doc fix.
4148 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
4149 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
4151 * keymap.c (Fdescribe_buffer_bindings): Print character property
4152 bindings along with or instead of the buffer local map.
4153 Make the overriding maps override what they should.
4155 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4157 * window.c (grow_mini_window): Fix typo in comment.
4159 2001-11-01 Gerd Moellmann <gerd@gnu.org>
4161 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
4162 (XTset_vertical_scroll_bar): Likewise.
4164 * xfns.c (x_build_heuristic_mask): Use four_corners_best
4165 instead of IMAGE_BACKGROUND.
4167 * xfns.c (four_corners_best): Reindent.
4169 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4170 Handle :box so that it is possible to specify sexprs.
4172 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
4174 * s/hpux11.h: New file.
4176 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4178 * emacs.c (USAGE1): Show command line option --no-window-system
4179 instead of --no-windows in usage.
4180 (standard_args): Rename --no-windows to --no-window-system.
4181 (bug_reporting_address): Follow Emacs coding conventions.
4183 * eval.c (Fcommandp): Doc fix.
4184 Change doc-string comments to `new style' [w/`doc:' keyword].
4186 * frame.c (Fframe_live_p): Doc fix.
4188 * buffer.c (selective-display-ellipses): Doc fix.
4190 2001-10-31 Gerd Moellmann <gerd@gnu.org>
4192 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
4194 * xfaces.c (realize_x_face): If C is not a single-byte character,
4195 set the face's colors_copied_bitwise_p instead of the defaulted_p
4196 members which have a different meaning.
4197 (free_face_colors): Do nothing for a face whose colors have been
4200 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
4202 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4204 * marker.c, mocklisp.c: Change doc-string comments to `new style'
4207 2001-10-31 Gerd Moellmann <gerd@gnu.org>
4209 * fns.c (require_unwind): Return Lisp_Object.
4211 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4213 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
4214 (last-input-char): Revert doc-string to be the same as the
4215 doc-string of `last-input-event'.
4217 * xdisp.c: Fix typos in comments.
4219 2001-10-31 Gerd Moellmann <gerd@gnu.org>
4221 * window.c (grow_mini_window): Handle case that the root
4222 window is already smaller than the nominal mininum height.
4224 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
4226 * emacs.c (main): Don't call keys_of_macros any more.
4228 * lisp.h (keys_of_macros): Remove.
4230 * macros.c (keys_of_macros): Remove.
4232 * xfaces.c (Fface_attribute_relative_p): Declare args.
4234 2001-10-30 Jason Rumney <jasonr@gnu.org>
4236 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
4237 (enum_font_cb2): Ignore fonts with vertical orientation.
4239 2001-10-30 Richard M. Stallman <rms@gnu.org>
4241 * keyboard.c (Finput_pending_p): Doc fix.
4243 2001-10-30 Gerd Moellmann <gerd@gnu.org>
4245 * xterm.c (x_after_update_window_line): Don't run the code
4246 clearing in borders for rows whose visible height is 0.
4248 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
4249 resized_p flag is set. If not set, use the much less flickering
4250 method previously used.
4252 * dispnew.c (change_frame_size_1): Set frame's resized_p.
4254 * frame.h (struct frame) <resized_p>: New member.
4256 * lread.c (to_multibyte): Ensure read_buffer is at least twice
4257 as large as the number of bytes to convert.
4259 * lread.c (to_multibyte): New function.
4262 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
4264 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
4266 2001-10-30 Gerd Moellmann <gerd@gnu.org>
4268 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
4269 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
4270 if the row's fill_line_p is set and drawing the last glyph with
4271 DRAW_IMAGE_{RAISED,SUNKEN}.
4273 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
4275 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
4277 * xmenu.c: Include coding.h and charset.h.
4278 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
4279 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
4280 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
4281 Explicitly set wv->help. Use `TRUE' rather than `True'.
4282 (menu_help_callback): Use empty_string.
4284 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
4285 (Fx_popup_dialog): Explicitly init f.
4286 (w32_menu_display_help): Use empty_string.
4288 2001-10-29 Richard M. Stallman <rms@gnu.org>
4290 * fns.c (Frequire): Detect recursive try to require the same
4291 feature 3 or more levels deep, and get error.
4292 (require_unwind): New subroutine.
4293 (require_nesting_list): New variable.
4294 (syms_of_fns): Init and staticpro it.
4296 * print.c (print_object): Clarify indication of insertion type.
4298 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
4300 * coding.c (syms_of_coding): Document that locale-coding-system is
4301 used for decoding input on X.
4303 * window.c (Fscroll_left, Fscroll_right): Doc fix.
4305 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4307 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
4308 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
4310 2001-10-29 Gerd Moellmann <gerd@gnu.org>
4312 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
4313 use NO_CURSOR if cursor_in_non_selected_windows is false.
4315 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
4316 the slant attribute if FRAME is t.
4318 * xfns.c (x_set_internal_border_width): Set frame garbaged
4319 when X window doesn't exist yet.
4321 * xterm.c (x_after_update_window_line): Clear internal border
4322 in different circumstances.
4324 * xterm.c (XTread_socket) <KeyPress>: Don't use
4325 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
4328 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4330 * m/ibms390.h: New file. From Adam Thornton
4331 <athornton@sinenomine.net>.
4333 2001-10-28 Gerd Moellmann <gerd@gnu.org>
4335 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
4337 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
4340 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4342 * emacs.c: Use argv[0] instead of emacs when -t was specified.
4344 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
4346 Fix typos in comments.
4348 * emacs.c (bug_reporting_address): New function.
4349 Use it when displaying usage message.
4351 * minibuf.c (read_minibuf): Remove unused external declaration of
4352 variable `Qread_only'.
4354 * keymap.c (access_keymap): Remove unused variable `charset'.
4356 2001-10-28 Miles Bader <miles@gnu.org>
4358 * xfaces.c (merge_face_heights): Handle TO being relative as well.
4359 Remove #ifdef'd-out code.
4360 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
4361 (syms_of_xfaces): Initialize them.
4363 2001-10-27 Jason Rumney <jasonr@gnu.org>
4365 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
4366 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
4367 position using the system caret.
4369 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
4370 (w32_system_caret_height, w32_system_caret_x)
4371 (w32_system_caret_y): New variables for tracking system caret.
4372 (w32_initialize): Initialize them.
4373 (x_display_and_set_cursor): Make system caret follow the active cursor.
4375 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
4378 * w32term.c (note_mouse_highlight): Clear old help_echo.
4380 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4382 * xterm.c: Fix typo in a comment.
4384 * emacs.c: Fix typos in comments.
4385 Remove unnecessary spaces.
4386 Change doc-string comments to `new style' [w/`doc:' keyword].
4387 (USAGE2): Fix typos in usage string.
4389 * xterm.c: Fix typo in a comment.
4391 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
4394 2001-10-27 Gerd Moellmann <gerd@gnu.org>
4396 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
4397 instead of 1/2 line_height in the heuristic for skipping
4398 farther backward when target_y was not reached.
4400 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
4401 Display errno only if non-zero.
4402 (sound_warning): New function.
4403 (vox_configure): Don't treat failing to set sample rate as error.
4404 (various places): Improve error messages.
4406 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
4408 * fileio.c (Faccess_file): Run the argument filename through
4409 Fexpand_file_name, before using it.
4411 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
4412 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
4414 2001-10-26 Gerd Moellmann <gerd@gnu.org>
4416 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
4418 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4419 Fix clearing in the case of scroll bars on the right.
4421 2001-10-26 Juanma Barranquero <lektu@terra.es>
4423 * w32gui.h (XImage): Add a dummy typedef.
4425 2001-10-26 Gerd Moellmann <gerd@gnu.org>
4427 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
4429 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
4431 * frame.c (Fframe_parameter): Fix last change.
4433 * fileio.c: Revert last change (which removed old commented-out
4434 version of expand-file-name). Add a comment that explains why
4435 this old version should not be removed.
4437 2001-10-25 Gerd Moellmann <gerd@gnu.org>
4439 * frame.c (Fframe_parameter): Fix a bug whereby some
4440 ``artificial'' frame parameters, like `minibuffer' were not
4441 obtained by calling Fframe_parameters.
4443 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
4446 * xdisp.c (move_it_vertically_backward): Compute line height
4447 differently. Add heuristic to try to be more compatible to 20.x.
4449 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
4451 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
4453 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
4456 2001-10-25 Miles Bader <miles@gnu.org>
4458 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
4459 BG is a pointer to a structure, not a structure.
4460 (gif_format, png_format): Add missing commas.
4462 2001-10-24 Richard M. Stallman <rms@gnu.org>
4464 * xfaces.c (Fface_attributes_as_vector): New function.
4465 (syms_of_xfaces): Defsubr it.
4467 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4469 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
4472 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4474 * search.c (scan_newline): Remove unused variable `selective_display'.
4476 2001-10-25 Miles Bader <miles@gnu.org>
4478 * dispextern.h (struct image): Add `background',
4479 `background_valid', and `background_transparent' fields.
4480 (image_background, image_background_transparent): New declarations.
4481 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
4482 * xfns.c (image_background, image_background_transparent)
4483 (four_corners_best): New functions.
4484 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
4485 (gs_format): Add `:background' entry.
4486 (lookup_image): Set IMG's background color if specified.
4487 (pbm_load, xbm_load_image, png_load): Set IMG's background field
4489 (x_clear_image_1): Reset `background_valid' and
4490 `background_transparent_valid' fields.
4491 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4492 calculating it here. Set IMG's background_transparent field.
4493 (enum xpm_keyword_index): Add XPM_BACKGROUND.
4494 (enum png_keyword_index): Add PNG_BACKGROUND.
4495 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4496 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4497 (enum gif_keyword_index): Add GIF_BACKGROUND.
4498 (enum gs_keyword_index): Add GS_BACKGROUND.
4499 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
4500 Pre-calculate image background color where necessary.
4501 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4502 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4503 color to use for image glyph reliefs.
4505 2001-10-24 Gerd Moellmann <gerd@gnu.org>
4507 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
4510 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4511 Fix clearing of area not covered by scroll bar.
4513 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4515 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
4517 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
4518 (glyph_rect): Remove unused variable `area'.
4520 2001-10-24 Gerd Moellmann <gerd@gnu.org>
4522 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
4524 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
4525 (row_containing_pos): Take additional argument DY.
4526 Treat rows ending in middle of char differently.
4527 (display_line): Handle tabs on window systems differently.
4529 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
4530 with additional argument.
4532 * dispextern.h (row_containing_pos): Adjust prototype.
4534 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
4535 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
4536 (try_window_id, try_window_reusing_current_matrix)
4537 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
4538 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
4540 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4542 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
4544 (HAVE_BOXES): Fix typo in comment.
4545 (push_menu_pane): Fix typo in comment.
4547 * xdisp.c: (display_prop_string_p): Remove unused local declaration
4549 (single_display_prop_string_p): Remove unused local declarations
4550 of `Qwhen' and `Qmargin'.
4551 (string_buffer_position): Remove unused variable `around'.
4552 (store_frame_title): Remove unused variable `width'.
4554 * window.c: Don't define max.
4555 (coordinates_in_window): Remove unused variable `uy'.
4557 * widget.c: Don't define max.
4559 * process.c: Don't define max.
4560 (create_process): Remove unused variable `buffer'.
4562 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4564 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
4566 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
4568 * xfaces.c (Finternal_set_lisp_face_attribute)
4569 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
4570 frame is on a windowed display.
4572 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4574 * dispnew.c (sync_window_with_frame_matrix_rows):
4575 Fix handling of windows which aren't full-width, fix handling
4578 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
4580 2001-10-23 Andreas Schwab <schwab@suse.de>
4582 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
4583 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
4585 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4587 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
4588 REAL_END. Notice if cursor gets overwritten.
4589 (notice_overwritten_cursor): Take X positions as parameters.
4590 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4591 around call to x_draw_glyphs.
4593 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4595 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
4596 instead of C) and usage.
4598 * editfns.c (char-to-string): Fix argument names (use CHAR instead
4601 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
4602 `left', `max_width' and `max_height'.
4604 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4606 * xdisp.c (display_line): For a tab continued to the next line,
4607 set row's ends_in_middle_of_char_p.
4609 2001-10-22 Gerd Moellmann <gerd@gnu.org>
4611 * xdisp.c (display_line): Fix computation of continuation lines
4614 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4616 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
4619 * fileio.c: Remove unused code.
4621 2001-10-22 Miles Bader <miles@gnu.org>
4623 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
4624 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
4625 Remove `DOC_STRINGS_IN_COMMENTS' cases.
4627 2001-10-21 Jason Rumney <jasonr@gnu.org>
4629 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
4631 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4633 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
4634 (Finsert_string): Avoid the multi-line string literals warning.
4636 2001-10-22 Miles Bader <miles@gnu.org>
4638 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
4639 (Fdocumentation): Don't use it.
4640 (syms_of_doc): Don't initialize it.
4642 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
4643 * print.c (Fwith_output_to_temp_buffer): Likewise.
4644 * window.c (Fsave_window_excursion): Likewise.
4645 * editfns.c (Fsave_excursion, Fsave_current_buffer)
4646 (Fsave_restriction): Likewise.
4647 * eval.c (Frun_hooks, Frun_hook_with_args)
4648 (Frun_hook_with_args_until_failure)
4649 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
4650 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
4651 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
4652 (Funwind_protect, Fcondition_case): Likewise.
4653 * coding.c (Ffind_operation_coding_system): Likewise.
4654 * keyboard.c (Ftrack_mouse): Likewise.
4656 2001-10-21 Miles Bader <miles@gnu.org>
4658 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
4659 (Fmake_hash_table): Add usage: string to doc string.
4660 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
4661 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
4662 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
4663 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
4664 (Fml_prefix_argument_loop): Likewise.
4666 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4668 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
4670 * sysdep.c (init_sys_modes): Change doc-string comments to `new
4671 style' [w/`doc:' keyword].
4673 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
4674 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
4675 comments to `new style' [w/`doc:' keyword].
4677 2001-10-21 Jason Rumney <jasonr@gnu.org>
4679 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
4681 * w32term.c (remember_mouse_glyph): New function.
4682 (w32_mouse_position): Use it.
4683 (note_mouse_movement): If the mouse moved off the glyph, remember
4686 * w32term.h (struct w32_output): Correct spelling of x_compatible.
4687 (w32_display_info): Add mouse_face_overlay.
4689 * w32term.c (notice_overwritten_cursor): Renamed from
4690 note_overwritten_text_cursor. Rewritten to take glyph widths into
4692 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4693 (fast_find_string_pos): New function.
4694 (fast_find_position): Return the correct vpos. Add parameter
4695 STOP. In the final row, stop before glyphs having STOP as object.
4696 Don't consider glyphs that are not from a buffer.
4697 (fast_find_position) [0]: Add a presumably more correct version
4699 (expose_window_tree, expose_frame): Don't compute intersections here.
4700 (expose_window): Do it here instead.
4701 (expose_window_tree, expose_window, expose_line): Return 1 when
4702 overwriting mouse-face.
4703 (expose_window): If W is the window currently being updated, mark
4705 (expose_frame): If mouse-face was overwritten, redo it.
4706 (x_use_underline_position_properties): New variable.
4707 (syms_of_xterm): DEFVAR_BOOL it.
4708 (x_draw_glyph_string): Add comment to use it in future.
4709 (x_draw_glyph_string): Restore clipping after drawing box.
4710 Fix a computation of the underline position.
4711 (w32_get_glyph_string_clip_rect): Minor cleanup.
4712 (x_fill_stretch_glyph_string): Remove an assertion.
4713 (x_produce_glyphs): Don't convert multibyte characters
4714 to unibyte characters in unibyte buffers.
4715 (cursor_in_mouse_face_p): New function.
4716 (x_draw_stretch_glyph_string): Use it to choose a different GC
4717 when drawing a cursor within highlighted text. Don't draw
4718 background again if it has already been drawn.
4719 (x_draw_glyph_string_box): Don't draw a full-width
4720 box just because the glyph row's full_width_p flag is set.
4721 (x_draw_glyphs): Fix computation of rightmost x for
4723 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4724 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
4725 change bottom shadow accordingly. Some cleanup.
4726 (x_update_window_end): Handle overwritten mouse face
4727 also for tool bar windows.
4728 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4729 DRAW is DRAW_IMAGE_RAISED.
4730 (clear_mouse_face): Return 1 if text with mouse face was
4731 actually redrawn. Make the function static. Reset
4732 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
4733 optimize away highlighting if we pass over that same overlay again.
4734 (note_mouse_highlight): Call mouse_face_overlay_overlaps
4735 to detect a case where we have to highlight a different region
4736 despite not having left the currently highlighted region.
4737 Set mouse_face_overlay in the x_display_info. Avoid changing the
4738 mouse pointer shape when show_mouse_face has already done it, or
4739 there is no need. Handle mouse-face and help-echo in strings.
4740 (glyph_rect): New function.
4741 (w32_mouse_position): Use it to raise the threshold for mouse
4742 movement event generation.
4743 (w32_initialize_display_info): Initialize the x_display_info's
4745 (w32_set_vertical_scroll_bar): Don't clear a zero height
4747 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4748 a widget to zero height.
4750 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4751 Protect unibyte strings created by replacing their multibyte
4752 equivalents in menu_items.
4753 (w32_menu_show): Don't overwrite an item's name with its key
4754 description in case the description is a multibyte string.
4755 (single_submenu): Some cleanup.
4757 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
4758 (postprocess_image): New function.
4759 (lookup_image): Call it for all image types except PostScript.
4760 (x_kill_gs_process): Call postprocess_image.
4761 (tiff_error_handler, tiff_warning_handler): New functions.
4762 (tiff_load): Install them as handlers.
4763 (x_kill_gs_process): Recognize if someone has cleared the image
4765 (valid_image_p): Protect better against invalid image
4766 specifications. Previous code could signal an error.
4767 (Fx_hide_tip, Fshow_tip): Doc fix.
4768 (Fv_max_tooltip_size): New variable.
4769 (syns_of_xfns): DEFVAR_LISP it.
4770 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
4771 window buffer to *tip* right after creating the frame. Set frame's
4772 window_width. Use a maximum tooltip size specified by
4773 Vx_max_tooltip_size, if that has valid contents.
4774 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4775 Make sure the tooltip is completely visible.
4776 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4777 (Fx_create_frame): Adjust the frame's height for presence
4778 of the tool bar before calling x_figure_window_size.
4779 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
4780 when the window gets smaller.
4781 (x_set_foreground_color): Set frame's cursor_pixel.
4782 (x_set_foreground_color, x_set_background_color): Cleaned up.
4783 (x_set_font): Handle case of x_new_fontset returning the same name
4784 as before, although there was a change in fontsets.
4786 2001-10-21 Miles Bader <miles@gnu.org>
4788 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
4789 (Flogxor): Add usage: string to doc string.
4790 * charset.c (Fstring): Likewise.
4791 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
4792 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
4794 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4796 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
4798 * alloc.c: Reindent DEFUNs with doc: keywords.
4800 * abbrev.c (Finsert_abbrev_table_description): Reindent.
4802 * frame.c: Change doc-string comments to `new style' [w/`doc:'
4805 See ChangeLog.9 for earlier changes.
4808 ;; coding: iso-2022-7bit
4811 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4812 Copying and distribution of this file, with or without modification,
4813 are permitted provided the copyright notice and this notice are preserved.