X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/979a8abc6981aab3f6c963ed050f97f3b593b065..ca45961da55a3dd2b1705ab449b6adb76baa0bea:/src/ChangeLog diff --git a/src/ChangeLog b/src/ChangeLog index 06186f52ec..086c5463c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,826 @@ +2002-08-31 Kim F. Storm + + * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed. + (get_window_cursor_type): Don't use them. + (syms_of_xdisp): Remove intern, staticpro, and defvar for them. + +2002-08-30 Andrew Choi + + * macterm.c (expose_overlaps): New function (merge code from + xterm.c). + (expose_window): Use it to fix the display of overlapping + rows (merge code from xterm.c). + + * macfns.c (Qbox): Add extern declaration. + +2002-08-30 Juanma Barranquero + + * w32fns.c (Qbox): Make extern. + (syms_of_w32fns): Remove initialization of Qbox. + + * xfns.c (Fx_open_connection): Fix error message. Patch from Rune + Kleveland . + +2002-08-30 Kim F. Storm + + The following changes consolidates the handling of the cursor + type in xdisp.c, moving duplicate code and functionality from + xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c. + + * frame.h (enum text_cursor_kinds): Consolidated here. + Added DEFAULT_CURSOR value. + (struct frame) + : New fields. + Consolidated from output_x, output_w32 and output_mac structs. + (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR) + (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here. + + * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist): + Variables consolidated here. + (Valternate_cursor_type, Qalternate_cursor_type): New variables. + (Vcursor_in_non_selected_windows): Renamed from + cursor_in_non_selected_windows and changed to Lisp_Object. + (syms_of_xdisp): Define and staticpro new and moved variables. + (get_specified_cursor_type): Renamed from x_specified_cursor_type; + consolidated here. Recognize Qhollow setting. + (set_frame_cursor_types): New function to set frame cursor types + based on the frame parameters. + (get_window_cursor_type): New function to calculate new cursor + type and width for the specified window. Based on duplicated + code consolidated here. + Enhancements: cursor-in-non-selected-windows may be a cursor type, + check buffer-local alternate-cursor-type and blink-cursor-alist + before using built-in blink off methods. + + * dispextern.h (cursor_in_non_selected_windows): Extern removed. + + * lisp.h (Qcursor_in_non_selected_windows): Extern removed. + (get_specified_cursor_type, get_window_cursor_type) + (set_frame_cursor_types): Added prototypes. + + * macfns.c (x_specified_cursor_type): Removed. + (x_set_cursor_type): Use set_frame_cursor_types. + (Qbar, Qbox): Removed. + (syms_of_macfns): Don't intern or staticpro them. + + * macterm.c (x_specified_cursor_type): Remove prototype. + (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH. + (x_display_and_set_cursor): Use get_window_cursor_type. + Remove unused local variables cursor_non_selected, active_cursor. + Redraw cursor if hbar cursor width changes. + (make_mac_frame): Set FRAME_DESIRED_CURSOR. + + * macterm.h (enum text_cursor_kinds): Removed. + (struct output_mac) + : Members removed. + (FRAME_DESIRED_CURSOR): Macro removed. + + * w32fns.c (Vblink_cursor_alist): Removed. + (Qbar, Qhbar, Qbox, Qhollow): Removed. + (syms_of_w32fns): Don't intern, staticpro, or define them. + (x_specified_cursor_type): Removed. + (x_set_cursor_type): Use set_frame_cursor_types. + + * w32term.c (x_specified_cursor_type): Remove prototype. + (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH. + (x_display_and_set_cursor): Use get_window_cursor_type. + Remove unused local variables cursor_off_state. + Redraw cursor if hbar cursor width changes. + Changed all occurrences of w32_highlight_frame to x_highlight_frame. + + * w32term.h (enum text_cursor_kinds): Removed. + (struct output_w32) + : Members removed. + (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR) + (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed. + (struct w32_display_info) : Renamed member from + w32_highlight_frame. + + * xfns.c (Vblink_cursor_alist): Removed. + (Qbar, Qhbar, Qbox, Qhollow): Removed. + (syms_of_xfns): Don't intern, staticpro, or define them. + (x_specified_cursor_type): Removed. + (x_set_cursor_type): Use set_frame_cursor_types. + + * xterm.c (x_specified_cursor_type): Remove prototype. + (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH. + (x_display_and_set_cursor): Use get_window_cursor_type. + Remove unused local variables cursor_off_state. + Redraw cursor if hbar cursor width changes. + + * xterm.h (enum text_cursor_kinds): Removed. + (struct output_x) + : Members removed. + (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR) + (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed. + (x_specified_cursor_type): Remove prototype. + +2002-08-28 Richard M. Stallman + + * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and + FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist. + (Vblink_cursor_alist): New variable. + (syms_of_w32fns): Initialize and defvar it. + (x_specified_cursor_type): Recognize Qbox for filled box. + Exceptions are hollow boxes. + (Qbox, Qhollow): New variables. + (syms_of_w32fns): Initialize and staticpro them. + + * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH): + New macros. + (struct w32_output): New fields blink_off_cursor, blink_off_cursor_width. + (FRAME_CURSOR_WIDTH): New macro. + + * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR + and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off. + + * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH + for bar cursor. + + * w32term.c (expose_overlaps): New function. + (expose_window): Use it to fix the display of overlapping rows. + +2002-08-28 Simon Josefsson + + * xfns.c (Fx_open_connection): Improve help when X connection + fails, xhost is insecure and xauth is better. + +2002-08-28 Juanma Barranquero + + * makefile.w32-in: Add missing dependencies on w32term.h and + composite.h. + + * emacs.c (USAGE1): Add missing newline. + +2002-08-27 Andrew Choi + + * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO. + +2002-08-27 Richard M. Stallman + + * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and + FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist. + (Vblink_cursor_alist): New variable. + (syms_of_xfns): Initialize and defvar it. + (x_specified_cursor_type): Recognize Qbox for filled box. + Exceptions are hollow boxes. + (Qbox, Qhollow): New variables. + (syms_of_xfns): Initialize and staticpro them. + + * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH): + New macros. + (struct x_output): New fields blink_off_cursor, blink_off_cursor_width. + + * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR + and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off. + + * emacs.c (main): Handle --script. + (USAGE1): Mention --script. + (standard_args): Define sort order for --script. + +2002-08-27 Gerd Moellmann + + * xdisp.c (redisplay_updating_p): Variable removed. + (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New + variables. + (init_iterator): Don't free realized faces if + inhibit_free_realized_faces is set. + (redisplay_internal): Bind Qinhibit_free_realized_faces to nil. + (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces, + initialize Qinhibit_free_realized_faces. + + * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces + when iterator is adding glyphs to a glyph matrix. + +2002-08-27 Kenichi Handa + + * xdisp.c (get_next_display_element): In unibyte case, don't use + octal form for such eight-bit characters that can be converted to + multibyte char. + +2002-08-26 Kim F. Storm + + * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize + foreground and background colors. From Joe Buehler (tiny change). + +2002-08-26 Miles Bader + + * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it. + +2002-08-25 Andrew Choi + + * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is + defined instead of MAC_OSX. + + * s/darwin.h (select): Define select to sys_select only if + HAVE_CARBON is defined. + (HAVE_WORKING_VFORK): #undef it. Define vfork to fork. + (DONT_REOPEN_PTY): #def it. + + * macterm.c (XTread_socket): Remove code to call + SendEventToEventTarget for keys with command modifiers when + mac_command_key_is_meta is nil. + +2002-08-24 Andreas Schwab + + * eval.c (Fdefvar): Fix last change. + +2002-08-23 Richard M. Stallman + + * eval.c (Fdefvar, Fdefconst, Fdefvaralias): + Record variables in load history as (defvar . VAR). + (Fdefvar): Don't record in load history if no initial value. + (Qdefvar): New variable. + (syms_of_eval): Init and staticpro it. + + * lread.c (syms_of_lread): Doc fix. + (build_load_history): Use Fmember to see if a definition + is already in the Vload_history element. + + * process.c (Fstart_process): Remove /: from program name. + + * emacs.c (decode_env_path): Don't add /: if file name handler + has a `safe-magic' property. + + * callproc.c (Fcall_process): Remove /: from program name. + +2002-08-23 Stefan Monnier + + * regex.c (PATFETCH): Remove the translating fetch. + (PATFETCH_RAW): Rename to PATFETCH. + (set_image_of_range): New fun. + (SET_RANGE_TABLE_WORK_AREA): Use it. + (regex_compile): Don't translate the pattern chars so eagerly. + Only do it when inserting an `exactn' bytecode or when handling + a char-range. + (mutually_exclusive_p): Avoid empty statement. + +2002-08-22 Kim F. Storm + + * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we + end up on a partially visible line; this reverts a specific part + of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty + display error which has been reported several times now. + However it introduces the problem that changes was supposed to fix. + See my comments in the source if you want to debug this further. + +2002-08-20 Kenichi Handa + + * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. + +2002-08-19 Eli Zaretskii + + * msdos.c (croak): Add `void' to definition. + + * sysdep.c [MSDOS]: Don't define request_sigio and + unrequest_sigio, they are defined on msdos.c. + + * mem-limits.h [MSDOS]: Declare etext. + + * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg' + `const' since CORRECT_DIR_SEPS modifies its target. + +2002-08-19 Kim F. Storm + + * keyboard.c (Fclear_this_command_keys): Added optional arg + KEEP-RECORD to avoid clearing lossage when we just want to clear + the current key sequence (kmacro needs this). + +2002-08-19 Kenichi Handa + + * composite.c (run_composition_function): Call FUNC if it is + fboundp. + + * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a + cons, return Qnil. + +2002-08-17 Richard M. Stallman + + * s/sol2-5.h (BROKEN_SIGIO): Add #undef. + + * sysdep.c [!VMS]: Include sys/files.h. + + * editfns.c (save_restriction_restore): Defend from unchained marker. + + * buffer.c (overlays_at): Handle extending vec uniformly. + (overlays_in): Handle extending vec from length 0 as in overlays_at. + +2002-08-15 Andrew Choi + + * mac.c (init_mac_osx_environment): New function. + + * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment. + +2002-08-14 Kim F. Storm + + * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit + executing macro before appending to it (when used from Lisp). + (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function + which is called prior to each iteration of macro (for kmacro.el). + (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise. + + * lisp.h (Fexecute_kbd_macro): Update prototype. + + * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro. + +2002-08-14 Kenichi Handa + + * xselect.c (QUTF8_STRING): New variable. + (symbol_to_x_atom): Pay attention to QUTF8_STRING. + (x_atom_to_symbol): Likewise. + (x_get_local_selection): New argument local_request. If it is + nonzero, call handler_fn with the second arg nil. + (x_handle_selection_request): Call x_get_local_selection with + local_request 0. + (lisp_data_to_selection_data): Don't encode the string here. + (Fx_get_selection_internal): Call x_get_local_selection with + local_request 1. + (syms_of_xselect): Intern and staticpro QUTF8_STRING. + + * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING. + + * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING. + +2002-08-13 Richard M. Stallman + + * minibuf.c (Fminibufferp): New function. + (syms_of_minibuf): Defsubr it. + (Fminibuffer_prompt_end): Handle non-minibuffers specially. + +2002-08-13 Gerd Moellmann + + * coding.c (Funencodable_char_position): Lisp_Object/int mixup. + +2002-08-12 Richard M. Stallman + + * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H. + [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED) + (WSTOPSIG, WTERMSIG): Define each one independently if not defined + already. + + * buffer.c (syms_of_buffer) : Doc fix. + +2002-08-11 Andrew Choi + + * macterm.c (XTmouse_position): Check wp with is_emacs_window. + (Vmac_pass_command_to_system): New variable. + (Vmac_pass_control_to_system): New variable. + (do_mouse_moved): Check wp with is_emacs_window. + (XTread_socket): Check window_ptr with is_emacs_window. Call + FrontNonFloatingWindow instead of FrontWindow. Send keydown + events back to Mac Toolbox for processing, depending on values of + Vmac_pass_command_to_system and Vmac_pass_control_to_system. + (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and + Vmac_pass_control_to_system. + +2002-08-10 Kenichi Handa + + * coding.c (unencodable_char_position): New function. + (Funencodable_char_position): New function. + (syms_of_coding): Defsubr Funencodable_char_position. + +2002-08-10 Andrew Choi + + * mac.c (sys_select) [MAC_OSX]: New function. + + * macterm.c (MakeMeTheFrontProcess): New function. + (mac_initialize): Call MakeMeTheFrontProcess. + + * s/darwin.h: Define select to sys_select. + +2002-08-09 Richard M. Stallman + + * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT. + +2002-08-09 Gerd Moellmann + + * xdisp.c (forward_to_next_line_start): Return 0 when reaching the + end of the buffer. + +2002-08-08 Ken Raeburn + + * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int + mixup. + + * puresize.h (BASE_PURESIZE): Increase to 910000. + +2002-08-08 Kenichi Handa + + * coding.c (Ffind_operation_coding_system): For write-region, if + VISIT is a filename, make it the target. + +2002-08-07 Richard M. Stallman + + * alloc.c (mark_object): Detect long lists for debugging. + (mark_object_loop_halt): New variable. + + * s/hpux10.h (C_SWITCH_SYSTEM): #undef it. + + * data.c (Fmake_variable_frame_local): Doc fix. + +2002-08-01 David Ponce + + * w32menu.c (local_heap, local_alloc, local_free): New macros. + (malloc_widget_value, free_widget_value) + (w32_free_submenu_strings): Use them. + + (push_submenu_start, push_submenu_end, push_left_right_boundary) + (push_menu_pane, push_menu_item, single_keymap_panes) + (single_menu_item, Fx_popup_menu, menubar_selection_callback) + (single_submenu, set_frame_menubar) + (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE. + + (Fx_popup_menu): Don't show pop up menu until preceding one is + actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block. + + * w32menu.c: Changes adapted from xmenu.c + (set_frame_menubar): First parse all submenus, + then make widget_value trees from them. + Don't allocate any widget_value objects + until we are done with the parsing. + (parse_single_submenu): New function. + (digest_single_submenu): New function. + (single_submenu): Function deleted, replaced by those two. + +2002-08-04 Andrew Choi + + * macterm.c (XTread_socket): Check that FrontNonFloatingWindow + returns a valid window pointer before proceeding for keyDown and + autoKey events. + +2002-08-03 Andrew Choi + + * macterm.c (USE_CARBON_EVENTS): New macro. + (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros. + (x_iconify_frame): Call CollapseWindow. + (Vmac_reverse_ctrl_meta): New variable. + (Vmac_wheel_button_is_mouse_2): New variable. + (init_mac_drag_n_drop): New function. + (mac_do_receive_drag): New function. + (mac_handle_service_event): New function. + (init_service_handler): New function. + (mac_to_emacs_modifiers): New function. + (mac_event_to_emacs_modifiers): New function. + (mac_get_mouse_btn): New function. + (mac_convert_event_ref): New function. + (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent, + SendEventToEventTarget, mac_event_to_emacs_modifiers, and + mac_get_mouse_btn. + (mac_initialize): Call init_mac_drag_n_drop and + init_service_handler. + + * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and + lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT. + (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and + TOOL_BAR_EVENT for MAC_OS as well. + (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well + as for WINDOWS_NT. + (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX. + + * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for + MAC_OSX. + +2002-08-03 Gerd Moellmann + + * xdisp.c (forward_to_next_line_start): Fix a condition that + lead to a newline being skipped. + +2002-08-02 Andrew Choi + + * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p. + +2002-08-01 Richard M. Stallman + + * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o. + +2002-07-31 Andrew Choi + + * macfns.c: #undef init_process before #define-ing it. + + * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if + HAVE_CARBON is defined. + +2002-07-31 Richard M. Stallman + + * xmenu.c (set_frame_menubar): First parse all submenus, + then make widget_value trees from them. + Don't allocate any widget_value objects + until we are done with the parsing. + (parse_single_submenu): New function. + (digest_single_submenu): New function. + (single_submenu): Function deleted, replaced by those two. + +2002-07-30 Juanma Barranquero + + * w32proc.c (syms_of_ntproc): Fix docstring of + `w32-get-true-file-attributes'. + +2002-07-28 Richard M. Stallman + + * s/hpux8.h (HPUX8): Define this before including hpux.h. + (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide. + + * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8. + + * keyboard.c (make_lispy_event): + Use #ifdef to test USE_TOOLKIT_SCROLL_BARS. + Explicitly clear up_modifier in event->modifiers. + +2002-07-27 Richard M. Stallman + + * xterm.h (FRAME_CURSOR_WIDTH): New macro. + + * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH + for bar cursor. + +2002-07-26 Kenichi Handa + + * coding.c (detect_coding_iso2022): While checking a byte sequence + for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check + it in the normal loop. + +2002-07-24 Gerd Moellmann + + * xterm.c (expose_overlaps): New function. + (expose_window): Use it to fix the display of overlapping rows. + + * xdisp.c (unwind_redisplay): Clear redisplay_updating_p. + +2002-07-23 Ken Raeburn + + * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well, + since it only depends on XUINT. + + * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT, + EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS, + PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR): + Macros deleted. + + * mem-limits.h (start_of_data): If DATA_START is defined, prefer + its value over other approaches. + * sysdep.c (start_of_data): Don't define the function if a macro + form has been defined. + +2002-07-23 Gerd Moellmann + + * xdisp.c (redisplay_updating_p): New variable. + (init_iterator): Don't free realized faces when + redisplay_updating_p is set. + (redisplay_internal): Set redisplay_updating_p while updating + the display. + +2002-07-23 Richard M. Stallman + + * editfns.c (Fmessage): Treat "" like nil. + +2002-07-23 Kenichi Handa + + * xdisp.c (face_before_or_after_it_pos): Call + FETCH_MULTIBYTE_CHAR with byte postion, not char position. + +2002-07-22 Juanma Barranquero + + * callproc.c (init_callproc) [DOS_NT]: Initialize + Vshared_game_score_directory to nil. + (syms_of_callproc) [DOS_NT]: Likewise. + +2002-07-22 Gerd Moellmann + + * xdisp.c (display_line): Replace an abort with xassert. + +2002-07-21 Richard M. Stallman + + * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED + and END_UNCHANGED when setting buffer_unchanged_p. + Use current_matrix_up_to_date_p to decide whether to use + try_cursor_movement. + + * config.in (HAVE_SHARED_GAME_DIR): Undef deleted. + + * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in. + + * callproc.c (init_callproc): Set up Vshared_game_score_directory. + Set to nil if dir does not exist. + (syms_of_callproc): Init unconditionally and simply. + + * buffer.c (Fbuffer_list): Doc fix. + +2002-07-21 Ken Raeburn + + * sysdep.c (end_of_text, end_of_data): Unused functions deleted. + + * buffer.c (mmap_realloc): When shrinking, make sure number of + pages to unmap is rounded towards zero. + + * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted. + (XSETINT): Deleted. + + * m/att3b.h (XINT): Don't define. + (VALBITS, VALMASK, XTYPE): Deleted. + (DATA_SEG_BITS): Define. + * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET, + ARRAY_MARK_FLAG): Deleted. + (DATA_SEG_BITS): Define. + * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted. + (DATA_SEG_BITS): Define. + +2002-07-20 Richard M. Stallman + + * print.c (print_error_message): New args CONTEXT and CALLER. + Calls changed. + + * lisp.h (print_error_message): Declare new args. + + * keyboard.c (cmd_error_internal): Pass Vsignaling_function + and CONTEXT to print_error_message, don't print them here. + For a Quit, don't use Vsignaling_function. + Call message_log_maybe_newline. + + * Makefile.in (xsmfns.o): Don't depend on lisp.h. + +2002-07-20 Kim F. Storm + + * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p. + +2002-07-19 Ken Raeburn + + * bytecode.c (struct byte_stack): Pointers into byte string now + point to const. + * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to + const. + * charset.h (BCOPY_SHORT): Source pointer now points to const. + * coding.c (encode_eol, detect_coding, detect_eol): + (decode_coding, encode_coding, detect_coding_system): Source + strings now treated as const. + (decode_coding_string, encode_coding_string): Use STRING_COPYIN to + modify Lisp string contents. + * coding.h (decode_coding, encode_coding, detect_coding, + detect_eol): Declarations updated. + * composite.c (compose_chars_in_text): Treat Lisp string contents + as const. + * dispnew.c (safe_bcopy): Source pointer now points to const. + * lisp.h (STRING_COPYIN): New macro. + (detect_coding_system, safe_bcopy, temp_output_buffer_setup): + (internal_with_output_to_temp_buffer): Declarations updated. + * print.c (temp_output_buffer_setup): + (internal_with_output_to_temp_buffer): Buffer name argument is now + pointer to const. + * sound.c (struct sound_device): Function pointer field "write" + buffer argument now points to const. + (vox_write): Buffer argument points to const. + * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string + contents as const. + * sysdep.c (emacs_write): Buffer pointer now const. + * term.c (encode_terminal_code): Buffer pointer now const. + * xfaces.c (may_use_scalable_font_p): Argument now points to + const. + (x_face_list_fonts, x_update_menu_appearance): + (hash_string_case_insensitive): Treat Lisp string contents as + const. + +2002-07-19 Juanma Barranquero + + * fileio.c (Ffile_name_as_directory): Fix argument name in docstring. + (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP. + + * xdisp.c (syms_of_xdisp): Remove redundant deprecation info. + + * fileio.c (syms_of_fileio): Likewise. + +2002-07-18 Richard M. Stallman + + * data.c (Fdefalias): Doc fix. + +2002-07-17 Dave Love + + * intervals.h (text_property_stickiness): Use P_. + + * ccl.c: Remove `emacs' conditionals. + (ccl_backtrace_table): Fix size spec. + (ccl_driver): Fix type errors. + +2002-07-16 Ken Raeburn + + * alloc.c (xstrdup, make_string, make_unibyte_string) + (make_multibyte_string, build_string): String pointer args now + point to const. + * charset.c (find_charset_in_text, c_string_width): + (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte): + * fileio.c (report_file_error): + * insdel.c (copy_text, count_size_as_multibyte, insert_1): + (count_combining_before, count_combining_after, insert_1_both): + (insert, insert_and_inherit, insert_string): + (insert_before_markers, insert_before_markers_and_inherit): + * lread.c (intern, oblookup, hash_string): + * minibuf.c (temp_echo_area_glyphs): + * search.c (fast_c_string_match_ignore_case): + * sysdep.c (emacs_open, set_file_times): + * xfaces.c (xstricmp): + * xdisp.c (store_frame_title, string_char_and_length): + (message_dolog, message2, message2_nolog, set_message): Likewise. + (set_message_1): Cast message string argument to const pointer. + * editfns.c (general_insert_function): Insertion function now + takes pointer to const for input data. + * charset.h (find_charset_in_text, c_string_width): + (parse_str_as_multibyte): Declarations updated. + * dispextern.h (xstricmp): Declaration updated. + * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text): + (count_size_as_multibyte, count_combining_before): + (count_combining_after, insert_1, insert_1_both, message_dolog): + (insert, insert_and_inherit, insert_before_markers) + (insert_before_markers_and_inherit, set_message, message2): + (message2_dolog, build_string, make_string, make_unibyte_string): + (make_multibyte_string, intern, oblookup, report_file_error): + (fast_c_string_match_ignore_case, temp_echo_area_glyphs): + (emacs_open, xstrdup): Declarations updated. + * systime.h (set_file_times): Declaration updated. + + * charset.c (find_charset_in_text, lisp_string_width): Use const + for pointer to lisp string data. + * charset.h (FETCH_STRING_CHAR_ADVANCE): + (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): + * coding.c (Ffind_coding_systems_region_interval): + * fileio.c (Ffile_name_directory, Ffile_name_nondirectory): + (Fmake_directory_internal, Fdelete_directory): + (Ffile_name_absolute_p, Fwrite_region, double_dollars): + * fontset.c (font_family_registry, fs_query_fontset): + (list_fontsets): + * frame.c (Fframe_parameter): + * keyboard.c (cmd_error_internal): + * keymap.c (Fdescribe_buffer_bindings): + * lread.c (complete_filename_p, openp): + * minibuf.c (Fminibuffer_complete_word): + * xdisp.c (string_pos_nchars_ahead, init_from_display_pos): + (face_before_or_after_it_pos, next_element_from_string): + (get_overlay_arrow_glyph_row, display_mode_element): + (decode_mode_spec_coding): + * xterm.c (same_x_server): Likewise. + + * buffer.c (reset_buffer_local_variables): Delete "#if 0" + settings of non-existent fields. + + * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to + copy a lisp value. + + * lread.c (Fintern_soft): Use string macros instead of + Lisp_String fields. + * keyboard.c (echo_char, parse_modifiers_uncached): + (parse_solitary_modifier, Fexecute_extended_command): Likewise. + * textprop.c (validate_interval_range, interval_of): Likewise. + + * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data. + + * charset.h (FETCH_STRING_CHAR_ADVANCE) + (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of + XSTRING()->size_byte. + + * lisp.h (SDATA, SREF): Produce rvalue. + (SSET): New macro. + * alloc.c (make_event_array): Use SSET for storing into a string. + * buffer.c (Fother_buffer): Use SREF when retrieving a byte from + a string. + * casefiddle.c (casify_object): Use SSET. + * charset.h (FETCH_STRING_CHAR_ADVANCE) + (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting + address of string contents. + * data.c (Faref): Use SDATA. + (Faset): Use SDATA, SSET. + * dired.c (directory_files_internal): Use SSET. + * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET. + (Fread_file_name): Use SREF, SSET. + * fns.c (concat): Use SSET. + (concat, Fdelete): Use SDATA. + * insdel.c (insert_from_string_1): Use SDATA. + * keyboard.c (Fevent_convert_list): Use SREF. + * lread.c (Fload): Use SDATA, SSET. + * macfns.c (validate_x_resource_name): Use SSET. + * process.c (status_message): Use SSET. + * search.c (wordify): Use SDATA. + (Freplace_match): Use SREF. + * w32fns.c (validate_x_resource_name): Use SSET. + * xfns.c (validate_x_resource_name): Use SSET. + * xterm.c (x_catch_errors, x_clear_errors): Use SSET. + +2002-07-16 Richard M. Stallman + + * s/hpux11.h (USG_SUBTTY_WORKS): Defined. + + * xdisp.c (reconsider_clip_changes): + Don't test prevent_redisplay_optimizations_p. + (redisplay_internal): Test prevent_redisplay_optimizations_p + along with clip_changed in some cases. + (try_window_id): Likewise. + (redisplay_window): New local var buffer_unchanged_p. + + * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass. + + * process.c (create_process): Test USG_SUBTTY_WORKS. + (process_send_signal): Clean up handling of GID. + Detect errors in ioctls meant to set GID. + + * window.c (temp_output_buffer_show): + Don't set prevent_redisplay_optimizations_p. + 2002-07-15 Juanma Barranquero * eval.c (Fdefvaralias): Add docstring argument. @@ -4506,7 +5329,7 @@ * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: Fix clearing in the case of scroll bars on the right. -2001-10-26 Juanma Barranquero +2001-10-26 Juanma Barranquero * w32gui.h (XImage): Add a dummy typedef.