diff options
Diffstat (limited to 'src')
70 files changed, 2939 insertions, 1681 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dd133046747..c7f40ce8100 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,251 @@ +2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> + + * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag) + (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to + scroll bar handle size in order to avoid `scroll backward' problem. + (x_scroll_bar_create, XTset_vertical_scroll_bar) + [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle. + + * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: New + member `min_handle'. + +2007-02-23 Kim F. Storm <storm@cua.dk> + + * print.c (print): Reset print_number_index if Vprint_number_table + is nil. + +2007-02-23 Eli Zaretskii <eliz@gnu.org> + + * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk + instead of strpbrk. + +2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> + + * macmenu.c (mac_menu_show): Call unbind_to early. Use variable + `menu_item_selection' as in W32 version. + [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit + braces to avoid ambiguous `else'. + + * macterm.c (mac_display_info_for_display): Remove function. + (mac_flush_display_optional) [USE_CG_DRAWING]: New function. + (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for + flush_display_optional. + [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): New + argument MOUSE_POS. All uses changed. Set bar->dragging to + negative integer if scroll bar handle is pressed. + [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): Negative + bar->dragging means scroll bar handle is not dragged. + [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial + offset of scroll bar handle from negative bar->dragging. + (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll + bar click is compared against mapped one. Set down/up_modifier + for scroll bar click event with control key. + + * macterm.h (x_display_info_for_display): Remove extern. + (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit + value to be unpacked to 32-bit on LP64 model. + +2007-02-23 Kenichi Handa <handa@m17n.org> + + * process.c (send_process_object_unwind): New function. + (send_process_object): New function. + (Fprocess_send_region): Call send_process_object. + (Fprocess_send_string): Likewise. + +2007-02-22 Jason Rumney <jasonr@gnu.org> + + * w32menu.c (w32_menu_show): Mark the frame's menu as inactive + when popup menu finishes. + + * w32fns.c (menubar_in_use): New flag. + (w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]: + Use it. + + * w32menu.c (Fx_popup_menu): Don't free menu strings here. + (w32_menu_show): Do it here instead. + + * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame + parameter. + + * w32menu.c (current_popup_menu): Make available globally. + (menubar_selection_callback): Free menu strings before pushing the + menu event into the keyboard buffer. Remove + menu_command_in_progress. + + * w32fns.c (current_popup_menu): Use from w32menu.c. + (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active + and current_popup_menu to determine whether a menubar menu has + been cancelled. + + * w32term.h (w32_output): Remove menu_command_in_progress. + +2007-02-22 Kim F. Storm <storm@cua.dk> + + * dispnew.c (update_frame, update_single_window): Set force_p here if + redisplay_dont_pause is set or Vredisplay_preemption_period is nil... + (update_window, update_frame_1): ... instead of here. + (update_text_area): Clear mouse face on header lines. + +2007-02-21 Kim F. Storm <storm@cua.dk> + + * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too. + +2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> + + * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros. + [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable + `mapped_modifiers'. + (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard + Layout Services routines to get current Unicode keyboard layout. + +2007-02-20 Chong Yidong <cyd@stupidchicken.com> + + * frame.c (x_set_screen_gamma): Apply gamma value to the frame's + bgcolor. + +2007-02-19 Kim F. Storm <storm@cua.dk> + + * minibuf.c (Fassoc_string): Allow symbols as keys. + + * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar + handle while dragging, except when we get close to eob. + Fix position and size calculations so we don't scroll backwards + just by clicking on the handle. + +2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> + + * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc) + [HAVE_CARBON]: Remove target. + (macosx-app) [HAVE_CARBON]: Don't depend on it. + +2007-02-17 Juanma Barranquero <lekktu@gmail.com> + + * callproc.c (syms_of_callproc) <doc-directory>: + <configure-info-directory>: + (Fgetenv_internal): Fix typos in docstrings. + + * doc.c (Fsubstitute_command_keys): Fix typo in docstring. + +2007-02-16 Andreas Schwab <schwab@suse.de> + + * frame.c (Fmodify_frame_parameters): Return a value. + + * editfns.c (Fformat): Add support for '+' flag. + * doprnt.c (doprnt1): Likewise. Fix overflow checking. + +2007-02-14 Chong Yidong <cyd@stupidchicken.com> + + * s/umips.h: Unused file removed. + +2007-02-14 Juanma Barranquero <lekktu@gmail.com> + + * xfaces.c (Fcolor_distance): Don't continue checking a color for + errors after it has been correctly parsed as an RGB list. + +2007-02-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> + + * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN. + +2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> + + * macfns.c (Fx_focus_frame): Move current process to foreground if + it is not. + [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with + #ifdef MAC_OSX. + (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from + Fmac_set_font_panel_visibility. All uses changed. Rename argument + VISIBLE to FLAG. + + * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function. + (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of + MakeMeTheFrontProcess. + +2007-02-12 Chong Yidong <cyd@stupidchicken.com> + + * frame.c (x_set_screen_gamma): Clear face cache. + +2007-02-11 Juanma Barranquero <lekktu@gmail.com> + + * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick): + Reflow docstrings. + +2007-02-10 Eli Zaretskii <eliz@gnu.org> + + * window.c (Fwindow_height, Fwindow_hscroll) + (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start) + (Fwindow_end, Fwindow_display_table, Fwindow_text_height): + Document the effect of WINDOW arg being nil. + +2007-02-08 Kim F. Storm <storm@cua.dk> + + * minibuf.c (read_minibuf): Fix 2007-01-30 change. + Use Qlambda as interim value of Vminibuffer_completing_file_name. + (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil). + (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda. + +2007-02-07 Juanma Barranquero <lekktu@gmail.com> + + * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead + of $(ALL_DEPS). + +2007-02-07 Eli Zaretskii <eliz@gnu.org> + + * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is + put into $(BLD). + +2007-02-06 Chong Yidong <cyd@stupidchicken.com> + + * frame.c (Fmodify_frame_parameters): Don't bind + Qinhibit_default_face_x_resources, which has no effect. + (Qinhibit_default_face_x_resources): Symbol deleted. + +2007-02-03 Eli Zaretskii <eliz@gnu.org> + + * indent.c (Fmove_to_column): Document that the argument COLUMN is + taken from prefix numeric argument. + +2007-02-03 Juanma Barranquero <lekktu@gmail.com> + + * lread.c (syms_of_lread) <load-history>: Doc fix. + +2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change) + + * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose): + Use the foreground color of the scroll-bar face when drawing + the scroll-bar's border. + +2007-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> + + * xterm.c (do_ewmh_fullscreen): Check that what != NULL before + calling wm_supports. + +2007-02-01 Juanma Barranquero <lekktu@gmail.com> + + * lread.c (syms_of_lread) <user-init-file>: Doc fix. + Wording by Eli Zaretskii. + +2007-01-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> + + * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0. + +2007-01-30 Richard Stallman <rms@gnu.org> + + * minibuf.c (read_minibuf): + Save and clear Vminibuffer_completing_file_name. + (read_minibuf_unwind): Restore it. + (Vminibuffer_completion_table, Qminibuffer_completion_table) + (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate) + (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm) + (Vminibuffer_completing_file_name): Definitions moved up. + +2007-01-29 Chong Yidong <cyd@stupidchicken.com> + + * m/hp800.h: Restore, removing HP-UX support. + +2007-01-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> + + * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB. + 2007-01-28 Richard Stallman <rms@gnu.org> * minibuf.c (Ftry_completion, Fall_completions) @@ -257,7 +505,7 @@ CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR. (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise. (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING - && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or + && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or gc->cg_back_color. (install_drag_handler, remove_drag_handler): Make extern. (install_menu_target_item_handler): Add extern. @@ -410,7 +658,7 @@ 2006-12-19 Juanma Barranquero <lekktu@gmail.com> - * buffer.c (syms_of_buffer) <buffer-display-table> + * buffer.c (syms_of_buffer) <buffer-display-table>: <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes. 2006-12-17 Richard Stallman <rms@gnu.org> @@ -710,7 +958,7 @@ * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo. -2006-11-02 Alfred M. Szmidt <ams@gnu.org> (tiny change) +2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change) * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and /usr/pkg/lib from the library search path. @@ -973,7 +1221,7 @@ 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v) - (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h) + (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h) (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key) (xpm_load_image): Add const qualifier to arguments. [MAC_OS] (xpm_color_key_strings): Make static const. @@ -1908,7 +2156,7 @@ * macterm.c (x_draw_stretch_glyph_string): * w32term.c (x_draw_stretch_glyph_string): * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a - stretch glyph in left marginal areas on header and mode lines. + stretch glyph in left marginal areas on header and mode lines. 2006-08-21 Kenichi Handa <handa@m17n.org> @@ -2141,7 +2389,7 @@ 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> - * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars. + * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars. (init_alloc_once): Initialize them. (pure_alloc): Allocate non-Lisp objects from the end of pure storage without alignment. @@ -3584,7 +3832,7 @@ * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief. (produce_stretch_glyph): Assume that face box height and width is - already included in stretch glyph size so caller doesn't have to + already included in stretch glyph size so caller doesn't have to consider the extra space otherwise added (fixes problem in ses.el). * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame @@ -3665,7 +3913,7 @@ * xdisp.c (redisplay_window): Fix last change. - * xdisp.c (redisplay_window): If current window start is not at the + * xdisp.c (redisplay_window): If current window start is not at the beginning of a line, select a new window start if buffer is modified and window start is in the modified region, but the first change is before window start. @@ -4082,7 +4330,7 @@ 2006-03-19 Kim F. Storm <storm@cua.dk> - * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string, + * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string, so it doesn't associate overlay string with following glyph by default. Allow integer property value to specify explicit number of buffer positions associate with overlay string. @@ -7831,7 +8079,7 @@ * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers in REUSE list if non-nil; free them if equal to evaporate. - (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST + (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST if non-nil; free them if equal to evaporate. Use XCAR/XCDR. (restore_search_regs): Rename from restore_match_data. Uses changed. (unwind_set_match_data): New function. @@ -8797,7 +9045,7 @@ * macterm.c (mac_keyboard_text_encoding) (current_mac_keyboard_text_encoding): Remove variables. - (XTread_socket): Store language-change event if keyboard script change + (XTread_socket): Store language-change event if keyboard script change is detected. Don't convert input to `mac_keyboard_text_encoding'. (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding. @@ -10041,7 +10289,7 @@ (merge_into_realized_face): Add prototype. * xfaces.c (merge_into_realized_face): New function. Used to - merge escape-glyph face or face from display table into current face. + merge escape-glyph face or face from display table into current face. * xdisp.c (Vshow_nonbreak_escape): New lisp var. (syms_of_xdisp): DEFVAR_LISP it. @@ -10263,7 +10511,7 @@ Lookup table instead. (mac_do_font_lists): Simplify calculation of the longest nonspecial string. - (init_mac_drag_n_drop): Remove function and declaration. + (init_mac_drag_n_drop): Remove function and declaration. (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call init_mac_drag_n_drop. (mac_do_track_drag): New function and declaration. @@ -12413,7 +12661,7 @@ when SIGNALS_VIA_CHARACTERS. * process.c (process_send_signal) - [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up. + [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up. Do nothing if the character is CVDISABLE. * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op. @@ -12759,7 +13007,7 @@ * macterm.c (do_window_activate, do_window_deactivate): Remove. (XTread_socket): Send mouse button events to the toolbox dispatcher even when the mouse is grabbed. Don't process window - activate events for non-Emacs windows. Replace function calls to + activate events for non-Emacs windows. Replace function calls to do_window_activate and do_window_deactivate with their contents. Reset mouse grabbing status when a window is deactivated. @@ -14091,7 +14339,7 @@ 2004-04-06 Kim F. Storm <storm@cua.dk> - * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden. + * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden. (dos_rawgetc): Set mouse_face_hidden after clearing highlight. * w32term.c (w32_read_socket): Set mouse_face_hidden after @@ -15872,7 +16120,7 @@ able to know when cursor is on an image; always substitute hollow-box cursor for filled-box cursor on images, to avoid negative images and flicker when blinking the cursor. - (display_and_set_cursor): Pass glyph to get_window_cursor_type. + (display_and_set_cursor): Pass glyph to get_window_cursor_type. (note_mode_line_or_margin_highlight): Use non-text cursor rather than vertical scroll-bar cursor in display margins. (note_mouse_highlight): Use non-text cursor rather than text @@ -16298,7 +16546,7 @@ is received. (handle_one_xevent): Rename x_check_expected_move from x_check_fullscreen_move. - (x_set_offset): Only add WM decoration sizes to modified_top/left + (x_set_offset): Only add WM decoration sizes to modified_top/left for X_WMTYPE_A. Set check_expected_move when WM type is unknown. (x_check_expected_move): Rename from x_check_fullscreen_move. Removed fullscreen specific code. Use check_expected_move, @@ -17521,7 +17769,7 @@ 3) Consistently use FRAME_FONT and FRAME_FONTSET macros. 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code - rather than FRAME_WIDTH (FRAME_FONT (f)). + rather than FRAME_WIDTH (FRAME_FONT (f)). 5) Introduce a consistent naming of variables, members and macros depending on whether their value is measured in pixels or in @@ -17821,7 +18069,7 @@ fringe, and scroll-bar settings; then call Fset_window_buffer with KEEP_MARGINS non-nil. This fixes a bug which caused a split window to only preserve the display margins in one of the windows. - When splitting horizontally, call adjust_window_margins on both + When splitting horizontally, call adjust_window_margins on both windows to ensure that the text area of the new windows is non too narrow. This fixes a bug which could cause Emacs to trap if the width of the split window was less than the width of the display @@ -19507,7 +19755,7 @@ * gtkutil.c (xg_tool_bar_expose_callback): New function. (xg_create_tool_bar): Force style of tool bar to be horizontal with - icons. Set name of tool bar to emacs-toolbar. + icons. Set name of tool bar to emacs-toolbar. (update_frame_tool_bar): Connect expose event to xg_tool_bar_expose_callback. @@ -24577,7 +24825,7 @@ * w32term.c (x_check_fullscreen, x_check_fullscreen_move) (x_fullscreen_adjust): New functions. - (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to + (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to fullscreen. Call x_check_fullscreen_move, and set the want_fullscreen member of output_data.w32 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen. @@ -24598,7 +24846,7 @@ * xterm.c (disable_mouse_highlight): Removed variable. (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil. - (show_mouse_face): Don't show highlight if mouse_face_hidden is set. + (show_mouse_face): Don't show highlight if mouse_face_hidden is set. (XTread_socket): Turn mouse_face_hidden off after mouse movement, and on after keyboard input. (x_term_init): Initialize mouse_face_hidden. @@ -24606,7 +24854,7 @@ * msdos.h (struct display_info): Add mouse_face_hidden. * msdos.c (disable_mouse_highlight): Removed variable. - (show_mouse_face): Don't show highlight if mouse_face_hidden is set. + (show_mouse_face): Don't show highlight if mouse_face_hidden is set. (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil. (internal_terminal_init): Initialize mouse_face_hidden. (dos_rawgetc): Turn mouse_face_hidden off after mouse movement, @@ -24616,7 +24864,7 @@ * w32term.c (disable_mouse_highlight): Removed variable. (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil. - (show_mouse_face): Don't show highlight if mouse_face_hidden is set. + (show_mouse_face): Don't show highlight if mouse_face_hidden is set. (w32_read_socket): Turn mouse_face_hidden off after mouse movement, and on after keyboard input. (w32_initialize_display_info): Initialize mouse_face_hidden. @@ -25153,7 +25401,7 @@ 2002-01-07 Jason Rumney <jasonr@gnu.org> * xmenu.c (set_frame_menubar, xmenu_show): - (xdialog_show): Initialize wv->help to Qnil. + (xdialog_show): Initialize wv->help to Qnil. * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show): (w32_dialog_show): Initialize wv->help to Qnil. @@ -27228,7 +27476,22 @@ See ChangeLog.9 for earlier changes. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4 diff --git a/src/ChangeLog.1 b/src/ChangeLog.1 index 4aaa3202dd6..d51791d9360 100644 --- a/src/ChangeLog.1 +++ b/src/ChangeLog.1 @@ -15,12 +15,12 @@ 1986-05-02 Richard M. Stallman (rms@prep) - * termcap.c (tputs): round rather than truncating + * termcap.c (tputs): Round rather than truncating when dividing padcount. 1986-04-24 Richard M. Stallman (rms@prep) - * insdel.c (del_range): args passed to adjust_markers + * insdel.c (del_range): Args passed to adjust_markers are now properly adjusted for the gap. 1986-04-20 Richard M. Stallman (rms@prep) @@ -41,7 +41,7 @@ 1986-04-12 Richard M. Stallman (rms@prep) - * m-celerity.h: Remove spurious effectless #define BSTRINGS + * m-celerity.h: Remove spurious effectless #define BSTRINGS. 1986-04-10 Richard M. Stallman (rms@prep) @@ -113,7 +113,7 @@ 1986-03-20 Richard M. Stallman (rms@prep) - * unexec.c (make_hdr): avoid comparing a_bss field with 0. + * unexec.c (make_hdr): Avoid comparing a_bss field with 0. It is unsigned on some machines. Save sbrk (0) in tem. 1986-03-19 Richard M. Stallman (rms@prep) @@ -168,9 +168,9 @@ Don't try to store nil for the mark into the buffer if the buffer is nil. - * alloca.s: put #ifndef HAVE_ALLOCA AFTER including config. + * alloca.s: Put #ifndef HAVE_ALLOCA AFTER including config. - * ymakefile: always assemble alloca.s if C_ALLOCA isn't set. + * ymakefile: Always assemble alloca.s if C_ALLOCA isn't set. 1986-03-14 Richard M. Stallman (rms@prep) @@ -178,8 +178,8 @@ 1986-03-14 Richard Mlynarik (mly@prep) - * editfns.c - Improve doc for bolp, bobp, eolp + * editfns.c: + Improve doc for bolp, bobp, eolp. 1986-03-14 Richard M. Stallman (rms@prep) @@ -190,7 +190,7 @@ * emacs.c (main): For APOLLO: reserve 4meg with set_sbrk_size. - * alloc.c (Fpurecopy): fix typo unsignedint. + * alloc.c (Fpurecopy): Fix typo unsignedint. 1986-03-12 Richard M. Stallman (rms@prep) @@ -218,7 +218,7 @@ * doc.c (FSnarf_documentation): If CANNOT_DUMP, find DOC in directory PATH_EXEC. - * ymakefile (APOLLO only): set LTERMCAP. + * ymakefile (APOLLO only): Set LTERMCAP. * m-apollo.h: Alter VALBITS and GCTYPEBITS. * term.c (delete_chars): Pass num chars to the hook. @@ -277,7 +277,7 @@ * process.c (read_process_output): New subroutine that does the reading and handling of process output. Do so until none is left. - (wait_reading_process_input): call new subroutine. + (wait_reading_process_input): Call new subroutine. (sig_process): If we get a pgrp number, make it negative. Always send signal to pggrp; use killpg if BSD, kill otherwise. (child_signal): Don't deactivate dead processes here. @@ -287,7 +287,7 @@ * keyboard.c (read_avail_input): (for sysV) Use fcntl, not ioctl, to make read not wait. - * alloca.s: put entire file inside #ifndef HAVE_ALLOCA. + * alloca.s: Put entire file inside #ifndef HAVE_ALLOCA. * sysdep.c (child_setup_tty, init_sys_modes): (for sysV) Set VTIME to zero; with VMIN=1 this means @@ -353,7 +353,7 @@ to detect the memory clobbering bug. * process.c: - For 4.1, include wait.h, not sys/wait.h + For 4.1, include wait.h, not sys/wait.h. Use O_NDELAY only if it is defined. * s-bsd4.1.h: @@ -420,7 +420,7 @@ Two new files for Encore computers. * lread.c (Vload_path): Make it not static. - In sysV, static vars go in a place in memory below my_edata + In sysV, static vars go in a place in memory below my_edata. * dispnew.c (make_display_lines): Store all the lines in an array for debugging, to help @@ -455,7 +455,7 @@ If USG, don't define LOAD_AVE_... and do define C_ALLOCA. * filelock.c: On USG, include fcntl.h. - (lock_file): declare getpwuid external. + (lock_file): Declare getpwuid external. * window.c (Fmove_to_window_line): If window start is out of restriction, @@ -484,7 +484,7 @@ 1986-02-06 Richard Mlynarik (mly@prep) * fns.c (Frequire): - Fix documentation + Fix documentation. 1986-02-06 Richard M. Stallman (rms@prep) @@ -550,7 +550,7 @@ * m-pyramid.h: Turn on NO_UNION_TYPE. - * fns.c: For BSD, include sys/param.h + * fns.c: For BSD, include sys/param.h. 1986-01-29 Richard M. Stallman (rms@prep) @@ -564,18 +564,18 @@ #undef open, read and write at the start. Make sys_read, etc. always available for uses that need a nonaborting read. - (select): several bug fixes for system V. + (select): Several bug fixes for system V. (init_sys_modes, child_setup_tty): Init VTIME to a large #, not 0. Use TCSETA, not TCSETAW (why wait?). * process.c: - (wait_reading_process_output): if don't HAVE_TIMEVAL + (wait_reading_process_output): If don't HAVE_TIMEVAL and no timeout desired, use 100000 seconds, which the select emulator recognizes. When reading data, if a char is buffered in proc_buffered_char, put it at the front of the data read. - (kill_buffer_process): ignore processes really already dead. - (init_process): initialize proc_buffered_char to -1 (empty). + (kill_buffer_process): Ignore processes really already dead. + (init_process): Initialize proc_buffered_char to -1 (empty). * keyboard.c (fake_suspend): Don't mess with the SIGCLD handler. @@ -588,10 +588,10 @@ 1986-01-28 Richard M. Stallman (rms@prep) - * s-hpux.h: Do #undef SIGIO. + * s-hpux.h: Do #undef SIGIO. * callproc.c, data.c, dispnew.c, emacs.c, keyboard.c, - process.c, sysdep.c: + * process.c, sysdep.c: Include signal.h before config so can #undef SIGIO in config. * lread.c (read_escape): @@ -610,7 +610,7 @@ * process.c: Define SIGCHLD as SIGCLD only if SIGCHLD not already defined. - (wait_handling_process_output):Fill in one non-HAVE_TIMEVAL case. + (wait_handling_process_output): Fill in one non-HAVE_TIMEVAL case. 1986-01-27 Richard M. Stallman (rms@prep) @@ -736,7 +736,6 @@ If nothing has changed except minibuffer message, no need to call redisplay_window. - Problem: standard sysV has no file ioctl.h. * process.c, keyboard.c, dispnew.c, sysdep.c: @@ -751,7 +750,7 @@ 1986-01-21 Richard Mlynarik (mly@prep) * keyboard.c (EchoThem): - Always display an explicit prompt, even if echo_keystrokes == 0 + Always display an explicit prompt, even if echo_keystrokes == 0. 1986-01-21 Richard M. Stallman (rms@prep) @@ -786,7 +785,7 @@ but changes only the initials. Function upcase_initials_region is an interface to this mode. - * abbrev.c (Fexpand_abbrev): Use upcase_initials_region. + * abbrev.c (Fexpand_abbrev): Use upcase_initials_region. * process.c (create_process): Install Fish's other new UNIPLUS conditionalization @@ -845,7 +844,7 @@ * m-stride.h, s-stride.h, crt0.c, fns.c, keyboard.c, process.c, sysdep.c. Changes for STRIDE micro - Changes still pending for etc/loadst.c + Changes still pending for etc/loadst.c. Fsuspend_emacs in keyboard.c is defined to run a subshell under emacs -- perhaps this is a reasonable thing in all wimpy unix @@ -869,15 +868,15 @@ 1986-01-09 Richard Mlynarik (mly@prep) * syntax.c: - New function check_syntax_table + New function check_syntax_table. Make Fmodify_syntax_entry take third arg SYNTAX-TABLE, which defaults to current buffer's syntax table. - -- doc change in auxdoc.c + -- doc change in auxdoc.c. Rename Fmake_syntax_table FCopy_syntax_table after making it take an arg (default Vstandard_syntax_table) - -- retain alias in subr.el + -- retain alias in subr.el. 1986-01-08 Richard M. Stallman (rms@prep) @@ -892,7 +891,7 @@ 1986-01-07 Richard Mlynarik (mly@prep) * doc.c (Fsubstitute_command_keys): - Insert an explanatory message for "\\{unbound-variable}" + Insert an explanatory message for "\\{unbound-variable}". 1986-01-06 Richard Mlynarik (mly@prep) @@ -945,7 +944,7 @@ 1985-12-18 Richard M. Stallman (rms@prep) * filelock.c (lock_if_free): - kill failing means lock is free only if errno is ESRCH. + Kill failing means lock is free only if errno is ESRCH. * fns.c (Fy_or_n_p, Fyes_or_no_p): Call Fdiscard_input if user gives invalid answer. @@ -998,7 +997,7 @@ 1985-12-12 Richard M. Stallman (rms@prep) * syntax.c: - After turning on immediate_quit, must do QUIT; + After turning on immediate_quit, must do QUIT. * callproc.c (Fcall_process): Quitting out of running subproc did not happen immediately. @@ -1184,7 +1183,7 @@ Save and restore minibuf_prompt_width. * xdisp.c: - (display_text_line): set minibuf_prompt_width if display the + (display_text_line): Set minibuf_prompt_width if display the prompt. (various): Pass window being displayed as arg to vmotion. (various): Compute starting-hpos arg to compute_motion @@ -1236,13 +1235,13 @@ 1985-12-03 Richard Mlynarik (mly@prep) * lread.c (Fload): - Suppress "Loading %s... done" if noninteractive + Suppress "Loading %s... done" if noninteractive. * alloc.c (Fgarbage_collect): Suppress "garbage collecing..." message if noninteractive. * regex.c (re_compile_pattern): - Fix error message (double "\"'s for c compiler) + Fix error message (double "\"'s for c compiler). 1985-12-03 Richard M. Stallman (rms@prep) @@ -1348,7 +1347,7 @@ 1985-11-22 Richard Mlynarik (mly@prep) * fileio.c (Frename_file): - Supply third arg to Fcopy_file + Supply third arg to Fcopy_file. 1985-11-22 Richard M. Stallman (rms@prep) @@ -1364,10 +1363,10 @@ 1985-11-20 Richard Mlynarik (mly@prep) * callproc.c (Fcall_process_region): - Documentation fix (why isn't this function written in lisp?) + Documentation fix (why isn't this function written in lisp?). * minibuf.c (read_minibuf) - Use MScreenWidth + Use MScreenWidth. 1985-11-20 Richard M. Stallman (rms@prep) @@ -1488,7 +1487,7 @@ * process.c: (pty): Flush unused variable. Return 0 at end. - (list_processes):New buffer tembuf for sprintf to use. + (list_processes): New buffer tembuf for sprintf to use. (send_process_trap): Flush unused arg. (sig_process): Rename arg `signal' to `signo'. @@ -1585,7 +1584,7 @@ 1985-11-08 Richard Mlynarik (mly@prep) * emacs.c (Fkill_emacs): - arg default is 0 if noninteractive, nil if interactive + Arg default is 0 if noninteractive, nil if interactive. * minibuf.c (Fread_variable): Only recognize symbols that are user-variable-p. @@ -1622,7 +1621,7 @@ 1985-11-04 Richard Mlynarik (mly@prep) * minibuf.c (Fread_variable): - Choose amongst user-variable-p frobs rather than boundp ones + Choose amongst user-variable-p frobs rather than boundp ones. 1985-11-02 Richard M. Stallman (rms@prep) @@ -1662,13 +1661,13 @@ * editfns.c, print.c (Fmessage): Move Fmessage from editfns to print If noninteractive, do not truncate message at all. - If interactive truncate at MScreenWidth (not at 100) + If interactive truncate at MScreenWidth (not at 100). * alloc.c (mark_buffer): - Catch a few places which should have been marked but weren't + Catch a few places which should have been marked but weren't. * buffer.h, abbrev.c, cmds.c, xdisp.c - abbrev_mode is buffer-local (like all other minor modes) + abbrev_mode is buffer-local (like all other minor modes). 1985-10-29 Richard M. Stallman (rms@prep) @@ -1684,7 +1683,7 @@ * eval.c (internal_condition_case): Before unwinding after throw, remove any backtrace frames, - catches or handlers that are in stack frames that have been exited, + catches or handlers that are in stack frames that have been exited. * window.c (save_window_restore): If saved state uses a dead buffer, don't use Fother_buffer @@ -1799,7 +1798,7 @@ New function quotify_args to do the work. * fns.c (Fnconc): - typo: wrong_type_arg called with Flistp, not Qlistp + Typo: wrong_type_arg called with Flistp, not Qlistp. 1985-10-22 Richard M. Stallman (rms@mit-prep) @@ -1913,7 +1912,7 @@ * keyboard.c (getchar, interrupt_signal): Don't omit the arg DoDsp or Fdo_auto_save wants. - * keyboard.c: (echo_them, input_available_signal): + * keyboard.c (echo_them, input_available_signal): Put in hair for 4.1 for interfacing with select emulation. * keyboard.c (top_level_1): @@ -2140,8 +2139,8 @@ 1985-10-07 Richard Mlynarik (mly@mit-prep) - * print.c (print) - No need to escape symbols + and - if not followed by digits + * print.c (print): + No need to escape symbols + and - if not followed by digits. 1985-10-07 Richard M. Stallman (rms@mit-prep) @@ -2392,7 +2391,7 @@ * window.c (Fget_lru_window): Give preference to full-width windows. * window.c (display_buffer): - only split full-width windows. + Only split full-width windows. * search.c (Fstring_match): Set the search_regs, like buffer searching commands. @@ -2449,7 +2448,7 @@ * keyboard.c (Fsuspend_emacs): Put back `kill', accidentally deleted. - * buffer.c: define switch-to-buffer-other-window = pop-to-buffer. + * buffer.c: Define switch-to-buffer-other-window = pop-to-buffer. * dispnew.c (update_line): Simplify handling of nlen == screen_width case @@ -2459,7 +2458,7 @@ * term.c ((re)set_terminal_modes): Use the correct hook in each case. - (topos): define topos_hook. + (topos): Define topos_hook. * search.c (search_buffer): In backwards regexp search, use new `mstop' to re_search_2 @@ -2496,31 +2495,31 @@ 1985-08-11 Richard Mlynarik (mly@mit-prep) - * m-sun.h + * m-sun.h: Don't define SUN -- "sun" already exists. Define COMPILER_REGISTER_BUG and use it in a few places in the - source which used to be conditionalized on SUN + source which used to be conditionalized on SUN. - * config.h, config.h.dist - Increase pure size (sigh) + * config.h, config.h.dist: + Increase pure size (sigh). * search.c (compile_pattern): Signal an invalid-regexp error if lose. 1985-08-09 Richard Mlynarik (mly@mit-prep) - * term.c (clear_end_of_line) + * term.c (clear_end_of_line): Calling cmplus before chars output when terminals lacks clreol - (crl@newton.purdue.edu) + (crl@newton.purdue.edu). 1985-08-06 Richard Mlynarik (mly@mit-prep) * macros.c (end-kdb-macro): Barf if not defining a macro. - * doc.c, keymap.c + * doc.c, keymap.c: Interactive for Fdocumentation declaration was wrong, and has been - deleted. (describe-function is what people should be using) + deleted. (describe-function is what people should be using.) Make where_is_in_buffer take a firstonly arg to speed up substitute-command-keys. Make it really use its buf argument. @@ -2528,19 +2527,19 @@ * emacs.c (kill-emacs): If noninteractive and arg is fixnum, return arg as program return - code by exit(arg) + code by exit(arg). * search.c (Fsearch_string): - Wasn't initializing translate table based on case-fold-search + Wasn't initializing translate table based on case-fold-search. * process.c (deactivate_process): Fix timing screw if SIGCHLD received in middle of deactivation - (by silogic!eggert@ucla-cs.arpa) + (by silogic!eggert@ucla-cs.arpa). 1985-08-05 Richard Mlynarik (mly@mit-prep) * callint.c - Improve doc of {current-}prefix-arg + Improve doc of {current-}prefix-arg. * minibuf.c (Fread_from_minibuffer): Thought it accepted maximum of 3 args, not 4. @@ -2582,7 +2581,7 @@ Don't call modify_region before recording the changes. * editfns.c (Fgoto_char): - interactively read arg using n, not p. + Interactively read arg using n, not p. * undo.c (RecordChange1): A local and an arg were both named p. Change arg to bufp. @@ -2608,8 +2607,8 @@ 1985-07-12 Richard Mlynarik (mly@mit-prep) - * callint.c - Stuff was being added to command-history even if aborted out + * callint.c: + Stuff was being added to command-history even if aborted out. 1985-07-11 Richard M. Stallman (rms@mit-prep) @@ -2618,7 +2617,7 @@ * term.c: chars_wasted is 0 if no `so' or `se' string; 0100 | nchars if there is a `so' or `se' string. - Should fix lossage with :sg#0: + Should fix lossage with :sg#0:. 1985-07-10 Richard M. Stallman (rms@mit-prep) @@ -2706,7 +2705,7 @@ * dispnew.c (direct_output_for_insert): Make line remain null-terminated. -1985-07-02 Richard M. Stallman,,, (rms@mit-prep) +1985-07-02 Richard M. Stallman (rms@mit-prep) * window.c (window_loop, case 5): Change < to > so get-largest-window gets largest, not smallest. @@ -2722,7 +2721,7 @@ 1985-07-01 Richard M. Stallman (rms@mit-prep) - * minibuf.c: (minibuffer-complete-word): + * minibuf.c (minibuffer-complete-word): Fix case of Space in filename, where front of minibuffer gets deleted by completion. @@ -2731,7 +2730,7 @@ New files term.c, scroll.c, termhooks.h, termopts.h, and termchar.h. Many changes in dispnew.c. - * keyboard.c: make stop_character not static. + * keyboard.c: Make stop_character not static. 1985-06-26 Richard M. Stallman (rms@mit-prep) @@ -2762,12 +2761,12 @@ work now done in Fredraw_display. Minor changes in InitDsp and in minibuf. - * TrmAmb.c: flushed. + * TrmAmb.c: Flushed. * Trm*.c: tt.t_init routine now passed no arguments. 1985-06-23 Richard M. Stallman (rms@mit-prep) - * display.c: include sys/ioctl.h so conditionals work right. + * display.c: Include sys/ioctl.h so conditionals work right. 1985-06-22 Richard M. Stallman (rms@mit-prep) @@ -2781,7 +2780,7 @@ * TrmTERM.h (TrmTERM): Turn off use of LF on Teleray. - * process.c (pty): Don't turn on FIONBIO. + * process.c (pty): Don't turn on FIONBIO. 1985-06-18 Richard M. Stallman (rms@mit-prep) @@ -2828,9 +2827,9 @@ Don't ignore trailing spaces if tt.t_needspaces is set. May fix C100 lossage. - * Various files: minor changes for system V. + * Various files: Minor changes for system V. - * disp_extern.h: rename as dispextern.h. + * disp_extern.h: Rename as dispextern.h. * commands.h (INTERACTIVE): Be false in batch mode. @@ -2854,15 +2853,15 @@ 1985-06-12 Richard Mlynarik (mly@mit-prep) - * minibuf.c, callint.c, read.c, mocklisp.c + * minibuf.c, callint.c, read.c, mocklisp.c: New function read-from-minibuffer does all you could ever want. read-minibuffer, eval-minibuffer, read-string take second optional - initial-contents arg. read-input now a synonym for read-string. + initial-contents arg. read-input now a synonym for read-string. - * keymap.c, callint.c, minibuf.c, fns.c, commands.h - Rename MinbufLocalMap to Vminibuffer_local_map, etc + * keymap.c, callint.c, minibuf.c, fns.c, commands.h: + Rename MinbufLocalMap to Vminibuffer_local_map, etc. Rename minibuf-local-{,-ns,-completion,must-match}map, - and DefLispVar them (document even!) + and DefLispVar them (document even!). => New lisp variables minibuffer-local-map, minibuffer-local-ns-map, minibuffer-local-completion-map, minibuffer-local-must-match-map. @@ -2884,7 +2883,7 @@ * print.c, lisp.h, buffer.c New function prin1-to-string. - (Needs an initialization done in buffer.c) + (Needs an initialization done in buffer.c.) 1985-06-10 Richard M. Stallman (rms@mit-prep) @@ -2906,7 +2905,7 @@ * minibuf.c: Use Tab for completion, not ESC. - * unexec.c: round bss_start up to page bndry. + * unexec.c: Round bss_start up to page bndry. 1985-06-09 Richard M. Stallman (rms@mit-prep) @@ -2934,8 +2933,8 @@ 1985-06-07 Richard Mlynarik (mly@mit-prep) - * buffer.c - documentation fixes + * buffer.c: + Documentation fixes. 1985-06-07 Richard M. Stallman (rms@mit-prep) @@ -3087,7 +3086,7 @@ * TrmVT100.c: Generate termscript output. - * dsp.c: define request_sigio, unrequest_sigio. + * dsp.c: Define request_sigio, unrequest_sigio. * xdisp.c (DoDsp): Unrequest sigio on entry, rerequest on exit. @@ -3097,9 +3096,9 @@ Check FIONREAD even if INTERRUPT_INPUT. * m-*.h: - Add macros LOAD_AVE_TYPE and LOAD_AVE_CVT + Add macros LOAD_AVE_TYPE and LOAD_AVE_CVT. - * fns.c (load-average): Use those two. + * fns.c (load-average): Use those two. Makes it work on suns. * keyboard.c (kbd_buffer_get_char): @@ -3169,11 +3168,11 @@ themselves. (Some commands such as c-h f can also use it) (This is not quite the right thing for commands to bind to read their arguments since it enables arbitrary recursiveness, not just one - level to read args) + level to read args.) * buffer.c Wrote generate-new-buffer --- like gentemp for buffer names. - Rewrote create-file-buffer into lisp code in lisp/files.el + Rewrote create-file-buffer into lisp code in lisp/files.el. 1985-05-27 Richard M. Stallman (rms@mit-prep) @@ -3235,10 +3234,10 @@ * keyboard.c (get_char): Increment new variable num_input_chars on each call. - * All .h files: make all variable definitions `extern'. + * All .h files: Make all variable definitions `extern'. * buffer.c, window.c, xdisp.c, display.c, dispnew.c, - syntax.c, fixedpoint.c: Put in one non-extern definition + * syntax.c, fixedpoint.c: Put in one non-extern definition for each variable that used to have them only in the .h files. * keyboard.c: @@ -3261,10 +3260,10 @@ Display "Abbrev" if abbrev_mode is set. Don't clobber past end of tbuf. - * keyboard.c: - kbd_buffer_get_char: If noninteractive, read from stdin. - open-dribble-file: take filename as argument. - command_loop_1: on end of file, call kill-emacs. + * keyboard.c (kbd_buffer_get_char): + If noninteractive, read from stdin. + (open-dribble-file): Take filename as argument. + (command_loop_1): On end of file, call kill-emacs. 1985-05-22 Richard M. Stallman (rms@mit-prep) @@ -3313,14 +3312,14 @@ New code to dump core when paragraph-start gets its global value in a buffer in Lisp mode. - * TrmXTERM.c: new file. Used for interface to + * TrmXTERM.c: New file. Used for interface to MIT's `X' window system. 1985-05-22 Richard Mlynarik (mly@mit-prep) * buffer.c (list_buffers_1): - made list-buffers print "R" if buffer read-only. - (No change is needed to lisp/buff-menu.el) + Made list-buffers print "R" if buffer read-only. + (No change is needed to lisp/buff-menu.el.) 1985-05-22 Richard M. Stallman (rms@mit-prep) @@ -3332,14 +3331,14 @@ * lisp.h: Flush obsolete externs for remove_help_window and flushhelp. - * config.h: increase maximum screen dimensions to 300x300. + * config.h: Increase maximum screen dimensions to 300x300. Define XWINDOW flag (off by default). - * Trm.h: add tt.t_socketinput slot, and t_ReadSocket slot. - * dsp.c, keyboard.c: code for using those slots. - * display.c: install code for XVSWINDOW. + * Trm.h: Add tt.t_socketinput slot, and t_ReadSocket slot. + * dsp.c, keyboard.c: Code for using those slots. + * display.c: Install code for XVSWINDOW. - * dispnew.c (sleep-for): flush spurious reference to + * dispnew.c (sleep-for): Flush spurious reference to nonexistent variable time_limit. 1985-05-21 Richard Mlynarik (mly@mit-prep) @@ -3403,13 +3402,13 @@ 1985-05-16 Richard M. Stallman (rms@mit-prep) * window.c (set-window-start): - accept third arg NOFORCE meaning don't set w->force_start. + Accept third arg NOFORCE meaning don't set w->force_start. * indent.c (compute_motion): Clear tab_offset when scanning past a newline. - * lisp.h, bytecode.c: define Qbytecode. - * eval.c: fix interactive-p to look past a call to `bytecode'. + * lisp.h, bytecode.c: Define Qbytecode. + * eval.c: Fix interactive-p to look past a call to `bytecode'. Makes interactive-p work in compiled code. * xdisp.c: @@ -3430,7 +3429,7 @@ 1985-05-16 Richard Mlynarik (mly@mit-prep) - * fileio.c: added optional third arg ok-if-exists to + * fileio.c: Added optional third arg ok-if-exists to rename-file, make-symbolic-link, add-name-to-file and copy-file. If the destrination filename exists, then if ok-if-exists is non-nil it is silently bashed; else if the function was @@ -3438,7 +3437,7 @@ wants to bash the file; otherwise (ok-if-exists nil, non-interactive) a file-already-exists error is signalled. - * window.c: made get-window-buffer return nil if get-buffer of + * window.c: Made get-window-buffer return nil if get-buffer of its arg returns nil, rather than erring. 1985-05-14 Richard M. Stallman (rms@mit-prep) @@ -3488,21 +3487,21 @@ 1985-05-12 Richard M. Stallman (rms@mit-prep) - * cmds.c: modified `newline' to insert before an existing + * cmds.c: Modified `newline' to insert before an existing newline before dot. This produces better redisplay. - * xdisp.c: fixed bug that modifying buffer displayed in two windows + * xdisp.c: Fixed bug that modifying buffer displayed in two windows failed to redisplay both mode lines with stars. - * xdisp.c: try_window_id: if scrolling upward and changed text is empty + * xdisp.c (try_window_id): If scrolling upward and changed text is empty scroll up all the lines that fit below bp. - * xdisp.c: introduce num_contin, to display tabs right in contin. lines + * xdisp.c: Introduce num_contin, to display tabs right in contin. lines. - * doc.c: define substitute-command-keys, using crl@purdue's code. + * doc.c: Define substitute-command-keys, using crl@purdue's code. Make `documentation' call it. - * eval.c, fns.c, bytecode.c: put in register decls for Lisp_Objects. + * eval.c, fns.c, bytecode.c: Put in register decls for Lisp_Objects. Saved 2500 bytes of object code. 1985-05-11 Richard M. Stallman (rms@mit-prep) @@ -3514,7 +3513,7 @@ This means XMARKBIT can no longer be on left side of =. New macros XMARK and XUNMARK and XSETMARKBIT are used instead. - * alloc.c, marker.c: use XMARK, XUNMARK, XSETMARKBIT where needed. + * alloc.c, marker.c: Use XMARK, XUNMARK, XSETMARKBIT where needed. * TrmTERM.c: Ignore `xs' termcap flag. Always use the SEstr on sg >= 0 terminals. @@ -3524,7 +3523,22 @@ Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 2d2c1086-b0a5-437c-bc58-fb38ce2e0f9b diff --git a/src/ChangeLog.2 b/src/ChangeLog.2 index 75dd37940d0..420688ac385 100644 --- a/src/ChangeLog.2 +++ b/src/ChangeLog.2 @@ -4773,7 +4773,22 @@ See ChangeLog.1 for earlier changes. Copyright (C) 1986, 1987, 1988, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 3334fc8a-ec24-4601-99fc-4c8adc2b31bb diff --git a/src/ChangeLog.3 b/src/ChangeLog.3 index bde54ff99f9..343eec689a2 100644 --- a/src/ChangeLog.3 +++ b/src/ChangeLog.3 @@ -168,7 +168,7 @@ 1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * s/sol2.h: (SOLARIS_BROKEN_ACCESS): Don't define this. + * s/sol2.h (SOLARIS_BROKEN_ACCESS): Don't define this. * s/aix3-2.h (C_SWITCH_SYSTEM): Don't define this to be "-ma" if we're using GCC - that's an XLC switch. @@ -181,8 +181,8 @@ screws up AIX. (struct emacs_tty): Test those symbols, instead of the ioctl commands. - * sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars, - init_sys_modes): Same. + * sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars) + (init_sys_modes): Same. * config.h.in (HAVE_RENAME): Include an #undef for this, so configure will have something to edit. @@ -202,8 +202,8 @@ 1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM, - LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the + * s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM) + (LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the search paths in these lists; they shouldn't do any harm if they don't have X11R5. @@ -293,8 +293,8 @@ 1993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) * xfns.c: Clear out the old face stuff. - (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font, - Fx_set_face, Fx_get_face): Removed. + (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font) + (Fx_set_face, Fx_get_face): Removed. (syms_of_xfns): Remove defsubr for Fx_set_face. Arrange for font names to get fully resolved - no wildcards. @@ -312,9 +312,9 @@ * xterm.c (x_new_font): Don't call init_frame_faces. * xterm.h: New section for declarations for xfaces.c. - (init_frame_faces, free_frame_faces, intern_face, - face_name_id_number, same_size_fonts, recompute_basic_faces, - compute_char_face, compute_glyph_face): Declare these here. + (init_frame_faces, free_frame_faces, intern_face) + (face_name_id_number, same_size_fonts, recompute_basic_faces) + (compute_char_face, compute_glyph_face): Declare these here. * xfaces.c (same_size_fonts): We can now remove this extern declaration. * xfns.c (face_name_id_number): Likewise. @@ -511,7 +511,7 @@ already declares this elsewhere. (PTY_TTY_NAME_SPRINTF): #undef this before re-#defining it. * m/ibmps2-aix.h, m/pfa50.h, s/hpux.h, s/isc2-2.h, s/linux.h, - s/sco4.h, s/usg5-4.h: Remove HAVE_RENAME; configure guesses that now. + * s/sco4.h, s/usg5-4.h: Remove HAVE_RENAME; configure guesses that now. * config.h.in (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Change the #defines to #undef's, so ../configure knows it should tweak them. @@ -522,7 +522,7 @@ * xfaces.c (Fset_face_attribute_internal): Don't free the frame's normal_gc or reverse_gc. - * keyboard.c (make_lispy_movement): Deal properly with mouse + * keyboard.c (make_lispy_movement): Deal properly with mouse motion outside of all windows. * lisp.h (GLYPH_FACE): Remember that the face portion of a glyph @@ -536,7 +536,7 @@ 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu) - * Version 19.7 released. + * Version 19.7 released. * Makefile.in (SUBMAKEFLAGS): Add CFLAGS to the list. @@ -588,7 +588,7 @@ * ymakefile (alloca.o): #define malloc and free to be xmalloc and xfree on the command line of this compilation. - * s/sco4.h: (TIME_WITH_SYS_TIME): This is no longer needed. + * s/sco4.h (TIME_WITH_SYS_TIME): This is no longer needed. * s/linux.h: Remove copyright notices by Michael K. Johnson and Rik Faith. They have both sent in papers now which make their @@ -690,7 +690,7 @@ clear_waiting_for_input when we exit the loop because process input has arrived. - Changes for Silicon Graphics Iris 5D. + Changes for Silicon Graphics Iris 5D. * unexelfsgi.c: New file; like unexelf.c, but tolerates program segments above BSS. * m/iris5d.h: New file. @@ -793,7 +793,7 @@ then load it; we can just take advantage of the PATH_DUMPLOADSEARCH. (crt0.o): Remember that crt0.c is in ${srcdir}. - Install David Mackenzie's patches to make ${srcdir} work. + Install David Mackenzie's patches to make ${srcdir} work. * Makefile.in (srcdir, VPATH): Get this value from the top-level Makefile. (xmakefile): Use ${srcdir} to find the files from which we produce @@ -860,8 +860,8 @@ 1993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu) - * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer, - Foverlay_properties): Functions moved here from subr.el. + * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer) + (Foverlay_properties): Functions moved here from subr.el. 1993-05-13 Jim Blandy (jimb@totoro.cs.oberlin.edu) @@ -915,7 +915,7 @@ * buffer.c (Foverlay_get): Return Qnil if the requested property is missing from the property list. - The text property routines can now modify buffers other + The text property routines can now modify buffers other than the current one. * insdel.c (modify_region): New argument BUFFER. Select that buffer while we prepare for the modification, and switch back when @@ -946,7 +946,7 @@ 1993-05-12 Jim Blandy (jimb@geech.gnu.ai.mit.edu) - * ymakefile (xfaces.o): Add window.h to the dependencies. + * ymakefile (xfaces.o): Add window.h to the dependencies. * xfaces.c (intern_frame_face): Exchange order of arguments, to make callers correct. @@ -998,9 +998,9 @@ 1993-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu) - * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the - filesystem being ro, since Solaris 2.1 doesn't. - (file-writable-p): Call ro_fsys. + * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the + filesystem being ro, since Solaris 2.1 doesn't. + (file-writable-p): Call ro_fsys. * s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this. * systime.h: Use the strategy from getdate.y to include the proper @@ -1125,8 +1125,8 @@ * window.c (Vmouse_event): Var deleted. (syms_of_window): Don't make it a Lisp var. - * keyboard.c (read_avail_input, Fset_input_mode): Make - meta_key a three-value variable to support 8-bit input. + * keyboard.c (read_avail_input, Fset_input_mode): Make + meta_key a three-value variable to support 8-bit input. 1993-05-07 Jim Blandy (jimb@totoro.cs.oberlin.edu) @@ -1191,8 +1191,8 @@ * keyboard.c (syms_of_keyboard): Doc fix for extra-keyboard-modifiers. - * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL, - CHAR_META): Shift these all up one bit, back to where they were. + * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL) + (CHAR_META): Shift these all up one bit, back to where they were. 1993-05-02 Jim Blandy (jimb@totoro.cs.oberlin.edu) @@ -1210,7 +1210,7 @@ 1993-04-29 Jim Blandy (jimb@totoro.cs.oberlin.edu) - Implement extra_keyboard_modifiers properly. + Implement extra_keyboard_modifiers properly. * keyboard.c (syms_of_keyboard): Doc fix for extra-keyboard-modifiers; use the same modifier bits as we do for characters. @@ -1229,8 +1229,8 @@ * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in case we need them. - * termhooks.h (alt_modifier, super_modifier, hyper_modifier, - shift_modifier, ctrl_modifier, meta_modifier): Define these in + * termhooks.h (alt_modifier, super_modifier, hyper_modifier) + (shift_modifier, ctrl_modifier, meta_modifier): Define these in terms of the CHAR_mumble macros, to avoid having the same thing defined in two places. @@ -1284,7 +1284,7 @@ 1993-04-26 Jim Blandy (jimb@totoro.cs.oberlin.edu) * m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h, - m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by + * m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by configure script. * s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed; derived by configure script. @@ -1342,8 +1342,8 @@ Make the modifier manipulation functions more robust. The old way caused a bug once, and probably would again. - * termhooks.h (alt_modifier, super_modifier, hyper_modifier, - shift_modifier, ctrl_modifier, meta_modifier): Shift these all + * termhooks.h (alt_modifier, super_modifier, hyper_modifier) + (shift_modifier, ctrl_modifier, meta_modifier): Shift these all down one bit in value, to avoid sign extension problems. * lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too. * keyboard.c (lispy_modifier_list): Ignore modifier bits beyond @@ -1370,7 +1370,7 @@ * lisp.h (LOADHIST_ATTACH): New macro. (Vcurrent_load_list, Vload_history): Vars declared. - * eval.c: (defun, defmacro, defvar, defconst): + * eval.c (defun, defmacro, defvar, defconst): Attach symbol argument to the list of globals for the input source. (do_autoload): Save the old autoloads, in case we ever unload. @@ -1429,7 +1429,7 @@ that out now. Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>: - * s/mach2.h: copied from the Emacs 18.59 distribution. + * s/mach2.h: Copied from the Emacs 18.59 distribution. Don't define NO_REMAP, define START_FILES as `pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the default `-lm -lc' (there is no libc on the NeXT). @@ -1452,8 +1452,8 @@ * ymakefile ($(OLDXMENU)): Remove $(OLDXMENU) before trying to link in a new version. - * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error, - Qoverflow_error, Qunderflow_error): Add extern to these declarations. + * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error) + (Qoverflow_error, Qunderflow_error): Add extern to these declarations. 1993-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -1472,11 +1472,11 @@ * keyboard.c (command_loop_1): Rebuild menu bar if update_mode_lines is set. - long_to_cons and cons_to_long are generally useful things; they're + long_to_cons and cons_to_long are generally useful things; they're needed whether or not X is defined. * xselect.c (long_to_cons, cons_to_long): Moved from here... - * data.c (long_to_cons, cons_to_long): ... to here. - * lisp.h (long_to_cons, cons_to_long): Add extern declaration. + * data.c (long_to_cons, cons_to_long): ... to here. + * lisp.h (long_to_cons, cons_to_long): Add extern declaration. * xmenu.c (Qmenu_enable): Definition moved... (syms_of_xmenu): ... along with initialization ... @@ -1500,11 +1500,11 @@ * alloc.c (__malloc_hook, __realloc_hook, __free_hook): Declare these extern, not static. (!) - * alloc.c (__malloc_hook, old_malloc_hook, __realloc_hook, - old_realloc_hook): Declare that the functions these point to return + * alloc.c (__malloc_hook, old_malloc_hook, __realloc_hook) + (old_realloc_hook): Declare that the functions these point to return void *, not void. - Adjust for autoconf merger. + Adjust for autoconf merger. * config.h.in: Add extra line to top, in case autoconf gets fixed and decides not to add Makefile-style comments to the top of the files it generates which we are forced to lop off. @@ -1594,8 +1594,8 @@ This isn't specific to X, and it allows us to avoid #including xterm.h in files that don't really have anything to do with X. * blockinput.h: New file. - * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, - UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h. + * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT) + (UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h. (x_input_blocked, x_pending_input): Deleted; there are analogs in blockinput.h called interrupt_input_blocked and interrupt_input_pending. @@ -1615,8 +1615,7 @@ Block the processing of interrupt input while we're manipulating the malloc heap. - * alloc.c: (xfree): New function, to make it easy to free things - safely. + * alloc.c (xfree): New function, to make it easy to free things safely. (xmalloc, xrealloc): Block X input while doing the deed. (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree instead of free. @@ -1624,8 +1623,8 @@ hooks into the GNU malloc routines. * emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc on startup. - * alloc.c: (make_interval, make_float, Fcons, Fmake_vector, - Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect): + * alloc.c (make_interval, make_float, Fcons, Fmake_vector) + (Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect): Use xmalloc instead of malloc; don't bother to check if out of memory here. (Fgarbage_collect): Call xrealloc instead of realloc. @@ -1638,7 +1637,7 @@ * xfaces.c (xfree): Don't #define this to be free; use the definition in alloc.c. * dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c, - xmenu.c, xterm.c: Use xfree instead of free. + * xmenu.c, xterm.c: Use xfree instead of free. * hftctl.c: Use xfree and xmalloc instead of free and malloc. * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc and malloc. @@ -1648,8 +1647,8 @@ of free and malloc. BLOCK_INPUT around routines which we know will call malloc. - ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o, - xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that + * ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o) + (xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that these depend on blockinput.h. * keyboard.c (parse_modifiers, apply_modifiers): Make sure we're @@ -1761,8 +1760,8 @@ * xterm.c [VMS]: Don't #include <sys/termio.h> and <string.h>. * xfns.c [VMS]: Get the gray_bits from [.bitmaps]gray.xbm. * process.c [VMS] (DCL_PROMPT): Remove hack. - (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG, - WCOREDUMP, WTERMSIG): New dummy definitions. + (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG) + (WCOREDUMP, WTERMSIG): New dummy definitions. (deactivate_process): Add missing semicolon. * dispnew.c (init_display): Get display name from environment properly on VMS as well as Unix. @@ -2004,7 +2003,7 @@ 1993-03-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * cmds.c (overwrite_binary_mode): Deleted; this implements the + * cmds.c (overwrite_binary_mode): Deleted; this implements the wrong feature. (Qoverwrite_mode_binary): New variable. (internal_self_insert): If current_buffer->overwrite_mode is @@ -2185,7 +2184,7 @@ 1993-03-12 Eric S. Raymond (eric@mole.gnu.ai.mit.edu) - * term.c (CONDITIONAL_REASSIGN): fixed reference to tigetstr. + * term.c (CONDITIONAL_REASSIGN): Fixed reference to tigetstr. This should have been tgetstr, but I typoed and tigetstr happens to link and even do the right thing if you're on a System V box. @@ -2304,8 +2303,8 @@ * m/intel386.h (LIB_STANDARD): If USG5_4 is #defined, there's no need to include `-lPW'; that has been merged with `-lc'. - * emacs.c (__do_global_ctors, __do_global_ctors_aux, - __do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't + * emacs.c (__do_global_ctors, __do_global_ctors_aux) + (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't define these if ORDINARY_LINK is #defined; in that case, the standard linking procedure will find definitions for these. @@ -2549,7 +2548,7 @@ * indent.c (current_column, Fmove_to_column, compute_motion): Expect display table elts to be vectors. - * alloc.c: (Fmake_rope, Frope_elt): Fns deleted. + * alloc.c (Fmake_rope, Frope_elt): Fns deleted. * lisp.h (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros. @@ -2616,10 +2615,10 @@ 1993-03-02 Karl Berry (karl@cs.umb.edu) - * s/isc2-2.h (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD): - Define. - (HAVE_TIMEVAL): Do not define. - (NO_ASM): Only define once. + * s/isc2-2.h (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD): + Define. + (HAVE_TIMEVAL): Do not define. + (NO_ASM): Only define once. 1993-03-02 Jim Blandy (jimb@totoro.cs.oberlin.edu) @@ -2701,10 +2700,10 @@ Use the term `scroll bar', instead of `scrollbar'. * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, - lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, - xterm.c, xterm.h: Terminology changed. + * lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, + * xterm.c, xterm.h: Terminology changed. - Don't generate switch-frame events by checking Vlast_event_frame; + Don't generate switch-frame events by checking Vlast_event_frame; use a separate variable for that bookkeeping. In order to generate them properly, we may need to fiddle with it. * keyboard.c (internal_last_event_frame): New variable. @@ -3103,12 +3102,12 @@ 1993-02-08 Jim Blandy (jimb@totoro.cs.oberlin.edu) - * keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding, - Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional + * keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding) + (Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional argument ACCEPT_DEFAULT, to control whether this function sees bindings for t. - (Fwhere_is_internal, describe_map_tree, describe_map_2, - describe_vector): Pass the proper arguments to Flookup_key. + (Fwhere_is_internal, describe_map_tree, describe_map_2) + (describe_vector): Pass the proper arguments to Flookup_key. * fileio.c (Fexpand_file_name): Pass DEFALT through Fexpand_file_name before using it. @@ -3161,7 +3160,7 @@ 1993-01-25 Jim Blandy (jimb@totoro.cs.oberlin.edu) - `live-frame-p' has become `frame-live-p'. + `live-frame-p' has become `frame-live-p'. * frame.c (Qlive_frame_p): Renamed to Qframe_live_p. (Flive_frame_p): Renamed to Fframe_live_p. (syms_of_frame): Defsubrs and initializations adjusted. @@ -3300,8 +3299,8 @@ * commands.h (unread_command_event): Change extern declaration. * keyboard.c (unread_command_event): Change the definition. (syms_of_keyboard): Change DEFVAR, and adjust the docstring. - (command_loop_1, read_char, Finput_pending, Fdiscard_input, - quit_throw_to_read_char, init_keyboard): Change to use + (command_loop_1, read_char, Finput_pending, Fdiscard_input) + (quit_throw_to_read_char, init_keyboard): Change to use unread_command_events, with the new semantics. * lread.c (read_char): Same. * minibuf.c (temp_echo_area_glyphs): Same. @@ -3325,7 +3324,7 @@ * xterm.c (x_set_window_size): Always mark the frame garbaged. - * window.c (Vmouse_window): Variable removed; it can't be handled + * window.c (Vmouse_window): Variable removed; it can't be handled properly without race conditions, and the events give you all the information you need anyway. (syms_of_window): Remove DEFVAR. @@ -3422,10 +3421,10 @@ * xterm.h (struct x_display): vertical_scrollbars and judge_timestamp members deleted. (struct scrollbar): Redesigned to be a template for a Lisp_Vector. - (SCROLLBAR_VEC_SIZE, XSCROLLBAR, SCROLLBAR_PACK, SCROLLBAR_UNPACK, - SCROLLBAR_X_WINDOW, SET_SCROLLBAR_X_WINDOW, - VERTICAL_SCROLLBAR_INSIDE_WIDTH, VERTICAL_SCROLLBAR_TOP_RANGE, - VERTICAL_SCROLLBAR_INSIDE_HEIGHT, VERTICAL_SCROLLBAR_MIN_HANDLE): + (SCROLLBAR_VEC_SIZE, XSCROLLBAR, SCROLLBAR_PACK, SCROLLBAR_UNPACK) + (SCROLLBAR_X_WINDOW, SET_SCROLLBAR_X_WINDOW) + (VERTICAL_SCROLLBAR_INSIDE_WIDTH, VERTICAL_SCROLLBAR_TOP_RANGE) + (VERTICAL_SCROLLBAR_INSIDE_HEIGHT, VERTICAL_SCROLLBAR_MIN_HANDLE): New macros, to help deal with the lispy structures, and deal with the graphics. * frame.h (WINDOW_VERTICAL_SCROLLBAR): Macro deleted. @@ -3441,11 +3440,11 @@ * xterm.c (x_window_to_scrollbar): Scrollbars are chained on frames' scrollbar field, not their x.display->vertical_scrollbars field. - (x_scrollbar_create, x_scrollbar_set_handle, x_scrollbar_move, - x_scrollbar_remove, XTset_vertical_scrollbar, - XTcondemn_scrollbars, XTredeem_scrollbar, XTjudge_scrollbars, - x_scrollbar_expose, x_scrollbar_handle_click, - x_scrollbar_handle_motion): Substantially rewritten to correct + (x_scrollbar_create, x_scrollbar_set_handle, x_scrollbar_move) + (x_scrollbar_remove, XTset_vertical_scrollbar) + (XTcondemn_scrollbars, XTredeem_scrollbar, XTjudge_scrollbars) + (x_scrollbar_expose, x_scrollbar_handle_click) + (x_scrollbar_handle_motion): Substantially rewritten to correct typos and brainos, and to accomodate the lispy structures. * xterm.c (x_scrollbar_background_expose): Function deleted; we @@ -3479,10 +3478,10 @@ window_internal_width. (pos_tab_offset, Fvertical_motion): Use window_internal_width instead of writing it out. - * window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left, - Fscroll_right): Same. - * xdisp.c (redisplay, try_window, try_window_id, - display_text_line): Same. + * window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left) + (Fscroll_right): Same. + * xdisp.c (redisplay, try_window, try_window_id) + (display_text_line): Same. * xdisp.c (display_string): Add new variable `f', to be W's frame. Use it to set desired_glyphs, and to get the frame's width @@ -3502,17 +3501,17 @@ (x_set_vertical_scrollbar): Renamed to x_set_vertical_scrollbars. (x_frame_parms): Adjusted accordingly. - * xterm.h (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, - PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Rewritten, using: - (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, PIXEL_TO_CHAR_ROW, - PIXEL_TO_CHAR_COL): New macros. + * xterm.h (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT) + (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Rewritten, using: + (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, PIXEL_TO_CHAR_ROW) + (PIXEL_TO_CHAR_COL): New macros. * xfns.c [not HAVE_X11] (Fx_create_frame): Use the PIXEL_TO_CHAR_{HEIGHT,WIDTH} macros to figure the frame's character size, and the CHAR_TO_PIXEL* macros for vice versa. - * xterm.c (XTwrite_glyphs, XTclear_end_of_line, stufflines, - scraplines, dumprectangle, pixel_to_glyph_coords, x_draw_box, - clear_cursor, x_display_bar_cursor, x_draw_single_glyph, - x_set_mouse_position): Use the CHAR_TO_PIXEL_* macros. + * xterm.c (XTwrite_glyphs, XTclear_end_of_line, stufflines) + (scraplines, dumprectangle, pixel_to_glyph_coords, x_draw_box) + (clear_cursor, x_display_bar_cursor, x_draw_single_glyph) + (x_set_mouse_position): Use the CHAR_TO_PIXEL_* macros. * xterm.c (x_wm_set_size_hint): The max_width and max_height members of the size_hints are expressed in pixels, not columns. @@ -3606,8 +3605,8 @@ input_event to use frame_or_window now. * xterm.c (construct_mouse_click, XTread_socket): Same. - * xterm.c (last_mouse_bar, last_mouse_bar_frame, last_mouse_part, - last_mouse_scroll_range_start, last_mouse_scroll_range_end): + * xterm.c (last_mouse_bar, last_mouse_bar_frame, last_mouse_part) + (last_mouse_scroll_range_start, last_mouse_scroll_range_end): Replaced with... (last_mouse_scrollbar): New variable. (note_mouse_movement): Clear last_mouse_scrollbar when we have @@ -3719,7 +3718,7 @@ 1993-01-07 Jim Blandy (jimb@totoro.cs.oberlin.edu) - * config.h.in: protect against multiple #inclusions. + * config.h.in: Protect against multiple #inclusions. * config.h.in: Add a declaration for getenv. @@ -3757,7 +3756,7 @@ 1992-12-21 Jim Blandy (jimb@totoro.cs.oberlin.edu) - * keyboard.c: Protect all references to kbd_buffer_frames with + * keyboard.c: Protect all references to kbd_buffer_frames with #ifdef MULTI_FRAME. * frame.h (struct frame): New fields `can_have_scrollbars' and @@ -3771,11 +3770,11 @@ * xterm.h (struct x_display): vertical_scrollbars, judge_timestamp, vertical_scrollbar_extra: New fields. (struct scrollbar): New struct. - (VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT, - VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER, - VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER, - CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH, - PIXEL_TO_CHAR_HEIGHT): New accessors and macros. + (VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT) + (VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER) + (VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER) + (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH) + (PIXEL_TO_CHAR_HEIGHT): New accessors and macros. * frame.c (make_frame): Initialize the `can_have_scrollbars' and `has_vertical_scrollbars' fields of the frame. * term.c (term_init): Note that TERMCAP terminals don't support @@ -3797,17 +3796,17 @@ * xterm.c: #include <X11/cursorfont.h> and "window.h". (x_vertical_scrollbar_cursor): New variable. (x_term_init): Initialize it. - (last_mouse_bar, last_mouse_bar_frame, last_mouse_part, - last_mouse_scroll_range_start, last_mouse_scroll_range_end): New + (last_mouse_bar, last_mouse_bar_frame, last_mouse_part) + (last_mouse_scroll_range_start, last_mouse_scroll_range_end): New variables. (XTmouse_position): Use them to return scrollbar movement events. Take new arguments, for that purpose. - (x_window_to_scrollbar, x_scrollbar_create, - x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move, - XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar, - XTjudge_scrollbars, x_scrollbar_expose, - x_scrollbar_background_expose, x_scrollbar_handle_click, - x_scrollbar_handle_motion): New functions to implement scrollbars. + (x_window_to_scrollbar, x_scrollbar_create) + (x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move) + (XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar) + (XTjudge_scrollbars, x_scrollbar_expose) + (x_scrollbar_background_expose, x_scrollbar_handle_click) + (x_scrollbar_handle_motion): New functions to implement scrollbars. (x_term_init): Set the termhooks.h hooks to point to them. (x_set_window_size): Use new macros to calculate frame size. Set vertical_scrollbar_extra field. @@ -3842,9 +3841,9 @@ v_thumbdown, v_slider, h_scrollbar, h_thumbup, h_thumbdown, h_slider, v_scrollbar_width, h_scrollbar_height fields. - * keyboard.c (Qvscrollbar_part, Qvslider_part, Qvthumbup_part, - Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, Qhthumbup_part, - Qhthumbdown_part, Qscrollbar_click): Deleted; part of an obsolete + * keyboard.c (Qvscrollbar_part, Qvslider_part, Qvthumbup_part) + (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, Qhthumbup_part) + (Qhthumbdown_part, Qscrollbar_click): Deleted; part of an obsolete interface. (head_table): Removed from here as well. (syms_of_keyboard): And here. @@ -4108,8 +4107,8 @@ * xterm.c (XTread_socket): When we get MapNotify, UnmapNotify, Expose, ExposeWindow, or UnmapWindow, set f->async_visible, not f->visible. - (x_do_pending_expose, x_raise_frame, x_lower_frame, - x_make_frame_invisible, x_make_frame_visible, x_iconify_frame): + (x_do_pending_expose, x_raise_frame, x_lower_frame) + (x_make_frame_invisible, x_make_frame_visible, x_iconify_frame): Test and set f->async_visible and f->async_iconified, not f->visible or f->async_iconified. @@ -4287,8 +4286,8 @@ `make-obsolete-variable' to warn people. * command.h (unread_command_char): Change name in extern declaration. * keyboard.c (unread_command_char): Rename. - (command_loop_1, read_char, Finput_pending, Fdiscard_input, - quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change + (command_loop_1, read_char, Finput_pending, Fdiscard_input) + (quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change references. * lread.c (Fread_char): Change reference. * minibuf.c (temp_echo_area_glyphs): Change reference to @@ -4373,7 +4372,7 @@ calling getwd. #include <sys/types.h> and <sys/stat.h>, for the call to stat. - Indicate whether an autoload form stands for a keymap or not. + Indicate whether an autoload form stands for a keymap or not. * eval.c (Fautoload): Renamed fifth argument TYPE. Document the fact that (eq TYPE 'keymap) means FUNCTION will become a keymap when loaded. @@ -4441,15 +4440,15 @@ (read_key_sequence): Declare PROMPT to be char *, not a Lisp_Object. Use the appropriate accessors on keybuf when looking for ASCII function key sequences. - * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers, - Fmouse_click_p, read_char): Add external declarations for these. + * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers) + (Fmouse_click_p, read_char): Add external declarations for these. * keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume that Flength returns an integer. - * lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist, - Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p, - Fdirectory_file_name, Ffile_name_directory, - expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code, - Fundo_boundary, truncate_undo_list): Add extern declarations for + * lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist) + (Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p) + (Fdirectory_file_name, Ffile_name_directory) + (expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code) + (Fundo_boundary, truncate_undo_list): Add extern declarations for these. * lread.c (read_char): Add an extern declaration for this, indicating that it returns a Lisp_Object. @@ -4458,7 +4457,7 @@ unread_command_char. * print.c (print): Cast the frame's address to an integer before passing it to sprintf to form the frame's printed form. - * process.c: (status_convert): Declare this to return a + * process.c (status_convert): Declare this to return a Lisp_Object at the top of the file. (decode_status): Don't untag XCONS (tem)->cdr before storing it in tem; tem is a Lisp_Object, too. @@ -4508,9 +4507,9 @@ PART as Qnil, not zero. (x_calc_absolute_position): Remember that x_screen_width and x_screen_height are ints, not Lisp_Objects. - * xterm.h (x_screen_count, x_release, x_screen_height, - x_screen_height_mm, x_screen_width, x_screen_width_mm, - x_save_under, x_screen_planes): Declare this as ints, to match + * xterm.h (x_screen_count, x_release, x_screen_height) + (x_screen_height_mm, x_screen_width, x_screen_width_mm) + (x_save_under, x_screen_planes): Declare this as ints, to match their definitions in xterm.c. * ymakefile: Note the new dependencies caused by the new #inclusions above. @@ -4566,7 +4565,7 @@ that nobody outside of this file uses it. * keymap.c: Deal with autoloaded keymaps properly. - (get_keymap_1): Renamed to inner_get_keymap; made + (get_keymap_1): Renamed to inner_get_keymap; made static. New argument AUTOLOAD says to pursue autoloads if non-zero. (Fkeymapp, get_keymap, get_keyelt, Flookup_key): Ask get_keymap_1 @@ -4595,9 +4594,9 @@ 1992-10-27 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu) - * sysdep.c (get_system_name): Use gethostname for USG systems if - HAVE_GETHOSTNAME is defined. - * s/hpux7.h, s/irix3-3.h (HAVE_GETHOSTNAME): Define it. + * sysdep.c (get_system_name): Use gethostname for USG systems if + HAVE_GETHOSTNAME is defined. + * s/hpux7.h, s/irix3-3.h (HAVE_GETHOSTNAME): Define it. 1992-10-27 Jim Blandy (jimb@totoro.cs.oberlin.edu) @@ -4678,7 +4677,7 @@ * xdisp.c (message): If M is zero, clear echo_area_glyphs and previous_echo_glyphs, so that the minibuffer shows through. -* * editfns.c (Fmessage): With no arguments, clear any active + * editfns.c (Fmessage): With no arguments, clear any active message; let the minibuffer contents show through. * minibuf.c (temp_echo_area_glyphs): Don't clear echo_area_glyphs and previous_echo_glyphs; let message do that work. @@ -4691,7 +4690,7 @@ (init_keyboard): Don't allocate it here. (syms_of_keyboard): Allocate it here, and staticpro it. * keyboard.h (this_command_keys): Extern declaration changed. Doc fix. - * callint.c (Fcall_interactively): Change handling of 'e' spec; + * callint.c (Fcall_interactively): Change handling of 'e' spec; this_command_keys is now a vector. * keyboard.c (read_char): Call ourselves with the appropriate @@ -4700,7 +4699,7 @@ store things in it. * window.c: Try to deal coherently with deleted windows: -* (Flive_window_p): New function. + (Flive_window_p): New function. (Qlive_window_p): New variable, to name it in type errors. (syms_of_window): Defsubr Slive_window_p, init and staticpro Qlive_window_p. @@ -4709,9 +4708,9 @@ * window.c (decode_window): Use CHECK_LIVE_WINDOW instead of CHECK_WINDOW; the only thing a user should be able to do to a dead window is check its type. - (Fcoordinates_in_window_p, Fnext_window, Fprevious_window, - Fdelete_other_windows, Fselect_window, Fsplit_window, - Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of + (Fcoordinates_in_window_p, Fnext_window, Fprevious_window) + (Fdelete_other_windows, Fselect_window, Fsplit_window) + (Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of CHECK_WINDOW. * frame.c (make_frame_without_minibuffer, Fwindow_frame): Same. * sunfns.c (Fsun_menu_internal): Same. @@ -4891,7 +4890,7 @@ (syms_of_keyboard): DEFVAR Vlast_event_frame whether or not MULTI_FRAME is defined. - * keyboard.c: Add switch-frame events. + * keyboard.c: Add switch-frame events. (Qswitch_frame): New event header symbol. (head_table): Include Qswitch_frame in the table of event heads. (kbd_buffer_get_event): Detect when a frame switch has occurred, @@ -5102,15 +5101,15 @@ are not 5 elements long. (EVENT_HEAD): Work correctly on all sorts of events, not just events with parameters. - (EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, - EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful + (EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON) + (EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful anymore; this information may appear twice in an event. These are replaced by the POSN_ accessors, which are meant to be composed with the EVENT_START and EVENT_END accessors. (EVENT_START, EVENT_END): Two new accessors, to get at the starting and ending position of an event. - (POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON, - POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher + (POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON) + (POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher diasassemble the values returned by EVENT_START and EVENT_END. * keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first testing for EVENT_HAS_PARAMETERS; EVENT_HEAD works properly on @@ -5124,7 +5123,7 @@ * keyboard.c (Qevent_unmodified): Replaced by... (Qevent_symbol_elements): New property. - (syms_of_keyboard): initialize and staticpro the latter, not the + (syms_of_keyboard): Initialize and staticpro the latter, not the former. * keyboard.h (Qevent_unmodified): Extern declaration replaced by... (Qevent_symbol_elements): This. @@ -5248,7 +5247,7 @@ got removed with no comment or ChangeLog entry, and append-to-buffer uses it. - * window.c (struct save_window_data): Add a member called + * window.c (struct save_window_data): Add a member called focus_frame, to save and restore the screen's focus frame. (Fset_window_configuration): Redirect the frame's focus as indicated in the window configuration. @@ -5284,12 +5283,12 @@ * xselect.c (Qcut_buffer0): Symbol removed; we're using a new interface to the cut buffer now. - (NUM_CUT_BUFFERS, cut_buffer_atom, cut_buffer_value, - cut_buffer_cached, cut_buffer_just_set): New variables. + (NUM_CUT_BUFFERS, cut_buffer_atom, cut_buffer_value) + (cut_buffer_cached, cut_buffer_just_set): New variables. (Fx_own_selection, Fx_selection_value): Dike out the code to handle CUT_BUFFER0 requests. - (Fx_get_cut_buffer, Fx_set_cut_buffer, x_watch_cut_buffer_cache, - x_invalidate_cut_buffer_cache): New functions. + (Fx_get_cut_buffer, Fx_set_cut_buffer, x_watch_cut_buffer_cache) + (x_invalidate_cut_buffer_cache): New functions. (syms_of_xselect): Don't bother to initialize Qcut_buffer0. Initialize and staticpro cut_buffer_value, and defsubr Sx_get_cut_buffer and Sx_set_cut_buffer. @@ -5327,9 +5326,9 @@ 1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * frame.c (Fselect_frame, Fframe_root_window, - Fframe_selected_window, Fnext_frame, Fmake_frame_visible, - Fmake_frame_invisible, Ficonify_frame): Doc fixes. + * frame.c (Fselect_frame, Fframe_root_window) + (Fframe_selected_window, Fnext_frame, Fmake_frame_visible) + (Fmake_frame_invisible, Ficonify_frame): Doc fixes. * ralloc.c: Since the users of the relocating allocation code handle memory exhaustion, it's better to return an error code to @@ -5378,8 +5377,8 @@ (syms_of_keyboard): Doc fix for Vlast_event_frame. (Vlast_event_frame): Doc fix. - * termhooks.h (alt_modifier, hyper_modifier, super_modifier, - down_modifier, drag_modifier): New modifiers, to support the new + * termhooks.h (alt_modifier, hyper_modifier, super_modifier) + (down_modifier, drag_modifier): New modifiers, to support the new input system. Re-arranged modifiers so that their bits are in canonical order; this makes reorder_modifiers slightly simpler. * keyboard.c (format_modifiers, reorder_modifiers): Handle the new @@ -5421,16 +5420,16 @@ between text with different properties. Use the old and new positions as arguments to these calls. - * intervals.c, intervals.h: (map_intervals, make_buffer_interval, - make_string_interval,run_hooks): Deleted. + * intervals.c, intervals.h (map_intervals, make_buffer_interval) + (make_string_interval, run_hooks): Deleted. 1992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) * keymap.c (DENSE_TABLE_SIZE): Doc fix. (keymap_table): Function removed; this function exists only to support an incorrect understanding of the format of keymaps. - (access_keymap, store_in_keymap, Fcopy_keymap, - Faccessible_keymaps): Correctly handle vectors at any point in the + (access_keymap, store_in_keymap, Fcopy_keymap) + (Faccessible_keymaps): Correctly handle vectors at any point in the keymap; don't assume it must be at the front. (describe_map): Instead of calling describe_vector on the vector in the cadr of the keymap (if present) and then calling @@ -5656,12 +5655,12 @@ 1992-09-11 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * s/esix5r4.h: New file. + * s/esix5r4.h: New file. - * sysdep.c (init_sys_modes): Handle VDSUSP like V_DSUSP. - Use CDISABLE, not CDEL. - Turn off IEXTEN if it exists. - * systty.h (CDISABLE): New macro; may be defined from CDEL. + * sysdep.c (init_sys_modes): Handle VDSUSP like V_DSUSP. + Use CDISABLE, not CDEL. + Turn off IEXTEN if it exists. + * systty.h (CDISABLE): New macro; may be defined from CDEL. * keyboard.c (command_loop_1): Bind inhibit-quit to t when in Fsit_for. @@ -5676,7 +5675,7 @@ 1992-09-09 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * frame.c (choose_minibuf_frame): abort if the selected frame has + * frame.c (choose_minibuf_frame): Abort if the selected frame has nil in its minibuffer_window slot; this shouldn't happen any more. * window.c (minibuffer_window): Accept an optional FRAME argument; if specified, return the minibuffer used by that frame. @@ -5758,9 +5757,9 @@ 1992-09-03 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * editfns.c (Fcurrent_time_string): Change docstring to - indicate that we will probably add the timezone to the end, - now that we have it available on many systems. + * editfns.c (Fcurrent_time_string): Change docstring to + indicate that we will probably add the timezone to the end, + now that we have it available on many systems. * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly insists on defining SIGCHLD, even if it already has a definition. @@ -5774,7 +5773,7 @@ otherwise, approximate the right thing, by using min_width and min_height as the base size. -1992-09-02 Barry A. Warsaw (warsaw@anthem.nlm.nih.gov) +1992-09-02 Barry A. Warsaw (warsaw@anthem.nlm.nih.gov) Extended syntax.c in the following ways to support up to 2 orthogonal comment styles per mode. This is needed for C++. @@ -5817,7 +5816,7 @@ * doc.c (Fsnarf_documentation): Signal an error if this is called in a dumped Emacs. - * alloc.c (mark_object): mark a symbol's name after marking its + * alloc.c (mark_object): Mark a symbol's name after marking its value, function, and property list rather than before; this way, symbols' names are readable, giving us a chance to detect some kinds of heap corruption. @@ -5899,7 +5898,7 @@ versions of HP/UX before 6.5. Don't define BIG_ENDIAN if it seems that <endian.h> has already done so. - [BSD4_3] Define m68000, instead of hp9000s300; crt0.c uses these + [BSD4_3] Define m68000, instead of hp9000s300; crt0.c uses these to decide what sort of startup code to use. [not BSD4_3] Under HP/UX, always define the BSD memory functions (bcopy, bzero, and bcmp) in terms of the SYSV string functions @@ -5988,7 +5987,7 @@ hasn't specified the icon position. Let the window manager put the icon where it likes. - * xterm.c (x_make_frame_invisible): Don't forget to check the + * xterm.c (x_make_frame_invisible): Don't forget to check the return value of XWithdrawWindow; it could indicate that the window wasn't successfully redrawn. @@ -6005,7 +6004,7 @@ one-line windows are the minibuffer, or that all minibuffers are one line high. Use MINI_WINDOW_P. - * systerm.h: Renamed to systty.h, to be more consistent with + * systerm.h: Renamed to systty.h, to be more consistent with everything else in Unix. * dispnew.c, emacs.c, keyboard.c, process.c, sysdep.c: #include directive changed. @@ -6022,7 +6021,7 @@ 1992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate + * fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate number of arguments. * fns.c (Fyes_or_no_p): Same. @@ -6041,7 +6040,7 @@ 1992-08-19 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when + * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when available [HAVE_X11R4]; send the UnmapNotify event when appropriate [HAVE_X11]; just unmap the window if that's all that's needed [not HAVE_X11]. @@ -6101,7 +6100,7 @@ 1992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * frame.h (struct frame): New member - explicit_name. + * frame.h (struct frame): New member - explicit_name. * frame.c (make_frame): Clear it. * xfns.c (x_set_name): Take new argument EXPLICIT, instead of OLDVAL. @@ -6188,7 +6187,7 @@ * xterm.c: Doc fixes. - More SYSV portability changes from Eric Raymond: + More SYSV portability changes from Eric Raymond: * xterm.c [USG5]: Don't include <sys/types.h>. @@ -6223,60 +6222,60 @@ 1992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu) - Applied SYSV portability changes from Eric Raymond: + Applied SYSV portability changes from Eric Raymond: * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>. Apparently, Xlib.h include string.h if SYSV is defined, and strings.h if not. Don't include <sys/types.h>; just declare getuid to return an - int. Big deal. + int. Big deal. (MAXPATHLEN): If this is not defined by the system's include - files, give it a value of 256. + files, give it a value of 256. (get_user_db): Fetch the defaults directly from the display - structure, rather than using XResourceManagerString; that - function doesn't exist in the older versions of X. + structure, rather than using XResourceManagerString; that + function doesn't exist in the older versions of X. * xterm.c (x_set_text_property): New function. * xfns.c (x_set_name): Use it instead of XSetWMName and - XSetWMIconName. + XSetWMIconName. * xfns.c (select_visual): Fetch the visual id directly from v; - don't call XVisualIDFromVisual, since that function is not - available in earlier versions of X. + don't call XVisualIDFromVisual, since that function is not + available in earlier versions of X. * term.c (term_get_fkeys): Some systems define `static' to be the - empty string, which means that you can't have constant - initialized arrays inside a function. So move the `keys' array - outside of the function. + empty string, which means that you can't have constant + initialized arrays inside a function. So move the `keys' array + outside of the function. * xdisp.c (decode_mode_spec): Same deal, with lots_of_dashes. * xfns.c (x_make_gc): Same deal, regarding cursor_bits. * term.c (keys): Include definitions for "K2" (the center key on - an IBM keypad), "F1" (F11), and "F2" (F12). Handle "k0" and "k;" - specially; see the code for details. + an IBM keypad), "F1" (F11), and "F2" (F12). Handle "k0" and "k;" + specially; see the code for details. * term.c (clear_end_of_line): Remember that on some systems, - "static" gets defined to be the null string, so we can't declare - an array to be static and then initialize it. Since the array in - question (buf) is only one element long, just make it a scalar - rather than an array; it can then be initialized, even if it's - not static. + "static" gets defined to be the null string, so we can't declare + an array to be static and then initialize it. Since the array in + question (buf) is only one element long, just make it a scalar + rather than an array; it can then be initialized, even if it's + not static. * systime.h [not HAVE_TIMEVAL] (EMACS_USECS, EMACS_SET_USECS): - Don't forget to define dummy versions of these. + Don't forget to define dummy versions of these. * systime.h [USE_UTIME]: time_t is a typedef, not a struct. - Don't prefix it with `struct'. + Don't prefix it with `struct'. * systerm.h (EMACS_SET_TTY_PGRP): When there doesn't seem to be - any way to do this, don't forget to give it a dummy definition. + any way to do this, don't forget to give it a dummy definition. * sysdep.c (select): There's no need to cast the return value of - signal anymore, since we have the SIGTYPE macro defined. + signal anymore, since we have the SIGTYPE macro defined. * sysdep.c (read_input_waiting): When scanning for quit - characters, use the value of quit_char, rather than assuming that - C-g is the quit character. And don't forget to declare i. + characters, use the value of quit_char, rather than assuming that + C-g is the quit character. And don't forget to declare i. * sysdep.c [USG5]: Don't include fcntl.h. @@ -6291,7 +6290,7 @@ utimes(2)) emulation lurking in the X shared libraries.) * s/usg5-4.h (USE_UTIME): Remove this definition; the C library - still doesn't have utimes. + still doesn't have utimes. * ralloc.c (get_bloc): When initializing new_bloc->variable, cast NIL to (POINTER *). @@ -6334,11 +6333,11 @@ wasn't written portably, and it should probably go somewhere else anyway - say, funcall or eval. - End of changes from Eric Raymond. + End of changes from Eric Raymond. * xfns.c (Fx_create_frame): Make the default for the icon-type - parameter nil, not t. It seems to cause problems with some X - servers. + parameter nil, not t. It seems to cause problems with some X + servers. * lisp.h (DEFVAR_PER_BUFFER): Add new argument, TYPE, to help check the types of buffer-local variable slots. @@ -6382,11 +6381,11 @@ * window.c (init_window_once): Initialize minibuf_window before FRAME_ROOT_WINDOW, so the latter actually points to something. - * keyboard.c (Fexecute_mouse_event): dyked-out function deleted. + * keyboard.c (Fexecute_mouse_event): Dyked-out function deleted. We're not going to use this mouse interface. - (Vmouse_window, Vmouse_event, Vmouse_event_function, - Vmouse_left_hook, Vmap_frame_hook, Vunmap_frame_hook, - Vmouse_motion_handler): Variables deleted; they were to be used by + (Vmouse_window, Vmouse_event, Vmouse_event_function) + (Vmouse_left_hook, Vmap_frame_hook, Vunmap_frame_hook) + (Vmouse_motion_handler): Variables deleted; they were to be used by Fexecute_mouse_event. (syms_of_keyboard): Same. (command_loop_1): Remove dyked-out code to support @@ -6414,7 +6413,7 @@ 1992-08-11 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * fileio.c (Fread_filename): Don't add one here. + * fileio.c (Fread_filename): Don't add one here. * minibuf.c (Fcompleting_read): Instead, stop subtracting one here, so this function lives up to its doc string, which I think specifies an okay way to work. @@ -6435,7 +6434,7 @@ * xfns.c [not HAVE_X11] (Fx_create_frame): Delete section that's only included if we *do* have X11. Blind patching. - * xfns.c (x_icon): Rewritten to call x_wm_set_icon_position and + * xfns.c (x_icon): Rewritten to call x_wm_set_icon_position and x_wm_set_window_state instead of calling XSetWMHints directly. * xterm.c (x_wm_hints): New variable. (x_wm_set_window_state, x_wm_set_icon_pixmap, @@ -6474,16 +6473,16 @@ 1992-08-10 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * xfns.c (Qbackground_color, Qborder_color, Qborder_width, - Qcursor_color, Qfont, Qforeground_color, Qgeometry, - Qhorizontal_scroll_bar, Qicon_left, Qicon_top, Qiconic_startup, - Qinternal_border_width, Qleft, Qmouse_color, Qparent_id, - Qsuppress_icon, Qsuppress_initial_map, Qtop, Qundefined_color, - Qvertical_scroll_bar, Qwindow_id, Qx_frame_parameter): New + * xfns.c (Qbackground_color, Qborder_color, Qborder_width) + (Qcursor_color, Qfont, Qforeground_color, Qgeometry) + (Qhorizontal_scroll_bar, Qicon_left, Qicon_top, Qiconic_startup) + (Qinternal_border_width, Qleft, Qmouse_color, Qparent_id) + (Qsuppress_icon, Qsuppress_initial_map, Qtop, Qundefined_color) + (Qvertical_scroll_bar, Qwindow_id, Qx_frame_parameter): New symbols, with lisp code to rebuild syms_of_xfns. (syms_of_xfns): Initialize and staticpro them. - (Qheight, Qminibuffer, Qname, Qnone, Qonly, Qwidth, - Qunsplittable): Add extern declaration for these. + (Qheight, Qminibuffer, Qname, Qnone, Qonly, Qwidth) + (Qunsplittable): Add extern declaration for these. (x_init_parm_symbols): Don't initialize Qx_frame_parameter here; it's done in syms_of_xfns. (x_default_parameter): Change the argument char *PROPNAME into a @@ -6491,12 +6490,12 @@ (Fx_geometry, x_figure_window_size, x_icon, Fx_create_frame): Use the new Q... variables, instead of interning things. - * frame.c (Qheight, Qicon, Qmodeline, Qname, Qnone, Qonly, - Qunsplittable, Qwidth, Qx): New symbol, with lisp code to rebuild + * frame.c (Qheight, Qicon, Qmodeline, Qname, Qnone, Qonly) + (Qunsplittable, Qwidth, Qx): New symbol, with lisp code to rebuild syms_of_frame. (syms_of_xfns): Initialize and staticpro them. - (Fframep, Fframe_visible_p, Fframe_parameters): Use - the new Q... variables, instead of interning things. + (Fframep, Fframe_visible_p, Fframe_parameters): Use the new Q... + variables, instead of interning things. (store_in_alist): Change the argument char *PROPNAME into a Lisp_Object PROP; let the caller take care of interning the atom. @@ -6513,16 +6512,16 @@ x_set_frame_parameters, not x_set_frame_parameter. * xfns.c (x_set_frame_param): Replaced by x_set_frame_parameters. (x_set_frame_parameters): Process the alist of parameters here. - Notice `width', `height', `top', and `left' parameters. - Hold off changing the frame size and position until the end, so we + Notice `width', `height', `top', and `left' parameters. + Hold off changing the frame size and position until the end, so we can do both parameters at once when they are both specified. (x_default_parameter): Call x_set_frame_parameters, not x_set_frame_param. - * frame.c (Fmake_frame_visible, Fmake_frame_invisible, - Ficonify_frame, Fframe_parameters, Fmodify_frame_parameters, - Fset_frame_height, Fset_frame_width, Fset_frame_size, - Fset_frame_position): Place clauses controlled by FRAME_X_P inside + * frame.c (Fmake_frame_visible, Fmake_frame_invisible) + (Ficonify_frame, Fframe_parameters, Fmodify_frame_parameters) + (Fset_frame_height, Fset_frame_width, Fset_frame_size) + (Fset_frame_position): Place clauses controlled by FRAME_X_P inside `#ifdef HAVE_X_WINDOWS ... #endif' clauses. * frame.c (Fset_frame_position): Doc fix. @@ -6579,8 +6578,8 @@ * xterm.c (in_display): Deleted this; it's never used in xterm.c, and there is another variable by the same name in dispnew.c. - * frame.c [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width, - Fset_frame_size, Fframe_height, Fframe_width): New functions, for + * frame.c [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width) + (Fset_frame_size, Fframe_height, Fframe_width): New functions, for use when Emacs is not compiled with multiple screens. [not MULTI_SCREEN] (Fset_screen_height, Fset_screen_width): Functions added for backward compatibility with Emacs 18. These @@ -6602,8 +6601,8 @@ 1992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu) * dispnew.c, frame.c, frame.h, keyboard.c, scroll.c, term.c, - window.c, xdisp.c, xfns.c xterm.c (FRAME_IS_TERMCAP, FRAME_IS_X, - FRAME_HAS_MINIBUF): Renamed these to FRAME_TERMCAP_P, FRAME_X_P, + * window.c, xdisp.c, xfns.c xterm.c (FRAME_IS_TERMCAP, FRAME_IS_X) + (FRAME_HAS_MINIBUF): Renamed these to FRAME_TERMCAP_P, FRAME_X_P, and FRAME_HAS_MINIBUF_P, for consistency with the rest of the frame macros. @@ -6627,7 +6626,7 @@ 1992-08-06 Joseph Arceneaux (jla@gnu.ai.mit.edu) - * doc.c (Vdata_directory): Declared. + * doc.c (Vdata_directory): Declared. (syms_of_doc): Initialized. * fileio.c (Fread_filename): Add 1 to the offset position for the @@ -6831,8 +6830,8 @@ * lread.c: Include <ctype.h> at the top of the file, instead of just before isfloat_string; read0 wants to use it too. - * process.c (Fdelete_process, Fprocess_status, Fprocess_send_region, - Fprocess_send_string, Fprocess_send_eof, Finterrupt_process): Doc + * process.c (Fdelete_process, Fprocess_status, Fprocess_send_region) + (Fprocess_send_string, Fprocess_send_eof, Finterrupt_process): Doc fixes. * process.c (Fprocess_status): Use get_process to find the process @@ -6858,10 +6857,10 @@ functions describing the size of the characters of a font. * xterm.h, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, window.h, - window.c, termopts.h, termhooks.h, termchar.h, term.c sysdep.c, - scroll.c, screen.c, screen.h, process.c, print.c, minibuf.c, - lisp.h keyboard.c, indent.c, fns.c, emacs.c, dispnew.c, - dispextern.h, cm.h, alloc.c, config.h.in: Screens are now called + * window.c, termopts.h, termhooks.h, termchar.h, term.c sysdep.c, + * scroll.c, screen.c, screen.h, process.c, print.c, minibuf.c, + * lisp.h keyboard.c, indent.c, fns.c, emacs.c, dispnew.c, + * dispextern.h, cm.h, alloc.c, config.h.in: Screens are now called frames, to avoid even more confusion with X terminology than Emacs's "windows" already cause. All macros, functions, and variables renamed; all uses changed. @@ -6968,7 +6967,7 @@ * emacs.c (Vkill_emacs_hook): Declare this here; it should have a docstring, so we might as well DEFVAR it. - (syms_of_emacs): initialize it, and DEFVAR_LISP it with an + (syms_of_emacs): Initialize it, and DEFVAR_LISP it with an appropriate docstring. 1992-06-28 Jim Blandy (jimb@pogo.cs.oberlin.edu) @@ -6997,8 +6996,8 @@ `horizontal split.' (make_lispy_event, make_lispy_movement, syms_of_keyboard): Uses renamed here. - keyboard.h (Qvertical_split): Extern declaration changed here. - window.c (Fcoordinates_in_window_p): Changed this to return + * keyboard.h (Qvertical_split): Extern declaration changed here. + * window.c (Fcoordinates_in_window_p): Changed this to return `vertical-line' at the appropriate times, rather than `vertical-split'. @@ -7064,28 +7063,28 @@ the `#ifdef MULTI_SCREEN' conditional. * screen.h [not MULTI_SCREEN] (the_only_screen): extern declaration for it here. - [not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS, SCREEN_DESIRED_GLYPHS, - SCREEN_TEMP_GLYPHS, SCREEN_HEIGHT, SCREEN_WIDTH, - SCREEN_NEW_HEIGHT, SCREEN_NEW_WIDTH, SCREEN_CURSOR_X, - SCREEN_CURSOR_Y, SCREEN_ROOT_WINDOW, SCREEN_INSERT_COST, - SCREEN_DELETE_COST, SCREEN_INSERTN_COST, SCREEN_DELETEN_COST, - SCREEN_MESSAGE_BUF, SCREEN_SCROLL_BOTTOM_VPOS): Macros changed to + [not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS, SCREEN_DESIRED_GLYPHS) + (SCREEN_TEMP_GLYPHS, SCREEN_HEIGHT, SCREEN_WIDTH) + (SCREEN_NEW_HEIGHT, SCREEN_NEW_WIDTH, SCREEN_CURSOR_X) + (SCREEN_CURSOR_Y, SCREEN_ROOT_WINDOW, SCREEN_INSERT_COST) + (SCREEN_DELETE_COST, SCREEN_INSERTN_COST, SCREEN_DELETEN_COST) + (SCREEN_MESSAGE_BUF, SCREEN_SCROLL_BOTTOM_VPOS): Macros changed to refer to the_only_screen. - * dispnew.c [not MULTI_SCREEN] (one_screen_cursX, - one_screen_cursY, one_screen_current_glyphs, - one_screen_desired_glyphs, one_screen_temp_glyphs, - delayed_screen_width, delayed_screen_height): Variables + * dispnew.c [not MULTI_SCREEN] (one_screen_cursX) + (one_screen_cursY, one_screen_current_glyphs) + (one_screen_desired_glyphs, one_screen_temp_glyphs) + (delayed_screen_width, delayed_screen_height): Variables deleted; they're all now kept in the_only_screen. * xdisp.c [not MULTI_SCREEN] (message_buf): Variable deleted; same fate. * term.c [not MULTI_SCREEN] (one_screen_width, one_screen_height): Variables deleted; same fate. - * screen.h [not MULTI_SCREEN]: extern declarations for the above + * screen.h [not MULTI_SCREEN]: Extern declarations for the above variables removed. * window.c [not MULTI_SCREEN] (root_window): Variable deleted. [not MULTI_SCREEN] (init_window_once): Use SCREEN_ROOT_WINDOW to refer to the root window, instead of referring to it directly. - * window.h [not MULTI_SCREEN] (root_window): extern declaration + * window.h [not MULTI_SCREEN] (root_window): Extern declaration removed. * scroll.c [not MULTI_SCREEN] (insert_line_cost, delete_line_cost, insert_n_lines_cost, delete_n_lines_cost): Variables deleted; same @@ -7093,8 +7092,8 @@ * dispnew.c [not MULTI_SCREEN] (cursX, cursY): Renamed to `one_screen_cursX' and `one_screen_cursY'. - * screen.h [not MULTI_SCREEN] (cursX, cursY, SCREEN_CURSOR_X, - SCREEN_CURSOR_Y): extern declarations and macros changed + * screen.h [not MULTI_SCREEN] (cursX, cursY, SCREEN_CURSOR_X) + (SCREEN_CURSOR_Y): Extern declarations and macros changed accordingly. * term.c [not MULTI_SCREEN] (screen_width, screen_height): Renamed @@ -7102,8 +7101,8 @@ conflict with local variables when referenced by the `SCREEN_foo' macros. * screen.h [not MULTI_SCREEN] (screen_width, screen_height): - extern declarations changed accordingly. - * termchar.h (screen_width, screen_height): extern declarations + Extern declarations changed accordingly. + * termchar.h (screen_width, screen_height): Extern declarations deleted. Everyone should go through the `SCREEN_foo' macros. (SCREEN_WIDTH, SCREEN_HEIGHT): Changed accordingly. @@ -7148,7 +7147,7 @@ * eval.c (Fsignal): Put call to TOTALLY_UNBLOCK_INPUT under the protection of a `#ifdef HAVE_X_WINDOWS' conditional. - * keyboard.c (kbd_buffer_get_event): Expect *mouse_position_hook + * keyboard.c (kbd_buffer_get_event): Expect *mouse_position_hook to return the timestamp as an unsigned long, not a lisp_Object. This matches the change made to `struct input_event'. (make_lispy_movement): Change argument TIME to an unsigned long. @@ -7216,7 +7215,7 @@ 1992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.) + * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.): Cast character to unsigned char before indexing. 1992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu) @@ -7317,7 +7316,7 @@ * screen.c (Fdelete_screen): Typo in loop looking for new last_nonminibuf_screen - change `screen = XCONS (screens)->cdr` - to `screens = XCONS (screens)->cdr` + to `screens = XCONS (screens)->cdr` * xdisp.c (echo_area_display): Don't neglect to draw all the lines of the minibuffer window (or echo area) when a message is being @@ -7572,7 +7571,7 @@ will inhibit spurious redisplays when process input arrives during a sit-for. - * process.c (Faccept_process_output): Pass zero as read_kbd + * process.c (Faccept_process_output): Pass zero as read_kbd argument to wait_reading_process_input when PROC is nil, not when PROC is non-nil. @@ -7606,7 +7605,7 @@ 1992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu) - * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: define + * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define YMF_PASS_LDFLAGS so that it can deal with an empty flags argument. * callproc.c (Fcall_process): Under VMS, a nil INFILE argument @@ -7618,9 +7617,9 @@ 1992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu) * termhooks.h: Change timestamp from a Lisp_Object to an unsigned - long. + long. * keyboard.c (kbd_buffer_store_event): We don't have to apply the - XINT macro to the timestamp member of the event anymore. + XINT macro to the timestamp member of the event anymore. * process.c (wait_reading_process_output): Don't turn off polling. @@ -7638,7 +7637,7 @@ 1992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'. + * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'. 1992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu) @@ -7659,7 +7658,7 @@ * process.c (wait_reading_process_input): Make C-g really quit in sit-for case. - * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC. + * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC. 1992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu) @@ -7725,8 +7724,8 @@ * callint.c (Fcall_interactively): Get symbol's function by calling indirect_function, instead of just looping. * doc.c (Fdocumentation): Same. - * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval, - Ffuncall): Same. + * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval) + (Ffuncall): Same. * keyboard.c (Fcommand_execute): Same. * data.c (Fsymbol_function): Name the argument `symbol' instead of @@ -7827,9 +7826,9 @@ * syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros removed; they require GCC, and Emacs 19 should compile without GCC. - (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK, - EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX, - EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that + (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK) + (EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX) + (EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that don't require GCC, but expand to statements. * callproc.c (Fcall_process): Use new EMACS_SIG* macros from syssignal.h. @@ -7904,7 +7903,7 @@ * ymakefile (CC, MAKE): Set these variables from optional macros. Change all uses of `make' to ${MAKE}. - * ymakefile: use HAVE_X11 as alias for X11. + * ymakefile: Use HAVE_X11 as alias for X11. * ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2. @@ -8214,8 +8213,8 @@ * m/pfa50.h: New file. * process.c (create_process, process_send_signal): Added changes for m/pfa50.h. - * sysdep.c: same. - * unexec.c: same. + * sysdep.c: Same. + * unexec.c: Same. 1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu) @@ -8365,8 +8364,8 @@ (hfqry, hfskbd): Declare these functions as static before all uses. * unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym): Declare as static before all uses. - Remove extraneous semicolons from #ifdefs of COFF and XCOFF - (unrelocate_symbols): cast the initializers of t_start and d_start + Remove extraneous semicolons from #ifdefs of COFF and XCOFF. + (unrelocate_symbols): Cast the initializers of t_start and d_start to ulong. * s/template.h: Include a clause for the HAVE_TERMIO flag. @@ -8418,8 +8417,8 @@ * sysdep.c (reset_sys_modes): Doc fix. - * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx, - sigpausex): Definitions moved to syssignal.h. + * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx) + (sigpausex): Definitions moved to syssignal.h. * dispnew.c: Doc fix. @@ -8502,14 +8501,14 @@ (store_screen_param): If the value of the minibuffer parameter is a window, try to make it the surrogate minibuffer window. (Qminibuffer): New variable, to support above change. - (syms_of_screen): initialize and staticpro it. + (syms_of_screen): Initialize and staticpro it. * m/tad68k.h: New file. * fileio.c (Ffile_accessible_directory_p): New function. (syms_of_fileio): defsubr it. * callproc.c: #include <errno.h>. - (child_setup): Accept yet another argument, current_dir. + (child_setup): Accept yet another argument, current_dir. Don't try to report an error here if current_dir is inaccessible; this function is called in a vforking process. Just have the process exit with an error code. @@ -8563,7 +8562,7 @@ 1992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted. + * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted. 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -8576,12 +8575,12 @@ * keyboard.h: New file, for external declarations used in processing keyboard input and events. - * lisp.h (Qmode_line, Qvertical_split, num_input_chars, - poll_suppress_count): Extern declarations moved to keyboard.h. + * lisp.h (Qmode_line, Qvertical_split, num_input_chars) + (poll_suppress_count): Extern declarations moved to keyboard.h. * keyboard.c: #include "keyboard.h". - (Qvscrollbar_par, Qvslider_part, Qvthumbup_part, - Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, - Qhthumbleft_part, Qhthumbright_part): Moved declarations here from + (Qvscrollbar_par, Qvslider_part, Qvthumbup_part) + (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part) + (Qhthumbleft_part, Qhthumbright_part): Moved declarations here from xfns.c, so they're with the other event heading symbols. * eval.c: #include "keyboard.h". * ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o): @@ -8605,13 +8604,13 @@ Vmouse_screen_part. (syms_of_xterm): Changed accordingly. - * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW, - EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN, - EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New + * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW) + (EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN) + (EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New macros to recognize and access events that have parameters, like mouse events. - * keyboard.c (read_char, echo_char, Fmouse_click_p, - read_key_sequence): Use them. + * keyboard.c (read_char, echo_char, Fmouse_click_p) + (read_key_sequence): Use them. * keymap.c: #include "keyboard.h". (access_keymap, store_in_keymap, Fsingle_key_description): Use the macros from keyboard.h. @@ -8674,11 +8673,11 @@ causes the window to pop to the front every time a message appears, which isn't desirable. - * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position, - Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen, - Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters, - Fset_screen_height, Fset_screen_width, Fset_screen_size, - Fset_screen_position): Use SCREEN_IS_X macro instead of testing + * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position) + (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen) + (Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters) + (Fset_screen_height, Fset_screen_width, Fset_screen_size) + (Fset_screen_position): Use SCREEN_IS_X macro instead of testing for output_x_window. * xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same. @@ -8988,7 +8987,7 @@ 1991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu) - * search.c: need to include sys/types.h because of recent mod to + * search.c: Need to include sys/types.h because of recent mod to regex.h. 1991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu) @@ -9038,13 +9037,13 @@ (Flive_screen_p): New lisp predicate. (syms_of_screen): Initialize, staticpro, and defsubr the lot. * dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN. - * screen.c (Fscreen_root_window, Fscreen_selected_window, - Fnext_screen, Fset_mouse_position, Frestore_screen_configuration, - Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen, - Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus, - Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height, - Fset_screen_width, Fset_screen_size, Fset_screen_position, - Fselect_screen): Use CHECK_LIVE_SCREEN. + * screen.c (Fscreen_root_window, Fscreen_selected_window) + (Fnext_screen, Fset_mouse_position, Frestore_screen_configuration) + (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen) + (Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus) + (Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height) + (Fset_screen_width, Fset_screen_size, Fset_screen_position) + (Fselect_screen): Use CHECK_LIVE_SCREEN. * window.c (Fwindow_at, Fcurrent_window_configuration): Use CHECK_LIVE_SCREEN. * xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use @@ -9131,8 +9130,8 @@ screen's only window is a minibuffer, aka a "minibuffer screen" or a "minibuffer-only" screen. * dispnew.c (change_screen_size): Use it. - * screen.c (Fselect_screen, next_screen, prev_screen, - Fdelete_screen): Use it. + * screen.c (Fselect_screen, next_screen, prev_screen) + (Fdelete_screen): Use it. * window.c (Fdisplay_buffer): Use it. * screen.c (next_screen, prev_screen): Make MINIBUF a lisp @@ -9229,7 +9228,7 @@ (pixel_to_glyph_coords, construct_mouse_click, note_mouse_position, XTmouse_position): Put these all on the same page. - (XTread_socket): case MotionNotify, call note_mouse_position with + (XTread_socket): Case MotionNotify, call note_mouse_position with the right args; don't call pixel_to_glyph_translation. (x_term_init): Set mouse_position_hook instead of mouse_tracking_enable_hook. @@ -9313,7 +9312,7 @@ * keyboard.c (kbd_buffer_read_char): Renamed to kbd_buffer_get_event, for consistency with kbd_buffer_store_event. - * window.c (Fwindow_at): modified to take the coordinates as a + * window.c (Fwindow_at): Modified to take the coordinates as a pair, not a two-element list, for ease of use and compatibility with events. Make SCREEN argument second and optional. (Fcoordinates_in_window_p): Modified to take and return the @@ -9329,7 +9328,7 @@ * window.c (coordinates_in_window): Make it static. * window.c (Flocate_window_from_coordinates): Renamed to - Fwindow_at. + Fwindow_at. (syms_of_window): Adjusted. * lisp.h: Adjusted to say so. @@ -9396,8 +9395,8 @@ last_event_timestamp. * xselect.c (mouse_timestamp): Don't use this anymore. (last_event_timestamp): Use this instead. - (Fx_own_selection, Fx_own_clipboard, Fx_get_selection, - Fx_get_clipboard): Use last_event_timestamp instead of + (Fx_own_selection, Fx_own_clipboard, Fx_get_selection) + (Fx_get_clipboard): Use last_event_timestamp instead of mouse_timestamp. * xdisp.c (redisplay): Don't pass extra arguments to @@ -9498,9 +9497,9 @@ 1991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu) * bytecode.c (Qbyte_code_meter): New. - (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase, - Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil, - BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New + (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase) + (Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil) + (BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New byte codes. (Fbyte_code): Implemented new codes listed above. Added code to count how many times a function is called. @@ -9574,7 +9573,7 @@ * eval.c (Qinhibit_quit): New variable, to support Aug 5 changes to process.c. (syms_of_eval): Initialize and staticpro above. - * lisp.h: added extern declaration for above. + * lisp.h: Added extern declaration for above. 1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu) @@ -9616,7 +9615,7 @@ (this_filter, filter_process, filter_string): Variables now unnecessary. - * xfns.c (Fx_get_resource): Take the screen name as an optional + * xfns.c (Fx_get_resource): Take the screen name as an optional argument and look up resources using the name of the screen as part of the key. [not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and @@ -9634,8 +9633,8 @@ (Fx_create_screen): Don't use it here. * keyboard.c (classify_object): #if 0'd function finally removed. - * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar, - Qexited_window, Qredraw_screen): Unused, so removed. + * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar) + (Qexited_window, Qredraw_screen): Unused, so removed. (syms_of_xterm): Don't bother to initialize above. * xterm.c (init_input_symbols): Renamed to syms_of_xterm, for @@ -9731,13 +9730,13 @@ 1991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu) - * keyboard.c (command_loop_1): pass both arguments to + * keyboard.c (command_loop_1): Pass both arguments to Fselect_screen. * screen.c (make_screen): Divide the size by sizeof (Lisp_Object) before passing it to Fmake_vector. - * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): fixed + * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed definition. * screen.c: #include termhooks.h and therefore stdio.h. @@ -9751,7 +9750,7 @@ (Fselect_window): Removed grunge to support minibuffer hack. * screen.h (struct screen): Added focus_screen member, and accessor for it. - * alloc.c (mark_object): mark focus_screen member of Lisp_Screens. + * alloc.c (mark_object): Mark focus_screen member of Lisp_Screens. * xterm.c (XTscreen_rehighlight): Use the focus_screen member to decide which screen to highlight. (XTread_socket): Use focus_screen when enqueuing keystrokes. @@ -9940,7 +9939,7 @@ [HAVE_SHM] (init_alloc_once): Initialize pure_size here. * lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size, instead of PURESIZE. - (pure_size): extern declaration added here. + (pure_size): Extern declaration added here. * ymakefile: Added puresize.h to dependencies for alloc.c and data.c's .o files. @@ -10020,16 +10019,16 @@ * minibuf.c (assoc_for_completion): New function. (do_completion): Use that to check for exact match. - * minibuf.c (Ftry_completion): Fix handling of matches aside from + * minibuf.c (Ftry_completion): Fix handling of matches aside from case. If ignoring case, and all else equal, try to preserve the case of the characters in the input. * process.c (status_notify): GCPRO tail. - * sysdep.c (creat_copy_attrs, rename_sans_version): Always set + * sysdep.c (creat_copy_attrs, rename_sans_version): Always set protection to O:REWD when creating file. Added new function rename_sans_version, which strips the version number from the target - filename, renames the temporary file to this filename, and then + filename, renames the temporary file to this filename, and then sets the file protection of this new file to be the same as the file being edited. @@ -10060,8 +10059,8 @@ * sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in terms of the TIOCGETP ioctl. (init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR. - (discard_tty_input, init_baud_rate, child_setup_tty, - init_sys_modes, tabs_safe_p, reset_sys_modes): + (discard_tty_input, init_baud_rate, child_setup_tty) + (init_sys_modes, tabs_safe_p, reset_sys_modes): Use tcgetattr, and if HAVE_TCATTR, use tcsetattr. 1991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu) @@ -10291,7 +10290,7 @@ 1991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * buffer.h (struct buffer_text, struct buffer): small change to + * buffer.h (struct buffer_text, struct buffer): Small change to comments. * search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to @@ -10318,7 +10317,7 @@ * keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so that we always process/toss events we don't want to return. - * screen.c (Fselect_screen): Call Ffocus_screen instead of + * screen.c (Fselect_screen): Call Ffocus_screen instead of x_new_selected_screen, which doesn't exist anymore. * xfns.c (Ffocus_screen): Declare the type of the SCREEN argument. @@ -10466,8 +10465,8 @@ that; otherwise, the while loop lied. (make_lispy_event): Added code to produce mouse movement events. (init_keyboard): Clear the mouse movement buffer. - (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen, - Qexited_window, Qexited_scrollbar): Removed extern declarations + (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen) + (Qexited_window, Qexited_scrollbar): Removed extern declarations for these, since they're no longer generated. (syms_of_keyboard): Initialize and staticpro Qmouse_movement, remove DEFVAR_LISP for Vignore_mouse_events. @@ -10531,9 +10530,9 @@ * keyboard.c (do_mouse_tracking): Define this variable, which controls whether kbd_buffer_read_char will ignore button up and mouse movement events. - * termhooks.h: Declare do_mouse_tracking here. + * termhooks.h: Declare do_mouse_tracking here. - * xterm.h (STANDARD_EVENT_SET): New constant, giving the event + * xterm.h (STANDARD_EVENT_SET): New constant, giving the event mask all the windows use. * xfns.c (Vx_send_mouse_movement_events): Removed this variable; @@ -10644,10 +10643,10 @@ 1991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu) - * bytecode.c (PUSH): Alliant can't be bothered to implement the + * bytecode.c (PUSH): Alliant can't be bothered to implement the preincrement operator right, so use a comma. - * print.c (syms_of_print): staticpro Qexternal_debugging_output. + * print.c (syms_of_print): staticpro Qexternal_debugging_output. * editfns.c (clip_to_bounds): No longer static - used in window.c. * window.c (unshow_buffer): Use clip_to_bounds to make sure we @@ -10677,7 +10676,7 @@ * eval.c (Fcondition_case): Initialize the `handler_list' member of the catchtag. - * keyboard.c (read_char): reset recent_keys_index when it is + * keyboard.c (read_char): Reset recent_keys_index when it is greater than OR EQUAL to the number of elements in recent_keys, stupid. @@ -10814,9 +10813,9 @@ 1991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu) - * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char, - read_key_sequence, Fexecute_extended_command, Fset_input_mode, - init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp) + * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char) + (read_key_sequence, Fexecute_extended_command, Fset_input_mode) + (init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp) instead of XSETINT (var, exp) in those cases where var is not known to already be a Lisp_Int. * search.c (skip_chars): Same. @@ -10833,8 +10832,8 @@ 1991-03-17 Jim Blandy (jimb@geech.ai.mit.edu) - * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map, - append_key): Minor typos and brainos corrected. + * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map) + (append_key): Minor typos and brainos corrected. * keyboard.c (read_char): Removed code to find the vector in a (kbd-macro . VECTOR) - style macro, since the macro is represented @@ -10895,9 +10894,9 @@ * commands.h, lisp.h: Changed global_map and current_global_map to be Lisp_Objects, not Lisp_Vectors. keyboard.c (read_key_sequence): Same. - keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key, - Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings, - syms_of_keymap): Same. + keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key) + (Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings) + (syms_of_keymap): Same. * keymap.c (Fdefine_key): Braino: increment idx and clear metized flag even when the element of the key sequence isn't a character. @@ -11041,9 +11040,9 @@ 1991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu) - * keyboard.c: (recent_keys, this_command_keys, - menu_prompt_more_char, help_char, last_command_char, quit_char, - last_input_char): Changed to Lisp_Objects, so we can use function + * keyboard.c (recent_keys, this_command_keys) + (menu_prompt_more_char, help_char, last_command_char, quit_char) + (last_input_char): Changed to Lisp_Objects, so we can use function keys for them. (Vglobal_function_map): Variable deleted. (echo_char): Echo function keys too. The argument C is now a @@ -11175,7 +11174,7 @@ longer convert X keycodes to symbols in this section of code. (x_convert_modifiers): New function to turn the X modifier bits into struct input_event modifier bits. - (encode_mouse_button): removed, since this work isn't done here + (encode_mouse_button): Removed, since this work isn't done here anymore. (Vx_send_mouse_movement_events): Add an extern declaration for this. @@ -11193,7 +11192,7 @@ * xterm.c (construct_mouse_event): Construct a struct input_event instead of a lispy event. - * screen.c (coordinates_in_window): Added explanatory comment. + * screen.c (coordinates_in_window): Added explanatory comment. (window_from_coordinates): Change PART, whose returned values are dependent on X-windows, to be called MODELINE_P, with appropriate new return values. @@ -11204,7 +11203,7 @@ 1991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu) - * termhooks.h: Added up_modifier to the enum for modifier bits; + * termhooks.h: Added up_modifier to the enum for modifier bits; this bit will be applied to mouse events. (struct input_event): Changed specification of non_ascii_keystroke events to send the function key number instead of a symbol. @@ -11231,7 +11230,7 @@ routines which enqueue them can be called from signal handlers, and therefore should not cons. - * keyboard.c: (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change + * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change these to be of type `struct input_event *'. (kbd_buffer_store_event): Manipulate struct input_events instead of lisp objects. @@ -11268,7 +11267,7 @@ 1991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu) - * xterm.c (init_input_symbols): remove the `xk-' prefix from all + * xterm.c (init_input_symbols): Remove the `xk-' prefix from all the function key symbols, since they're going to be used for function keys from all sorts of terminals, not just when running under X. @@ -11322,27 +11321,27 @@ 1991-02-05 Jim Blandy (jimb@geech.ai.mit.edu) * sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h, - s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h, - s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h: + * s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h, + * s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h: Globally replaced INTERRUPTABLE with INTERRUPTIBLE. * xterm.c (construct_mouse_event): Renamed to construct_mouse_click, since there are kinds of mouse events besides clicks (movement, for example). - (XTread_socket): rename calls here. + (XTread_socket): Rename calls here. - * xterm.c (mapped_screen_symbol, unmapped_screen_symbol, - exited_scrollbar_symbol, exited_window_symbol, - redraw_screen_symbol, mouse_moved_symbol): Renamed to + * xterm.c (mapped_screen_symbol, unmapped_screen_symbol) + (exited_scrollbar_symbol, exited_window_symbol) + (redraw_screen_symbol, mouse_moved_symbol): Renamed to Qmapped_screen, Qunmapped_screen, Qexited_scrollbar, Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming conventions elsewhere in Emacs. - * xfns.c (text_part_sym, modeline_part_sym, - vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym, - vertical_thumbdown_sym, horizontal_scrollbar_sym, - horizontal_slider_sym, horizontal_thumbleft_sym, - horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part, + * xfns.c (text_part_sym, modeline_part_sym) + (vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym) + (vertical_thumbdown_sym, horizontal_scrollbar_sym) + (horizontal_slider_sym, horizontal_thumbleft_sym) + (horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part, Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, Qhthumbleft_part, Qhthumbright_part, to agree with the naming conventions elsewhere @@ -11394,7 +11393,7 @@ variables renamed to Vmouse_screen_part, Vx_send_mouse_movement_events. - * lread.c (Feval_buffer): function deleted. + * lread.c (Feval_buffer): Function deleted. (Feval_current_buffer): Removed "#if 0 ... #endif" around this function. @@ -11419,7 +11418,7 @@ * xterm.h: Added external declaration for x_focus_screen. * search.h: File deleted. - * buffer.h: declare searchbuf here instead. + * buffer.h: Declare searchbuf here instead. * screen.c (Ffocus_screen, Funfocus_screen): Moved these functions to xfns.c, since they're x-specific. @@ -11471,7 +11470,7 @@ cursor in its filled and hollow forms. * xterm.h (enum text_cursor_kinds): Added enum for the different kinds of cursors which might be displayed in a window. - (struct x_display): added member `text_cursor_kind' which says + (struct x_display): Added member `text_cursor_kind' which says which kind of cursor is currently being displayed in the window, so we can arrange to redraw it effectively. @@ -11522,7 +11521,7 @@ 1991-01-28 Jim Blandy (jimb@geech.ai.mit.edu) - * ymakefile: noted that callint.o depends on mocklisp.h, + * ymakefile: Noted that callint.o depends on mocklisp.h, and dired.o on search.h. * environ.h: Deleted - its creation in the first place was misguided. @@ -11540,7 +11539,7 @@ 1991-01-27 Jim Blandy (jimb@geech.ai.mit.edu) - * lisp.h (struct handler): add poll_suppress_count member, so + * lisp.h (struct handler): Add poll_suppress_count member, so we can restore poll_suppress_count when we handle an error. * eval.c (struct catchtag): Add it here too, for throws. (internal_catch, Fcondition_case, internal_condition_case): Record @@ -11569,13 +11568,13 @@ 1991-01-15 Jim Blandy (jimb@geech.ai.mit.edu) - * doc.c (Fsnarf_documentation): handle attaching docstrings to + * doc.c (Fsnarf_documentation): Handle attaching docstrings to bytecode objects too. - * syntax.h (syntax_spec_code): make external declaration for this + * syntax.h (syntax_spec_code): Make external declaration for this unsigned char to match the definition in syntax.c. - * indent.c (compute_motion): added comments describing how it + * indent.c (compute_motion): Added comments describing how it can be used. 1991-01-15 Richard Stallman (rms@mole.ai.mit.edu) @@ -11630,12 +11629,12 @@ 1991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu) - * dispnew.c (buffer_posn_from_coords): compute_motion starting + * dispnew.c (buffer_posn_from_coords): Compute_motion starting from bufp[y] instead of counting from the top of the window. 1991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu) - * window.c (window-configuration-p): Needed. Added. + * window.c (window-configuration-p): Needed. Added. 1991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu) @@ -11666,7 +11665,7 @@ * alloc.c (Fmake_byte_code): Flesh out docstring. - * window.c (window_loop): pick the first window correctly, even + * window.c (window_loop): Pick the first window correctly, even when screen == 0. * dispnew.c (scroll_screen_lines): Don't forget to call @@ -11701,15 +11700,15 @@ highlight_face, since they're part of the interval code, and shouldn't be installed yet. - * dispnew.c (init_display): calculate_costs expects a screen + * dispnew.c (init_display): Calculate_costs expects a screen parameter; pass selected_screen, instead of nothing. * search.c (Freplace_match): Protect STRING. * process.c (run_filter): New function. (read_process_output, exec_sentinel): Use run_filter to call the process's filter function. - (status_notify): GCPro MSG. - * process.c (Fopen_network_stream): Protect various args. + (status_notify): GCPro MSG. + * process.c (Fopen_network_stream): Protect various args. * print.c (Fprin1_to_string, Fprint): Protect OBJ. * lread.c (Feval_region): Check type of B. * keymap.c (describe_alist): Protect ELT_PREFIX and TEM2. @@ -11745,12 +11744,12 @@ point directly. * window.c (Fselect_window): Here too. - * xdisp.c (redisplay_all_windows): removed static declaration for + * xdisp.c (redisplay_all_windows): Removed static declaration for this nonexistent function. 1991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu) - * window.c (window_loop): neatened up. MINI being non-zero now + * window.c (window_loop): Neatened up. MINI being non-zero now makes it recognize active minibuffer windows. Iterates properly over multiple screens when asked nicely. (Fget_lru_window, Fget_largest_window): SCREENS arguments are now @@ -11785,35 +11784,35 @@ lines just inserted--old version lost a line. * screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h - (Ffocus_screen, Funfocus_screen): use Joe's new definitions, and + (Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and only define these functions ifdef HAVE_X_WINDOWS. - (window_from_coordinates): use next_screen_window instead of + (window_from_coordinates): Use next_screen_window instead of Fnext_window, so that global minibuffers work. * lread.c (syms_of_read): Don't forget to defsubr read-char-exclusive. - * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen, - Funfocus_screen, Fselected_screen, Fwindow_screen, - Fscreen_root_window, Fscreen_selected_window, Fscreen_list, - Fnext_screen, Fdelete_screen, Fread_mouse_position, - Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible, - Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p, - Fvisible_screen_list, Fscreen_parameters, - Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height, - Fscreen_width, Fset_screen_height, Fset_screen_width, - Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p, - Flocate_window_from_coordinates, Frubber_band_rectangle): added + * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen) + (Funfocus_screen, Fselected_screen, Fwindow_screen) + (Fscreen_root_window, Fscreen_selected_window, Fscreen_list) + (Fnext_screen, Fdelete_screen, Fread_mouse_position) + (Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible) + (Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p) + (Fvisible_screen_list, Fscreen_parameters) + (Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height) + (Fscreen_width, Fset_screen_height, Fset_screen_width) + (Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p) + (Flocate_window_from_coordinates, Frubber_band_rectangle): Added extern declarations for all these. - * lisp.h (Qscreenp): added an extern declaration for this. + * lisp.h (Qscreenp): Added an extern declaration for this. * lisp.h (DBL_DIG): Added constant for the maximum number of decimal digits a float could print to. Used in print.c. * keymap.c (Fkey_description): Produce pretty descriptions of mouse and window system events too. - (Fsingle_key_description): signal an error if obj is not a key. + (Fsingle_key_description): Signal an error if obj is not a key. * data.c (Fkeyp, Qkeyp): Added predicate to recognize things which can be bound - this includes keys, symbols (for function keys and @@ -11827,7 +11826,7 @@ (classify_object): Place the object in read_key_sequence_cmd. - (Fread_key_sequence): recognize that when read_key_sequence + (Fread_key_sequence): Recognize that when read_key_sequence returns -1 or -2, it's a mouse event or window system event. 1991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu) @@ -11837,7 +11836,7 @@ (Fdo_auto_save): Don't call run-hooks before it's defined. This only happens before emacs is dumped, when loading inc-vers.el. - * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here. + * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here. (error): Not here. (Feval): We use argvals[0..5], so declare it to have six elements @@ -11855,10 +11854,10 @@ 1990-12-28 Jim Blandy (jimb@geech.ai.mit.edu) - * print.c (print): put obj in a non-register variable so + * print.c (print): Put obj in a non-register variable so we could gcpro it. Also fixed some syntax errors. - * editfns.c (Fformat): declare nstrings, and declare nstrings and + * editfns.c (Fformat): Declare nstrings, and declare nstrings and strings in a local block. (Fformat): XFLOAT(args[n]) isn't a float; ->data is. @@ -11950,7 +11949,7 @@ 1990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu) - * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING. + * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING. (cmd_error): Protect TAIL while printing. (input_poll_signal, start_polling): Use polling_period. (syms_of_keyboard): Initialize it and make it a Lisp var. @@ -11966,7 +11965,7 @@ * eval.c (Fbacktrace): gcpro TAIL. * emacs.c (Fkill_emacs): gcpro ARG. - * editfns.c (Fformat): remove remains of gcpro'd args. + * editfns.c (Fformat): Remove remains of gcpro'd args. * dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version if CANNOT_DUMP. @@ -11986,11 +11985,11 @@ 1990-12-03 Jim Blandy (jimb@geech.ai.mit.edu) - * callproc.c (Fcall_process): change synch_process_pid to + * callproc.c (Fcall_process): Change synch_process_pid to synch_process_alive, as a general flag that we are waiting for a synchronous process to die. This obviates the need to block SIGCHLDs until we know the pid. - * sysdep.c (wait_for_termination): wait for synch_process_alive to + * sysdep.c (wait_for_termination): Wait for synch_process_alive to be false. * process.c (sigchld_handler): If pid not recognized, look for a @@ -12037,13 +12036,13 @@ 1990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu) - * print.c (Fexternal_debugging_output): added new function which + * print.c (Fexternal_debugging_output): Added new function which writes a character to stderr, for use when debugging emacs with gdb. 1990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu) - * dispnew.c (window_change_signal): used to assume that SIGWINCHes + * dispnew.c (window_change_signal): Used to assume that SIGWINCHes always applied to the currently selected screen. Now it scans the list of screens for a screen controlled by termcap, and changes that screen's size. @@ -12061,18 +12060,18 @@ * regex.c: Disabled definition of NULL from lisp.h - * crt0.c (_start): added static declaration of start1. + * crt0.c (_start): Added static declaration of start1. - * xfns.c: added definition for Vbar_cursor. + * xfns.c: Added definition for Vbar_cursor. (syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor. - * xterm.c (XTread_socket): passed &event.xkey instead of &event to + * xterm.c (XTread_socket): Passed &event.xkey instead of &event to XLookupString, so things will typecheck nicely. * Globally rewrote all references to Vmouse_buffer to use the buffer viewed by Vmouse_window instead. - * alloc.c (xmalloc, xrealloc): removed calls to + * alloc.c (xmalloc, xrealloc): Removed calls to {un,}hold_window_change. The new SIGWINCH-handling code and do_pending_window_change make them unnecessary. @@ -12128,14 +12127,14 @@ 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu) - * indent.c (position_indentation): renamed stray `bf_cur' to + * indent.c (position_indentation): Renamed stray `bf_cur' to `current_buffer', and old `CharAt' usages to `FETCH_CHAR'. - * buffer.c (Fbuffer_disable_undo): the symbol object for this + * buffer.c (Fbuffer_disable_undo): The symbol object for this subroutine was still named Sbuffer_flush_undo, and the symbol's lisp name was similarly out of date. Renamed both, and added an alias in lisp/subr.el . - * keyboard.c (Fset_input_mode): a `meta_flag' had escaped being + * keyboard.c (Fset_input_mode): A `meta_flag' had escaped being renamed to `meta_key'. 1990-10-29 Richard Stallman (rms@mole.ai.mit.edu) @@ -12147,29 +12146,29 @@ 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu) - * window.c (Fset_window_start, window_scroll): renamed stray + * window.c (Fset_window_start, window_scroll): Renamed stray references to `redo_mode_line' to `update_mode_line'. - * xdisp.c (decode_mode_spec): renamed stray references to `bf_cur' + * xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur' and `bf_modified' to `current_buffer' and `MODIFF'. 1990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu) - * environ.h: file created - contains declarations for users of the + * environ.h: File created - contains declarations for users of the environment variable list. - * callproc.c (environ): removed extern declaration of environ, and + * callproc.c (environ): Removed extern declaration of environ, and included environ.h. 1990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu) - * callproc.c (init_callproc): removed extern declaration of + * callproc.c (init_callproc): Removed extern declaration of environ - it's already taken care of at the top of the file. - * mocklisp.h: file created - externally declares certain + * mocklisp.h: File created - externally declares certain functions defined in mocklisp.c. - * lisp.h (Fread_buffer, Fread_key_sequence): added extern + * lisp.h (Fread_buffer, Fread_key_sequence): Added extern declarations for these functions. - * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): removed + * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed extern declarations for these functions, included mocklisp.h. Moved external declaration of index to top of file. @@ -12181,23 +12180,23 @@ 1990-10-23 Jim Blandy (jimb@geech.ai.mit.edu) - * indent.h (last_known_column_point): added extern declaration for + * indent.h (last_known_column_point): Added extern declaration for this variable. - buffer.c (last_known_column_point): removed extern declaration for + * buffer.c (last_known_column_point): Removed extern declaration for this variable, included indent.h. - (Vprin1_to_string_buffer): removed extern declaration - it's + (Vprin1_to_string_buffer): Removed extern declaration - it's already in lisp.h. - * lisp.h (catchlist, backtrace_list, stack_bottom, - current_global_map): added extern declarations for these + * lisp.h (catchlist, backtrace_list, stack_bottom) + (current_global_map): Added extern declarations for these variables. - * alloc.c: removed external declarations for catchlist, + * alloc.c: Removed external declarations for catchlist, backtrace_list, and stack_bottom, since this file includes lisp.h. - * callint.c: (current_global_map): removed extern declaration. + * callint.c (current_global_map): Removed extern declaration. - * search.h: new file - declares searchbuf. - * dired.c (Fdirectory_files): removed extern declaration of + * search.h: New file - declares searchbuf. + * dired.c (Fdirectory_files): Removed extern declaration of searchbuf, included search.h. * Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'. @@ -12214,10 +12213,10 @@ 1990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu) - * xdisp.c: added `extern' declaration for command_loop_level. + * xdisp.c: Added `extern' declaration for command_loop_level. * term.c (term_init): Internal cleanups. - (write_glyphs): renamed argument `start' to `string'. + (write_glyphs): Renamed argument `start' to `string'. 1990-10-21 Richard Stallman (rms@mole.ai.mit.edu) @@ -12244,7 +12243,7 @@ 1990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu) - * scroll.c (do_scrolling): allocate queue using alloca instead + * scroll.c (do_scrolling): Allocate queue using alloca instead of variable-sized arrays. 1990-10-19 Richard Stallman (rms@mole.ai.mit.edu) @@ -12253,10 +12252,10 @@ 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu) - * print.c (internal_with_output_to_temp_buffer): install an + * print.c (internal_with_output_to_temp_buffer): Install an unwind_protect to make sure the current buffer is restored. - * minibuf.c (read_minibuf): call recursive_edit_1 instead of + * minibuf.c (read_minibuf): Call recursive_edit_1 instead of Frecursive_edit, to support the new command_loop_level arrangement. @@ -12266,7 +12265,7 @@ * lread.c (openp): Since access returns 0 on success, change that into a 1 before returning it. - * lisp.h: deleted DEFSIMPLE and DEFPRED, since they're no + * lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no longer used. 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu) @@ -12281,7 +12280,7 @@ 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu) - * keymap.c (Flookup_key): rearranged to use an index into the key + * keymap.c (Flookup_key): Rearranged to use an index into the key sequence instead of a pointer and a level counter. 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu) @@ -12297,7 +12296,7 @@ 1990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu) - * keyboard.c (command_loop): made call to command_loop_2 + * keyboard.c (command_loop): Made call to command_loop_2 conditional on minibuf_level too (it used to be only conditional on command_loop_level), since this is what 18.56 and all the other functions in Emacs 19 keyboard.c do. @@ -12321,7 +12320,7 @@ 1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu) - * indent.c (position_indentation): instead of using CharAt, use a + * indent.c (position_indentation): Instead of using CharAt, use a pointer to scan the buffer - this is faster. * emacs.c (Fdump_emacs): The conditional expression which passes @@ -12351,10 +12350,10 @@ * buffer.c (list_buffers_1): Select the buffer given in Vstandard_output using Fset_buffer instead of set_buffer_internal. - * buffer.c (set_buffer_internal): deleted variable swb - it's + * buffer.c (set_buffer_internal): Deleted variable swb - it's never used. - * buffer.c (count_modified_buffers): function deleted - it's + * buffer.c (count_modified_buffers): Function deleted - it's not used anymore. 1990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu) @@ -12364,7 +12363,7 @@ do not have a DEFVAR_PER_BUFFER, as described in the comments above buffer_local_flags. - * buffer.c (Fget_buffer_create): move initialization of + * buffer.c (Fget_buffer_create): Move initialization of b->save_length and b->last_window_start to reset_buffer. 1990-10-11 Richard Stallman (rms@mole.ai.mit.edu) @@ -12385,7 +12384,7 @@ 1990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu) - * alloc.c (gc_sweep): only unchain markers that are in a buffer. + * alloc.c (gc_sweep): Only unchain markers that are in a buffer. 1990-10-10 Mike Rowan (mtr@apple-gunkies) @@ -12394,11 +12393,11 @@ 1990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu) - * xdist.c: (decode_mode_spec): reworked code to handle %* - it now + * xdist.c (decode_mode_spec): Reworked code to handle %* - it now goes like `if return else if return else ... return' instead of using a conditional operator. - * xdist.c: (fmodetrunc): function deleted - no longer used. + * xdist.c (fmodetrunc): Function deleted - no longer used. 1990-10-09 Richard Stallman (rms@mole.ai.mit.edu) @@ -12427,32 +12426,32 @@ 1990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu) - * sysdep.c (tabs_safe_p, get_screen_size): renamed `sg' to `tty'. + * sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'. - * sysdep.c (init_baud_rate): rearranged code for calculating + * sysdep.c (init_baud_rate): Rearranged code for calculating baud_rate. 1990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu) - * search.c (Freplace_match): used Finsert_buffer_substring instead + * search.c (Freplace_match): Used Finsert_buffer_substring instead of place and deleted place. - * search.c (place): function removed + * search.c (place): Function removed. * process.c (count_active_processes): Deleted; not used. - * minibuf.c (read_minibuf): renamed `prefix' argument to `initial'. + * minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'. 1990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu) - * lread.c (Fload): renamed `MISSING-OK' to `NOERROR'. + * lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'. - * keyboard.c (describe_map): renamed `keys' to `string'. + * keyboard.c (describe_map): Renamed `keys' to `string'. * keyboard.c `Vauto_save_interval' unrenamed back to `auto-save-interval'. - * keymap.c (Fdefine_key, Flookup_key): renamed arguments called + * keymap.c (Fdefine_key, Flookup_key): Renamed arguments called `keys' to `key'. 1990-10-01 Richard Stallman (rms@mole.ai.mit.edu) @@ -12479,20 +12478,20 @@ * keyboard.c: `auto_save_interval' renamed to `Vauto_save_interval', since it *is* a lisp-accessible variable. - * fileio.c (Fdo_auto_save): call record_auto_save so that + * fileio.c (Fdo_auto_save): Call record_auto_save so that read_char knows when we've auto-saved. - * keyboard.c (record_auto_save): added function to support the new + * keyboard.c (record_auto_save): Added function to support the new auto-save conditions. - * keyboard.c (read_char): use num_input_chars and last_auto_save + * keyboard.c (read_char): Use num_input_chars and last_auto_save instead of keystrokes to decide when to autosave. - * keyboard.c (keystrokes): variable deleted. + * keyboard.c (keystrokes): Variable deleted. 1990-09-30 Mike Rowan (mtr@spike.ai.mit.edu) - * keyboard.c, alloc.c: added malloc warning code from + * keyboard.c, alloc.c: Added malloc warning code from 18.56. * dispnew.c, xdisp.c: (un)hold_window_change no longer exists; @@ -12509,7 +12508,7 @@ * lread.c (Fload): Warn if elc file older than source file. - * ymakefile (LIB_X11_LIB): New parameter,default -lX11. + * ymakefile (LIB_X11_LIB): New parameter, default -lX11. (LIBX): Use that. * Makefile (xmakefile): Delete junk.c at the beginning. @@ -12529,49 +12528,49 @@ 1990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu) - * fileio.c (Fwrite_region): renamed variable `fd' to `desc' and + * fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and changed argument to open from `1' to `O_WRONLY'. - * fileio.c (O_WRONLY): added clause to define this if not already + * fileio.c (O_WRONLY): Added clause to define this if not already defined. - * emacs.c (Fdump_emacs): removed a_name variable. + * emacs.c (Fdump_emacs): Removed a_name variable. - * emacs.c (Fkill_emacs): removed code which asked about modified + * emacs.c (Fkill_emacs): Removed code which asked about modified buffers and running subprocesses. - * editfns.c (Fcurrent_time_string): renamed variable `now' to + * editfns.c (Fcurrent_time_string): Renamed variable `now' to `current_time'. - * dispnew.c (update_line): renamed variables `m1' and `m2' to + * dispnew.c (update_line): Renamed variables `m1' and `m2' to `begmatch' and `endmatch'. - * dispnew.c (update_screen): use preempt_count as a limit instead + * dispnew.c (update_screen): Use preempt_count as a limit instead of a counter; count with i instead. - * dispnew.c (visible_bell, inverse_video, baud_rate, - Vwindow_system): rearranged comments. + * dispnew.c (visible_bell, inverse_video, baud_rate) + (Vwindow_system): Rearranged comments. 1990-09-27 Richard Stallman (rms@mole.ai.mit.edu) * emacs.c (main) : Set the DISPLAY environment value when both of MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined. - * m-convex.h (LIB_STANDARD, LIBS_MACHINE): remove these, they + * m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they cause an unnecessary C1/C2 dependency. - * m-convex.h (LD_SWITCH_MACHINE): use -e__start to specify + * m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify where crt0.c begins. - * m-convex.h (HAVE_SETSID): define; must call setsid + * m-convex.h (HAVE_SETSID): Define; must call setsid when creating an inferior with a different controlling tty. - * process.c (create_process): rearrange so that HAVE_SETSID + * process.c (create_process): Rearrange so that HAVE_SETSID will be seen when not under USG. - * m-convex.h (S_IFMT etc): define in case of posix compilation. + * m-convex.h (S_IFMT etc): Define in case of posix compilation. - * m-convex.h (FIRST_PTY_LETTER): do it at runtime. - * unexconvex.c (first_pty_letter): routine to locate lowest pty. + * m-convex.h (FIRST_PTY_LETTER): Do it at runtime. + * unexconvex.c (first_pty_letter): Routine to locate lowest pty. * unexconvex.c: Rewrite so it can cope with thread-local sections. @@ -12635,9 +12634,9 @@ 1990-09-03 Mike Rowan (mtr@apple-gunkies) - * sysdep.c: added setup_pty from 18.56 + * sysdep.c: Added setup_pty from 18.56 - * process.c: merged in 18.55->6 changes. Same for process.h + * process.c: Merged in 18.55->6 changes. Same for process.h globally replaced: redisplay_preserving_echo_area -> redisplay_preserve_echo_area @@ -12712,7 +12711,7 @@ free_screen_glyphs now takes screen argument. * window.c (Fnext_window, Fprevious_window): Fixed typo. New - behaviour: mini non-nil implies all_screens if global mini screen + behaviour: mini non-nil implies all_screens if global mini screen exists, implies current screen only if not. (Fdisplay_buffer): Simplification of multi-screen code. @@ -12741,7 +12740,7 @@ * xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation and notice_mouse_movment (dispnew.c, xterm.c). (Fx_point_coordinates): Also nuked. - mouse_buffer_offset: New lisp variable. + (mouse_buffer_offset): New lisp variable. * xterm.c (notice_mouse_movement): Use it in call to pixel_to_char_translation. @@ -12760,7 +12759,7 @@ 1990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * dispnew.c (pixel_to_char_translation): New algorithm for + * dispnew.c (pixel_to_char_translation): New algorithm for finding y. * xfns.c (install_*_scrollbar): No more height, width parameters. @@ -12781,7 +12780,7 @@ * xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape, setting new variable grabbed_cursor. Return Qt if successful, Qnil otherwise. - (Fx_ungrab_pointer): free grabbed_cursor if non zero. Return Qnil. + (Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil. 1990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -12802,7 +12801,7 @@ 1990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * dispextern.h: element bufp of screen_glyphs no longer dependent + * dispextern.h: Element bufp of screen_glyphs no longer dependent on X windows. * xdisp.c (display_text_line): Likewise. @@ -12845,7 +12844,7 @@ leaving screen, as well as setting x_mouse_x = x_mouse_y = -1. * keyboard.c: Vmouse_window, Vmouse_event declared extern and no - longer DEFVARed: they are already delclared in window.c + longer DEFVARed: they are already delclared in window.c. * screen.c (window_from_coordinates): Use Fnext_window, even if MULTI_SCREEN, to obtain the next window. This is an test. @@ -12858,18 +12857,18 @@ 1990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu) * screen.c (Fcoordinates_in_window_p): Doc fix. Simplified. - (window_from_coordinates): New function. - (Flocate_window_from_coordinates): Use it. + (window_from_coordinates): New function. + (Flocate_window_from_coordinates): Use it. - * keyboard.c (classify_object): New function for dealing with the + * keyboard.c (classify_object): New function for dealing with the input object. New symbol, mouse-motion, called here. Call to mouse-motion-handler now takes no parameters. - (read_key_sequence): Use the new function. Don't set keybuf[0] + (read_key_sequence): Use the new function. Don't set keybuf[0] to 0. - * xterm.c (init_input_symbols): Create all the Lisp symbols + * xterm.c (init_input_symbols): Create all the Lisp symbols returned in the input stream. - func_key_syms: New array to hold all symbols for function keys. + (func_key_syms): New array to hold all symbols for function keys. (x_func_key_to_sym): Use this array. (notice_mouse_movement): New function for dealing with motion events. @@ -12910,7 +12909,7 @@ 1990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xdisp.c (display_text_line): String to rope copy for inserting + * xdisp.c (display_text_line): String to rope copy for inserting arrow text. 1990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -12918,7 +12917,7 @@ * xdisp.c (display_mode_line): Check that the name has actually changed before calling x_set_name. - * ralloc.c (check_memory_limits): New function. + * ralloc.c (check_memory_limits): New function. Also check if new memory will be larger than elisp pointer. (r_alloc_sbrk): Call this function. (relocate_blocs_upward, relocate_blocs_downward): Eliminated. @@ -12939,10 +12938,10 @@ * dispnew.c (safe_bcopy): No longer static. - * ralloc.c (relocate_blocs_upward, relocate_blocs_downward): Use - safe_bcopy. + * ralloc.c (relocate_blocs_upward, relocate_blocs_downward): + Use safe_bcopy. - * mem_limits.c: typedef SIZE. + * mem_limits.c: typedef SIZE. 1990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -12953,7 +12952,7 @@ 1990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * indent.c (Fmove_to_column): Set end to ZV. + * indent.c (Fmove_to_column): Set end to ZV. 1990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -12963,11 +12962,11 @@ 1990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * buffer.c (list_buffers_1): Don't check list-buffers-directory. + * buffer.c (list_buffers_1): Don't check list-buffers-directory. 1990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xdisp.c (display_text_line): Don't print ellipsis if they're + * xdisp.c (display_text_line): Don't print ellipsis if they're off the left edge. 1990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13026,7 +13025,7 @@ 1990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * term.c: (cursor_to): Only add chars_wasted if not calling hook. + * term.c (cursor_to): Only add chars_wasted if not calling hook. (clear_end_of_line_raw): Likewise. (clear_end_of_line): Check that screen is termcap before using chars_wasted. @@ -13046,7 +13045,7 @@ SCREEN_WIDTH (selected_screen). * dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from screen_width. - (change_window_size): No longer check output_type and set + (change_window_size): No longer check output_type and set ScreenRows. 1990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13056,8 +13055,8 @@ 1990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (echo_prompt): Now uses glyphs. - echobuf, echobuf_ptr: These variables now glyphs. + * keyboard.c (echo_prompt): Now uses glyphs. + echobuf, echobuf_ptr: These variables now glyphs. 1990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13065,17 +13064,17 @@ omessage. * alloc.c (Fgarbage_collect): Ditto. - * xdisp.c (message): message_buf set here, realloced if smaller + * xdisp.c (message): message_buf set here, realloced if smaller than screen width. message_buf now type GLYF *. New variable message_buf_size holds its size. Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set echo_area_glyphs. - * print.c (printchar, strout): Use message_buf_size. Convert to + * print.c (printchar, strout): Use message_buf_size. Convert to glyfs before assigning chars. - (str_to_glyph_cpy, str_to_glyph_ncpy, - glyph_to_str_cpy, glyph_to_str_ncpy): New functions. + (str_to_glyph_cpy, str_to_glyph_ncpy) + (glyph_to_str_cpy, glyph_to_str_ncpy): New functions. 1990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13109,7 +13108,7 @@ (ILcost, DLcost, ILncost, DLncost): Now pointers. (do_scrolling): Use alloca for queue. - * term.c (term_init): selected_screen as arg to calculate_costs. + * term.c (term_init): selected_screen as arg to calculate_costs. (calculate_costs): Dynamically allocate chars_wasted, copybuf, DC_ICcost. Set RPov based on actual width. @@ -13119,17 +13118,17 @@ 1990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * term.c (calculate_ins_del_char_costs, string_cost_one_line): + * term.c (calculate_ins_del_char_costs, string_cost_one_line): Made static. * dispnew.c: Declare scrolling_1; - * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed + * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed calculate_ins_del_char_costs, ins_del_costs, and line_ins_del. CalcIDCosts1 and CalcLID also renamed. - (calculate_scrolling): Now void. + (calculate_scrolling): Now void. - * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION. + * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION. BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF. SetPoint -> SET_PT. @@ -13140,10 +13139,10 @@ * print.c: Include dispextern.h. (printchar, strout): Use message_buf. - * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLenght. - * term.c: Likewise. + * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLenght. + * term.c: Likewise. - * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a + * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a screen argument. (CalcIDCosts): Dynamically allocate ILcost, etc. (ILcost, DLcost, ILncost, DLncost): Now pointers. @@ -13165,7 +13164,7 @@ Macro SetBfx removed. Macro SetPoint renamed SET_PT. - * fileio.c (Fexpand_file_name): Simplified. + * fileio.c (Fexpand_file_name): Simplified. 1990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13181,9 +13180,9 @@ 1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * process.c (Fprocess_connection): Return the type of a process + * process.c (Fprocess_connection): Return the type of a process object. - (syms_of_process): Initialize pty_process and stream_process. + (syms_of_process): Initialize pty_process and stream_process. Declare Fprocess_type. * process.h New element type to struct Lisp_Process. @@ -13191,23 +13190,23 @@ 1990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * fileio.c (Finsert_file_contents): Use new variable how_much to + * fileio.c (Finsert_file_contents): Use new variable how_much to hold read result. 1990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * lread.c (read_char_exclusive): New subr. + * lread.c (read_char_exclusive): New subr. 1990-05-24 David Lawrence (tale@pogo.ai.mit.edu) - * fileio.c (file_executable_p): New function. + * fileio.c (file_executable_p): New function. 1990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu) * insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was successful. - * editfns.c (syms_of_editfns): DEFVAR the new variables. + * editfns.c (syms_of_editfns): DEFVAR the new variables. * eval.c (Finteractive_p): Don't skip the first frame if the function was compiled. @@ -13219,12 +13218,12 @@ * Renamed meta_flag meta_key. - * termopts.h: Comment changes. + * termopts.h: Comment changes. 1990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu) * buffer.h: upcase_table and downcase_table are now Lisp_Objects. - * alloc.c (mark_object, gc_sweep): Related changes. + * alloc.c (mark_object, gc_sweep): Related changes. * casetab.c: Ditto. 1990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13310,7 +13309,7 @@ 1990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xdisp.c (try_window): No return value. + * xdisp.c (try_window): No return value. Fix calls to try_window. * Global variable RedoModes is now redraw_mode_line. @@ -13344,12 +13343,12 @@ 1990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * dispextern.h: new struct screen_glyfs replaces struct + * dispextern.h: New struct screen_glyfs replaces struct display_line. - * screen.c: new screen elements current_glyfs, desired_glyfs, and + * screen.c: New screen elements current_glyfs, desired_glyfs, and temp_glyfs. - * dispnew.c: (make_screen_glyfs, free_screen_glyfs, - remake_screen_glyfs): New functions. + * dispnew.c (make_screen_glyfs, free_screen_glyfs): + (remake_screen_glyfs): New functions. (make_display_lines, new_display_line, return_display_line): Functions deleted. (change_screen_size, init_display): Use the new functions. @@ -13364,7 +13363,7 @@ (line_hash_code, line_draw_cost): Cleaned up. Args are different, and hash computation too. (update_screen): Rearrange buffer-emptying code. - * xdisp.c: (display_minibuf_message, redisplay): Rewritten for new + * xdisp.c (display_minibuf_message, redisplay): Rewritten for new structures. (display_text_line, display_mode_line): Likewise. (display_mode_element, display_string): Likewise. @@ -13403,8 +13402,7 @@ 1990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * process.c (Fopen_network_stream): Also handle numeric inet - addresses. + * process.c (Fopen_network_stream): Also handle numeric inet addresses. 1990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13436,8 +13434,8 @@ * xterm.c (x_display_cursor): Don't check s->phys_x when drawing cursor. - * undo.c: New version. - * undo.h: No longer exists. + * undo.c: New version. + * undo.h: No longer exists. * alloc.c (Fgarbage_collect): Call truncate_undo_list. (syms_of_alloc): Define vars undo-threshold and undo-high-threshold. * buffer.c (Fget_buffer_create): Set undo_list to t or nil. @@ -13448,9 +13446,9 @@ * buffer.h: New element undo_list in struct buffer. * fileio.c (Finsert_file_contents): Store nil in undo_list. - * buffer.c: Variable bf_text deleted. + * buffer.c: Variable bf_text deleted. (Fkill_buffer, SetBfp): Delete code that worked with it. - (SetBfx): Now a macro in buffer.h + (SetBfx): Now a macro in buffer.h * editfns.c (Fwiden, Fnarrow_to_region): Related changes. (save_restriction_save, save_restriction_restore): Likewise. (Finsert_buffer_substring): Likewise. @@ -13463,12 +13461,12 @@ 1990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the + * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the text pointers of a buffer to the relocating allocator. * buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro. - * editfns.c (Finsert_buffer_substring): ditto. - * fileio.c (Fdo_auto_save): ditto. - * insdel.c (make_gap): ditto. + * editfns.c (Finsert_buffer_substring): Ditto. + * fileio.c (Fdo_auto_save): Ditto. + * insdel.c (make_gap): Ditto. * xfns.c (adjust_scrollbars): Don't set bf_cur->text. 1990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13488,12 +13486,12 @@ 1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_open_connection): Attach xrdb to x_current_display. + * xfns.c (Fx_open_connection): Attach xrdb to x_current_display. 1990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (dumpborder): Now only used for X10. - (highlight, unhighlight): New functions for X11. + * xterm.c (dumpborder): Now only used for X10. + (highlight, unhighlight): New functions for X11. 1990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13506,26 +13504,26 @@ 1990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_get_resource): Concatenate invocation_name before + * xfns.c (Fx_get_resource): Concatenate invocation_name before the resource tag. - (Fx_create_screen): Use the latest resource id's. + (Fx_create_screen): Use the latest resource id's. 1990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_get_resource): New subr. - (Fx_open_connection): Call x_load_resources. New parameter + * xfns.c (Fx_get_resource): New subr. + (Fx_open_connection): Call x_load_resources. New parameter xrm_string. - * xrdb.c: New file for doing resource manager stuff. + * xrdb.c: New file for doing resource manager stuff. - * xscrollbar.h: New file for scrollbar bitmaps. + * xscrollbar.h: New file for scrollbar bitmaps. - * xselect.h: New file for the X selection stuff. + * xselect.h: New file for the X selection stuff. * ymakefile: Take note of these new files. 1990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (x_term_init): Use MAXPATHLEN. + * xterm.c (x_term_init): Use MAXPATHLEN. 1990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13533,15 +13531,14 @@ 1990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * screen.c (coordinates_in_window): Return -1 if in modeline of - window. - (Fcoordinates_in_window_p): Return Qt if in modeline of window. - (Flocate_window_from_coordinates): Use next_screen_window if + * screen.c (coordinates_in_window): Return -1 if in modeline of window. + (Fcoordinates_in_window_p): Return Qt if in modeline of window. + (Flocate_window_from_coordinates): Use next_screen_window if MULTI_WINDOW is defined. 1990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (construct_mouse_event): Deal with the motion events + * xterm.c (construct_mouse_event): Deal with the motion events first. Only grab the mouse when in the scrollbar. 1990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13549,138 +13546,138 @@ * screen.c (coordinates_in_window): Include mode line as part of window. - * xterm.c (XTread_socket): Initialize nbytes to 0. - (x_display_cursor): Don't draw if screen not selected. + * xterm.c (XTread_socket): Initialize nbytes to 0. + (x_display_cursor): Don't draw if screen not selected. - * xdisp.c (DoDsp): Additional checks for screen being visible. + * xdisp.c (DoDsp): Additional checks for screen being visible. 1990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * editfns.c (Fmessage): If there is a global minibuffer screen, + * editfns.c (Fmessage): If there is a global minibuffer screen, raise it before displaying the message. - * window.c (window_loop): Parameter SCREENS now affects which + * window.c (window_loop): Parameter SCREENS now affects which screen is scanned for windows. All subrs calling window_loop must pass a Lisp_Object here now. 1990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * window.c (window_loop): Additional parameter mini to control + * window.c (window_loop): Additional parameter mini to control minibuffer selection or not. (Fget_lru_window): (Fget_largest_window): (Fget_buffer_window): (Fdelete_other_windows): (Fdelete_windows_on): - (Freplace_buffer_in_windows): Use that parameter. + (Freplace_buffer_in_windows): Use that parameter. 1990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * screen.c (Fselect_screen): Raise the selected screen. + * screen.c (Fselect_screen): Raise the selected screen. * window.c (Fget_buffer_window): (Fget_largest_window): - (Fget_lru_window): New parameter all_screens. - (Fdisplay_buffer): Use the new param in Fget_lru_window, + (Fget_lru_window): New parameter all_screens. + (Fdisplay_buffer): Use the new param in Fget_lru_window, Fget_buffer_window, and Fget_largest_window. - (Fscroll_other_window): Use new param in Fget_buffer_window. - * buffer.c (Fother_buffer): ditto. + (Fscroll_other_window): Use new param in Fget_buffer_window. + * buffer.c (Fother_buffer): Ditto. - * xterm.c (x_display_cursor): Always draw the cursor if ON is + * xterm.c (x_display_cursor): Always draw the cursor if ON is true. Don't check if the screen S is selected or equal to mouse-screen. - * xfns.c (Fx_track_pointer): Don't turn off cursor, just call + * xfns.c (Fx_track_pointer): Don't turn off cursor, just call x_display_cursor. 1990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * data.c (Fmake_local_variable): Give the variable value nil if + * data.c (Fmake_local_variable): Give the variable value nil if unbound. - * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN, + * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN, check if Vglobal_minibuffer_screen is non-nil and maybe call next_screen. * screen.c (Fscreen_selected_window): - (Fscreen_root_window): If screen is nil, use selected-screen. + (Fscreen_root_window): If screen is nil, use selected-screen. 1990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning + * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning symbol which causes DoDsp to be invoked. - * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here. + * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here. - * screen.h: New macro SET_SCREEN_GARBAGED. + * screen.h: New macro SET_SCREEN_GARBAGED. * xfns.c: * window.c: * sysdep.c: * keyboard.c: - * dispnew.c: Use the new macro. + * dispnew.c: Use the new macro. 1990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_own_selection): Only take one argument, string. + * xfns.c (Fx_own_selection): Only take one argument, string. 1990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (select_visual): Catch bullshit machines whose hardware + * xfns.c (select_visual): Catch bullshit machines whose hardware doesn't support the X server pixel depth by looking at colormap_size. - (x_decode_color): Use x_screen_planes to check for color. + (x_decode_color): Use x_screen_planes to check for color. 1990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (x_display_cursor): Try using vertical bar cursor. - (clear_cursor): Call x_display_cursor for X11. + * xterm.c (x_display_cursor): Try using vertical bar cursor. + (clear_cursor): Call x_display_cursor for X11. * xfns.c: Zotzed Vx_pointer_mask. - (Fx_track_pointer): Call x_display_cursor if we just + (Fx_track_pointer): Call x_display_cursor if we just wasted the cursor. Break out of loop if no display line. Use mode line cursor if we're there. - (x_y_pos): New function. - (x_set_font): Dont' set x_font_{width,height}, they are gone. + (x_y_pos): New function. + (x_set_font): Dont' set x_font_{width,height}, they are gone. 1990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_track_pointer): Check that s == selected_screen each + * xfns.c (Fx_track_pointer): Check that s == selected_screen each time through loop. If event is nil, read mouse position. - * keyboard.c (get_char): DoDsp only if selected_screen visible. + * keyboard.c (get_char): DoDsp only if selected_screen visible. - * xterm.c (XTread_socket): Mark screen as visible only on expose + * xterm.c (XTread_socket): Mark screen as visible only on expose event. - * emacs.c (main): Check here for "-d" option and set display_arg. - * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg. + * emacs.c (main): Check here for "-d" option and set display_arg. + * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg. 1990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (read_key_sequence): Don't DoDsp if the screen was + * keyboard.c (read_key_sequence): Don't DoDsp if the screen was just unmapped. - (command_loop_1): Call the mouse motion handler before calling + (command_loop_1): Call the mouse motion handler before calling read_key_sequence. - (interrupt_signal): Fixed typo checking screen type. + (interrupt_signal): Fixed typo checking screen type. - * xfns.c (Fx_track_mouse): Don't crash because of null display + * xfns.c (Fx_track_mouse): Don't crash because of null display line. Don't set obj til call to get_char. - * xterm.c (x_term_init): Disable SIGWINCH here. + * xterm.c (x_term_init): Disable SIGWINCH here. - * fns.c (Fmember): New subr. + * fns.c (Fmember): New subr. - * dispnew.c (init_display): Don't check env variable DISPLAY to + * dispnew.c (init_display): Don't check env variable DISPLAY to set Vwindow_system. Now done in startup.el. - * emacs.c: Removed variables xargc, xargv. + * emacs.c: Removed variables xargc, xargv. 1990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_track_pointer): Go faster. + * xfns.c (Fx_track_pointer): Go faster. - * screen.h: New macro SCREENP. + * screen.h: New macro SCREENP. - * window.c: (Fminibuffer_window): Rewritten. + * window.c (Fminibuffer_window): Rewritten. 1990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13689,139 +13686,138 @@ 1990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (command_loop_1): Restructured handling of X event + * keyboard.c (command_loop_1): Restructured handling of X event things. - (read_key_sequence): Handle new `unmapped-screen' symbol with new + (read_key_sequence): Handle new `unmapped-screen' symbol with new Vunmap_screen_hook. - * xterm.c (XTread_socket): Return unmapped-screen symbol if the + * xterm.c (XTread_socket): Return unmapped-screen symbol if the window for UnmapNotify events. - * lread.c (Feval_region): GCPRO opoint. + * lread.c (Feval_region): GCPRO opoint. 1990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (command_loop_1): Call mouse-motion handler with + * keyboard.c (command_loop_1): Call mouse-motion handler with argument. Also, don't call undo-boundary. - * process.c (create_process): Set the process group for BSD at + * process.c (create_process): Set the process group for BSD at the same time as for USG. 1990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (x_new_selected_screen): Set x_input_screen here. + * xterm.c (x_new_selected_screen): Set x_input_screen here. 1990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed. - (XTread_socket): Generate exited-window symbols on LeaveNotify + * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed. + (XTread_socket): Generate exited-window symbols on LeaveNotify even if screen is focused. - * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed. - (outline_region): Now static. - (Fx_track_pointer): Check x_mouse_screen == s in loop. + * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed. + (outline_region): Now static. + (Fx_track_pointer): Check x_mouse_screen == s in loop. 1990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu) * xterm.c (encode_mouse_button): Correctly get the button from Motion events. - * xfns.c (x11_encode_mouse_button): Nuked. + * xfns.c (x11_encode_mouse_button): Nuked. (encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd. - * keyboard.c (get_char): Re-set obj if we've keyboard-translated - c. + * keyboard.c (get_char): Re-set obj if we've keyboard-translated c. 1990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (x_focus_screen): no longer static. - (x_error_handler): Use XDefaultIOError. + * xterm.c (x_focus_screen): No longer static. + (x_error_handler): Use XDefaultIOError. - * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus. - (Fselect_screen): New, optional parameter no_enter. + * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus. + (Fselect_screen): New, optional parameter no_enter. (Frestore_screen_configuration): - (Fdelete_screen): Pass second parm Qnil to Fselect_screen. + (Fdelete_screen): Pass second parm Qnil to Fselect_screen. - * window.c (Fdisplay_buffer, Fset_window_configuration): Pass + * window.c (Fdisplay_buffer, Fset_window_configuration): Pass second parm Qnil to Fselect_screen. 1990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * screen.c (Fscreen_has_focus): New subr. - (Fselect_screen): Use x_focus_on_screen to physically select the + * screen.c (Fscreen_has_focus): New subr. + (Fselect_screen): Use x_focus_on_screen to physically select the screen. 1990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (x_set_mouse_position): Moved to xterm.c. + * xfns.c (x_set_mouse_position): Moved to xterm.c. - * fileio.c (Fremove_directory): New subr. + * fileio.c (Fremove_directory): New subr. - * screen.c (Frelease_focused_screen): Just call x_unfocus_screen. + * screen.c (Frelease_focused_screen): Just call x_unfocus_screen. - * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen, + * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen, return exited-window. On LeaveNotify, simplify if expression for dumpborder. Reworked FocusIn/FocusOut events. - (x_unfocus_screen): Check that screen is x_focus_screen. - (x_set_mouse_position): Moved from xfns.c. Use new macro + (x_unfocus_screen): Check that screen is x_focus_screen. + (x_set_mouse_position): Moved from xfns.c. Use new macro XWarpPointer. - * xterm.h: New macro XWarpPointer. + * xterm.h: New macro XWarpPointer. - * buffer.c: Replaced Fbuffer_flush_undo with + * buffer.c: Replaced Fbuffer_flush_undo with Fbuffer_disable_undo. - * process.c: Ditto. + * process.c: Ditto. 1990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.c (XTupdate_end): Use parameter s rather than + * xterm.c (XTupdate_end): Use parameter s rather than updating_screen. - (XTread_socket): On EnterNotify, don't check s != focus_screen + (XTread_socket): On EnterNotify, don't check s != focus_screen before selecting. On Focus In/Out don't set/reset mouse_screen. 1990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu) * eval.c: If using X windows, include xterm.h. - (error): TOTALLY_UNBLOCK_INPUT if using X. + (error): TOTALLY_UNBLOCK_INPUT if using X. - * xterm.h: BLOCK_INPUT, UNBLOCK_INPUT: No signal stuff, just inc + * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc and decrement x_input_blocked. - * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT. - (x_set_font): Check result of x_new_font. Call error if nonzero. + * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT. + (x_set_font): Check result of x_new_font. Call error if nonzero. (x_set_icon_type): Check result of x_*_icon, maybe call error. * screen.c (Fdeiconify_screen): Use x_make_screen_visible rather than x_deiconify_screen. Return screen. - (Fmake_screen_visible): Don't raise it here. Return screen. + (Fmake_screen_visible): Don't raise it here. Return screen. - * xterm.c (XTwrite_glyfs): Don't show cursor if screen is + * xterm.c (XTwrite_glyfs): Don't show cursor if screen is global-minibuffer-screen. (x_new_selected_screen): Do dumpborder and check auto-raise here, rather than XEvent switch. (x_deiconify_screen): No longer exists. (x_do_pending_expose, x_clear_cursor): (x_invert_screen, scraplines, stufflines, x_bitmap_icon): - (x_text_icon, x_new_font): Don't BLOCK_INPUT. - (XTins_del_lines): BLOCK_INPUT here. - (XTupdate_end): Don't turn on cursor if minibuffer-screen. + (x_text_icon, x_new_font): Don't BLOCK_INPUT. + (XTins_del_lines): BLOCK_INPUT here. + (XTupdate_end): Don't turn on cursor if minibuffer-screen. (XTread_socket): On MotionNotify, just that screen is selected before processing. - (XTtopos): If updating_screen, just set x and y, don't flush. + (XTtopos): If updating_screen, just set x and y, don't flush. (x_bitmap_icon): (x_text_icon): - (x_new_font): Return 1 if failed, don't call error. - (x_make_screen_visible): Raise the screen as well. + (x_new_font): Return 1 if failed, don't call error. + (x_make_screen_visible): Raise the screen as well. 1990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * screen.c (Frelease_focused_screen): Just check that screen is + * screen.c (Frelease_focused_screen): Just check that screen is selected. 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * screen.c (Fselect_screen_focused, Frelease_focused_screen): New + * screen.c (Fselect_screen_focused, Frelease_focused_screen): New subrs. - * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures + * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures to implement focusing. 1990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13830,9 +13826,9 @@ 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock + * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock and sigsetmask if available. - * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD. + * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD. 1990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13843,19 +13839,19 @@ * keyboard.c (read_key_sequence): Handle mapped-screen event symbol by calling new hook Vmap_screen_hook. - * xterm.c (x_make_screen_invisible): Use the new Xlib function + * xterm.c (x_make_screen_invisible): Use the new Xlib function XWidthdrawWindow. - (x_iconify_screen): Use the new Xlib function XIconifyWindow. + (x_iconify_screen): Use the new Xlib function XIconifyWindow. (XTread_socket): Return mapped-screen symbol to signal mapped-screen events. 1990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (command_loop_1): Check the character for width 1 + * keyboard.c (command_loop_1): Check the character for width 1 before doing direct_output_forward, as well as the cursor position on the screen. - * xdisp.c (DoDsp): Use redisplay_windows rather than + * xdisp.c (DoDsp): Use redisplay_windows rather than redisplay_all_windows, which was removed. 1990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13870,8 +13866,8 @@ converting selection (note new variable x_converting_selection), just set new variable x_selection_alloc_error. - * xfns.c: Massive changes for crufty selection processing details. - New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection, + * xfns.c: Massive changes for crufty selection processing details. + New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection, Xatom_insert_property, Xatom_pair. 1990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -13883,7 +13879,7 @@ 1990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather + * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather than sizeof kbd_buffer. (read_key_sequence): Upon redraw-display symbol, set screen_garbaged. @@ -13919,7 +13915,7 @@ 1990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu) - * keyboard.c (read_avail_input): pass read_socket_hook + * keyboard.c (read_avail_input): Pass read_socket_hook KBD_BUFFER_SIZE rather than doing sizeof (buf). * xterm.c (XTread_socket): Set event.type = MotionNotify when @@ -13927,10 +13923,10 @@ 1990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * window.c (next_screen, prev_screen): moved to screen.c + * window.c (next_screen, prev_screen): Moved to screen.c. (Fnext_window): If mini non-nil, count the separate minibuffer screen. - * screen.c (Fnext_screen): new subr. + * screen.c (Fnext_screen): New subr. 1990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -13964,7 +13960,7 @@ Also, just use nil and t for x-mouse-grabbed. Record buttons pressed in new variable x_mouse_grabbed. XGrabPointer on button depression. - * xfns.c (Fx_horizontal_line): use x_mouse_grabbed. + * xfns.c (Fx_horizontal_line): Use x_mouse_grabbed. 1990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu) @@ -14014,7 +14010,7 @@ 1990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu) - * xfns.c (Fx_track_pointer): rewrote this to loop while there are + * xfns.c (Fx_track_pointer): Rewrote this to loop while there are mouse events. * xterm.c (XTread_socket): Return left-window-event symbol upon @@ -14121,7 +14117,7 @@ * keyboard.c (read_key_sequence): Function keys are now lisp symbols. (kbd_buffer_store_char): Abort if store pointer past buffer. Temproarry; This shouldn't be able to happen. - (read_key_sequence): #ifdef HAVE_X_WINDOWS code + (read_key_sequence): #ifdef HAVE_X_WINDOWS code which handles complex objects. (command_loop_1): Check not termcap screen before processing non-char input. @@ -14140,7 +14136,7 @@ (XTflash): Just dumpglyfs instead of redrawing the screen after flashing the rectangle. - * lread.c: (syms_of_lread): defsubr Fread_event. + * lread.c (syms_of_lread): defsubr Fread_event. 1990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -14208,9 +14204,9 @@ 1989-12-14 Joseph Arceneaux (jla@spiff) * xfns.c: New variable Vx_no_window_manager. - (Fx_track_pointer): If bufp < 0, abort. + (Fx_track_pointer): If bufp < 0, abort. - * xterm.c (XTread_socket): When leaving window, set x_mouse_x and + * xterm.c (XTread_socket): When leaving window, set x_mouse_x and x_mouse_y to -1. 1989-12-13 Joseph Arceneaux (jla@spiff) @@ -14228,12 +14224,12 @@ 1989-12-08 Joseph Arceneaux (jla@spiff) - * process.c (create_process): For not USG, properly set the + * process.c (create_process): For not USG, properly set the process group. 1989-12-07 Joseph Arceneaux (jla@spiff) - * term.c (topos): Under X Windows, abort if topos_hook not + * term.c (topos): Under X Windows, abort if topos_hook not correct. Temporary. * xfns.c (Fx_horizontal_line): New subr. @@ -14250,7 +14246,7 @@ 1989-12-04 Joseph Arceneaux (jla@spiff) * screen.c (coordinates_in_window): New function. - (Fcoordinates_in_window_p): Rewritten to use above. + (Fcoordinates_in_window_p): Rewritten to use above. * dispextern.h: New element bufp for display_line structure when using X windows. @@ -14262,13 +14258,13 @@ * alloc.c: Upped NSTATICS from 200 to 256. - * xterm.c (XTread_socket): Report MotionNotify events only if + * xterm.c (XTread_socket): Report MotionNotify events only if mouse has changed character position. Call x_read_mouse_position. Set Vmouse_event here. * xfns.c (x_read_mouse_position): Set new global variables x_mouse_x and x_mouse_y. - * keyboard.c: Vignore_mouse_events: New variable. + * keyboard.c: Vignore_mouse_events: New variable. * syntax.c (Fscan_sexps): Doc change. @@ -14281,7 +14277,7 @@ * xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'. (x_rectangle): Draw half-size if negative argument. - * xterm.c (XTread_socket): abort if garbage collecting when doing + * xterm.c (XTread_socket): Abort if garbage collecting when doing mouse events. * ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined. @@ -14306,7 +14302,7 @@ 1989-11-29 Joseph Arceneaux (jla@spiff) - * lread.c (Fread_char): Return a Lisp_Object (directly from + * lread.c (Fread_char): Return a Lisp_Object (directly from get_char). * keyboard.c: @@ -14380,7 +14376,7 @@ 1989-11-14 Joseph Arceneaux (jla@spiff) - * xfns.c (Fx_get_selection, x_selection_arrival): use &event + * xfns.c (Fx_get_selection, x_selection_arrival): Use &event instead of event. (x_selection_arrival): For incremental selections, loop on XGetWindowProperty if one is not enough. @@ -14399,7 +14395,7 @@ 1989-11-08 Joseph Arceneaux (jla@spiff) - * search.c (Fmatch_data): fixed typo. + * search.c (Fmatch_data): Fixed typo. * insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc. * buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in @@ -14472,19 +14468,19 @@ * lread.c: Moved function read_escape. * unexec.c: Declarations for make_hdr, copy_text_and_data, copy_sym. Declare mark_x as static void. - * dispextern.h: removed declaration of new_display_line. + * dispextern.h: Removed declaration of new_display_line. * emacs.c: Do malloc_init if GNU_MALLOC. - * gmalloc.c: (malloc_init): New function. + * gmalloc.c (malloc_init): New function. - * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle, - outline_region, Fx_countour_region, Fx_uncontour_region): New + * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle) + (outline_region, Fx_countour_region, Fx_uncontour_region): New subroutines for drawing rectangles and things. (Fx_point_coordinates): New subr. 1989-10-31 Joseph Arceneaux (jla@spiff) - * All .c and .h files: New copyright header. + * All .c and .h files: New copyright header. 1989-10-30 Joseph Arceneaux (jla@spiff) @@ -14547,7 +14543,7 @@ * xfns.c (Fx_own_selection): Use second parameter SCREEN. - * xdisp.c: (message, message1): No longer displays messages + * xdisp.c (message, message1): No longer displays messages when using X but not yet mapped. 1989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -14599,12 +14595,12 @@ 1989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xfns.c: (Fx_open_connection) New X atoms Xatom_incremental and + * xfns.c (Fx_open_connection) New X atoms Xatom_incremental and Xatom_multiple. * xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH. - * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined. + * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined. 1989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -14617,8 +14613,7 @@ * xfns.c (Fx_open_connection): Make all X Atoms here. - * xterm.c: (x_iconify_screen): - (x_iconify_screen): Cleaned up this code. + * xterm.c (x_iconify_screen): Cleaned up this code. (x_term_init): Removed warpmouseondeiconify stuff. 1989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) @@ -14664,9 +14659,9 @@ MapNotify event. * xterm.c: No longer sets the variable mouse_down_timestamp. - * xfns.c: (Fx_get_mouse_event) mouse_timestamp - (formerly mouse_down_timestamp) set here. Also, mask out upper 9 - bits before doing XSET. + * xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly + mouse_down_timestamp) set here. Also, mask out upper 9 + bits before doing XSET. 1989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) @@ -14681,17 +14676,15 @@ 1989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xfns.c (Fx_own_selection): - (Fx_get_selection): - (x_disown_selection): new funcs, which use new variables - Vx_selection_value, x_begin_selection_own, mouse_down_timestamp, - requestor_time, requestor_window, property_name, and - x_begin_selection_own. + * xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection): + New funcs, which use new variables Vx_selection_value, + x_begin_selection_own, mouse_down_timestamp, requestor_time, + requestor_window, property_name, and x_begin_selection_own. * xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11. SelectionClear: SelectionRequest: - SelectionNotify: New events to handle the selection inter-client + SelectionNotify: New events to handle the selection inter-client communication mechanism. ButtonPress: Set mouse_down_timestamp. @@ -14734,11 +14727,11 @@ 1989-09-11 Joseph Arceneaux (jla@spiff) - * fileio.c (Fwrite_region): fixed typo. + * fileio.c (Fwrite_region): Fixed typo. - * keyboard.c (Fdiscard_input): fixed typo. + * keyboard.c (Fdiscard_input): Fixed typo. - * window.c (Fnext_window): fixed typos. + * window.c (Fnext_window): Fixed typos. * alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing the associated operations. @@ -14986,7 +14979,7 @@ before looping through alist. (Fx_create_screen): Call x_default_parameter for font. - Don't add the scrollbar widths when making the main window: this + Don't add the scrollbar widths when making the main window: this is done when the scrollbar is actually made. (x_set_vertical_scrollbar): Set v_scrollbar_width here instead of @@ -14995,7 +14988,7 @@ (x_set_horizontal_scrollbar): Likewise. - * xterm.c: (x_set_window_size): Don't call the things called + * xterm.c (x_set_window_size): Don't call the things called anyway upon the ConfigureNotify event. (x_set_offset): Use the screen-size lisp variables for these calculations. @@ -15007,7 +15000,7 @@ * sysdep.c: Don't include sioctl.h on mips. - * buffer.c (Flist_buffers): Pass prefix as arg. + * buffer.c (Flist_buffers): Pass prefix as arg. * editfns.c (Finsert_char): Insert at most 256 chars at a whack. @@ -15060,7 +15053,7 @@ 1989-07-11 Joseph Arceneaux (jla@gluteus) - * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for + * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for both X10 and X11. This is #defined for X10. * screen.c (Fset_screen_width, Fset_screen_height): These now take @@ -15082,15 +15075,15 @@ * eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error message if there are more than 6 args. - * fns.c: (Fyes-or-no-p): - * minibuf.c: (read_minibuf_unwind): + * fns.c (Fyes-or-no-p): + * minibuf.c (read_minibuf_unwind): (Fread_minibuffer): (Fread_no_blanks_input): (Fcompleting_read): Extra arg to read_minibuf. * callint.c (Fcall_interactively): * keyboard.c (Fexecute_extended_command): - * minibuf.c: (Fread_command): + * minibuf.c (Fread_command): (Fread_function): (Fread_variable): (Fread_buffer): Extra arg to Fcompleting_read. @@ -15100,14 +15093,14 @@ * minibuf.c (read_minibuf): New argument back_n is number of characters to back-up point by. (Fcompleting_read): Same. - * fileio.c: (Fnew_read_file_name): New version of Fread_file_name + * fileio.c (Fnew_read_file_name): New version of Fread_file_name using the above features. (Finsert_file_contents): Check for negative file length. 1989-07-03 Joseph Arceneaux (jla@spiff) - * xfns.c: (x_pixel_width, x_pixel_height) New functions. - * screen.c: (Fscreen_pixel_size): New subr. + * xfns.c (x_pixel_width, x_pixel_height) New functions. + * screen.c (Fscreen_pixel_size): New subr. 1989-06-30 Joseph Arceneaux (jla@spiff) @@ -15123,15 +15116,15 @@ 1989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu) - * screen.c: (Fselect_screen) - * window.c: (Fselect_window) The previous strategy was bugging the + * screen.c (Fselect_screen): + * window.c (Fselect_window): The previous strategy was bugging the lisp stuff, so these are now rewritten. 1989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu) * cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been removed. - (losecursor): This function now a #define in cm.h. + (losecursor): This function now a #define in cm.h. * xterm.c (x_iconify_screen): Send message to root window to do this, as per latest Inter-Client Communications Conventions. This @@ -15168,7 +15161,7 @@ * xfns.c, lisp/term/x-win.el: C routine Fscreen_color_p now lisp function x-color-screen-p in x-win.el. - (x_set_cursor_color): New method: first disallow same cursor as + (x_set_cursor_color): New method: first disallow same cursor as background, then if cursor not foreground, use it as cursor foreground. @@ -15241,11 +15234,11 @@ 1989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * window.c: initialize auto_new_screen to 0 (nil). + * window.c: Initialize auto_new_screen to 0 (nil). - * screen.c (make_screen): added auto_lower to the list of screen + * screen.c (make_screen): Added auto_lower to the list of screen elements initialized. - (make_minibuffer_screen): likewise. + (make_minibuffer_screen): Likewise. 1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15263,7 +15256,7 @@ 1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xfns.c: removed superfluous definition of gray_bits. + * xfns.c: Removed superfluous definition of gray_bits. 1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15294,13 +15287,13 @@ 1989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu) - * xterm.c (x_set_window_size): If not already in DoDsp (checked + * xterm.c (x_set_window_size): If not already in DoDsp (checked with variable in_display) then DoDsp here. Handles redisplay after screen configuration. (x_error_handler): Print out stuff about the error if we're in debug mode. - * dispnew.c (change_screen_size): No longer call DoDsp here. + * dispnew.c (change_screen_size): No longer call DoDsp here. 1989-06-05 Chris Hanson (cph@kleph) @@ -15318,7 +15311,7 @@ 1989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu) - * xfns.c: (Fx_create_screen): If parms is nil and + * xfns.c (Fx_create_screen): If parms is nil and Vx_screen_defaults isn't, then use them. (Fdisplay_buffer): Call Fx_create_screen with Qnil. @@ -15341,7 +15334,7 @@ the right thing. (Frestore_screen_configuration): Don't set the mouse position. - * window.c (Fselect_window): If window's screen is not selected, + * window.c (Fselect_window): If window's screen is not selected, call Fselecte_screen. (Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters as argument instead of nil. @@ -15366,17 +15359,17 @@ 1989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xterm.c (x_new_selected_screen): This now takes a struct screen - pointer as paramter. - * (XTread_socket): call x_new_selected_screen *before* dumpborder. + * xterm.c (x_new_selected_screen): This now takes a struct screen + pointer as parameter. + (XTread_socket): Call x_new_selected_screen *before* dumpborder. 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xfns.c: (x_window_to_scrollbar): If the caller's not interested + * xfns.c (x_window_to_scrollbar): If the caller's not interested in the names--passing 0 for last two parameters--just return the screen pointer. - * xterm.c (x_enter_screen): Added this function for warping the + * xterm.c (x_enter_screen): Added this function for warping the pointer into a screen. 1989-05-16 Chris Hanson (cph@kleph) @@ -15388,7 +15381,7 @@ 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xterm.c: (x_new_selected_screen): Don't call Fselect_screen. + * xterm.c (x_new_selected_screen): Don't call Fselect_screen. Just do everything here. * window.c (Fselect_window): If the screen associated with the @@ -15396,7 +15389,7 @@ which then causes the proper screen to become selected. This does *not* call Fselect_screen. - * screen.c (Fselect_screen): Now this is *only* a lisp subr. It + * screen.c (Fselect_screen): Now this is *only* a lisp subr. It just calls Fselect_window on the selected window of the screen. 1989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15410,7 +15403,7 @@ macro in: * xterm.h: New macro XChangeWindowSize for both X10 and X11. - * xfns.c (Fx_create_screen): Use XCreateWindow instead of + * xfns.c (Fx_create_screen): Use XCreateWindow instead of XCreateSimpleWindow to directly set some extra attributes. 1989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15439,12 +15432,12 @@ 1989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu) - * xfns.c (Fx_create_screen): If user has specified + * xfns.c (Fx_create_screen): If user has specified `x-iconic-startup' then start emacs in iconic form. Look for icon position in `icon-left' and `icon-top', or use window postion. - * xterm.c (x_term_init): If server doesn't respond, use fatal + * xterm.c (x_term_init): If server doesn't respond, use fatal instead of error. Also tell user about -d option. 1989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15459,7 +15452,7 @@ 1989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu) - * xfns.c (adjust_scrollbars): Don't subtract 2 from + * xfns.c (adjust_scrollbars): Don't subtract 2 from h_scrollbar_height when calculating `length'. 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15475,7 +15468,7 @@ * xterm.c (XTread_socket_hook): For X11, on map and unmap events check the window manager hints for iconification status. - * xterm.c (x_make_widow_icon): For X11, just request + * xterm.c (x_make_widow_icon): For X11, just request iconification of the window manager. 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15484,10 +15477,10 @@ 1989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu) - * xfns.c (adjust_scrollbars): Don't subtract 2 from + * xfns.c (adjust_scrollbars): Don't subtract 2 from v_scrollbar_width when calculating `height'. - * xfns.c (x_set_foreground, x_set_border_pixel): Finished color + * xfns.c (x_set_foreground, x_set_border_pixel): Finished color coordination. Scrollbar border, thump-arrows, and slider pixmap linked with foreground color; slider border with window border. @@ -15504,7 +15497,7 @@ 1989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu) - * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the + * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the parameters. 1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15567,8 +15560,8 @@ 1989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu) - * xterm.c (x_draw_box): Use the cursor_gc. - * xfns.c: (x_set_cursor_color, x_create_screen): Do a better job + * xterm.c (x_draw_box): Use the cursor_gc. + * xfns.c (x_set_cursor_color, x_create_screen): Do a better job with cursor colors, and use 0 line width for the cursor_gc. 1989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15581,8 +15574,8 @@ Handle fcns of type Lisp_Compiled. (Fcommandp, Fapply): Avoid directly nested ifs. * print.c (print): Handle Lisp_Compiled objects. - * callint.c (Fcall_interactively): likewise. - * doc.c (Fdocumentation): likewise. + * callint.c (Fcall_interactively): Likewise. + * doc.c (Fdocumentation): Likewise. * keyboard.c (Fopen_dribble_file): nil as arg means close it. @@ -15727,10 +15720,10 @@ 1989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu) - * window.c: rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and + * window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and Vtemp_buffer_show_hook to ..._function. - * keyboard.c: rename mouse_hook to mouse_event_function. + * keyboard.c: Rename mouse_hook to mouse_event_function. * buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook renamed to -function. @@ -15761,7 +15754,7 @@ 1989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu) - * window.c (Fdelete_other_windows): recenter window to avoid scrolling. + * window.c (Fdelete_other_windows): Recenter window to avoid scrolling. 1989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15785,14 +15778,14 @@ * fns.c (Fload_average): nlist data structure is funny on convex. - * window.c (scroll_command): scroll at least 1 line in specd direction. + * window.c (scroll_command): Scroll at least 1 line in specd direction. * cm.c (calccost): NTABS was off by 1 sometimes; take account of the starting position modulo 8. * fileio.c (Fexpand_file_name): Don't simplify /../ at start of name. - * callint.c: doc fixes. + * callint.c: Doc fixes. * process.c (create_process): On all USG systems, not just IRIS and AIX, don't pre-open pty's tty. @@ -15818,7 +15811,7 @@ 1989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu) - * process.c (Fopen_network_stream): close desc. if connect fails. + * process.c (Fopen_network_stream): Close desc. if connect fails. 1989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -15919,7 +15912,7 @@ (dumpglyfs) [X11]: Changed args to XDrawImageString. If debugging, do XFlushQueue. Use screen's face_gc rather than old global one. - (XTflash) [not BSD]: avoid `struct itimerval'; use `alarm'. + (XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'. (events): New table of event type names. (XTread_socket): EVENT is now an XEvent even on x10. Translate modifier key 1 into meta-bit. @@ -15932,7 +15925,7 @@ (x_display_cursor): dumpglyfs args changed. (x_draw_box): Add GC arg to XDrawRectangle; change other args. (clear_cursor): Change args to XClearArea. - (dumpborder): check x_input_screen, not selected_screen. + (dumpborder): Check x_input_screen, not selected_screen. (x_text_icon): For X11, new arg to XGetDefault. Cast values stored in icon_label. (x_term_init): Hair to calculate name for icon. @@ -16003,10 +15996,10 @@ This may avoid the X loop-on-logout bug. * process.c (wait_reading_process_input): Flush fix_screen_hook. - * termhooks.h, term.c: likewise. + * termhooks.h, term.c: Likewise. * xdisp.c (Fredraw_display): Don't do set_terminal_modes. - * dispnew.c (Fredraw_screen): likewise. + * dispnew.c (Fredraw_screen): Likewise. * eval.c (Fcond): If no args, return nil. @@ -16032,7 +16025,7 @@ Arg EXPECTED is passed to read_socket_hook. (input_available_signal): Use read_avail_input. (gobble_input): Use read_avail_input; arg EXPECTED passed along. - (get_input_pending): let gobble_input do the work. + (get_input_pending): Let gobble_input do the work. VMS keyboard input should have interrupt_input nonzero. * keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set @@ -16062,7 +16055,7 @@ (num_input_keys): New Lisp variable. * m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h, - m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK. + * m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK. * unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET, just A_TEXT_SEEK. * unexconvex.c: Likewise. @@ -16084,7 +16077,7 @@ 1989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu) - * dispnew.c (init_display): don't handle SIGWINCH if using X. + * dispnew.c (init_display): Don't handle SIGWINCH if using X. * fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save. This avoids duplicate messages and allows M-x auto-save to turn it on. @@ -16193,7 +16186,7 @@ * indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column or change tab to spaces if necessary. - * m/m-iris4d.h: (conditionally) delete DEFAULT_ENTRY_ADDRESS + * m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS and change START_FILES and LIB_STANDARD. * s/s-iris3-6.h: Define sigblock as no-op. @@ -16259,7 +16252,7 @@ * lread.c (read_escape): Support ANSI C `\x...' hex escapes. - * bytecode.c (Fbyte_code): fix jump operators for change in `pc'. + * bytecode.c (Fbyte_code): Fix jump operators for change in `pc'. 1988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu) @@ -16284,8 +16277,8 @@ 1988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu) - * sink.h,sinkmask.h: Same file now works for both X10 and X11. - * xterm.c,xfns.c (x_text_icon) Can now take new name as parameter. + * sink.h, sinkmask.h: Same file now works for both X10 and X11. + * xterm.c, xfns.c (x_text_icon) Can now take new name as parameter. 1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -16301,7 +16294,7 @@ 1988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu) * xfns.c: Made the first cut for X11 version. - * xterm.c: (x_reset_cursor) Did the X11 version. + * xterm.c (x_reset_cursor): Did the X11 version. 1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -16363,7 +16356,7 @@ * ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files to do special things. - * m/m-ns16000.h: (LOAD_AVE_TYPE, etc.): Don't define them if USG. + * m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG. * m/m-ns16000.h [USG]: Define various macros differently. (munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net). @@ -16436,7 +16429,7 @@ 1988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu) * editfns.c (Fformat): Allow nulls in the format. - * doprnt.c (doprnt): likewise. End of format string is new arg. + * doprnt.c (doprnt): Likewise. End of format string is new arg. 1988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu) @@ -16474,7 +16467,7 @@ * process.c (child_sig): If synch process terminates, clear synch_process_pid and record synch_process_death. - * callproc.c (Fcall_process): return synch_process_death. + * callproc.c (Fcall_process): Return synch_process_death. Always set synch_process_pid and do it with SIGCHLD masked off. * sysdep.c (wait_for_termination) [subprocesses and not VMS]: Use alarms to check every second whether synch_process_pid is 0. @@ -16533,7 +16526,22 @@ See ChangeLog.2 for earlier changes. Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 136a8e5c-4f83-403b-9132-874f1c47f8a9 diff --git a/src/ChangeLog.4 b/src/ChangeLog.4 index 04310b34cad..e611bd564c5 100644 --- a/src/ChangeLog.4 +++ b/src/ChangeLog.4 @@ -6905,7 +6905,22 @@ See ChangeLog.3 for earlier changes. Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 2e44924a-e45a-4129-ad93-1f7bb410b609 diff --git a/src/ChangeLog.5 b/src/ChangeLog.5 index 893a6497996..7cce26c5acc 100644 --- a/src/ChangeLog.5 +++ b/src/ChangeLog.5 @@ -7146,7 +7146,22 @@ See ChangeLog.4 for earlier changes. Copyright (C) 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: aea244d6-d513-4b51-8dba-5ecdf1aa5875 diff --git a/src/ChangeLog.6 b/src/ChangeLog.6 index fb29238601a..4572c8c0a3a 100644 --- a/src/ChangeLog.6 +++ b/src/ChangeLog.6 @@ -14,7 +14,7 @@ Undef them before defining. * s/ptx4.h: Fix include file name. - (NO_FILIO_H): Move definition. + (NO_FILIO_H): Move definition. 1996-08-09 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> @@ -24,21 +24,21 @@ * unexelf1.c: New file, copied from unexelf.c. [__alpha__]: Include <sym.h> to get COFF debugging - info declarations for .mdebug section. + info declarations for .mdebug section. [__GNU_LIBRARY__ - 0 >= 6]: Include <link.h>. [notdef ElfW]: Define backwards compatible ElfW macro. (unexec) [__alpha__]: Add code to update Alpha COFF symbol table - (.mdebug section). + (.mdebug section). (unexec) [__alpha__]: Work around binutils-2.7 bug: for Alpha ELF - sometimes unneeded data relocs do not get elided properly which - results in reloc entries that contain all zeroes. + sometimes unneeded data relocs do not get elided properly which + results in reloc entries that contain all zeroes. * m/alpha.h [__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common. (TEXT_START, DATA_START, DATA_SEG_BITS, UNEXEC): Define only if - __ELF__ is not defined. + __ELF__ is not defined. (LINUX_SBRK_BUG): Define only if LINUX and __GNU_LIBRARY__ < 6. (NO_TERMIO): Always define this. No Alpha system should need - termio. + termio. (COFF, DATA_END): Define only if __ELF__ is not defined. 1996-08-08 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> @@ -53,7 +53,7 @@ 1996-08-07 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> * xmenu.c (xmenu_show): Set dummy.state. - Set dummy.button appropriately. + Set dummy.button appropriately. (popup_get_selection) [USE_MOTIF]: Set event.xbutton.button. * s/osf1.h (LD_SWITCH_SYSTEM): New definition. @@ -190,7 +190,7 @@ 1996-07-16 Andrew Innes <andrewi@harlequin.co.uk> * w32term.c (w32_read_socket): Need to erase background - immediately before repainting exposed region. + immediately before repainting exposed region. * makefile.nt (DOC, clean): Use OBJDIR macro. @@ -707,10 +707,10 @@ immediately if new parameter load_now is false. Check that WSAStartup supports the winsock version we requested. - (set_errno, check_errno, sys_socket, sys_bind, sys_connect, - sys_htons, sys_ntohs, sys_inet_addr, sys_gethostname, - sys_gethostbyname, sys_getservbyname, sys_close, sys_read, - sys_write) [HAVE_SOCKETS]: Check winsock_lib instead of + (set_errno, check_errno, sys_socket, sys_bind, sys_connect) + (sys_htons, sys_ntohs, sys_inet_addr, sys_gethostname) + (sys_gethostbyname, sys_getservbyname, sys_close, sys_read) + (sys_write) [HAVE_SOCKETS]: Check winsock_lib instead of have_winsock to determine if winsock support is available. (sys_socket, sys_close) [HAVE_SOCKETS]: Count sockets in use. @@ -718,8 +718,8 @@ (init_ntproc) [HAVE_SOCKETS]: Only load winsock library on startup if PRELOAD_WINSOCK is set in environment (or registry). - * ntproc.c (Fwin32_has_winsock, - Fwin32_unload_winsock) [HAVE_SOCKETS]: New functions. + * ntproc.c (Fwin32_has_winsock, Fwin32_unload_winsock) + [HAVE_SOCKETS]: New functions. (syms_of_ntproc) [HAVE_SOCKETS]: defsubr them. * process.c (Fopen_network_stream) [WINDOWSNT]: Ensure Windows @@ -775,7 +775,7 @@ 1996-06-05 Paul Eggert <eggert@twinsun.com> - * editfns.c: (set_time_zone_rule): + * editfns.c (set_time_zone_rule): Work around localtime cache bug in SunOS 4.1.3_U1 and SunOS 4.1.4. 1996-06-04 Geoff Voelker <voelker@joker.cs.washington.edu> @@ -839,14 +839,14 @@ 1996-05-24 Andrew Innes <andrewi@harlequin.co.uk> - * w32fns.c: (Vwin32_mouse_move_interval): New lisp variable. + * w32fns.c (Vwin32_mouse_move_interval): New lisp variable. (syms_of_win32fns): Add Vwin32_mouse_move_interval to syms. (saved_mouse_msg): Renamed to saved_mouse_button_msg. (timer_id): Renamed to mouse_button_timer. (saved_mouse_move_msg, mouse_move_timer): New variables. (win_msg_worker): Delete WM_TIMER code. (win32_wnd_proc): Handle WM_TIMER events here. Use separate timers - for mouse down and mouse move (including scroll bar drag) events. + for mouse down and mouse move (including scroll bar drag) events. Add new handling code for WM_VSCROLL and WM_MOUSEMOVE events. Only filter WM_MOUSEMOVE events when a button is held down. Always pass on message to DefWindowProc after calling @@ -938,14 +938,14 @@ 1996-05-13 Andrew Innes <andrewi@harlequin.co.uk> * eval.c (Fsignal) [HAVE_WINDOW_SYSTEM]: Changed from - HAVE_X_WINDOWS, so that TOTALLY_UNBLOCK_INPUT is called on Windows. + HAVE_X_WINDOWS, so that TOTALLY_UNBLOCK_INPUT is called on Windows. * w32fns.c (win32_wnd_proc): Reenable quit_char detection. 1996-05-13 Richard Stallman <rms@delasyd.gnu.ai.mit.edu> * w32menu.c: Include buffer.h. - (set_frame_menubar): Make sure input is unblocked + (set_frame_menubar): Make sure input is unblocked when we call create_menu_items. Switch temporarily to proper buffer, bind inhibit-quit to t, and run the same hooks as in smenu.c. @@ -1088,11 +1088,11 @@ * nt.c (nt_ctime): Function renamed to sys_ctime. Undefine macros for shadowed CRT functions. - (nt_stat, get_unassigned_drive_letter, is_toplevel_share_name, - stat_toplevel_share): Functions deleted. + (nt_stat, get_unassigned_drive_letter, is_toplevel_share_name) + (stat_toplevel_share): Functions deleted. Include sys/socket.h and - undefine macros for shadowed socket functions. + undefine macros for shadowed socket functions. (getwd): Return NULL if GetCurrentDirectory fails. @@ -1101,17 +1101,17 @@ (nt_sleep): Renamed to sys_sleep. (rename): Renamed to sys_rename. Always rename to a temporary name - first on Windows 95. Unlink new name first if necessary. + first on Windows 95. Unlink new name first if necessary. (dir_finding): Variable deleted. (dir_is_fat, dir_pathname): New variables. (openddir): Fail if dir_find_handle is in use. Save directory name - in dir_pathname, and set dir_is_fat appropriately. + in dir_pathname, and set dir_is_fat appropriately. (closedir, readdir): Use dir_find_handle in place of dir_finding. (readdir): Copy directory name from dir_pathname on first - call. Use IS_DIRECTORY_SEP instead of IS_ANY_SEP. Force filename - to be lower case on FAT volumes. + call. Use IS_DIRECTORY_SEP instead of IS_ANY_SEP. Force filename + to be lower case on FAT volumes. (getpwuid): Move struct passwd initialization to init_user_info, return information for current user if uid matches. @@ -1131,8 +1131,8 @@ (init_environment): Call init_user_info. - (get_inode_and_device_vals, pipe_with_inherited_out, - pipe_with_inherited_in): Functions deleted. + (get_inode_and_device_vals, pipe_with_inherited_out) + (pipe_with_inherited_in): Functions deleted. (prepare_standard_handles, reset_standard_handles): Moved to ntproc.c and simplified to match other changes (all handles are @@ -1147,30 +1147,30 @@ (utc_base_ft, utc_base, init): New internal variables used for implementing stat. - (get_volume_info, is_fat_volume, map_win32_filename, convert_time, - convert_from_time_t, hashval, generate_inode_val): New + (get_volume_info, is_fat_volume, map_win32_filename, convert_time) + (convert_from_time_t, hashval, generate_inode_val): New internal support functions for shadowed C library functions. - (sys_access, sys_chdir, sys_chmod, sys_link, sys_mkdir, - sys_mktemp, sys_rmdir, sys_unlink): Call map_win32_filename + (sys_access, sys_chdir, sys_chmod, sys_link, sys_mkdir) + (sys_mktemp, sys_rmdir, sys_unlink): Call map_win32_filename before calling shadowed C library function. (sys_fopen, sys_open): Map file names, and ensure file handle is - non-inheritable. + non-inheritable. (stat): Replace buggy library function. Fake reaonsable i-node values by hashing the canonical file name, and use uid/gid values determined by init_user_info. (term_winsock, init_winsock, set_errno, check_errno) - [HAVE_SOCKETS]: New internal socket support functions (plus - associated variables) required to support dynamic linking to - Windows socket library. + [HAVE_SOCKETS]: New internal socket support functions (plus + associated variables) required to support dynamic linking to + Windows socket library. - (sys_socket, sys_bind, sys_connect, sys_htons, sys_ntohs, - sys_inet_addr, sys_gethostname, sys_gethostbyname, - sys_getservbyname) [HAVE_SOCKETS]: New functions to provide - dynamically loaded interface to Windows socket library. + (sys_socket, sys_bind, sys_connect, sys_htons, sys_ntohs) + (sys_inet_addr, sys_gethostname, sys_gethostbyname) + (sys_getservbyname) [HAVE_SOCKETS]: New functions to provide + dynamically loaded interface to Windows socket library. (sys_close, sys_dup, sys_dup2, sys_read, sys_write): New wrappers for C library functions to handle sockets and pipes. @@ -1179,7 +1179,7 @@ as required. (_sys_read_ahead): New internal support function for pipe/socket - support in sys_select. + support in sys_select. (term_ntproc): New function. (init_ntproc): New function to initialise socket support and make @@ -1246,8 +1246,8 @@ (syms_of_win32fns): Set up new lisp variables. (Fwin32_rgb): Dead procedure removed. - (Fwin32_define_rgb_color, Fwin32_load_color_file, win32_map_color, - win32_regenerate_palette, win32_unmap_color): New functions. + (Fwin32_define_rgb_color, Fwin32_load_color_file, win32_map_color) + (win32_regenerate_palette, win32_unmap_color): New functions. (syms_of_w32fns): Set up new lisp functions. (define_color): Use palettes. Simulate use of PALETTE_RGB to use closest color instead of dithering. @@ -1272,8 +1272,8 @@ (x_to_win32_font): Use x_to_win32_charset. Support Win32 font names in addition to X font names. - (win32_load_font, Fx_list_fonts, Fx_display_color_cells, - Fx_display_mm_height, Fx_display_mm_width: Use GetDC directly. + (win32_load_font, Fx_list_fonts, Fx_display_color_cells) + (Fx_display_mm_height, Fx_display_mm_width): Use GetDC directly. (Fx_open_connection): Support external color mapping files. @@ -1336,18 +1336,18 @@ (HAVE_SOCKETS, MAIL_USE_POP, MAIL_USE_SYSTEM_LOCK): Macros defined. (DIRECTORY_SEP): Use Vdirectory_sep_char. (EXEC_SUFFIXES): Add .cmd to list of suffixes. - (HAVE_SYS_TIMEB_H, HAVE_SYS_TIME_H, HAVE_UNISTD_H, STDC_HEADERS, - TIME_WITH_SYS_TIME, HAVE_GETTIMEOFDAY, HAVE_CLOSEDIR, - HAVE_LONG_FILE_NAMES, HAVE_BCOPY, HAVE_BCMP, HAVE_LOGB, HAVE_FREXP, - HAVE_FMOD, HAVE_FTIME, HAVE_MKTIME, HAVE_H_ERRNO): New macros. - (access, chdir, chmod, close, creat, ctime, dup, dup2, fopen, - link, mkdir, mktemp, open, pipe, read, rename, rmdir, select, - sleep, unlink, write, spawnve, wait, kill, signal): + (HAVE_SYS_TIMEB_H, HAVE_SYS_TIME_H, HAVE_UNISTD_H, STDC_HEADERS) + (TIME_WITH_SYS_TIME, HAVE_GETTIMEOFDAY, HAVE_CLOSEDIR) + (HAVE_LONG_FILE_NAMES, HAVE_BCOPY, HAVE_BCMP, HAVE_LOGB, HAVE_FREXP) + (HAVE_FMOD, HAVE_FTIME, HAVE_MKTIME, HAVE_H_ERRNO): New macros. + (access, chdir, chmod, close, creat, ctime, dup, dup2, fopen) + (link, mkdir, mktemp, open, pipe, read, rename, rmdir, select) + (sleep, unlink, write, spawnve, wait, kill, signal): Macros redefined from win32_* to sys_*. [__STDC__]: Define when including direct.h, io.h, stdio.h. (struct nt_stat): Definition removed. - (stat, st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, - st_rdev, st_size, st_atime, st_mtime, st_ctime): Macros undefined. + (stat, st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid) + (st_rdev, st_size, st_atime, st_mtime, st_ctime): Macros undefined. * s/windows95.h: File removed. @@ -1389,7 +1389,7 @@ 1996-04-30 Richard Stallman <rms@delasyd.gnu.ai.mit.edu> * xterm.c [USE_X_TOOLKIT]: Include X11/Shell.h. - (x_wm_set_icon_pixmap) [USE_X_TOOLKIT]: Tell widget the new pixmap. + (x_wm_set_icon_pixmap) [USE_X_TOOLKIT]: Tell widget the new pixmap. 1996-04-29 Andrew Innes <andrewi@harlequin.co.uk> @@ -1428,7 +1428,7 @@ * fileio.c (CORRECT_DIR_SEPS) [DOS_NT]: New macro. (IS_DRIVE) [DOS_NT]: Added separate definitions for DOS and NT. (Ffile_name_directory) [DOS_NT]: Simplify code to match change in - getdefdir in msdos.c. Ignore embedded colons. Correct dir seps. + getdefdir in msdos.c. Ignore embedded colons. Correct dir seps. (Ffile_name_nondirectory) [DOS_NT]: Ignore embedded colons. Correct IS_ANY_SEP to IS_DIRECTORY_SEP. (file_name_as_directory) [DOS_NT]: Correct dir seps. @@ -1436,23 +1436,23 @@ (directory_file_name) [DOS_NT]: Correct dir seps. (Fmake_temp_name) [DOS_NT]: Correct dir seps. (Fexpand_file_name) [DOS_NT]: Remove relpath, tmp and - defdir variables; init drive to 0. - Correctly detect when default_directory is absolute. - Be strict when looking for MSDOS drive specifier; defer calling + defdir variables; init drive to 0. + Correctly detect when default_directory is absolute. + Be strict when looking for MSDOS drive specifier; defer calling getdefdir. Ignore drive specifier if name now has UNC prefix. - Correctly recognise if name is not absolute when trying simple - method to expand; return original string if possible. - Skip dir sep after ~ or ~user. - Use getpwnam instead of HOME for ~user on NT. - Handle error return from getdefdir. - Correctly detect if newdir is absolute before using default_directory. - Handle case where newdir is not absolute - expand relative to - current working dir if necessary (instead of calling getdisk - later). Only keep UNC prefix if nm starts with dir sep. - Replace kludgy handling of drive spec in newdir. Correct dir seps. + Correctly recognise if name is not absolute when trying simple + method to expand; return original string if possible. + Skip dir sep after ~ or ~user. + Use getpwnam instead of HOME for ~user on NT. + Handle error return from getdefdir. + Correctly detect if newdir is absolute before using default_directory. + Handle case where newdir is not absolute - expand relative to + current working dir if necessary (instead of calling getdisk + later). Only keep UNC prefix if nm starts with dir sep. + Replace kludgy handling of drive spec in newdir. Correct dir seps. (Fsubstitute_in_file_name) [DOS_NT]: Correct dir seps for NT as - well. Merge equivalent #ifdef APOLLO and WINDOWSNT cases. Ignore - embedded colons and be strict about drive specs. + well. Merge equivalent #ifdef APOLLO and WINDOWSNT cases. Ignore + embedded colons and be strict about drive specs. (Fcopy_file) [DOS_NT]: Do dev/inode check on NT. (Ffile_name_absolute_p) [DOS_NT]: Be strict about drive specs. (check_executable) [DOS_NT]: Test st_mode on NT. @@ -1462,7 +1462,7 @@ (syms_of_fileio): Add Vdirectory_sep_char. * msdos.c (getdefdir): Include drive letter and colon when - constructing default directory for drive. + constructing default directory for drive. 1996-04-26 Richard Stallman <rms@delasyd.gnu.ai.mit.edu> @@ -1661,7 +1661,7 @@ * s/msdos.h (DATA_START, TEXT_START, TEXT_END, _NAIVE_DOS_REGS) (POSIX_SIGNALS): Define if DJGPP v2. - (LIBS_SYSTEM, chdir, NO_MODE_T, TEXT_START, NO_MATHERR) + (LIBS_SYSTEM, chdir, NO_MODE_T, TEXT_START, NO_MATHERR) (LOCALTIME_CACHE, tzset): Don't define if DJGPP v2. * msdos.c [MSDOS]: If DJGPP version 2, include fcntl.h. @@ -1676,7 +1676,7 @@ Call setmode at the end and exit. (dos_ttcooked) [DJGPP v2]: Call setmode at the end and exit. (gethostname, gettimeofday): Don't define if DJGPP v2. - (alarm, fork, kill, nicr, pause, sigsetask): Don't define if DJGPP v2. + (alarm, fork, kill, nicr, pause, sigsetask): Don't define if DJGPP v2. 1996-04-11 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -1694,7 +1694,7 @@ * w32fns.c (win32_color_map): Use PALETTERGB instead of RGB. * w32term.h (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use PALETTERGB - instead of RGB. + instead of RGB. 1996-04-10 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -1808,7 +1808,7 @@ Call record_asynch_buffer_change only if >1 frames. * s/lignux.h: Renamed from s/linux.h. - (SYSTEM_TYPE): Changed to "lignux". + (SYSTEM_TYPE): Changed to "lignux". * process.c (wait_reading_process_input_1): New (empty) function. (wait_reading_process_input): Call wait_reading_process_input_1. @@ -1856,8 +1856,8 @@ * unexnt.c (WinMain): Allocate a console for stdout and stderr if necessary. - * w32fns.c (Vwin32_pass_alt_to_system, - Vwin32_pass_optional_keys_to_system): New variables. + * w32fns.c (Vwin32_pass_alt_to_system) + (Vwin32_pass_optional_keys_to_system): New variables. (reset_modifiers, map_keypad_keys): New functions. (win32_wnd_proc): Fixup keypad function keys. Handle the three new keys on Windows keyboards. @@ -1906,7 +1906,7 @@ * m/ibmrs6000.h (LD_SWITCH_MACHINE): Undo previous change-- define this unconditionally. (LD_SWITCH_SITE): New conditional definition. - For gcc 2.7.x, use /bin/ld instead of collect2, + For gcc 2.7.x, use /bin/ld instead of collect2. 1996-03-07 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -1914,7 +1914,7 @@ 1996-03-07 Bill Mann <dvmann@dvaix19.praxisint.com> - * unexaix.c (write_segment,copy_sym): Increase blocking from + * unexaix.c (write_segment, copy_sym): Increase blocking from 128 to 4k bytes. (adjust_lnnoptrs): Handle include file names, mostly for dbx. (unrelocate_symbols): Remove some unnecessary tests. @@ -1930,9 +1930,9 @@ * unexaix.c: Handle both AIX 3.2 and 4.1 bind output. (make_hdr): Handle data_start being non-zero for 4.1. Padding - sections are omitted in 4.1, but padding bytes can still be - present. Calculate bias directly from first real section - following bss. + sections are omitted in 4.1, but padding bytes can still be + present. Calculate bias directly from first real section + following bss. (copy_text_and_data): Correct data section starting point for 4.1. (adjust_lnnoptrs): Adjust line number pointers correctly for both 3.2 and 4.1, based on published IBM documentation. @@ -1994,7 +1994,7 @@ * keyboard.c (init_keyboard): Initialize timer_idleness_start_time. * Makefile.in (obj): Add xmenu.o. - (XOBJ): Delete xmenu.o. + (XOBJ): Delete xmenu.o. * emacs.c (main): Always call syms_of_xmenu. * xmenu.c: Put most of file into HAVE_MENUS conditional. (Fx_popup_menu): Put parts into HAVE_MENUS conditionals. @@ -2045,7 +2045,7 @@ 1996-02-26 enami tsugutomo <enami@ba2.so-net.or.jp> * xdisp.c (redisplay_window): Pass preserve_echo_area as a missing - second argument of redisplay_windows. + second argument of redisplay_windows. 1996-02-25 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -2248,7 +2248,7 @@ * Makefile.in (emacs.o): Depend on blockinput.h. * emacs.c: Include blockinput.h. -1996-02-06 Kevin Gallo <kgallo@microsoft.com> +1996-02-06 Kevin Gallo <kgallo@microsoft.com> * w32term.h (FONT_WIDTH): Use average character width, not maximum. @@ -2303,12 +2303,11 @@ * w32xfns.c (prepend_msg): New function. - * w32fns.c (modifiers, modifier_key_support_tested, - modifiers_recorded): New variables. - (EMACS_LCONTROL, EMACS_RCONTROL, EMACS_LMENU, - EMACS_RMENU): New macros. - (test_modifier_support, record_keydown, record_keyup, - modifier_set, construct_modifiers): New functions. + * w32fns.c (modifiers, modifier_key_support_tested, modifiers_recorded): + New variables. + (EMACS_LCONTROL, EMACS_RCONTROL, EMACS_LMENU, EMACS_RMENU): New macros. + (test_modifier_support, record_keydown, record_keyup, modifier_set) + (construct_modifiers): New functions. (win32_wnd_proc): Monitor modifier keyup and keydown messages. Map window modifiers into console modifiers to unify input. @@ -2320,8 +2319,8 @@ Use console input routines to unify keyboard support. (x_make_frame_visible): Make frame foreground window. - * ntinevt.c (win32_kbd_mods_to_emacs, win32_kbd_patch_key, - key_event): Convert from static to global functions. + * ntinevt.c (win32_kbd_mods_to_emacs, win32_kbd_patch_key, key_event): + Convert from static to global functions. (win32_kbd_patch_key): Set modifiers when AltGr is pressed. (key_event): Don't modify key code on window input. @@ -2381,7 +2380,7 @@ 1996-01-29 Richard Stallman <rms@mole.gnu.ai.mit.edu> * fns.c (Qcursor_in_echo_area): New variable. - (syms_of_fns): Set up Lisp var. + (syms_of_fns): Set up Lisp var. (Fy_or_n_p): Bind Qcursor_in_echo_area in case of nonlocal exit. * keyboard.c (make_lispy_event): Timer event is a list, not just cons. @@ -2445,7 +2444,7 @@ 1996-01-27 enami tsugutomo <enami@ba2.so-net.or.jp> * sysdep.c (child_setup_tty): Turn off ISTRIP to pass 8bit. Turn - off TAB3 do don't expand tabs. + off TAB3 do don't expand tabs. 1996-01-26 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -2491,7 +2490,7 @@ * msdos.c (dos_set_window_size): New function; switches the screen to the size as close as possible to requested frame dimensions. - * msdos.h: (dos_set_window_size): Prototype for a new function. + * msdos.h (dos_set_window_size): Prototype for a new function. * dispnew.c (change_frame_size_1) [MSDOS]: Support frame size changing as best as possible. @@ -2524,7 +2523,7 @@ 1996-01-23 Felix Lee <flee@teleport.com> * data.c (kill-local-variable): Didn't update the value of - forwarded objects. + forwarded objects. * xdisp.c (mark_window_display_accurate): buffer->clip_changed was being inappropriately cleared. @@ -2563,8 +2562,8 @@ Use CRIT_MSG critical section. * w32term.h (win32_palette_entry): New structure. - (has_palette, p_colors_in_use, n_colors_in_use, h_palette, - regen_palette): Declare variables. + (has_palette, p_colors_in_use, n_colors_in_use, h_palette) + (regen_palette): Declare variables. (struct win32_output): New field. (my_get_dc): Macro removed. (GetFrameDC, ReleaseFrameDC): Declare functions. @@ -2593,11 +2592,11 @@ New variables. (syms_of_win32fns): Set up new lisp variables. - (x_set_frame_parameters, x_real_positions, win32_load_font, - win32_abort): Conform to coding style. + (x_set_frame_parameters, x_real_positions, win32_load_font) + (win32_abort): Conform to coding style. - (Fwin32_define_rgb_color, Fwin32_load_color_file, Fwin32_map_color, - Fwin32_unmap_color, Fwin32_regenerate_palette): New functions. + (Fwin32_define_rgb_color, Fwin32_load_color_file, Fwin32_map_color) + (Fwin32_unmap_color, Fwin32_regenerate_palette): New functions. (syms_of_win32fns): Set up new lisp subroutines. (defined_color): Use palettes. (map_mode): Function removed. @@ -2628,12 +2627,12 @@ (win32_number_shift_map): Array undefined. (win32_kbd_patch_key): Properly handle virtual keys for arbitrary keyboards. - (map_virt_key, key_event, win32_mouse_position, do_mouse_event, - win32_read_socket): Support for MULE. + (map_virt_key, key_event, win32_mouse_position, do_mouse_event) + (win32_read_socket): Support for MULE. * nt.c (nt_stat): Use alloca instead of xmalloc. - (get_unassigned_drive_letter, is_toplevel_share_name, - stat_toplevel_share): New functions for stat on remote shares. + (get_unassigned_drive_letter, is_toplevel_share_name) + (stat_toplevel_share): New functions for stat on remote shares. (readdir): Use IS_ANY_SEP. * makefile.nt (keyboard.obj, dispnew.obj): Depend upon w32term.h. @@ -2784,14 +2783,14 @@ 1996-01-08 Erik Naggum <erik@naggum.no> - * abbrev.c (Fdefine_global_abbrev, Fdefine_mode_abbrev, - Fabbrev_symbol, Finsert_abbrev_table_description, - Fdefine_abbrev_table): Harmonize arguments with documentation. + * abbrev.c (Fdefine_global_abbrev, Fdefine_mode_abbrev) + (Fabbrev_symbol, Finsert_abbrev_table_description) + (Fdefine_abbrev_table): Harmonize arguments with documentation. * alloc.c (Fmake_symbol): Harmonize arguments with documentation. - * buffer.c (Fmake_indirect_buffer, Fset_buffer_major_mode, - Fpop_to_buffer, Fbury_buffer, Foverlay_get): Harmonize arguments + * buffer.c (Fmake_indirect_buffer, Fset_buffer_major_mode) + (Fpop_to_buffer, Fbury_buffer, Foverlay_get): Harmonize arguments with documentation. * bytecode.c (Fbyte_code): Harmonize arguments with documentation. @@ -2799,46 +2798,42 @@ * callint.c (Fcall_interactively, Fprefix_numeric_value): Harmonize arguments with documentation. - * casefiddle.c (Fupcase_region, Fdowncase_region, - Fcapitalize_region, Fupcase_initials_region): Harmonize arguments - with documentation. + * casefiddle.c (Fupcase_region, Fdowncase_region, Fcapitalize_region) + (Fupcase_initials_region): Harmonize arguments with documentation. + + * casetab.c (Fcase_table_p): Harmonize arguments with documentation. - * casetab.c (Fcase_table_p): Harmonize arguments with + * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line) + (Fdelete_char, Fdelete_backward_char): Harmonize arguments with documentation. - * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line, - Fdelete_char, Fdelete_backward_char): Harmonize arguments with - documentation. - - * data.c (Fboundp, Ffboundp, Fmakunbound, Ffmakunbound, - Fsymbol_plist, Fsymbol_name, Ffset, Fdefalias, Fdefine_function, - Fsetplist, store_symval_forwarding, swap_in_symval_forwarding, - find_symbol_value, Fsymbol_value, Fset, default_value, - Fdefault_boundp, Fdefault_value, Fset_default, Fsetq_default, - Fmake_variable_buffer_local, Fmake_local_variable, - Fkill_local_variable, Flocal_variable_p, Flocal_variable_if_set_p, - Faref, Faset, Fzerop, Fnumber_to_string, Fstring_to_number, Frem, - Fmod, Fadd1, Fsub1, Flognot): Harmonize arguments with - documentation. - - * dired.c (Fdirectory_files, Ffile_name_completion, - Ffile_name_all_completions, Ffile_name_all_versions): Harmonize + * data.c (Fboundp, Ffboundp, Fmakunbound, Ffmakunbound) + (Fsymbol_plist, Fsymbol_name, Ffset, Fdefalias, Fdefine_function) + (Fsetplist, store_symval_forwarding, swap_in_symval_forwarding) + (find_symbol_value, Fsymbol_value, Fset, default_value) + (Fdefault_boundp, Fdefault_value, Fset_default, Fsetq_default) + (Fmake_variable_buffer_local, Fmake_local_variable) + (Fkill_local_variable, Flocal_variable_p, Flocal_variable_if_set_p) + (Faref, Faset, Fzerop, Fnumber_to_string, Fstring_to_number, Frem) + (Fmod, Fadd1, Fsub1, Flognot): Harmonize arguments with documentation. + + * dired.c (Fdirectory_files, Ffile_name_completion) + (Ffile_name_all_completions, Ffile_name_all_versions): Harmonize arguments with documentation. * dispnew.c (Fsend_string_to_terminal, Fsit_for): Harmonize arguments with documentation. - * doc.c (Fdocumentation, Fdocumentation_property, - Fsubstitute_command_keys): Harmonize arguments with documentation. + * doc.c (Fdocumentation, Fdocumentation_property) + (Fsubstitute_command_keys): Harmonize arguments with documentation. * dosfns.c (Fint86, Fdos_memget, Fdos_memput, Fmsdos_set_keyboard): - Harmonize arguments with documentation. + Harmonize arguments with documentation. - * editfns.c (Fchar_to_string, Fstring_to_char, Fgoto_char, - Fencode_time, Finsert_char, Fbuffer_substring, - Fbuffer_substring_no_properties, Finsert_buffer_substring, - Fdelete_region, Fnarrow_to_region): Harmonize arguments with - documentation. + * editfns.c (Fchar_to_string, Fstring_to_char, Fgoto_char, Fencode_time, + (Finsert_char, Fbuffer_substring, Fbuffer_substring_no_properties) + (Finsert_buffer_substring, Fdelete_region, Fnarrow_to_region): + Harmonize arguments with documentation. (Fformat_time_string): Allow TIME to default to current time. * emacs.c (Fdump_emacs_data, Fdump_emacs): Harmonize arguments with @@ -2847,13 +2842,13 @@ * eval.c (Fmacroexpand, Fthrow, Fbacktrace_frame): Harmonize arguments with documentation. - * fileio.c (Ffile_name_directory, Ffile_name_nondirectory, - Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name, - Fsubstitute_in_file_name, Fcopy_file, Fmake_directory_internal, - Fdelete_directory, Fdelete_file, Frename_file, Fadd_name_to_file, - Fdefine_logical_name, Ffile_modes, Fset_file_modes, - Fset_default_file_modes, Fdo_auto_save, Fread_file_name): Harmonize - arguments with documentation. + * fileio.c (Ffile_name_directory, Ffile_name_nondirectory) + (Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name) + (Fsubstitute_in_file_name, Fcopy_file, Fmake_directory_internal) + (Fdelete_directory, Fdelete_file, Frename_file, Fadd_name_to_file) + (Fdefine_logical_name, Ffile_modes, Fset_file_modes) + (Fset_default_file_modes, Fdo_auto_save, Fread_file_name): + Harmonize arguments with documentation. * filelock.c (Flock_buffer, Ffile_locked_p): Harmonize arguments with documentation. @@ -2861,11 +2856,11 @@ * floatfns.c (Fbessel_jn, Fbessel_yn): Harmonize arguments with documentation. - * fns.c (Frandom, Flength, Felt, Fsort, Fchar_table_subtype, - Fchar_table_parent, Fset_char_table_parent, Fchar_table_extra_slot, - Fset_char_table_extra_slot, Fchar_table_range, - Fset_char_table_range, Fmap_char_table, Fmapconcat, Fmapcar): - Harmonize arguments with documentation. + * fns.c (Frandom, Flength, Felt, Fsort, Fchar_table_subtype) + (Fchar_table_parent, Fset_char_table_parent, Fchar_table_extra_slot) + (Fset_char_table_extra_slot, Fchar_table_range) + (Fset_char_table_range, Fmap_char_table, Fmapconcat, Fmapcar): + Harmonize arguments with documentation. * frame.c (Fhandle_switch_frame, Fset_frame_height): Harmonize arguments with documentation. @@ -2875,9 +2870,9 @@ * keyboard.c (Fevent_convert_list, Fcommand_execute): Harmonize arguments with documentation. - * keymap.c (Fkeymapp, Fdefine_prefix_command, Faccessible_keymaps, - Ftext_char_description, Fapropos_internal): Harmonize arguments - with documentation. + * keymap.c (Fkeymapp, Fdefine_prefix_command, Faccessible_keymaps) + (Ftext_char_description, Fapropos_internal): Harmonize arguments + with documentation. * lread.c (Feval_buffer, Feval_region, Fintern, Fintern_soft): Harmonize arguments with documentation. @@ -2893,32 +2888,32 @@ * print.c (Fwrite_char, Fprin1, Fprin1_to_string, Fprinc, Fprint): Harmonize arguments with documentation. - * process.c (Fprocessp, Fget_buffer_process, Fdelete_process, - Fprocess_status, Fprocess_exit_status, Fprocess_id, Fprocess_name, - Fprocess_command, Fprocess_tty_name, Fset_process_buffer, - Fprocess_buffer, Fprocess_mark, Fset_process_filter, - Fprocess_filter, Fset_process_sentinel, Fprocess_sentinel, - Fset_process_window_size, Fprocess_kill_without_query, - Faccept_process_output): Harmonize arguments with documentation. + * process.c (Fprocessp, Fget_buffer_process, Fdelete_process) + (Fprocess_status, Fprocess_exit_status, Fprocess_id, Fprocess_name) + (Fprocess_command, Fprocess_tty_name, Fset_process_buffer) + (Fprocess_buffer, Fprocess_mark, Fset_process_filter) + (Fprocess_filter, Fset_process_sentinel, Fprocess_sentinel) + (Fset_process_window_size, Fprocess_kill_without_query) + (Faccept_process_output): Harmonize arguments with documentation. * search.c (Fmatch_end, Fregexp_quote): Harmonize arguments with documentation. - * syntax.c (Fsyntax_table_p, Fchar_syntax, Fmatching_paren, - Fmodify_syntax_entry): Harmonize arguments with documentation. + * syntax.c (Fsyntax_table_p, Fchar_syntax, Fmatching_paren) + (Fmodify_syntax_entry): Harmonize arguments with documentation. - * textprop.c (Ftext_properties_at, Fget_text_property, - Fget_char_property, Fnext_property_change, - Fnext_single_property_change, Fprevious_property_change, - Fprevious_single_property_change, Fadd_text_properties, - Fput_text_property, Fset_text_properties, Fremove_text_properties, - Ftext_property_any, Ftext_property_not_all): Harmonize arguments - with documentation. + * textprop.c (Ftext_properties_at, Fget_text_property) + (Fget_char_property, Fnext_property_change) + (Fnext_single_property_change, Fprevious_property_change) + (Fprevious_single_property_change, Fadd_text_properties) + (Fput_text_property, Fset_text_properties, Fremove_text_properties) + (Ftext_property_any, Ftext_property_not_all): Harmonize arguments + with documentation. - * window.c (Fwindowp, Fwindow_live_p, Fother_window, - Fenlarge_window, Fshrink_window, Fscroll_up, Fscroll_down, - Fscroll_other_window, Fscroll_left, Fscroll_right, Frecenter, - Fwindow_configuration_p): Harmonize arguments with documentation. + * window.c (Fwindowp, Fwindow_live_p, Fother_window, Fenlarge_window) + (Fshrink_window, Fscroll_up, Fscroll_down, Fscroll_other_window) + (Fscroll_left, Fscroll_right, Frecenter, Fwindow_configuration_p): + Harmonize arguments with documentation. * xfaces.c (Fpixmap_spec_p): Harmonize arguments with documentation. @@ -2935,7 +2930,7 @@ * unexelf.c (unexec) [SOLARIS2]: Undo relocations performed by the runtime linker. - * config.in: (LOCALTIME_CACHE): Add #undef. + * config.in (LOCALTIME_CACHE): Add #undef. 1996-01-08 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> @@ -2962,7 +2957,7 @@ after vfork whether it succeeds or not. * m/hp800.h: Conditionalize many macro definitions on __hpux. - (NEED_BSDTTY): Delete duplicate definition. + (NEED_BSDTTY): Delete duplicate definition. * lread.c (dump_path): New static var. (init_lread): Use that to record dump-time initial path. @@ -3017,7 +3012,7 @@ 1996-01-03 Ulrich Leodolter <ulrich@lab1.psy.univie.ac.at> - * ntproc.c (win32_wait): fixed bad synch_process_retcode + * ntproc.c (win32_wait): Fixed bad synch_process_retcode and initialized synch_process_death if signaled. 1996-01-02 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -3241,12 +3236,12 @@ 1995-12-12 Paul Eggert <eggert@twinsun.com> - * process.c (create_process): Use Posix signal handling to + * process.c (create_process): Use Posix signal handling to block signals, if available. If HAVE_VFORK, save and restore signal handlers that the child might change, since in many systems (e.g. Solaris 2.4) if the child changes the signal handlers this munges the parent's handler. - * s/sol2-3.h (HAVE_VFORK): Remove #undef, since we now + * s/sol2-3.h (HAVE_VFORK): Remove #undef, since we now know how to use Solaris vfork. (VFORK_RETURN_TYPE): Remove definition. @@ -3587,7 +3582,7 @@ 1995-11-09 Erik Naggum <erik@naggum.no> * eval.c (run-hook-with-args, run-hook-list-with-args): Safeguard - against a t in the global value of hook variables. + against a t in the global value of hook variables. 1995-11-08 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> @@ -3682,15 +3677,15 @@ * dispnew.c [HAVE_NTGUI]: Include w32term.h. Include dispextern.h before cm.h since dispextern.h includes windows.h. - [HAVE_NTGUI] (make_frame_glyphs, free_frame_glyphs, scroll_frame_lines, - update_frame, update_line): Test for WIN32 frame. + [HAVE_NTGUI] (make_frame_glyphs, free_frame_glyphs, scroll_frame_lines) + (update_frame, update_line): Test for WIN32 frame. [HAVE_NTGUI] (init_display): Initialize WIN32 window system. * dispextern.h [HAVE_NTGUI]: Include win32.h. [HAVE_NTGUI] (struct frame_glyphs): Include pixel fields. * w32term.c, w32xfns.c, w32fns.c, w32faces.c, w32select.c, - w32menu.c, w32reg.c, win32.h: New files. + * w32menu.c, w32reg.c, win32.h: New files. * s/windowsnt.h [HAVE_NTGUI] (abort): New macro. [HAVE_NTGUI] (HAVE_FACES): Defined. @@ -3714,8 +3709,8 @@ Don't duplicate or restore standard handles. * makefile.nt (SUBSYSTEM, TLIBW32, TLASTLIB, WIN32OBJ): Defined. - (w32term.obj, w32xfns.obj, w32fns.obj w32faces.obj, w32select.obj, - w32menu.obj, w32reg.obj): Defined. + (w32term.obj, w32xfns.obj, w32fns.obj w32faces.obj, w32select.obj) + (w32menu.obj, w32reg.obj): Defined. (LINK_FLAGS): Use SUBSYSTEM. (OBJ1): Remove lastfile.obj. (LIBS, TEMACS): Use TLASTLIB. @@ -3755,7 +3750,7 @@ * msdos.h (struct x_output): Rename from struct x_display. * msdos.c (the_only_x_display): Type is now struct x_output. - (internal_terminal_init): frame member is now named output_data. + (internal_terminal_init): Frame member is now named output_data. (init_environment): Fix timezone rules. * emacs.c (main): [MSDOS] Call init_gettimeofday. * frame.c [!MULTI_FRAME] (Fmodify_frame_parameters): Add missing @@ -3772,7 +3767,7 @@ 1995-10-31 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu> * doprnt.c: Include lisp.h. - (doprnt1): Renamed from doprnt. New arg LISPSTRINGS. + (doprnt1): Renamed from doprnt. New arg LISPSTRINGS. This is now a static subroutine. (doprnt): New definition calls doprnt1. (doprnt_lisp): New function. @@ -3945,7 +3940,7 @@ (read_char): Copy and compare with echo_area_glyphs. * buffer.c (reset_buffer_local_variables): Call - Fset_standard_case_table if std case table seems to have been changed. + Fset_standard_case_table if std case table seems to have been changed. 1995-10-21 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -3995,7 +3990,7 @@ * editfns.c (Fchar_equal): Handle char-table as case table. * fns.c (Fchar_table_subtype): New function. - (syms_of_fns): defsube it. + (syms_of_fns): defsubr it. * fns.c (map_char_table): When possible, use a number to describe the range. @@ -4015,7 +4010,7 @@ (Vascii_upcase_table, Vascii_canon_table, Vascii_eqv_table): Declarations deleted. - * keyboard.c (read_char): Let Vkeyboard_translate_table be char-table. + * keyboard.c (read_char): Let Vkeyboard_translate_table be char-table. (syms_of_keyboard): Doc fix. 1995-10-15 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -4062,21 +4057,21 @@ 1995-10-11 Kim Storm <kfstorm@wombat.gnu.ai.mit.edu> * keyboard.c (make_lispy_event) [!USE_X_TOOLKIT]: Dragging - the mouse into the menu-bar and releasing it there did - not create a drag-mouse event. + the mouse into the menu-bar and releasing it there did + not create a drag-mouse event. (set-input-mode) [MSDOS]: Do not call reset_sys_modes and init_sys_modes. * dosfns.c (insert-startup-screen): New function. (msdos-memget, msdos-memput): New functions. (msdos-set-keyboard, insert-startup-screen): New functions. - (dos-timezone-offset, dos-display-scancodes, dos-menubar-clock, - dos-hyper-key, dos-super-key, dos-keypad-mode, dos-keyboard-layout, - dos-decimal-point): New variables. + (dos-timezone-offset, dos-display-scancodes, dos-menubar-clock) + (dos-hyper-key, dos-super-key, dos-keypad-mode, dos-keyboard-layout) + (dos-decimal-point): New variables. - * dosfns.h (dos_timezone_offset, dos_display_scancodes, - dos_menubar_clock, dos_hyper_key, dos_super_key, dos_keypad_mode, - dos_keyboard_layout, dos_decimal_point): New variables. + * dosfns.h (dos_timezone_offset, dos_display_scancodes) + (dos_menubar_clock, dos_hyper_key, dos_super_key, dos_keypad_mode) + (dos_keyboard_layout, dos_decimal_point): New variables. * msdos.c: [!HAVE_X_WINDOWS]: Reworked display code to perform immediate screen output. @@ -4087,13 +4082,14 @@ Corrected M-return & M-kp-enter. Added support for hyper and super keys. Reworked mouse code to avoid mouse flicker. - Saves and restores DOS-screen prior to emacs startup. + Saves and restores DOS-screen prior to Emacs startup. (sys_select): Would abort if rfds = NULL. (dos_direct_output): New function. (dos_dump_scancodes): New variable. - * msdos.h (internal_flush): Removed - (mouse_init1, mouse_check_moved, mouse_pressed, mouse_released): Removed. + * msdos.h (internal_flush): Removed. + (mouse_init1, mouse_check_moved, mouse_pressed, mouse_released): + Removed. (dos_get_saved_screen, dos_set_keyboard): New functions. * s/msdos.h: Check that DJGPP v. 1 is used. @@ -4101,11 +4097,10 @@ Simplified INTERNAL_TERMINAL termcap definition. Removed #define fflush internal_flush. - * sysdep.c: (init_sys_modes) [!HAVE_X_WINDOWS (MSDOS)]: + * sysdep.c (init_sys_modes) [!HAVE_X_WINDOWS (MSDOS)]: Always call set_terminal_modes. (reset_sys_modes) [MSDOS]: Do not look at EMACSCOLORS. - 1995-10-11 Richard Stallman <rms@mole.gnu.ai.mit.edu> * buffer.c (Fkill_buffer): Don't kill auto save file if not recent. @@ -4216,7 +4211,7 @@ (SYNTAX_PREFIX, SYNTAX_COMMENT_STYLE): Use SYNTAX_WITH_FLAGS. * callint.c (callint_message, callint_message_size): New vars. - (syms_of_callint): Set up new vars. + (syms_of_callint): Set up new vars. (Fcall_interactively): Keep the prompt in the heap. 1995-10-05 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -4252,7 +4247,7 @@ * lisp.h (CHECK_CHAR_TABLE): New macro. * frame.c (Qmouse_leave_buffer_hook): New variable. - (syms_of_frame_1): Initialize it. + (syms_of_frame_1): Initialize it. (Fhandle_switch_frame): Run the hooks. * keyboard.c (Vsuggest_key_bindings): New variable. @@ -4430,10 +4425,10 @@ * configure.in (LOCALTIME_CACHE): Define if tzset exists and if localtime caches TZ. Check for tzset. - * emacs.c (main): Call tzset only if LOCALTIME_CACHE is defined; + * emacs.c (main): Call tzset only if LOCALTIME_CACHE isdefined; not all Suns have this bug. * m/pmax.h, s/386bsd.h, s/bsd386.h, s/freebsd.h, s/gnu.h, - s/netbsd.h (LOCALTIME_CACHE): Remove; now configured automatically. + * s/netbsd.h (LOCALTIME_CACHE): Remove; now configured automatically. 1995-09-06 Erik Naggum <erik@naggum.no> @@ -4523,7 +4518,6 @@ (sleep_or_kbd_hit): Handle 60 seconds time wrap. (mouse_get_pos): Return event_timestamp. - 1995-08-29 Richard Stallman <rms@mole.gnu.ai.mit.edu> * msdos.c (struct IT_menu_state): Refer to it as struct, not typedef. @@ -4606,7 +4600,7 @@ 1995-08-14 Erik Naggum <erik@naggum.no> * emacs.c (standard_args): Add option --eval to evalute an - expression on the command line and print the result. + expression on the command line and print the result. 1995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -4679,7 +4673,7 @@ * emacs.c (main) [USG5]: Call setpgrp without testing INTERRUPT_INPUT. * xdisp.c (redisplay): Compute mini_frame the same way - echo_area_display does. + echo_area_display does. * keyboard.c (kbd_buffer_store_event): Don't insert two buffer_switch_event's in a row. @@ -4690,8 +4684,8 @@ * eval.c (run_hook_with_args): Move the GCPRO2; add UNGCPRO. * process.c (read_process_output, exec_sentinel): Call - record_asynch_buffer_change after any eval. Don't call - prepare_menu_bars. + record_asynch_buffer_change after any eval. Don't call + prepare_menu_bars. (wait_reading_process_input): Don't call prepare_menu_bars. 1995-08-05 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -4750,7 +4744,7 @@ (follow_key): Don't alter contents of NEXT until the end. * xmenu.c [USE_X_TOOLKIT] (xmenu_show): Compute root-based - coordinates. Make a dummy event to pass them to lw_popup_menu. + coordinates. Make a dummy event to pass them to lw_popup_menu. * lread.c (Funintern): Fix deleting the last symbol in a chain. @@ -4773,14 +4767,12 @@ * eval.c (run_hook_with_args): Renamed from Frun_hook_with_args. Take extra arg CONDITION, and return appropriately based on hook function value if CONDITION is until_success or until_failure. - (Frun_hooks, Frun_hook_with_args, - Frun_hook_with_args_until_success, - Frun_hook_with_args_until_failure): New functions, use it. + (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success) + (Frun_hook_with_args_until_failure): New functions, use it. (syms_of_eval): defsubr them. - * lisp.h (Frun_hook_with_args, - Frun_hook_with_args_until_success, - Frun_hook_with_args_until_failure): Declare them. + * lisp.h (Frun_hook_with_args, Frun_hook_with_args_until_success) + (Frun_hook_with_args_until_failure): Declare them. 1995-07-31 Richard Stallman <rms@mole.gnu.ai.mit.edu> @@ -4829,7 +4821,7 @@ * eval.c (syms_of_eval): Add missing defsubr. - * buffer.c: (struct sortstrlist): New type. + * buffer.c (struct sortstrlist): New type. (overlay_heads, overlay_tails): Change to struct sortstrlist. (overlay_heads_len, overlay_tails_len): Deleted; now part of struct. (record_overlay_string): New function. @@ -5030,8 +5022,8 @@ 1995-07-18 Mikael Djurfeldt <mdj@kidjo.nada.kth.se> * xdisp.c (decode_mode_spec): New arg spec_width. - Use pint2str for %l and %c. New code to output ??. - (display_mode_element): New var minendcol. + Use pint2str for %l and %c. New code to output ??. + (display_mode_element): New var minendcol. Pass new arg to decode_mode_spec. (pint2str): New function. @@ -5206,10 +5198,10 @@ * s/riscos5.h: New file. * xfns.c (x_set_icon_type, x_set_icon_name): Don't ever remap the - frame window; changing the icon doesn't make it disappear. + frame window; changing the icon doesn't make it disappear. * process.c (Fstart_process): Expand PROGRAM. - Error if it is a directory. + Error if it is a directory. * s/sunos4shr.h (LIBXMU): New definitions (two alternative ones). @@ -5218,8 +5210,8 @@ 1995-06-30 Geoff Voelker (voelker@cs.washington.edu) * nt.c (PASSWD_FIELD_SIZE): Defined. - (the_passwd_name, the_passwd_passwd, the_passwd_gecos, - the_passwd_dir, the_passwd_shell, getpwuid): Use PASSWD_FIELD_SIZE. + (the_passwd_name, the_passwd_passwd, the_passwd_gecos) + (the_passwd_dir, the_passwd_shell, getpwuid): Use PASSWD_FIELD_SIZE. (get_emacs_configuration): Check if processor macros are defined. * ntheap.c: Include config.h. @@ -5364,7 +5356,22 @@ See ChangeLog.5 for earlier changes. Copyright (C) 1995, 1996, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 66a98e1c-2268-45e8-8a57-286b9c85a4e9 diff --git a/src/ChangeLog.7 b/src/ChangeLog.7 index c38cb1fc9ca..8abb6e89580 100644 --- a/src/ChangeLog.7 +++ b/src/ChangeLog.7 @@ -320,9 +320,8 @@ translation-table to 1. Initialize and static pro Qvalid_codes. * coding.h (CODING_CATEGORY_IDX_CCL): New macro. - (CODING_CATEGORY_IDX_BIG5, CODING_CATEGORY_IDX_RAW_TEXT, - CODING_CATEGORY_IDX_BINARY, CODING_CATEGORY_IDX_MAX): Increased by - one. + (CODING_CATEGORY_IDX_BIG5, CODING_CATEGORY_IDX_RAW_TEXT) + (CODING_CATEGORY_IDX_BINARY, CODING_CATEGORY_IDX_MAX): Increased by one. (CODING_CATEGORY_MASK_CCL): New macro. (CODING_CATEGORY_MASK_ANY): Include CODING_CATEGORY_MASK_CCL. @@ -422,13 +421,13 @@ 1998-07-13 Eli Zaretskii <eliz@mescaline.gnu.org> - * w16select.c (set_clipboard_data, get_clipboard_data, - Fw16_set_clipboard_data, Fw16_get_clipboard_data, - Fx_selection_exists_p): Use CF_OEMTEXT instead of CF_TEXT. + * w16select.c (set_clipboard_data, get_clipboard_data) + (Fw16_set_clipboard_data, Fw16_get_clipboard_data) + (Fx_selection_exists_p): Use CF_OEMTEXT instead of CF_TEXT. 1998-07-12 Andrew Innes <andrewi@delysid.gnu.org> - * w32select.c: (Fw32_set_clipboard_data): Set Vlast_coding_system_used. + * w32select.c (Fw32_set_clipboard_data): Set Vlast_coding_system_used. (Fw32_get_clipboard_data): Likewise. 1998-07-12 Richard Stallman <rms@psilocin.ai.mit.edu> @@ -550,8 +549,8 @@ 1998-07-03 Kenichi Handa <handa@etl.go.jp> * editfns.c (Finsert): Typo in doc-string fixed. - (Finsert_and_inherit, Finsert_before_markers, - Finsert_and_inherit_before_markers): Likewize. + (Finsert_and_inherit, Finsert_before_markers) + (Finsert_and_inherit_before_markers): Likewise. 1998-07-02 Ken'ichi Handa <handa@melange.gnu.org> @@ -737,8 +736,8 @@ 1998-06-17 Geoff Voelker <voelker@cs.washington.edu> - * w32.c (is_unc_volume, open_unc_volume, read_unc_volume, - close_unc_volume, unc_volume_file_attributes): New functions. + * w32.c (is_unc_volume, open_unc_volume, read_unc_volume) + (close_unc_volume, unc_volume_file_attributes): New functions. (wnet_enum_handle): New variable. (opendir, readdir, closedir, sys_access, stat): Handle UNC volumes. @@ -1650,7 +1649,7 @@ * unexelf.c [__alpha__ && !__NetBSD__ && !__OpenBSD__]: Include definition of HDRR structure that used to be in sym.h, - instead of sym.h + instead of sym.h. 1998-04-29 Andreas Schwab <schwab@delysid.gnu.org> @@ -1717,10 +1716,10 @@ 1998-04-28 Eli Zaretskii <eliz@mescaline.gnu.org> - * Makefile.in (callproc.o, print.o, cmds.o, dispnew.o, fileio.o, - frame.o, keyboard.o, minibuf.o, process.o, scroll.o, sysdep.o, - term.o, w16select.o, window.o, xdisp.o, xfaces.o, lread.o): Depend - on msdos.h. + * Makefile.in (callproc.o, print.o, cmds.o, dispnew.o, fileio.o) + (frame.o, keyboard.o, minibuf.o, process.o, scroll.o, sysdep.o) + (term.o, w16select.o, window.o, xdisp.o, xfaces.o, lread.o): + Depend on msdos.h. (print.o): Depend on dispextern.h. 1998-04-28 Andreas Schwab <schwab@delysid.gnu.org> @@ -1749,12 +1748,12 @@ * callproc.c, fileio.c: Include msdos.h after lisp.h. - * msdos.c (IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line, - IT_clear_screen, IT_clear_to_end, IT_clear_to_end, IT_cursor_to, - IT_cmgoto, IT_reassert_line_highlight, IT_change_line_highlight, - IT_update_begin, IT_update_end, IT_set_terminal_modes, - IT_reset_terminal_modes, IT_set_terminal_window, - pixel_to_glyph_coords, IT_menu_display): Bring definitions in + * msdos.c (IT_ring_bell, IT_write_glyphs, IT_clear_end_of_line) + (IT_clear_screen, IT_clear_to_end, IT_clear_to_end, IT_cursor_to) + (IT_cmgoto, IT_reassert_line_highlight, IT_change_line_highlight) + (IT_update_begin, IT_update_end, IT_set_terminal_modes) + (IT_reset_terminal_modes, IT_set_terminal_window) + (pixel_to_glyph_coords, IT_menu_display): Bring definitions in accordance with prototype declarations. * msdos.h [!HAVE_X_WINDOWS]: Add a dummy typedef for XRectangle @@ -1853,7 +1852,7 @@ 1998-04-23 Inge Frick <inge@nada.kth.se> - * keyboard.c: (parse_menu_item): Support keywords :keys and + * keyboard.c (parse_menu_item): Support keywords :keys and :key-sequence. Some changes to provide GC-protection. Some cosmetic changes. (syms_of_keyboard): Define new symbols `:keys' and `:key-sequence'. @@ -1895,7 +1894,7 @@ * w16select.c (Fwin16_set_clipboard_data): Call UNBLOCK_INPUT before calling sit_for. - (Fwin16_get_clipboard_data, Fwin16_set_clipboard_data): Balance + (Fwin16_get_clipboard_data, Fwin16_set_clipboard_data): Balance the calls to BLOCK_INPUT and UNBLOCK_INPUT. (alloc_xfer_buf): If want_size is more than 1MB, return immediately with failure. @@ -1979,8 +1978,8 @@ * process.h (struct Lisp_Process): Add inherit_coding_system_flag member. - * process.c (Fset_process_inherit_coding_system_flag, - Fprocess_inherit_coding_system_flag): New functions. + * process.c (Fset_process_inherit_coding_system_flag) + (Fprocess_inherit_coding_system_flag): New functions. (syms_of_process): Defsubr them. (Fstart_process, Fopen_network_stream): Initialize inherit_coding_system_flag. @@ -2038,7 +2037,7 @@ (w32_fatal_reload_error): New function. (read_in_bss, map_in_heap): Invoke w32_fatal_reload_error upon error. - * w32.c (sys_read): Clear carriage return flag. + * w32.c (sys_read): Clear carriage return flag. Report normal EOF when read fails if nothing in buffer. Only read more if more remaining. (check_windows_init_file): New function. @@ -2241,8 +2240,8 @@ * frame.c (Fset_mouse_position, Fset_mouse_pixel_position): Fix mixing of Lisp_Object and int. - * fns.c (Fsubstring, substring_both, Fchar_table_range, - Fset_char_table_range): Fix mixing of Lisp_Object and int. + * fns.c (Fsubstring, substring_both, Fchar_table_range) + (Fset_char_table_range): Fix mixing of Lisp_Object and int. * fileio.c (Fwrite_region): Fix mixing of Lisp_Object and int. @@ -2260,18 +2259,18 @@ * cm.h: Update return types of declarations. * xterm.h, puresize.h, termhooks.h, lisp.h, keyboard.h, - intervals.h, dispextern.h, blockinput.h, coding.h: Add more - prototypes. + * intervals.h, dispextern.h, blockinput.h, coding.h: + Add more prototypes. * xterm.c, xselect.c, xrdb.c, xmenu.c, xdisp.c, window.c, - widget.c, undo.c, terminfo.c, term.c, sysdep.c, syntax.c, - search.c, scroll.c, process.c, print.c, mocklisp.c, prefix-args.c, - marker.c, keymap.c, keyboard.c, intervals.c, insdel.c, indent.c, - frame.c, fontset.c, fns.c, floatfns.c, filelock.c, fileio.c, - eval.c, emacs.c, editfns.c, doprnt.c, doc.c, dispnew.c, dired.c, - data.c, coding.c, cmds.c, cm.c, charset.c, ccl.c, category.c, - casetab.c, casefiddle.c, callproc.c, callint.c, bytecode.c, - buffer.c, alloc.c, abbrev.c: Fix -Wimplicit warnings. + * widget.c, undo.c, terminfo.c, term.c, sysdep.c, syntax.c, + * search.c, scroll.c, process.c, print.c, mocklisp.c, prefix-args.c, + * marker.c, keymap.c, keyboard.c, intervals.c, insdel.c, indent.c, + * frame.c, fontset.c, fns.c, floatfns.c, filelock.c, fileio.c, + * eval.c, emacs.c, editfns.c, doprnt.c, doc.c, dispnew.c, dired.c, + * data.c, coding.c, cmds.c, cm.c, charset.c, ccl.c, category.c, + * casetab.c, casefiddle.c, callproc.c, callint.c, bytecode.c, + * buffer.c, alloc.c, abbrev.c: Fix -Wimplicit warnings. * buffer.c (Fset_buffer_multibyte): Do nothing if nothing actually changes. @@ -2477,7 +2476,7 @@ Function moved after set_intervals_multibyte_1. * xdisp.c (redisplay_window): If updating mode line, - temporarily change selected_frame + temporarily change selected_frame. 1998-04-02 Dave Love <fx@gnu.org> @@ -2670,7 +2669,7 @@ * xselect.c (selection_data_to_lisp_data): Use make_string_from_bytes. - * insdel.c: (insert_from_string_1, replace_range): + * insdel.c (insert_from_string_1, replace_range): Use STRING_MULTIBYTE to determine whether string is multibyte. * editfns.c: Use STRING_BYTES and SET_STRING_BYTES. @@ -2678,11 +2677,11 @@ (Ftranspose_regions): Try to handle combining bytes. * alloc.c, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, search.c, - process.c, print.c, lread.c, keymap.c, insdel.c, keyboard.c, - frame.c, fns.c, filelock.c, doc.c, dispnew.c, data.c, coding.c, - charset.c, ccl.c, category.c, casefiddle.c, callproc.c, callint.c, - bytecode.c, abbrev.c, minibuf.c, buffer.c, fileio.c: Use - STRING_BYTES and SET_STRING_BYTES. + * process.c, print.c, lread.c, keymap.c, insdel.c, keyboard.c, + * frame.c, fns.c, filelock.c, doc.c, dispnew.c, data.c, coding.c, + * charset.c, ccl.c, category.c, casefiddle.c, callproc.c, callint.c, + * bytecode.c, abbrev.c, minibuf.c, buffer.c, fileio.c: + Use STRING_BYTES and SET_STRING_BYTES. * xmenu.c: Don't include puresize.h any more as code that needs it has moved to keyboard.c. @@ -2714,7 +2713,7 @@ 1998-03-21 Richard Stallman <rms@psilocin.gnu.org> * dired.c (Fdirectory_files): In FULL case, - compute number of characters + compute number of characters. * insdel.c (insert_from_string_1, replace_range): Use STRING_MULTIBYTE to determine whether string is multibyte. @@ -2796,8 +2795,8 @@ * keyboard.h (item_properties): New variable. (ITEM_PROPERTY_...): New macros. - * keymap.c (fix_submap_inheritance, get_keyelt, store_in_keymap, - copy-keymap, where_is_internal_1): Support new format for menu items. + * keymap.c (fix_submap_inheritance, get_keyelt, store_in_keymap) + (copy-keymap, where_is_internal_1): Support new format for menu items. (syms_of_keymap): New symbol `menu-item'. * keyboard.c: Include puresize.h for CHECK_IMPURE. @@ -3329,10 +3328,10 @@ (Fchar_direction): Likewise. * coding.c (decode_coding_iso2022): Update coding->fake_multibyte. - (ENCODE_SINGLE_SHIFT_2, ENCODE_SINGLE_SHIFT_3, - encode_coding_iso2022, decode_coding_sjis_big5, - encode_coding_sjis_big5, decode_eol, encode_eol, decode_coding, - encode_coding): Likewise. + (ENCODE_SINGLE_SHIFT_2, ENCODE_SINGLE_SHIFT_3) + (encode_coding_iso2022, decode_coding_sjis_big5) + (encode_coding_sjis_big5, decode_eol, encode_eol, decode_coding) + (encode_coding): Likewise. (shrink_decoding_region, shrink_encoding_region): Do not skip non-ASCII code in any cases. Bug fix for getting starting address from BEG. @@ -3562,7 +3561,7 @@ * callproc.c (Fcall_process): Allow creating a new buffer for the output. -1998-01-30 Kenichi Handa Kenichi Handa <handa@etl.go.jp> +1998-01-30 Kenichi Handa <handa@etl.go.jp> * coding.c (ENCODE_ISO_CHARACTER): Pay attention to CODING_FLAG_ISO_USE_ROMAN and CODING_FLAG_ISO_USE_OLDJIS. @@ -3678,9 +3677,9 @@ heading_ascii. Deleted members last_block, direction, selective, carryover, carryover_size. (CODING_MAY_REQUIRE_DECODING): New macro. - (CODING_CATEGORY_MASK_ISO_7BIT, CODING_CATEGORY_MASK_ISO_8BIT, - CODING_CATEGORY_MASK_ISO_SHIFT, CODING_CATEGORY_MASK_ISO): New - macros. + (CODING_CATEGORY_MASK_ISO_7BIT, CODING_CATEGORY_MASK_ISO_8BIT) + (CODING_CATEGORY_MASK_ISO_SHIFT, CODING_CATEGORY_MASK_ISO): + New macros. (Qraw_text): Extern it. * coding.c (DECODE_CHARACTER_ASCII): Update coding->produced_char; @@ -3803,10 +3802,9 @@ (struct iso2022_spec): New member. last_invalid_designation_register. (struct coding_system): New member inhibit_inconsistent_eol_type. - (CODING_CATEGORY_IDX_ISO_7_TIGHT, - CODING_CATEGORY_MASK_ISO_7_TIGHT): New macros. - (CODING_CATEGORY_MASK_ANY): Include - CODING_CATEGORY_MASK_ISO_7_TIGHT. + (CODING_CATEGORY_IDX_ISO_7_TIGHT, CODING_CATEGORY_MASK_ISO_7_TIGHT): + New macros. + (CODING_CATEGORY_MASK_ANY): Include CODING_CATEGORY_MASK_ISO_7_TIGHT. (coding_category_table, coding_category_name): Extern deleted. (Vselect_safe_coding_system_function): Extern it. @@ -3816,17 +3814,17 @@ 1998-01-21 Kenichi Handa <handa@etl.go.jp> - * ccl.h: (struct ccl_program): New member private_state. + * ccl.h (struct ccl_program): New member private_state. - * ccl.c (Vccl_translation_table_vector, Qccl_program, - Qccl_translation_table, Qccl_translation_table_id): New variables. - append new symbols. Qccl_translation_table and + * ccl.c (Vccl_translation_table_vector, Qccl_program) + (Qccl_translation_table, Qccl_translation_table_id): New variables. + Append new symbols. Qccl_translation_table and Qccl_translation_table_id. (CCL_Call): Fix the comment. - (CCL_ReadMultibyteCharacter, CCL_WriteMultibyteCharacter, - CCL_UnifyCharacter, CCL_UnifyCharacterConstTbl, - CCL_IterateMultipleMap, CCL_TranslateMultipleMap): New macros for - CCL Commands. + (CCL_ReadMultibyteCharacter, CCL_WriteMultibyteCharacter) + (CCL_UnifyCharacter, CCL_UnifyCharacterConstTbl) + (CCL_IterateMultipleMap, CCL_TranslateMultipleMap): + New macros for CCL Commands. (EXCMD): New macro. (ccl_driver): New case lable `CCL_Extention'. (setup_ccl_program): Initialize the member `private_state' of CCL. @@ -3877,7 +3875,7 @@ Pass different args to scan_newline. Properly compare oldpoint with Z. - * syntax.c (skip_chars): Use unibyte_char_to_multibyte, + * syntax.c (skip_chars): Use unibyte_char_to_multibyte. * fns.c (concat): Use unibyte_char_to_multibyte. @@ -4398,7 +4396,7 @@ * xdisp.c (redisplay_internal): Use scan_newline. (display_text_line, try_window_id): Use scan_newline. - * xdisp.c (pos_tab_indent): Moved from indent,c. Now static. + * xdisp.c (pos_tab_indent): Moved from indent.c. Now static. Take POS in bytes and chars. Callers changed. * indent.c (Fcurrent_indentation): Use scan_newline and SET_PT_BOTH. @@ -4815,8 +4813,8 @@ 1997-11-27 Ken'ichi Handa <handa@delysid.gnu.org> - * undo.c (record_change, record_first_change, - record_property_change): Declare them as void. + * undo.c (record_change, record_first_change, record_property_change): + Declare them as void. (record_delete, record_marker_adjustment): Declare them as void. * indent.c (invalidate_current_column): Declare it as void. @@ -4825,25 +4823,23 @@ * filelock.c (unlock_buffer): Declare it as void. - * buffer.c (nsberror, record_buffer, validate_region, - fix_overlay_before): Declare them as void. + * buffer.c (nsberror, record_buffer, validate_region) + (fix_overlay_before): Declare them as void. - * sysdep.c (discard_tty_input, init_baud_rate, - wait_for_termination, flush_pending_output, child_setup_tty, - sys_suspend, sys_subshell, init_sigio, request_sigio, - unrequest_sigio, init_sys_modes, get_frame_size, reset_sys_modes, - setup_pty): Declare them as void. + * sysdep.c (discard_tty_input, init_baud_rate, wait_for_termination) + (flush_pending_output, child_setup_tty, sys_suspend, sys_subshell) + (init_sigio, request_sigio, unrequest_sigio, init_sys_modes) + (get_frame_size, reset_sys_modes, setup_pty): Declare them as void. * keymap.c (describe_vector): Declaration fixed (delete `.' at the tail of type `void'. (fix_submap_inheritance): Declare it as void. - * keyboard.c (echo_now, record_auto_save, cmd_error_internal, - start_polling, stop_polling, bind_polling_period, - timer_start_idle, timer_stop_idle, gobble_input, - record_asynch_buffer_change, clear_input_pending, - stuff_buffered_input, clear_waiting_for_input, - quit_throw_to_read_char): Declare these as void. + * keyboard.c (echo_now, record_auto_save, cmd_error_internal) + (start_polling, stop_polling, bind_polling_period, timer_start_idle) + (timer_stop_idle, gobble_input, record_asynch_buffer_change) + (clear_input_pending, stuff_buffered_input, clear_waiting_for_input) + (quit_throw_to_read_char): Declare these as void. (Fsuspend_emacs): Delete unnecessary extern declaration for init_sys_mode. (Fexecute_extended_command): Give Voverriding_local_map as the @@ -4898,7 +4894,8 @@ (Fformat_time_string): Doc fix: %b, %h, %B, %a, %A, and %p depend on locale; don't use actual chars to describe %n and %t. - * src/Makefile.in (strftime.o), src/makefile.nt ($(BLD)\strftime.obj): + * src/Makefile.in (strftime.o): + * src/makefile.nt ($(BLD)\strftime.obj): No need to compile with -Dstrftime=emacs_strftime any more. 1997-11-22 Richard Stallman <rms@gnu.org> @@ -5024,7 +5021,7 @@ * xdisp.c (display_text_line): Make decision about which windows highlight the region in just once place. - When minibuffer is selected, show the region in the previous window, + When minibuffer is selected, show the region in the previous window. * charset.h (ASCII_BYTE_P): New macro. @@ -5041,12 +5038,12 @@ 1997-11-10 Eli Zaretskii <eliz@is.elta.co.il> * msdos.c: Support for Japanese display on DOS/V systems. - (screen_old_address, screen_virtual_segment, - screen_virtual_offset): New variables. + (screen_old_address, screen_virtual_segment, screen_virtual_offset): + New variables. (dosv_refresh_virtual_screen): New function. - (dos_direct_output, dos_set_window_size, IT_write_glyphs, - IT_clear_end_of_line, IT_clear_screen, IT_display_cursor, - IT_reset_terminal_modes, XMenuActivate, abort): Call + (dos_direct_output, dos_set_window_size, IT_write_glyphs) + (IT_clear_end_of_line, IT_clear_screen, IT_display_cursor) + (IT_reset_terminal_modes, XMenuActivate, abort): Call dosv_refresh_virtual_screen if under DOS/V. (IT_set_terminal_modes): If under DOS/V, update the address of primary screen buffer. @@ -5069,13 +5066,13 @@ * coding.h (struct coding_system): Add member common_flags, delete member require_flushing. - (CODING_REQUIRE_FLUSHING_MASK, CODING_REQUIRE_DECODING_MASK, - CODING_REQUIRE_ENCODING_MASK, CODING_REQUIRE_DETECTION_MASK): New - macros. + (CODING_REQUIRE_FLUSHING_MASK, CODING_REQUIRE_DECODING_MASK) + (CODING_REQUIRE_ENCODING_MASK, CODING_REQUIRE_DETECTION_MASK): + New macros. (CODING_REQUIRE_NO_CONVERSION, CODING_MAY_REQUIRE_NO_CONVERSION): These macros deleted. - (CODING_REQUIRE_FLUSHING, CODING_REQUIRE_DECODING, - CODING_REQUIRE_ENCODING, CODING_REQUIRE_DETECTION): New macros. + (CODING_REQUIRE_FLUSHING, CODING_REQUIRE_DECODING) + (CODING_REQUIRE_ENCODING, CODING_REQUIRE_DETECTION): New macros. * editfns.c (Fsref): If IDX points an 8-bit code which is not part of multibyte characters, return it. Pay attention to @@ -5626,7 +5623,7 @@ (FILE_LAST_CR): New macro. (w32_get_long_filename): Declare extern. - * w32console.c: (DebPrint, reset_kbd, unset_kbd, take_console): + * w32console.c (DebPrint, reset_kbd, unset_kbd, take_console): Delete functions. (keyboard_init_hook): Delete variable. (prev_console_cursor) [! USE_SEPARATE_SCREEN]: New variable. @@ -5641,9 +5638,9 @@ * w32fns.c: Include limits.h and errno.h. Declare externs from other files. (w32_in_use): New variable. - (check_w32, have_menus_p, x_set_title, w32_msg_worker, - find_deferred_msg, send_deferred_msg, complete_deferred_msg, - Fw32_focus_frame, W32-send-sys-command): New functions. + (check_w32, have_menus_p, x_set_title, w32_msg_worker) + (find_deferred_msg, send_deferred_msg, complete_deferred_msg) + (Fw32_focus_frame, W32-send-sys-command): New functions. (last_mouse_movement_time): Delete variable. (x_frame_parms): Alphabetize. Add title parm. @@ -5704,13 +5701,13 @@ (initialize_frame_menubar): Pass in new param to set_frame_menubar. * w32proc.c: Include w32heap.h. - (Vw32_start_process_share_console, Vw32_generate_fake_inodes, - Vw32_get_true_file_attributes, Qhigh, Qlow, process_dir): + (Vw32_start_process_share_console, Vw32_generate_fake_inodes) + (Vw32_get_true_file_attributes, Qhigh, Qlow, process_dir): New variables. - (find_child_console, set_process_dir, Fw32_short_file_name, - Fw32_long_file_name, Fw32_set_process_priority, Fw32_get_locale_info, - Fw32_get_current_locale_id, Fw32_get_default_local_id, - Fw32_set_current_locale): New functions. + (find_child_console, set_process_dir, Fw32_short_file_name) + (Fw32_long_file_name, Fw32_set_process_priority, Fw32_get_locale_info) + (Fw32_get_current_locale_id, Fw32_get_default_local_id) + (Fw32_set_current_locale): New functions. (CORRECT_DIR_SEPS): New macro. (create_child): Create a new console if subprocs don't share parent's. (reap_subprocess): Don't check for dos subprocesses. @@ -5734,19 +5731,19 @@ * w32term.c (SIF_*): Win95 macros defined for NT. (struct tagSCROLLINFO): Win95 struct defined for NT. - (vertical_scroll_bar_min_handle, vertical_scroll_bar_top_border, - vertical_scroll_bar_bottom_border, last_scroll_bar_drag_pos, - Vw32_gab_focus_on_raise, Vw32_capslock_is_shiftlock): New - variables. + (vertical_scroll_bar_min_handle, vertical_scroll_bar_top_border) + (vertical_scroll_bar_bottom_border, last_scroll_bar_drag_pos) + (Vw32_gab_focus_on_raise, Vw32_capslock_is_shiftlock): + New variables. (w32_frame_up_to_date): Block input. (do_line_dance): Use DC while erasing, release at end. (show_mouse_face): Use column and endcolumn calculated at start of loop. - (my_create_scrollbar, my_show_window, my_set_window_pos, - my_set_focus) [! ATTACH_THREADS]: Send message to window instead - of invoking Windows procedure. - (x_scroll_bar_create, x_scroll_bar_move, x_scroll_bar_handle_click, - x_scroll_bar_report_motion): Use SCROLLINFO for proportional handle. + (my_create_scrollbar, my_show_window, my_set_window_pos, my_set_focus) + [! ATTACH_THREADS]: Send message to window instead of invoking + Windows procedure. + (x_scroll_bar_create, x_scroll_bar_move, x_scroll_bar_handle_click) + (x_scroll_bar_report_motion): Use SCROLLINFO for proportional handle. (x_scroll_bar_set_handle): Create proportional sized scroll handle. (w32_set_vertical_scroll_bar): Size handle according to how much is showing in window. @@ -5816,7 +5813,7 @@ by a mouse down event. (x_to_win32_color): Support for X Windows RGB string specifications. - * w32menu.c (get_frame_menubar_event): Check for the possibility + * w32menu.c (get_frame_menubar_event): Check for the possibility of a menu-bar button. A menu-bar button is a caption on the menu bar with no submenu. (set_frame_menubar): Correctly handle menu-bar buttons. @@ -5838,15 +5835,15 @@ 1997-09-02 Nico Francois <nico.francois@scala.nl> - * w32menu.c (single_keymap_panes): Fixed problem with 'descrip' + * w32menu.c (single_keymap_panes): Fixed problem with 'descrip' lisp object not being protected properly (GCPRO). - (get_single_keymap_event): Fixed problem with 'descrip' lisp + (get_single_keymap_event): Fixed problem with 'descrip' lisp object not being protected properly (GCPRO). (name_is_separator): New function. (list_of_panes): If a pane's name is empty ("") items are now placed in the main popup instead of a blank-named submenu. This seems to be an undocumented feature of x-popup-menu. - (list_of_items): New argument HMENU. + (list_of_items): New argument HMENU. Use 1 and 0 instead of Qt and Qnil for enable in add_menu_item 1997-09-02 Geoff Voelker <voelker@cs.washington.edu> @@ -5860,7 +5857,7 @@ override CRT routines. * w32inevt.c (key_event): New parameter isdead. Set isdead if the - key press was done using a dead key. + key press was done using a dead key. * w32term.c (w32_read_socket): Pass in new parameter to key_event. Let key_event determine whether key is dead. @@ -6073,8 +6070,8 @@ (Fcompleting_read): New argument INHERIT_INPUT_METHOD. * lisp.h (DEFUN_ARGS_8): New macro. - (Fcompleting_read, Fread_from_minibuffer, Fread_string, - Fread_no_blanks_input): Number of arguments fixed. + (Fcompleting_read, Fread_from_minibuffer, Fread_string) + (Fread_no_blanks_input): Number of arguments fixed. * eval.c (Feval): Handle a subr which takes 8 arguments. (Ffuncall): Likewise. @@ -6278,7 +6275,7 @@ * emacs.c (main): Fix previous change. -1997-08-11 +03 Eli Zaretskii <eliz@is.elta.co.il> +1997-08-11 Eli Zaretskii <eliz@is.elta.co.il> * dosfns.c (init_dosfns): Avoid calling DOS memory-allocation service, NT DPMI server will crash Emacs in DOS box, if we do. @@ -6612,8 +6609,8 @@ * fontset.c (syms_of_fontset): Set Vhighlight_wrong_size_font to Qnil. - * coding.h (CODING_REQUIRE_TEXT_CONVERSION, - CODING_REQUIRE_EOL_CONVERSION, CODING_REQUIRE_CONVERSION): Deleted. + * coding.h (CODING_REQUIRE_TEXT_CONVERSION) + (CODING_REQUIRE_EOL_CONVERSION, CODING_REQUIRE_CONVERSION): Deleted. (CODING_REQUIRE_NO_CONVERSION): New macro. (CODING_MAY_REQUIRE_NO_CONVERSION): New macro. @@ -7100,9 +7097,9 @@ * editfns.c (Fformat): Add second argument in call to Ftruncate. * alloc.c, buffer.c, casefiddle.c, casetab.c, category.c, - category.h, ccl.c, coding.c, editfns.c, fileio.c, fns.c, indent.c, - intervals.c, intervals.h, keymap.c, lisp.h, minibuf.c, print.c, - syntax.c, syntax.h, sysdep.c, textprop.c, xfns.c: Fix numerous + * category.h, ccl.c, coding.c, editfns.c, fileio.c, fns.c, indent.c, + * intervals.c, intervals.h, keymap.c, lisp.h, minibuf.c, print.c, + * syntax.c, syntax.h, sysdep.c, textprop.c, xfns.c: Fix numerous bugs with inappropriate mixing of Lisp_Object with int. * config.in (RE_TRANSLATE): Define to extract integers from array of Lisp_Objects. @@ -7184,7 +7181,7 @@ * fileio.c (Finsert_file_contents): Doc-string fixed. Call Ffind_operation_coding_system. - (Fwrite_region): Call Ffind_operation_coding_system. + (Fwrite_region): Call Ffind_operation_coding_system. * callproc.c: Call Ffind_operation_coding_system. @@ -7229,8 +7226,8 @@ * s/ms-w32.h: Duplicate undefs from config.in to check completeness. (STDC_HEADERS, HAVE_TZNAME, HAVE_MKTIME): Define to have a value. - (HAVE_GETPAGESIZE, HAVE_SETLOCALE, HAVE_SHUTDOWN, HAVE_TZSET, - HAVE_LIMITS_H, HAVE_STRERROR): Define. + (HAVE_GETPAGESIZE, HAVE_SETLOCALE, HAVE_SHUTDOWN, HAVE_TZSET) + (HAVE_LIMITS_H, HAVE_STRERROR): Define. [HAVE_NTGUI] (HAVE_MENUS): Define. (SYSTEM_PURESIZE_EXTRA): Increase value. @@ -7503,9 +7500,9 @@ * coding.c (Vcoding_system_alist): Deleted. (Qcoding_system_spec): Renamed from Qcoding_system_vector. - (Vdefault_process_coding_system, Vfile_coding_system_alist, - Vprocess_coding_system_alist, Vnetwork_coding_system_alist): New - variables. + (Vdefault_process_coding_system, Vfile_coding_system_alist) + (Vprocess_coding_system_alist, Vnetwork_coding_system_alist): + New variables. (Ffind_coding_system): Adjusted for the above change. (syms_of_coding): Declare them as lisp variables. (Fcheck_coding_system): Pass list as DATA argument to Fsignal. @@ -7957,7 +7954,7 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> argument C is an invalid character code. (Fconcat_chars): Use alloca instead of malloc. - * charset.h (CHAR_STRING): Comment reflect the above change. + * charset.h (CHAR_STRING): Comment reflect the above change. * coding.h: Name change through the code: coding-category-internal => coding-category-emacs-mule, @@ -8042,7 +8039,7 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> Pass index character as a Lisp_Object. * keymap.c (Fmake_keymap): Make a char-table. - (access_keymap, store_in_keymap): Likewise, + (access_keymap, store_in_keymap): Likewise. (describe_map, Fset_keymap_parent, Faccessible_keymaps): Likewise. (Fwhere_is_internal, Fcopy_keymap): Handle a char-table. (copy_keymap_1, accessible_keymaps_char_table): New subroutines. @@ -8068,10 +8065,10 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> * charset.h (unify_char): Extern it. * coding.c (Valternate_charset_table): The variable deleted. - (Venable_character_unification, - Vstandard_character_unification_table_for_read, - Vstandard_character_unification_table_for_write, - Qcharacter_unification_table): New variables. + (Venable_character_unification) + (Vstandard_character_unification_table_for_read) + (Vstandard_character_unification_table_for_write) + (Qcharacter_unification_table): New variables. (syms_of_coding): Initialize and declare them. (DECODE_ISO_CHARACTER): Modified to handle a character unification table instead of Valternate_charset_table. @@ -8400,9 +8397,9 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> New members Scomment_fence, Sstring_fence. (SYNTAX_ENTRY): Depending on the value of SYNTAX_ENTRY_VIA_PROPERTY may do a lookup for syntax table in gl_state. - (UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD, - UPDATE_SYNTAX_TABLE, SETUP_SYNTAX_TABLE, - SETUP_SYNTAX_TABLE_FOR_OBJECT): New macros. + (UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD) + (UPDATE_SYNTAX_TABLE, SETUP_SYNTAX_TABLE) + (SETUP_SYNTAX_TABLE_FOR_OBJECT): New macros. (struct gl_state_s): New struct. * textprop.c: Style of comments corrected. @@ -8523,14 +8520,14 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> (copy_category_table, Fmodify_category_entry): Adjusted for the new structure of Lisp_Char_Table. - * ccl.c: (ccl_driver): Fix bug of the case CCL_WriteArrayReadJump. + * ccl.c (ccl_driver): Fix bug of the case CCL_WriteArrayReadJump. * charset.h (CHARSET_TABLE_ENTRY): Handle ASCII charset correctly. (SPLIT_NON_ASCII_CHAR, SPLIT_CHAR): Return -1 in C2 for DIMENSION1 characters. - * charset.c (non_ascii_char_to_string, update_charset_table, - Fsplit_char): Adjusted for the above change. + * charset.c (non_ascii_char_to_string, update_charset_table) + (Fsplit_char): Adjusted for the above change. * coding.c (detect_coding_iso2022, detect_coding_mask): Ignore invalid ESC sequence for ISO 2022. @@ -8546,8 +8543,8 @@ Thu May 15 22:21:18 1997 Ken'ichi Handa <handa@diazepam.gnu.ai.mit.edu> * fns.c (copy_sub_char_table): New function. (Fcopy_sequence): Call copy_sub_char_table for copying a sub char table. - (Fchar_table_range, Fset_char_table_range, map_char_table, - Fmap_char_table): Handle multibyte characters correctly. + (Fchar_table_range, Fset_char_table_range, map_char_table) + (Fmap_char_table): Handle multibyte characters correctly. * fontset.c (Vhighlight_wrong_size_font, Vclip_large_size_font): New variables. @@ -8773,7 +8770,7 @@ Sun Apr 6 10:26:53 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> 1997-03-05 NIIBE Yutaka <gniibe@mri.co.jp> - * indent.c: (compute_motion): When POS >= TO, don't call + * indent.c (compute_motion): When POS >= TO, don't call find_before_next_newline as it assumes POS < TO. 1997-03-02 Ken'ichi Handa <handa@etl.go.jp> @@ -8864,9 +8861,9 @@ Sun Apr 6 10:26:53 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * keymap.c (describe_vector): Do not describe deeper char-table if enable-multibyte-characters is nil. - * process.c (proc_decode_coding_system, - proc_encode_coding_system): Changed to array of pointers to struct - coding_system to reduce the size of dumped Emacs. + * process.c (proc_decode_coding_system, proc_encode_coding_system): + Changed to array of pointers to struct coding_system to reduce the + size of dumped Emacs. (create_process, Fopen_network_stream): Allocate them dynamically. (init_process): Initialize these pointers to NULL. (Fstart_process, Fopen_network_stream): Do not perform character @@ -8915,36 +8912,36 @@ Sun Apr 6 10:26:53 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * lread.c (Fload): Call Vload_source_file_function with 4 args. -1997-02-22 Tsugutomo ENAMI <enami@ba2.so-net.or.jp> +1997-02-22 Tsugutomo ENAMI <enami@ba2.so-net.or.jp> * regex.c: Include charset.h and category.h - [!emacs] (BASE_LEADING_CODE_P, WORD_BOUNDARY_P, CHAR_HEAD_P, - SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MULTIBYTE_FORM_LENGTH, - STRING_CHAR_AND_LENGTH, GET_CHAR_AFTER_2, GET_CHAR_BEFORE_2): + [!emacs] (BASE_LEADING_CODE_P, WORD_BOUNDARY_P, CHAR_HEAD_P) + (SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MULTIBYTE_FORM_LENGTH) + (STRING_CHAR_AND_LENGTH, GET_CHAR_AFTER_2, GET_CHAR_BEFORE_2): New dummy macros. (enum re_opcode_t): New member categoryspec and notcategoryspec. - (STORE_CHARACTER_AND_INCR, EXTRACT_CHARACTER, - CHARSET_LOOKUP_RANGE_TABLE_WITH_COUNT, - CHARSET_LOOKUP_RANGE_TABLE, CHARSET_BITMAP_SIZE, - CHARSET_RANGE_TABLE_EXISTS_P, CHARSET_RANGE_TABLE - CHARSET_PAST_RANGE_TABLE): New macros. + (STORE_CHARACTER_AND_INCR, EXTRACT_CHARACTER) + (CHARSET_LOOKUP_RANGE_TABLE_WITH_COUNT) + (CHARSET_LOOKUP_RANGE_TABLE, CHARSET_BITMAP_SIZE) + (CHARSET_RANGE_TABLE_EXISTS_P, CHARSET_RANGE_TABL) + (CHARSET_PAST_RANGE_TABLE): New macros. (TRANSLATE): Cast return value to unsigned char, not char. (struct range_table_work_area): New structure. - (EXTEND_RANGE_TABLE_WORK_AREA, SET_RANGE_TABLE_WORK_AREA, - FREE_RANGE_TABLE_WORK_AREA, CLEAR_RANGE_TABLE_WORK_USED, - RANGE_TABLE_WORK_USED, RANGE_TABLE_WORK_ELT): New macros. + (EXTEND_RANGE_TABLE_WORK_AREA, SET_RANGE_TABLE_WORK_AREA) + (FREE_RANGE_TABLE_WORK_AREA, CLEAR_RANGE_TABLE_WORK_USED) + (RANGE_TABLE_WORK_USED, RANGE_TABLE_WORK_ELT): New macros. (FREE_STACK_RETURN): Call FREE_RANGE_TABLE_WORK_AREA. (regex_compile): Declare `c' and `c1' as int to store multibyte characters. - Declare range_table_work and initialize it. + Declare range_table_work and initialize it. Initialize bufp->multibyte to 0 if not emacs. For case '[' and `default', code re-written to handle multibyte characters. @@ -9033,7 +9030,7 @@ Sun Apr 6 10:26:53 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * xdisp.c (try_window): Change the way of calculation of tab offset. We now use val.tab_offset to maintain tab offset. - Removed local variable tab_offset. + Removed local variable tab_offset. (try_window_id): Likewise. * indent.c: Include "charset.h". @@ -9085,8 +9082,8 @@ Sun Apr 6 10:26:53 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> (xterm.o): Depend on charset.h, ccl.h, and fontset.h. (category.o, ccl.o, charset.o, coding.o, fontset.o): New targets. - * alloc.c (Fmake_char_table): Typo in doc-string fixed. Handle - the case that PURPOSE is nil (in a deeper char-table). + * alloc.c (Fmake_char_table): Typo in doc-string fixed. + Handle the case that PURPOSE is nil (in a deeper char-table). (Fmake_bool_vector): Make correct size of Lisp_Object for bool-vector. @@ -9533,8 +9530,8 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * term.c (term_init): Use new name initialize_w32_display. * w32.c, w32console.c, w32faces.c, w32fns.c, w32heap.c, - w32inevt.c, w32menu.c, w32proc.c, w32select.c, w32term.c, - w32xfns.c, win32.h, w32inevt.h, w32term.h: Change all uses of win95, + * w32inevt.c, w32menu.c, w32proc.c, w32select.c, w32term.c, + * w32xfns.c, win32.h, w32inevt.h, w32term.h: Change all uses of win95, winnt, and win32 into Windows 95, Windows NT, and W32, respectively. Expand "win" substring in variables referring to Microsoft Windows constructs into "windows". @@ -9556,7 +9553,7 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> 1997-01-15 Eli Zaretskii <eliz@is.elta.co.il> * keyboard.c (interrupt_signal): Make emergency exit work on MSDOS - frames. Block further SIGINTs while `interrupt_signal' runs. + frames. Block further SIGINTs while `interrupt_signal' runs. * msdos.c (sigprocmask, sig_suspender): New functions, implement signal blocking on MSDOS. @@ -9733,7 +9730,7 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * xmenu.c (single_keymap_panes): New arg DEPTH. Cut off recursion at that depth. Callers changed. -1996-12-23 +02 Eli Zaretskii <eliz@is.elta.co.il> +1996-12-23 Eli Zaretskii <eliz@is.elta.co.il> * msdos.c (dos_set_keyboard): Test whether KEYB.COM is installed for international keyboard support. @@ -9835,7 +9832,7 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> * xfns.c (x_set_scroll_bar_width): Reject a width that's too small. -1006-12-10 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> +1996-12-10 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> * buffer.c (syms_of_buffer): Doc fix (transient-mark-mode). @@ -9952,9 +9949,9 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> 1996-11-18 Geoff Voelker <voelker@cs.washington.edu> * emacs.c, frame.c, frame.h, keyboard.c, nt.c, nt.h, - ntheap.c, ntheap.h, ntinevt.c, ntinevt.h, ntproc.c, ntterm.c, - termhooks.h, unexnt.c, w32faces.c, w32fns.c, w32menu.c, w32reg.c, - w32select.c, w32term.c, w32term.h, w32xfns.c, s/windowsnt.h: + * ntheap.c, ntheap.h, ntinevt.c, ntinevt.h, ntproc.c, ntterm.c, + * termhooks.h, unexnt.c, w32faces.c, w32fns.c, w32menu.c, w32reg.c, + * w32select.c, w32term.c, w32term.h, w32xfns.c, s/windowsnt.h: Change identifiers of the form win32* to w32*. * window.c (special-display-p, same-window-p): Add missing @@ -10099,11 +10096,11 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> Reorganize function definitions so etags finds them. * abbrev.c (Finsert_abbrev_table_description). * editfns.c (Finsert_and_inherit_before_markers). - * eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success, - Frun_hook_with_args_until_failure). + * eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success) + (Frun_hook_with_args_until_failure). * window.c (Fcurrent_window_configuration). - * xselect.c (Fx_own_selection_internal, Fx_get_selection_internal, - Fx_disown_selection_internal). + * xselect.c (Fx_own_selection_internal, Fx_get_selection_internal) + (Fx_disown_selection_internal). 1996-10-30 Richard Stallman <rms@psilocin.gnu.ai.mit.edu> @@ -10211,7 +10208,7 @@ Sun Feb 2 10:36:26 1997 Eli Zaretskii <eliz@wombat.gnu.ai.mit.edu> 1996-10-05 Marcus G. Daniels <marcus@coulee.tdb.com> - * xfns.c (x_set_internal_border_width): Only change + * xfns.c (x_set_internal_border_width): Only change an edit_widget's internal_border_width for the toolkit case. 1996-10-04 Richard Stallman <rms@ethanol.gnu.ai.mit.edu> @@ -10496,7 +10493,7 @@ Fri Sep 20 02:37:37 1996 Marcus Daniels <marcus@sayre.sysc.pdx.edu> necessarily the same any more. (change_frame_size_1): Use FRAME_WINDOW_WIDTH to check for changes. Give `set_window_width' the window width value. - Use new macro SET_FRAME_WIDTH. + Use new macro SET_FRAME_WIDTH. * xterm.h (VERTICAL_SCROLL_BAR_INSIDE_WIDTH): Add frame as an argument, and use it to decrease the width in the case of a @@ -10695,8 +10692,8 @@ Fri Sep 20 02:37:37 1996 Marcus Daniels <marcus@sayre.sysc.pdx.edu> * print.c: Add #n=object, #n#, and #:symbol constructs to printer. (PRINTDECLARE): New macro to declare required variables. (PRINTPREPARE, PRINTFINISH): Set printed_genyms to nil. - (Fwrite_char, write_string, write_string_1, Fterpri, Fprin1, - Fprin1_to_string, Fprinc, Fprint): Use new macro PRINTDECLARE. + (Fwrite_char, write_string, write_string_1, Fterpri, Fprin1) + (Fprin1_to_string, Fprinc, Fprint): Use new macro PRINTDECLARE. (print): Print uninterned symbols readable. (syms_of_print): Defvar `print-gensym', staticpro printed_gensyms. @@ -10810,10 +10807,10 @@ Fri Sep 20 02:37:37 1996 Marcus Daniels <marcus@sayre.sysc.pdx.edu> * config.in (mktime): Define to emacs_mktime if we are using our own mktime, since Nextstep doesn't let Emacs redefine the builtin mktime. - * Makefile.in (MKTIME_OBJ): Use our mktime instead of NEXTSTEP's, + * Makefile.in (MKTIME_OBJ): Use our mktime instead of NEXTSTEP's, since NEXTSTEP's wrongly ignores TZ. (mktime): #undef, to avoid messing up the file name mktime.c. - * editfns.c (Fencode_time): Remove NEXTSTEP workaround; + * editfns.c (Fencode_time): Remove NEXTSTEP workaround; we now use our mktime instead. 1996-09-03 Richard Stallman <rms@ethanol.gnu.ai.mit.edu> @@ -11100,7 +11097,22 @@ See ChangeLog.6 for earlier changes. Copyright (C) 1997, 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 3b03e091-1123-4031-b67d-41683932cc48 diff --git a/src/ChangeLog.8 b/src/ChangeLog.8 index ff6b3b25461..09a2325536f 100644 --- a/src/ChangeLog.8 +++ b/src/ChangeLog.8 @@ -13993,7 +13993,22 @@ See ChangeLog.7 for earlier changes. Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 4d73444a-8f6e-4255-92a6-d3abc438b8d3 diff --git a/src/ChangeLog.9 b/src/ChangeLog.9 index 2a644e13585..b6bc7e3e78a 100644 --- a/src/ChangeLog.9 +++ b/src/ChangeLog.9 @@ -13296,7 +13296,22 @@ See ChangeLog.8 for earlier changes. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - Copying and distribution of this file, with or without modification, - are permitted provided the copyright notice and this notice are preserved. + + This file is part of GNU Emacs. + + GNU Emacs is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. ;;; arch-tag: 38875948-6e89-4f08-b0ca-ff328f1e8b72 diff --git a/src/Makefile.in b/src/Makefile.in index 0aa80866a38..e19083e3e15 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -403,8 +403,9 @@ LIBXT=$(LIBW) #endif /* not USE_X_TOOLKIT */ #if HAVE_XFT -#undef LIB_X11_LIB -#define LIB_X11_LIB @XFT_LIBS@ +#undef LIB_X11_LIB /* XFT_LIBS includes -lX11 */ +#define LIB_X11_LIB +XFT_LIBS=@XFT_LIBS@ #endif /* HAVE_XFT */ #if HAVE_XPM @@ -451,7 +452,7 @@ LIBXT=$(LIBW) /* LD_SWITCH_X_DEFAULT comes after everything else that specifies options for where to find X libraries, but before those libraries. */ X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT -LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM +LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM $(XFT_LIBS) #else /* not HAVE_X11 */ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM #endif /* not HAVE_X11 */ @@ -1312,15 +1313,10 @@ macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \ ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo \ ${emacsapp}Contents/Resources/Emacs.icns \ ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings -macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ - ${emacsapp}Contents/Resources/Emacs.rsrc +macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs ${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT} mkdir -p ${emacsapp}Contents/MacOS/; cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT} -${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r - /Developer/Tools/Rez -useDF \ - -o ${emacsapp}Contents/Resources/Emacs.rsrc \ - /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< #endif ${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c diff --git a/src/README b/src/README index 87b3ed7e1ad..2751968ca89 100644 --- a/src/README +++ b/src/README @@ -1,3 +1,8 @@ +Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Free Software Foundation, Inc. +See the end of the file for license conditions. + + This directory contains the source files for the C component of GNU Emacs. Nothing in this directory is needed for using Emacs once it is built and installed, if the dumped Emacs (on Unix systems) or the Emacs @@ -26,3 +31,21 @@ systems where you are not overly concerned with security, since it either requires that you install Emacs with SYSPRV or make SYSUAF.DAT world readable. Otherwise, Emacs can determine information about the current user, but no one else. + + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. diff --git a/src/acldef.h b/src/acldef.h index eee3e72a3e9..640ee22cd13 100644 --- a/src/acldef.h +++ b/src/acldef.h @@ -1,3 +1,8 @@ +/* + * The code here is forced by the interface, and is not subject to + * copyright, constituting the only possible expression of the + * algorithm in this format. + */ #define ACL$K_LENGTH 12 #define ACL$C_LENGTH 12 #define ACL$C_FILE 1 diff --git a/src/bitmaps/README b/src/bitmaps/README index 3312f386119..016aeb70e1e 100644 --- a/src/bitmaps/README +++ b/src/bitmaps/README @@ -2,3 +2,41 @@ This directory contains bitmap files that Emacs uses from /usr/include/X11/bitmaps. That directory doesn't seem to exist under VMS. + +COPYRIGHT AND LICENSE INFORMATION + +These bitmaps are the same as those contained in X Version 11 Release +4 (released 1989). The correspondence between the Emacs filenames and +the original include/X11/bitmaps/ filenames is as follows: + + Emacs: X11R4: + cntrpmsk.xbm cntr_ptrmsk + cntrptr.xbm cntr_ptr + crosswv.xbm cross_weave + dimple1.xbm dimple1 + dimple3.xbm dimple3 + gray.xbm gray + gray1.xbm gray1 + gray3.xbm gray3 + leftpmsk.xbm left_ptrmsk + leftptr.xbm left_ptr + rtpmsk.xbm right_ptrmsk + rtptr.xbm right_ptr + stipple.xbm stipple + + +The following copyright and license notice appeared in the parent +directory of the X11R4 bitmaps/ directory (in include/X11/copyright.h): + + Copyright 1985, 1986, 1987, 1988, 1989 by the + Massachusetts Institute of Technology + + Permission to use, copy, modify, distribute, and sell this software and its + documentation for any purpose is hereby granted without fee, provided that + the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of M.I.T. not be used in advertising or + publicity pertaining to distribution of the software without specific, + written prior permission. M.I.T. makes no representations about the + suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. diff --git a/src/buffer.c b/src/buffer.c index ea4752b4a6e..73e2fb376f7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -432,7 +432,7 @@ The value is never nil. */) XSETBUFFER (buf, b); Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); - /* An error in calling the function here (should someone redfine it) + /* An error in calling the function here (should someone redefine it) can lead to infinite regress until you run out of stack. rms says that's not worth protecting against. */ if (!NILP (Ffboundp (Qucs_set_table_for_input))) @@ -804,9 +804,8 @@ DEFUN ("generate-new-buffer-name", Fgenerate_new_buffer_name, Sgenerate_new_buff If there is no live buffer named NAME, then return NAME. Otherwise modify name by appending `<NUMBER>', incrementing NUMBER \(starting at 2) until an unused name is found, and then return that name. -Optional second argument IGNORE specifies a name that is okay to use -\(if it is in the sequence to be tried) -even if a buffer with that name exists. */) +Optional second argument IGNORE specifies a name that is okay to use (if +it is in the sequence to be tried) even if a buffer with that name exists. */) (name, ignore) register Lisp_Object name, ignore; { @@ -1145,8 +1144,8 @@ state of the current buffer. Use with care. */) DEFUN ("buffer-modified-tick", Fbuffer_modified_tick, Sbuffer_modified_tick, 0, 1, 0, doc: /* Return BUFFER's tick counter, incremented for each change in text. -Each buffer has a tick counter which is incremented each time the text in -that buffer is changed. It wraps around occasionally. +Each buffer has a tick counter which is incremented each time the +text in that buffer is changed. It wraps around occasionally. No argument or nil as argument means use current buffer as BUFFER. */) (buffer) register Lisp_Object buffer; diff --git a/src/callproc.c b/src/callproc.c index 8e7ff244697..ce9eb73dd54 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1781,12 +1781,12 @@ These are files intended for Emacs to use while it runs. */); DEFVAR_LISP ("doc-directory", &Vdoc_directory, doc: /* Directory containing the DOC file that comes with GNU Emacs. -This is usually the same as data-directory. */); +This is usually the same as `data-directory'. */); DEFVAR_LISP ("configure-info-directory", &Vconfigure_info_directory, doc: /* For internal use by the build procedure only. This is the name of the directory in which the build procedure installed -Emacs's info files; the default value for Info-default-directory-list +Emacs's info files; the default value for `Info-default-directory-list' includes this. */); Vconfigure_info_directory = build_string (PATH_INFO); diff --git a/src/chpdef.h b/src/chpdef.h index a1bdfb7ff82..3696cbc4878 100644 --- a/src/chpdef.h +++ b/src/chpdef.h @@ -1,3 +1,8 @@ +/* + * The code here is forced by the interface, and is not subject to + * copyright, constituting the only possible expression of the + * algorithm in this format. + */ #define CHP$_END 0 #define CHP$_ACCESS 1 #define CHP$_FLAGS 2 diff --git a/src/dispnew.c b/src/dispnew.c index c2a37f8248e..4c3a4ca3f02 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3821,8 +3821,12 @@ update_frame (f, force_p, inhibit_hairy_id_p) int paused_p; struct window *root_window = XWINDOW (f->root_window); + if (redisplay_dont_pause) + force_p = 1; #if PERIODIC_PREEMPTION_CHECKING - if (!force_p && NUMBERP (Vredisplay_preemption_period)) + else if (NILP (Vredisplay_preemption_period)) + force_p = 1; + else if (!force_p && NUMBERP (Vredisplay_preemption_period)) { EMACS_TIME tm; double p = XFLOATINT (Vredisplay_preemption_period); @@ -3979,8 +3983,12 @@ update_single_window (w, force_p) /* Record that this is not a frame-based redisplay. */ set_frame_matrix_frame (NULL); + if (redisplay_dont_pause) + force_p = 1; #if PERIODIC_PREEMPTION_CHECKING - if (!force_p && NUMBERP (Vredisplay_preemption_period)) + else if (NILP (Vredisplay_preemption_period)) + force_p = 1; + else if (!force_p && NUMBERP (Vredisplay_preemption_period)) { EMACS_TIME tm; double p = XFLOATINT (Vredisplay_preemption_period); @@ -4166,13 +4174,8 @@ update_window (w, force_p) #endif /* Check pending input the first time so that we can quickly return. */ - if (redisplay_dont_pause) - force_p = 1; -#if PERIODIC_PREEMPTION_CHECKING - else if (NILP (Vredisplay_preemption_period)) - force_p = 1; -#else - else if (!force_p) +#if !PERIODIC_PREEMPTION_CHECKING + if (!force_p) detect_input_pending_ignore_squeezables (); #endif @@ -4398,8 +4401,10 @@ update_text_area (w, vpos) mouse-face areas after scrolling and other operations. However, it causes excessive flickering when mouse is moved across the mode line. Luckily, turning it off for the mode - line doesn't seem to hurt anything. -- cyd. */ - || (current_row->mouse_face_p && !current_row->mode_line_p) + line doesn't seem to hurt anything. -- cyd. + But it is still needed for the header line. -- kfs. */ + || (current_row->mouse_face_p + && !(current_row->mode_line_p && vpos > 0)) || current_row->x != desired_row->x) { rif->cursor_to (vpos, 0, desired_row->y, desired_row->x); @@ -5221,13 +5226,8 @@ update_frame_1 (f, force_p, inhibit_id_p) if (preempt_count <= 0) preempt_count = 1; - if (redisplay_dont_pause) - force_p = 1; -#if PERIODIC_PREEMPTION_CHECKING - else if (NILP (Vredisplay_preemption_period)) - force_p = 1; -#else - else if (!force_p && detect_input_pending_ignore_squeezables ()) +#if !PERIODIC_PREEMPTION_CHECKING + if (!force_p && detect_input_pending_ignore_squeezables ()) { pause = 1; goto do_pause; diff --git a/src/doc.c b/src/doc.c index be52f8aa07e..39fa6229183 100644 --- a/src/doc.c +++ b/src/doc.c @@ -745,7 +745,7 @@ as the keymap for future \\=\\[COMMAND] substrings. \\=\\= quotes the following character and is discarded; thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. -Returns original STRING if no substitutions were made. Othwerwise, +Returns original STRING if no substitutions were made. Otherwise, a new string, without any text properties, is returned. */) (string) Lisp_Object string; diff --git a/src/doprnt.c b/src/doprnt.c index 326fb5743e2..799f38d8f5d 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -106,7 +106,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) char tembuf[DBL_MAX_10_EXP + 100]; /* Size of sprintf_buffer. */ - int size_allocated = sizeof (tembuf); + unsigned size_allocated = sizeof (tembuf); /* Buffer to use for sprintf. Either tembuf or same as BIG_BUFFER. */ char *sprintf_buffer = tembuf; @@ -136,12 +136,12 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) { if (*fmt == '%') /* Check for a '%' character */ { - int size_bound = 0; + unsigned size_bound = 0; int width; /* Columns occupied by STRING. */ fmt++; /* Copy this one %-spec into fmtcpy. */ - string = (unsigned char *)fmtcpy; + string = (unsigned char *) fmtcpy; *string++ = '%'; while (1) { @@ -152,11 +152,11 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) This might be a field width or a precision; e.g. %1.1000f and %1000.1f both might need 1000+ bytes. Parse the width or precision, checking for overflow. */ - int n = *fmt - '0'; + unsigned n = *fmt - '0'; while ('0' <= fmt[1] && fmt[1] <= '9') { if (n * 10 / 10 != n - || (n = n * 10 + (fmt[1] - '0')) < 0) + || (n = n * 10 + (fmt[1] - '0')) < n) error ("Format width or precision too large"); *string++ = *++fmt; } @@ -164,7 +164,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) if (size_bound < n) size_bound = n; } - else if (*fmt == '-' || *fmt == ' ' || *fmt == '.') + else if (*fmt == '-' || *fmt == ' ' || *fmt == '.' || *fmt == '+') ; else break; @@ -174,10 +174,9 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) /* Make the size bound large enough to handle floating point formats with large numbers. */ - size_bound += DBL_MAX_10_EXP + 50; - - if (size_bound < 0) + if (size_bound + DBL_MAX_10_EXP + 50 < size_bound) error ("Format width or precision too large"); + size_bound += DBL_MAX_10_EXP + 50; /* Make sure we have that much. */ if (size_bound > size_allocated) @@ -213,7 +212,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) abort (); sprintf (sprintf_buffer, fmtcpy, args[cnt++]); /* Now copy into final output, truncating as nec. */ - string = (unsigned char *)sprintf_buffer; + string = (unsigned char *) sprintf_buffer; goto doit; case 'f': @@ -227,7 +226,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) u.half[1] = args[cnt++]; sprintf (sprintf_buffer, fmtcpy, u.d); /* Now copy into final output, truncating as nec. */ - string = (unsigned char *)sprintf_buffer; + string = (unsigned char *) sprintf_buffer; goto doit; } @@ -240,13 +239,13 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) minlen = atoi (&fmtcpy[1]); if (lispstrings) { - string = ((struct Lisp_String *)args[cnt])->data; - tem = STRING_BYTES ((struct Lisp_String *)args[cnt]); + string = ((struct Lisp_String *) args[cnt])->data; + tem = STRING_BYTES ((struct Lisp_String *) args[cnt]); cnt++; } else { - string = (unsigned char *)args[cnt++]; + string = (unsigned char *) args[cnt++]; tem = strlen (string); } width = strwidth (string, tem); diff --git a/src/editfns.c b/src/editfns.c index 6ef2efe313e..5053119d0c4 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3396,7 +3396,7 @@ Use %% to put a single % into the output. The basic structure of a %-sequence is % <flags> <width> <precision> character -where flags is [- #0]+, width is [0-9]+, and precision is .[0-9]+ +where flags is [-+ #0]+, width is [0-9]+, and precision is .[0-9]+ usage: (format STRING &rest OBJECTS) */) (nargs, args) @@ -3509,7 +3509,7 @@ usage: (format STRING &rest OBJECTS) */) where - flags ::= [- #0]+ + flags ::= [-+ #0]+ field-width ::= [0-9]+ precision ::= '.' [0-9]* @@ -3523,7 +3523,7 @@ usage: (format STRING &rest OBJECTS) */) while (format != end && (*format == '-' || *format == '0' || *format == '#' - || * format == ' ')) + || * format == ' ' || *format == '+')) ++format; if (*format >= '0' && *format <= '9') @@ -3700,7 +3700,7 @@ usage: (format STRING &rest OBJECTS) */) discarded[format - format_start] = 1; format++; - while (index("-0# ", *format)) + while (index("-+0# ", *format)) { if (*format == '-') { diff --git a/src/frame.c b/src/frame.c index 7d5bdcb1cb6..48cca967cc1 100644 --- a/src/frame.c +++ b/src/frame.c @@ -72,7 +72,6 @@ Lisp_Object Qx, Qw32, Qmac, Qpc; Lisp_Object Qvisible; Lisp_Object Qdisplay_type; Lisp_Object Qbackground_mode; -Lisp_Object Qinhibit_default_face_x_resources; Lisp_Object Qx_frame_parameter; Lisp_Object Qx_resource_name; @@ -2342,6 +2341,8 @@ store_frame_param (f, prop, val) /* Install the chosen minibuffer window, with proper buffer. */ f->minibuffer_window = val; } + + return Qnil; } DEFUN ("frame-parameters", Fframe_parameters, Sframe_parameters, 0, 1, 0, @@ -2539,15 +2540,6 @@ enabled such bindings for that variable with `make-variable-frame-local'. */) { FRAME_PTR f; register Lisp_Object tail, prop, val; - int count = SPECPDL_INDEX (); - - /* Bind this to t to inhibit initialization of the default face from - X resources in face-set-after-frame-default. If we don't inhibit - this, modifying the `font' frame parameter, for example, while - there is a `default.attributeFont' X resource, won't work, - because `default's font is reset to the value of the X resource - and that resets the `font' frame parameter. */ - specbind (Qinhibit_default_face_x_resources, Qt); if (EQ (frame, Qnil)) frame = selected_frame; @@ -2601,8 +2593,6 @@ enabled such bindings for that variable with `make-variable-frame-local'. */) call1 (Qframe_set_background_mode, frame); } } - - return unbind_to (count, Qnil); } DEFUN ("frame-with-environment", Fframe_with_environment, Sframe_with_environment, 0, 1, 0, @@ -3373,6 +3363,8 @@ x_set_screen_gamma (f, new_value, old_value) struct frame *f; Lisp_Object new_value, old_value; { + Lisp_Object bgcolor; + if (NILP (new_value)) f->gamma = 0; else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0) @@ -3381,7 +3373,20 @@ x_set_screen_gamma (f, new_value, old_value) else signal_error ("Invalid screen-gamma", new_value); - clear_face_cache (0); + /* Apply the new gamma value to the frame background. */ + bgcolor = Fassq (Qbackground_color, f->param_alist); + if (CONSP (bgcolor) && (bgcolor = XCDR (bgcolor), STRINGP (bgcolor))) + { + Lisp_Object index = Fget (Qbackground_color, Qx_frame_parameter); + if (NATNUMP (index) + && (XFASTINT (index) + < sizeof (frame_parms)/sizeof (frame_parms[0])) + && rif->frame_parm_handlers[XFASTINT (index)]) + (*(rif->frame_parm_handlers[XFASTINT (index)])) + (f, bgcolor, Qnil); + } + + Fclear_face_cache (Qnil); } @@ -4424,10 +4429,6 @@ Setting this variable does not affect existing frames, only new ones. */); Vdefault_frame_scroll_bars = Qnil; #endif - Qinhibit_default_face_x_resources - = intern ("inhibit-default-face-x-resources"); - staticpro (&Qinhibit_default_face_x_resources); - DEFVAR_LISP ("terminal-frame", &Vterminal_frame, doc: /* The initial frame-object, which represents Emacs's stdout. */); diff --git a/src/gnu.h b/src/gnu.h index dbf47317493..953546e611a 100644 --- a/src/gnu.h +++ b/src/gnu.h @@ -1,3 +1,32 @@ +/* XPM */ +/* Emacs "E" icon + +Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + +Author: Andrew Zhilin <andrew_zhilin@yahoo.com> + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. + +Commentary: + +This is a version of one of the GNU Emacs icon set posted to +emacs-devel in October 2005 by Andrew Zhilin. +*/ #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) static char * gnu_xpm_bits[] = { "32 32 173 2", diff --git a/src/gtkutil.c b/src/gtkutil.c index 7953ce30740..0f0e2e763ef 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -3687,7 +3687,7 @@ update_frame_tool_bar (f) int i; GtkRequisition old_req, new_req; struct x_output *x = f->output_data.x; - int hmargin, vmargin; + int hmargin = 0, vmargin = 0; GtkToolItem *ti; if (! FRAME_GTK_WIDGET (f)) diff --git a/src/indent.c b/src/indent.c index bb77de1be9b..93ff40ba640 100644 --- a/src/indent.c +++ b/src/indent.c @@ -911,6 +911,7 @@ indented_beyond_p (pos, pos_byte, column) DEFUN ("move-to-column", Fmove_to_column, Smove_to_column, 1, 2, "p", doc: /* Move point to column COLUMN in the current line. +Interactively, COLUMN is the value of prefix numeric argument. The column of a character is calculated by adding together the widths as displayed of the previous characters in the line. This function ignores line-continuation; @@ -920,10 +921,10 @@ and horizontal scrolling has no effect. If specified column is within a character, point goes after that character. If it's past end of line, point goes to end of line. -A non-nil second (optional) argument FORCE means, -if COLUMN is in the middle of a tab character, change it to spaces. -In addition, if FORCE is t, and the line is too short -to reach column COLUMN, add spaces/tabs to get there. +Optional second argument FORCE non-nil means if COLUMN is in the +middle of a tab character, change it to spaces. +In addition, if FORCE is t, and the line is too short to reach +COLUMN, add spaces/tabs to get there. The return value is the current column. */) (column, force) diff --git a/src/lread.c b/src/lread.c index 0014c31c45d..f1671c4543c 100644 --- a/src/lread.c +++ b/src/lread.c @@ -4089,10 +4089,10 @@ contain symbolic links) of the loaded file. The remaining elements of each list are symbols defined as variables and cons cells of the form `(provide . FEATURE)', `(require . FEATURE)', -`(defun . FUNCTION)', `(autoload . SYMBOL)', and `(t . SYMBOL)'. -An element `(t . SYMBOL)' precedes an entry `(defun . FUNCTION)', -and means that SYMBOL was an autoload before this file redefined it -as a function. +`(defun . FUNCTION)', `(autoload . SYMBOL)', `(defface . SYMBOL)' +and `(t . SYMBOL)'. An element `(t . SYMBOL)' precedes an entry +`(defun . FUNCTION)', and means that SYMBOL was an autoload before +this file redefined it as a function. During preloading, the file name recorded is relative to the main Lisp directory. These file names are converted to absolute at startup. */); @@ -4106,7 +4106,9 @@ directory. These file names are converted to absolute at startup. */); doc: /* File name, including directory, of user's initialization file. If the file loaded had extension `.elc', and the corresponding source file exists, this variable contains the name of source file, suitable for use -by functions like `custom-save-all' which edit the init file. */); +by functions like `custom-save-all' which edit the init file. +While Emacs loads and evaluates the init file, value is the real name +of the file, regardless of whether or not it has the `.elc' extension. */); Vuser_init_file = Qnil; DEFVAR_LISP ("current-load-list", &Vcurrent_load_list, diff --git a/src/m/hp800.h b/src/m/hp800.h new file mode 100644 index 00000000000..eed53183569 --- /dev/null +++ b/src/m/hp800.h @@ -0,0 +1,116 @@ +/* machine description file for hp9000 series 800 machines. + Copyright (C) 1987, 2001, 2002, 2003, 2004, 2005, + 2006, 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + +/* The following line tells the configuration script what sort of + operating system this machine is likely to run. + USUAL-OPSYS="hpux" */ + +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word + is the most significant byte. */ + +#define WORDS_BIG_ENDIAN + +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a + * group of arguments and treat it as an array of the arguments. */ + +#define NO_ARG_ARRAY + +/* Define WORD_MACHINE if addresses and such have + * to be corrected before they can be used as byte counts. */ + +#undef WORD_MACHINE + +/* Now define a symbol for the cpu type, if your compiler + does not define it automatically: + Ones defined so far include vax, m68000, ns16000, pyramid, + orion, tahoe, APOLLO and many others */ +#ifndef hp9000s800 +# define hp9000s800 +#endif + +/* Use type int rather than a union, to represent Lisp_Object */ +/* This is desirable for most machines. */ + +#define NO_UNION_TYPE + +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend + the bit field into an int. In other words, if bit fields + are always unsigned. + + If you use NO_UNION_TYPE, this flag does not matter. */ + +#define EXPLICIT_SIGN_EXTEND + +/* The standard definitions of these macros would work ok, + but these are faster because the constants are short. */ + + +#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS) + +#define XSET(var, type, ptr) \ + ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)) + +/* Definitions for GNU/Linux. (HP/UX is unsupported because of the + removal of unexhp9k800.c due to lack of legal papers.) */ + +#ifdef GNU_LINUX +/* Now define a symbol for the cpu type, if your compiler + does not define it automatically: + Ones defined so far include vax, m68000, ns16000, pyramid, + orion, tahoe, APOLLO and many others */ +#ifndef hp9000s800 +# define hp9000s800 +#endif + +/* Define CANNOT_DUMP on machines where unexec does not work. + Then the function dump-emacs will not be defined + and temacs will do (load "loadup") automatically unless told otherwise. */ + +#undef CANNOT_DUMP + +/* Define NO_REMAP if memory segmentation makes it not work well + to change the boundary between the text section and data section + when Emacs is dumped. If you define this, the preloaded Lisp + code will not be sharable; but that's better than failing completely. */ + +#define NO_REMAP + +/* Data type of load average, as read out of kmem. */ + +#define LOAD_AVE_TYPE long + +/* Convert that into an integer that is 100 for a load average of 1.0 */ + +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) + +#endif /* GNU_LINUX */ + +/* Systems with GCC don't need to lose. */ +#ifdef __NetBSD__ +# ifdef __GNUC__ +# define alloca __builtin_alloca +# define HAVE_ALLOCA +# endif /* __GNUC__ */ +#endif /* __NetBSD__ */ + +/* arch-tag: 809436e6-1645-4b92-b40d-2de5d6e7227c + (do not change this comment) */ diff --git a/src/m/mips4.h b/src/m/mips4.h index 4b79e466fb3..06db7d5dff0 100644 --- a/src/m/mips4.h +++ b/src/m/mips4.h @@ -1,4 +1,25 @@ -/* machine description file for Mips running RISCOS version 4. */ +/* machine description file for Mips running RISCOS version 4. + + Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 1, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "mips.h" diff --git a/src/m/news-risc.h b/src/m/news-risc.h index 2ecaff41cb9..07e055dac9a 100644 --- a/src/m/news-risc.h +++ b/src/m/news-risc.h @@ -1,4 +1,25 @@ -/* news-risc.h is for the "RISC News". */ +/* news-risc.h is for the "RISC News". + + Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 1, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "mips.h" diff --git a/src/m/pmax.h b/src/m/pmax.h index c83c514ab98..1f2869a09d3 100644 --- a/src/m/pmax.h +++ b/src/m/pmax.h @@ -1,4 +1,25 @@ -/* Machine description file for DEC MIPS machines. */ +/* Machine description file for DEC MIPS machines. + + Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, + 2005, 2006, 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "mips.h" diff --git a/src/macfns.c b/src/macfns.c index c43a43dae62..9be0d0e9ea5 100644 --- a/src/macfns.c +++ b/src/macfns.c @@ -2863,9 +2863,31 @@ FRAME nil means use the selected frame. */) (frame) Lisp_Object frame; { + OSErr err; + ProcessSerialNumber front_psn; + static const ProcessSerialNumber current_psn = {0, kCurrentProcess}; + Boolean front_p; struct frame *f = check_x_frame (frame); BLOCK_INPUT; + /* Move the current process to the foreground if it is not. Don't + call SetFrontProcess if the current process is already running in + the foreground so as not to change the z-order of windows. */ + err = GetFrontProcess (&front_psn); + if (err == noErr) + err = SameProcess (&front_psn, ¤t_psn, &front_p); + if (err == noErr) + if (!front_p) + { +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 + if (FrontNonFloatingWindow () == FRAME_MAC_WINDOW (f)) + SetFrontProcessWithOptions (¤t_psn, + kSetFrontProcessFrontWindowOnly); + else +#endif + SetFrontProcess (¤t_psn); + } + #ifdef MAC_OSX ActivateWindow (ActiveNonFloatingWindow (), false); ActivateWindow (FRAME_MAC_WINDOW (f), true); @@ -4513,7 +4535,7 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */) filename[len++] = '/'; CFStringGetCString(reply.saveFileName, filename+len, sizeof (filename) - len, -#if MAC_OSX +#ifdef MAC_OSX kCFStringEncodingUTF8 #else CFStringGetSystemEncoding () @@ -4575,22 +4597,22 @@ DEFUN ("mac-clear-font-name-table", Fmac_clear_font_name_table, } #if USE_MAC_FONT_PANEL -DEFUN ("mac-set-font-panel-visibility", Fmac_set_font_panel_visibility, - Smac_set_font_panel_visibility, 1, 1, 0, - doc: /* Make the font panel visible if and only if VISIBLE is non-nil. +DEFUN ("mac-set-font-panel-visible-p", Fmac_set_font_panel_visible_p, + Smac_set_font_panel_visible_p, 1, 1, 0, + doc: /* Make the font panel visible if and only if FLAG is non-nil. This is for internal use only. Use `mac-font-panel-mode' instead. */) - (visible) - Lisp_Object visible; + (flag) + Lisp_Object flag; { OSStatus err = noErr; check_mac (); BLOCK_INPUT; - if (NILP (visible) != !mac_font_panel_visible_p ()) + if (NILP (flag) != !mac_font_panel_visible_p ()) { err = mac_show_hide_font_panel (); - if (err == noErr && !NILP (visible)) + if (err == noErr && !NILP (flag)) { Lisp_Object focus_frame = x_get_focus_frame (SELECTED_FRAME ()); struct frame *f = (NILP (focus_frame) ? SELECTED_FRAME () @@ -4860,7 +4882,7 @@ Chinese, Japanese, and Korean. */); #endif defsubr (&Smac_clear_font_name_table); #if USE_MAC_FONT_PANEL - defsubr (&Smac_set_font_panel_visibility); + defsubr (&Smac_set_font_panel_visible_p); #endif #if USE_ATSUI defsubr (&Smac_atsu_font_face_attributes); diff --git a/src/macmenu.c b/src/macmenu.c index 3ea09412650..82322515c31 100644 --- a/src/macmenu.c +++ b/src/macmenu.c @@ -2012,9 +2012,8 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) char **error; { int i; - UInt32 refcon; int menu_item_choice; - int menu_item_selection; + UInt32 menu_item_selection; MenuHandle menu; Point pos; widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; @@ -2229,7 +2228,6 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) LocalToGlobal (&pos); /* No selection has been chosen yet. */ - menu_item_choice = 0; menu_item_selection = 0; record_unwind_protect (pop_down_menu, make_save_value (f, 0)); @@ -2240,20 +2238,18 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) /* Display the menu. */ menu_item_choice = PopUpMenuSelect (menu, pos.v, pos.h, 0); - menu_item_selection = LoWord (menu_item_choice); /* Get the refcon to find the correct item */ - if (menu_item_selection) + if (menu_item_choice) { MenuHandle sel_menu = GetMenuHandle (HiWord (menu_item_choice)); - if (sel_menu) { - GetMenuItemRefCon (sel_menu, menu_item_selection, &refcon); - } + + if (sel_menu) + GetMenuItemRefCon (sel_menu, LoWord (menu_item_choice), + &menu_item_selection); } - else if (! for_click) - /* Make "Cancel" equivalent to C-g unless this menu was popped up by - a mouse press. */ - Fsignal (Qquit, Qnil); + + unbind_to (specpdl_count, Qnil); /* Find the selected item, and its pane, to return the proper value. */ @@ -2290,7 +2286,7 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) { entry = XVECTOR (menu_items)->contents[i + MENU_ITEMS_ITEM_VALUE]; - if ((int) (EMACS_INT) refcon == i) + if (menu_item_selection == i) { if (keymaps != 0) { @@ -2313,8 +2309,6 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) /* Make "Cancel" equivalent to C-g. */ Fsignal (Qquit, Qnil); - unbind_to (specpdl_count, Qnil); - return Qnil; } @@ -2386,10 +2380,12 @@ mac_handle_dialog_event (next_handler, event, data) typeUInt32, NULL, sizeof (UInt32), NULL, &key_code); if (err == noErr) - if (mac_quit_char_key_p (modifiers, key_code)) - err = QuitAppModalLoopForWindow (window); - else - err = eventNotHandledErr; + { + if (mac_quit_char_key_p (modifiers, key_code)) + err = QuitAppModalLoopForWindow (window); + else + err = eventNotHandledErr; + } } break; } diff --git a/src/macterm.c b/src/macterm.c index 8ba62f2308f..f4e52a01174 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -1916,18 +1916,16 @@ x_flush (f) #define XFlush(DISPLAY) (void) 0 - -/* Return the struct mac_display_info corresponding to DPY. There's - only one. */ - -struct mac_display_info * -mac_display_info_for_display (dpy) - Display *dpy; +#if USE_CG_DRAWING +static void +mac_flush_display_optional (f) + struct frame *f; { - return &one_mac_display_info; + BLOCK_INPUT; + mac_prepare_for_quickdraw (f); + UNBLOCK_INPUT; } - - +#endif /*********************************************************************** Starting and ending an update @@ -4649,7 +4647,7 @@ static void construct_scroll_bar_click P_ ((struct scroll_bar *, int, static OSStatus get_control_part_bounds P_ ((ControlHandle, ControlPartCode, Rect *)); static void x_scroll_bar_handle_press P_ ((struct scroll_bar *, - ControlPartCode, + ControlPartCode, Point, struct input_event *)); static void x_scroll_bar_handle_release P_ ((struct scroll_bar *, struct input_event *)); @@ -4762,9 +4760,10 @@ get_control_part_bounds (ch, part_code, rect) } static void -x_scroll_bar_handle_press (bar, part_code, bufp) +x_scroll_bar_handle_press (bar, part_code, mouse_pos, bufp) struct scroll_bar *bar; ControlPartCode part_code; + Point mouse_pos; struct input_event *bufp; { int part = control_part_code_to_scroll_bar_part (part_code); @@ -4777,10 +4776,18 @@ x_scroll_bar_handle_press (bar, part_code, bufp) construct_scroll_bar_click (bar, part, bufp); HiliteControl (SCROLL_BAR_CONTROL_HANDLE (bar), part_code); set_scroll_bar_timer (SCROLL_BAR_FIRST_DELAY); + bar->dragging = Qnil; + } + else + { + Rect r; + + get_control_part_bounds (SCROLL_BAR_CONTROL_HANDLE (bar), + kControlIndicatorPart, &r); + XSETINT (bar->dragging, - (mouse_pos.v - r.top) - 1); } last_scroll_bar_part = part; - bar->dragging = Qnil; tracked_scroll_bar = bar; } @@ -4790,7 +4797,7 @@ x_scroll_bar_handle_release (bar, bufp) struct input_event *bufp; { if (last_scroll_bar_part != scroll_bar_handle - || !GC_NILP (bar->dragging)) + || (INTEGERP (bar->dragging) && XINT (bar->dragging) >= 0)) construct_scroll_bar_click (bar, scroll_bar_end_scroll, bufp); HiliteControl (SCROLL_BAR_CONTROL_HANDLE (bar), 0); @@ -4818,13 +4825,11 @@ x_scroll_bar_handle_drag (win, bar, mouse_pos, bufp) get_control_part_bounds (SCROLL_BAR_CONTROL_HANDLE (bar), kControlIndicatorPart, &r); - if (GC_NILP (bar->dragging)) - XSETINT (bar->dragging, mouse_pos.v - r.top); + if (INTEGERP (bar->dragging) && XINT (bar->dragging) < 0) + XSETINT (bar->dragging, - (XINT (bar->dragging) + 1)); top = mouse_pos.v - XINT (bar->dragging) - XINT (bar->track_top); - top_range = (XINT (bar->track_height) - (r.bottom - r.top)) * - (1.0 + (float) GetControlViewSize (ch) / GetControl32BitMaximum (ch)) - + .5; + top_range = XINT (bar->track_height) - XINT (bar->min_handle); if (top < 0) top = 0; @@ -4891,13 +4896,16 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole) if (XINT (bar->track_height) == 0) return; - if (whole == 0) + if (whole <= portion) value = 0, viewsize = 1, maximum = 0; else { - value = position; - viewsize = portion; - maximum = max (0, whole - portion); + float scale; + + maximum = XINT (bar->track_height) - XINT (bar->min_handle); + scale = (float) maximum / (whole - portion); + value = position * scale + 0.5f; + viewsize = (int) (portion * scale + 0.5f) + XINT (bar->min_handle); } BLOCK_INPUT; @@ -4978,6 +4986,7 @@ x_scroll_bar_create (w, top, left, width, height, disp_top, disp_height) #ifdef USE_TOOLKIT_SCROLL_BARS bar->track_top = Qnil; bar->track_height = Qnil; + bar->min_handle = Qnil; #endif /* Add bar to its frame's list of scroll bars. */ @@ -5198,6 +5207,7 @@ XTset_vertical_scroll_bar (w, portion, whole, position) #ifdef USE_TOOLKIT_SCROLL_BARS bar->track_top = Qnil; bar->track_height = Qnil; + bar->min_handle = Qnil; #endif } @@ -5211,6 +5221,7 @@ XTset_vertical_scroll_bar (w, portion, whole, position) { XSETINT (bar->track_top, 0); XSETINT (bar->track_height, 0); + XSETINT (bar->min_handle, 0); } else { @@ -5220,7 +5231,7 @@ XTset_vertical_scroll_bar (w, portion, whole, position) BLOCK_INPUT; SetControl32BitMinimum (ch, 0); - SetControl32BitMaximum (ch, 1); + SetControl32BitMaximum (ch, 1 << 30); SetControlViewSize (ch, 1); /* Move the scroll bar thumb to the top. */ @@ -5228,12 +5239,13 @@ XTset_vertical_scroll_bar (w, portion, whole, position) get_control_part_bounds (ch, kControlIndicatorPart, &r0); /* Move the scroll bar thumb to the bottom. */ - SetControl32BitValue (ch, 1); + SetControl32BitValue (ch, 1 << 30); get_control_part_bounds (ch, kControlIndicatorPart, &r1); UnionRect (&r0, &r1, &r0); XSETINT (bar->track_top, r0.top); XSETINT (bar->track_height, r0.bottom - r0.top); + XSETINT (bar->min_handle, r1.bottom - r1.top); /* Don't show the scroll bar if its height is not enough to display the scroll bar thumb. */ @@ -8791,9 +8803,6 @@ mac_set_font_info_for_selection (f, face_id, c) #define M_APPLE 234 #define I_ABOUT 1 -#define WINDOW_RESOURCE 128 -#define TERM_WINDOW_RESOURCE 129 - #define DEFAULT_NUM_COLS 80 #define MIN_DOC_SIZE 64 @@ -10120,7 +10129,7 @@ mac_handle_text_input_event (next_handler, event, data) case kEventTextInputUnicodeForKeyEvent: { EventRef kbd_event; - UInt32 actual_size, modifiers, mapped_modifiers; + UInt32 actual_size, modifiers; err = GetEventParameter (event, kEventParamTextInputSendKeyboardEvent, typeEventRef, NULL, sizeof (EventRef), NULL, @@ -10757,12 +10766,12 @@ XTread_socket (sd, expected, hold_quit) #ifdef USE_TOOLKIT_SCROLL_BARS /* Make the "Ctrl-Mouse-2 splits window" work for toolkit scroll bars. */ - if (er.modifiers & controlKey) + if (inev.modifiers & ctrl_modifier) x_scroll_bar_handle_click (bar, control_part_code, &er, &inev); else if (er.what == mouseDown) x_scroll_bar_handle_press (bar, control_part_code, - &inev); + mouse_loc, &inev); else x_scroll_bar_handle_release (bar, &inev); #else /* not USE_TOOLKIT_SCROLL_BARS */ @@ -10825,7 +10834,9 @@ XTread_socket (sd, expected, hold_quit) f->mouse_moved = 0; #ifdef USE_TOOLKIT_SCROLL_BARS - if (inev.kind == MOUSE_CLICK_EVENT) + if (inev.kind == MOUSE_CLICK_EVENT + || (inev.kind == SCROLL_BAR_CLICK_EVENT + && (inev.modifiers & ctrl_modifier))) #endif switch (er.what) { @@ -11165,6 +11176,16 @@ XTread_socket (sd, expected, hold_quit) /* translate the keycode back to determine the original key */ #ifdef MAC_OSX + UCKeyboardLayout *uchr_ptr = NULL; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 + OSStatus err; + KeyboardLayoutRef layout; + + err = KLGetCurrentKeyboardLayout (&layout); + if (err == noErr) + KLGetKeyboardLayoutProperty (layout, kKLuchrData, + (const void **) &uchr_ptr); +#else static SInt16 last_key_layout_id = 0; static Handle uchr_handle = (Handle)-1; SInt16 current_key_layout_id = @@ -11176,8 +11197,11 @@ XTread_socket (sd, expected, hold_quit) uchr_handle = GetResource ('uchr', current_key_layout_id); last_key_layout_id = current_key_layout_id; } - if (uchr_handle) + uchr_ptr = (UCKeyboardLayout *)*uchr_handle; +#endif + + if (uchr_ptr) { OSStatus status; UInt16 key_action = er.what - keyDown; @@ -11188,7 +11212,7 @@ XTread_socket (sd, expected, hold_quit) UniChar code; UniCharCount actual_length; - status = UCKeyTranslate ((UCKeyboardLayout *)*uchr_handle, + status = UCKeyTranslate (uchr_ptr, keycode, key_action, modifier_key_state, keyboard_type, @@ -11640,19 +11664,6 @@ x_delete_display (dpyinfo) } -#ifdef MAC_OSX -void -MakeMeTheFrontProcess () -{ - ProcessSerialNumber psn; - OSErr err; - - err = GetCurrentProcess (&psn); - if (err == noErr) - (void) SetFrontProcess (&psn); -} -#endif /* MAC_OSX */ - static void init_menu_bar () { @@ -11717,7 +11728,11 @@ static struct redisplay_interface x_redisplay_interface = x_update_window_end, x_cursor_to, x_flush, +#if USE_CG_DRAWING + mac_flush_display_optional, +#else 0, /* flush_display_optional */ +#endif x_clear_window_mouse_face, x_get_glyph_overhangs, x_fix_overlapping_area, @@ -11804,7 +11819,11 @@ mac_initialize () init_apple_event_handler (); if (!inhibit_window_system) - MakeMeTheFrontProcess (); + { + static const ProcessSerialNumber psn = {0, kCurrentProcess}; + + SetFrontProcess (&psn); + } #endif #endif diff --git a/src/macterm.h b/src/macterm.h index 0f474e1b3d8..6ee57d60d01 100644 --- a/src/macterm.h +++ b/src/macterm.h @@ -204,7 +204,6 @@ extern struct mac_display_info one_mac_display_info; FONT-LIST-CACHE records previous values returned by x-list-fonts. */ extern Lisp_Object x_display_name_list; -extern struct x_display_info *x_display_info_for_display P_ ((Display *)); extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); extern struct mac_display_info *mac_term_init P_ ((Lisp_Object, char *, char *)); @@ -401,8 +400,8 @@ struct scroll_bar { /* The next and previous in the chain of scroll bars in this frame. */ Lisp_Object next, prev; - /* The Mac control handle of this scroll bar. Since this is a full - 32-bit quantity, we store it split into two 32-bit values. */ + /* The Mac control handle of this scroll bar. Since this is a + pointer value, we store it split into two Lisp integers. */ Lisp_Object control_handle_low, control_handle_high; /* The position and size of the scroll bar in pixels, relative to the @@ -424,7 +423,9 @@ struct scroll_bar { /* If the scroll bar handle is currently being dragged by the user, this is the number of pixels from the top of the handle to the - place where the user grabbed it. If the handle isn't currently + place where the user grabbed it. If the handle is pressed but + not dragged yet, this is a negative integer whose absolute value + is the number of pixels plus 1. If the handle isn't currently being dragged, this is Qnil. */ Lisp_Object dragging; @@ -432,6 +433,9 @@ struct scroll_bar { /* The position and size of the scroll bar handle track area in pixels, relative to the frame. */ Lisp_Object track_top, track_height; + + /* Minimum length of the scroll bar handle, in pixels. */ + Lisp_Object min_handle; #endif }; @@ -445,13 +449,13 @@ struct scroll_bar { #define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec)) -/* Building a 32-bit C integer from two 16-bit lisp integers. */ +/* Building a C long integer from two lisp integers. */ #define SCROLL_BAR_PACK(low, high) (XINT (high) << 16 | XINT (low)) -/* Setting two lisp integers to the low and high words of a 32-bit C int. */ -#define SCROLL_BAR_UNPACK(low, high, int32) \ - (XSETINT ((low), (int32) & 0xffff), \ - XSETINT ((high), ((int32) >> 16) & 0xffff)) +/* Setting two lisp integers to two parts of a C unsigned long. */ +#define SCROLL_BAR_UNPACK(low, high, ulong) \ + (XSETINT ((low), (ulong) & 0xffff), \ + XSETINT ((high), (ulong) >> 16)) /* Extract the Mac control handle of the scroll bar from a struct @@ -461,9 +465,9 @@ struct scroll_bar { (ptr)->control_handle_high)) /* Store a Mac control handle in a struct scroll_bar. */ -#define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, id) \ +#define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, handle) \ (SCROLL_BAR_UNPACK ((ptr)->control_handle_low, \ - (ptr)->control_handle_high, (int) id)) + (ptr)->control_handle_high, (unsigned long) (handle))) /* Return the inside width of a vertical scroll bar, given the outside width. */ diff --git a/src/makefile.w32-in b/src/makefile.w32-in index c796a52fe2c..4dad03f4c0c 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in @@ -210,8 +210,8 @@ bootstrap-clean: # The resource file. NT 3.10 requires the use of cvtres; even though # it is not necessary on later versions, it is still ok to use it. # -$(TRES): ../nt/emacs.rc - $(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ $(ALL_DEPS) +$(TRES): ../nt/emacs.rc stamp_BLD + $(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc # # Build the library. Split up the build into two phases...otherwise we diff --git a/src/minibuf.c b/src/minibuf.c index bdd810cb201..51a64ffed8b 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -136,6 +136,11 @@ static Lisp_Object last_exact_completion; /* Keymap for reading expressions. */ Lisp_Object Vread_expression_map; +Lisp_Object Vminibuffer_completion_table, Qminibuffer_completion_table; +Lisp_Object Vminibuffer_completion_predicate, Qminibuffer_completion_predicate; +Lisp_Object Vminibuffer_completion_confirm, Qminibuffer_completion_confirm; +Lisp_Object Vminibuffer_completing_file_name; + Lisp_Object Quser_variable_p; Lisp_Object Qminibuffer_default; @@ -468,7 +473,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag, struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; Lisp_Object enable_multibyte; int pos = INTEGERP (backup_n) ? XINT (backup_n) : 0; - /* String to add to the history. */ Lisp_Object histstring; @@ -480,6 +484,14 @@ read_minibuf (map, initial, prompt, backup_n, expflag, specbind (Qminibuffer_default, defalt); + /* If Vminibuffer_completing_file_name is `lambda' on entry, it was t + in previous recursive minibuffer, but was not set explicitly + to t for this invocation, so set it to nil in this minibuffer. + Save the old value now, before we change it. */ + specbind (intern ("minibuffer-completing-file-name"), Vminibuffer_completing_file_name); + if (EQ (Vminibuffer_completing_file_name, Qlambda)) + Vminibuffer_completing_file_name = Qnil; + #ifdef HAVE_X_WINDOWS if (display_hourglass_p) cancel_hourglass (); @@ -573,7 +585,8 @@ read_minibuf (map, initial, prompt, backup_n, expflag, specpdl slots. */ minibuf_save_list = Fcons (Voverriding_local_map, - Fcons (minibuf_window, minibuf_save_list)); + Fcons (minibuf_window, + minibuf_save_list)); minibuf_save_list = Fcons (minibuf_prompt, Fcons (make_number (minibuf_prompt_width), @@ -599,6 +612,13 @@ read_minibuf (map, initial, prompt, backup_n, expflag, Vminibuffer_history_position = histpos; Vminibuffer_history_variable = histvar; Vhelp_form = Vminibuffer_help_form; + /* If this minibuffer is reading a file name, that doesn't mean + recursive ones are. But we cannot set it to nil, because + completion code still need to know the minibuffer is completing a + file name. So use `lambda' as intermediate value meaning + "t" in this minibuffer, but "nil" in next minibuffer. */ + if (!NILP (Vminibuffer_completing_file_name)) + Vminibuffer_completing_file_name = Qlambda; if (inherit_input_method) { @@ -1690,11 +1710,6 @@ are ignored unless STRING itself starts with a space. */) return Fnreverse (allmatches); } -Lisp_Object Vminibuffer_completion_table, Qminibuffer_completion_table; -Lisp_Object Vminibuffer_completion_predicate, Qminibuffer_completion_predicate; -Lisp_Object Vminibuffer_completion_confirm, Qminibuffer_completion_confirm; -Lisp_Object Vminibuffer_completing_file_name; - DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 8, 0, doc: /* Read a string in the minibuffer, with completion. PROMPT is a string to prompt with; normally it ends in a colon and a space. @@ -1792,9 +1807,11 @@ Completion ignores case if the ambient value of val = read_minibuf (NILP (require_match) ? (NILP (Vminibuffer_completing_file_name) + || EQ (Vminibuffer_completing_file_name, Qlambda) ? Vminibuffer_local_completion_map : Vminibuffer_local_filename_completion_map) : (NILP (Vminibuffer_completing_file_name) + || EQ (Vminibuffer_completing_file_name, Qlambda) ? Vminibuffer_local_must_match_map : Vminibuffer_local_must_match_filename_map), init, prompt, make_number (pos), 0, @@ -2062,9 +2079,10 @@ do_completion () /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ DEFUN ("assoc-string", Fassoc_string, Sassoc_string, 2, 3, 0, - doc: /* Like `assoc' but specifically for strings. -Unibyte strings are converted to multibyte for comparison. -And case is ignored if CASE-FOLD is non-nil. + doc: /* Like `assoc' but specifically for strings (and symbols). +Symbols are converted to strings, and unibyte strings are converted to +multibyte for comparison. +Case is ignored if optional arg CASE-FOLD is non-nil. As opposed to `assoc', it will also match an entry consisting of a single string rather than a cons cell whose car is a string. */) (key, list, case_fold) @@ -2073,12 +2091,17 @@ string rather than a cons cell whose car is a string. */) { register Lisp_Object tail; + if (SYMBOLP (key)) + key = Fsymbol_name (key); + for (tail = list; !NILP (tail); tail = Fcdr (tail)) { register Lisp_Object elt, tem, thiscar; elt = Fcar (tail); thiscar = CONSP (elt) ? XCAR (elt) : elt; - if (!STRINGP (thiscar)) + if (SYMBOLP (thiscar)) + thiscar = Fsymbol_name (thiscar); + else if (!STRINGP (thiscar)) continue; tem = Fcompare_strings (thiscar, make_number (0), Qnil, key, make_number (0), Qnil, @@ -2909,7 +2932,7 @@ CODE can be nil, t or `lambda': DEFVAR_LISP ("minibuffer-completing-file-name", &Vminibuffer_completing_file_name, - doc: /* Non-nil means completing file names. */); + doc: /* Non-nil and non-`lambda' means completing file names. */); Vminibuffer_completing_file_name = Qnil; DEFVAR_LISP ("minibuffer-help-form", &Vminibuffer_help_form, diff --git a/src/ndir.h b/src/ndir.h index bcf52c902f4..d254b5cf603 100644 --- a/src/ndir.h +++ b/src/ndir.h @@ -2,8 +2,11 @@ <dir.h> -- definitions for 4.2BSD-compatible directory access last edit: 09-Jul-1983 D A Gwyn -*/ + * The code here is forced by the interface, and is not subject to + * copyright, constituting the only possible expression of the + * algorithm in this format. + */ #ifdef VMS #ifndef FAB$C_BID #include <fab.h> diff --git a/src/print.c b/src/print.c index 883daa55e2b..ed233729c6f 100644 --- a/src/print.c +++ b/src/print.c @@ -1292,7 +1292,8 @@ print (obj, printcharfun, escapeflag) the variable Vprint_continuous_numbering is nil. Otherwise, the values of these variables will be kept between several print functions. */ - if (NILP (Vprint_continuous_numbering)) + if (NILP (Vprint_continuous_numbering) + || NILP (Vprint_number_table)) { print_number_index = 0; Vprint_number_table = Qnil; diff --git a/src/process.c b/src/process.c index 38a5c8341cf..d11a300363d 100644 --- a/src/process.c +++ b/src/process.c @@ -5665,6 +5665,83 @@ send_process (proc, buf, len, object) UNGCPRO; } +static Lisp_Object +send_process_object_unwind (buf) + Lisp_Object buf; +{ + Lisp_Object tembuf; + + if (XBUFFER (buf) == current_buffer) + return Qnil; + tembuf = Fcurrent_buffer (); + Fset_buffer (buf); + Fkill_buffer (tembuf); + return Qnil; +} + +/* Send current contents of region between START and END to PROC. + If START is a string, send it instead. + This function can evaluate Lisp code and can garbage collect. */ + +static void +send_process_object (proc, start, end) + Lisp_Object proc, start, end; +{ + int count = SPECPDL_INDEX (); + Lisp_Object object = STRINGP (start) ? start : Fcurrent_buffer (); + struct buffer *given_buffer = current_buffer; + unsigned char *buf; + int len; + + record_unwind_protect (send_process_object_unwind, Fcurrent_buffer ()); + + if (STRINGP (object) ? STRING_MULTIBYTE (object) + : ! NILP (XBUFFER (object)->enable_multibyte_characters)) + { + struct Lisp_Process *p = XPROCESS (proc); + struct coding_system *coding = proc_encode_coding_system[XINT (p->outfd)]; + + if (! EQ (coding->symbol, p->encode_coding_system)) + /* The coding system for encoding was changed to raw-text + because we sent a unibyte text previously. Now we are + sending a multibyte text, thus we must encode it by the + original coding system specified for the current process. */ + setup_coding_system (p->encode_coding_system, coding); + if (! NILP (coding->pre_write_conversion)) + { + struct gcpro gcpro1, gcpro2; + + GCPRO2 (proc, object); + call2 (coding->pre_write_conversion, start, end); + UNGCPRO; + if (given_buffer != current_buffer) + { + start = make_number (BEGV), end = make_number (ZV); + object = Fcurrent_buffer (); + } + } + } + + if (BUFFERP (object)) + { + EMACS_INT start_byte; + + if (XINT (start) < GPT && XINT (end) > GPT) + move_gap (XINT (end)); + start_byte = CHAR_TO_BYTE (XINT (start)); + buf = BYTE_POS_ADDR (start_byte); + len = CHAR_TO_BYTE (XINT (end)) - start_byte; + } + else + { + buf = SDATA (object); + len = SBYTES (object); + } + send_process (proc, buf, len, object); + + unbind_to (count, Qnil); +} + DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, 3, 3, 0, doc: /* Send current contents of region as input to PROCESS. @@ -5678,19 +5755,10 @@ Output from processes can arrive in between bunches. */) Lisp_Object process, start, end; { Lisp_Object proc; - int start1, end1; proc = get_process (process); validate_region (&start, &end); - - if (XINT (start) < GPT && XINT (end) > GPT) - move_gap (XINT (start)); - - start1 = CHAR_TO_BYTE (XINT (start)); - end1 = CHAR_TO_BYTE (XINT (end)); - send_process (proc, BYTE_POS_ADDR (start1), end1 - start1, - Fcurrent_buffer ()); - + send_process_object (proc, start, end); return Qnil; } @@ -5708,8 +5776,7 @@ Output from processes can arrive in between bunches. */) Lisp_Object proc; CHECK_STRING (string); proc = get_process (process); - send_process (proc, SDATA (string), - SBYTES (string), string); + send_process_object (proc, string, Qnil); return Qnil; } diff --git a/src/s/aix3-2.h b/src/s/aix3-2.h index 6dfbe5d751c..e745b8dc81b 100644 --- a/src/s/aix3-2.h +++ b/src/s/aix3-2.h @@ -1,4 +1,25 @@ -/* s- file for building Emacs on AIX 3.2. */ +/* s- file for building Emacs on AIX 3.2. + + Copyright (C) 1999, 2001, 2002, 2003, 2004, + 2005, 2006, 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "aix3-1.h" diff --git a/src/s/aix4-1.h b/src/s/aix4-1.h index 21d05cb154d..49d866a7d7b 100644 --- a/src/s/aix4-1.h +++ b/src/s/aix4-1.h @@ -1,3 +1,25 @@ +/* +Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #define AIX4_1 #include "aix4.h" diff --git a/src/s/bsd386.h b/src/s/bsd386.h index 30833b5ff9a..a3d0983ca25 100644 --- a/src/s/bsd386.h +++ b/src/s/bsd386.h @@ -1,4 +1,25 @@ -/* s/ file for bsd386 system. */ +/* s/ file for bsd386 system. + + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "bsd4-3.h" diff --git a/src/s/hiuxmpp.h b/src/s/hiuxmpp.h index 04e0bd4f72c..7e05b2e8ca0 100644 --- a/src/s/hiuxmpp.h +++ b/src/s/hiuxmpp.h @@ -1,4 +1,25 @@ -/* System description file for HI-UX. */ +/* System description file for HI-UX. + +Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #define BSD 198911 /* system version (year & month) */ #define DBL_DIG 15 /* same as the definition of <float.h> */ diff --git a/src/s/hiuxwe2.h b/src/s/hiuxwe2.h index 004ddd95043..68973d19cd3 100644 --- a/src/s/hiuxwe2.h +++ b/src/s/hiuxwe2.h @@ -1,4 +1,25 @@ -/* System description file for HI-UX. */ +/* System description file for HI-UX. + +Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #define BSD 198911 /* system version (year & month) */ #define DBL_DIG 15 /* same as the definition of <float.h> */ diff --git a/src/s/hpux10.h b/src/s/hpux10.h index 3612cfe0027..8f9e87a67a1 100644 --- a/src/s/hpux10.h +++ b/src/s/hpux10.h @@ -1,3 +1,25 @@ +/* +Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "hpux9shr.h" #define HPUX10 diff --git a/src/s/hpux8.h b/src/s/hpux8.h index e73c630e825..d8d1bd368bb 100644 --- a/src/s/hpux8.h +++ b/src/s/hpux8.h @@ -1,8 +1,31 @@ /* system description file for hpux version 8. - This contains changes that were suggested "for the hp700". - They were not needed for the 800. - Our conjecture that they are needed for hpux version 8, - which is what runs on the 700. */ + + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. + +Commentary: + +This contains changes that were suggested "for the hp700". +They were not needed for the 800. +Our conjecture that they are needed for hpux version 8, +which is what runs on the 700. */ #define HPUX8 diff --git a/src/s/hpux9.h b/src/s/hpux9.h index 7562c6ae7ef..d34c56c345b 100644 --- a/src/s/hpux9.h +++ b/src/s/hpux9.h @@ -1,4 +1,25 @@ -/* System description file for hpux version 9. */ +/* System description file for hpux version 9. + + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "hpux8.h" diff --git a/src/s/irix4-0.h b/src/s/irix4-0.h index 215cbdc32de..6fbe2478966 100644 --- a/src/s/irix4-0.h +++ b/src/s/irix4-0.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 4.0 + + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "irix3-3.h" #define USG5_3 diff --git a/src/s/irix5-0.h b/src/s/irix5-0.h index 91017fb56d2..a932e315784 100644 --- a/src/s/irix5-0.h +++ b/src/s/irix5-0.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 5.0. + + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "usg5-4.h" #define IRIX5 diff --git a/src/s/irix6-0.h b/src/s/irix6-0.h index e60120d3f6a..bc24474ba73 100644 --- a/src/s/irix6-0.h +++ b/src/s/irix6-0.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.0. + +Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "irix5-0.h" /* Irix 6 tries to do 64 bits, but doesn't do it fully, diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 9df3e0a2ef6..9a53e16257e 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on Silicon Graphics Irix system 6.5. + +Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #define IRIX6_5 /* used in m/iris4d */ #include "irix5-0.h" diff --git a/src/s/isc2-2.h b/src/s/isc2-2.h index 88f216b77d8..3d456570709 100644 --- a/src/s/isc2-2.h +++ b/src/s/isc2-2.h @@ -1,5 +1,25 @@ -/* system description file for Interactive (ISC) Unix version 2.2 on - the 386. */ +/* system description file for Interactive (ISC) Unix version 2.2 on the 386. + + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "usg5-3.h" diff --git a/src/s/isc3-0.h b/src/s/isc3-0.h index bbd4e8609d1..6b7d20a37d0 100644 --- a/src/s/isc3-0.h +++ b/src/s/isc3-0.h @@ -1,4 +1,25 @@ -/* s- file for Interactive (ISC) Unix version 3.0 on the 386. */ +/* s- file for Interactive (ISC) Unix version 3.0 on the 386. + +Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "isc2-2.h" diff --git a/src/s/netbsd.h b/src/s/netbsd.h index c4bfddfbe5b..5fab025ae2a 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -1,4 +1,25 @@ -/* s/ file for netbsd system. */ +/* s/ file for netbsd system. + + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + /* Get most of the stuff from bsd4.3 */ #include "bsd4-3.h" diff --git a/src/s/osf1.h b/src/s/osf1.h index 61ac04c5f1f..04670b3d9a5 100644 --- a/src/s/osf1.h +++ b/src/s/osf1.h @@ -1,3 +1,25 @@ +/* Definitions file for GNU Emacs running on osf1. + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "bsd4-3.h" /* Identify OSF1 for the m- files. */ diff --git a/src/s/ptx4.h b/src/s/ptx4.h index 295cb27d1a3..af59d399664 100644 --- a/src/s/ptx4.h +++ b/src/s/ptx4.h @@ -1,4 +1,25 @@ -/* s/ file for Sequent "ptx 4", which is a modified SVR5.4. */ +/* s/ file for Sequent "ptx 4", which is a modified SVR5.4. + +Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + /* Tell usg5-4.h not to include filio.h. */ #define NO_FILIO_H diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h index b45ec57ef1f..08964d733e2 100644 --- a/src/s/sol2-3.h +++ b/src/s/sol2-3.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on Solaris 2.3. + + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "sol2.h" /* Solaris 2.3 has a bug in XListFontsWithInfo. */ diff --git a/src/s/sol2.h b/src/s/sol2.h index 5f7d781f3e3..711d12123a3 100644 --- a/src/s/sol2.h +++ b/src/s/sol2.h @@ -1,3 +1,25 @@ +/* +Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "usg5-4.h" #define SOLARIS2 diff --git a/src/s/sunos4-0.h b/src/s/sunos4-0.h index d108df68640..a107b609a0c 100644 --- a/src/s/sunos4-0.h +++ b/src/s/sunos4-0.h @@ -1,3 +1,26 @@ +/* Definitions file for GNU Emacs running on sunos 4.0. + + Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + #include "bsd4-2.h" #ifndef SUNOS4 diff --git a/src/s/sunos4shr.h b/src/s/sunos4shr.h index 8427201cda3..aac3340a029 100644 --- a/src/s/sunos4shr.h +++ b/src/s/sunos4shr.h @@ -1,3 +1,25 @@ +/* +Copyright (C) 1994, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + + /* This file permits building Emacs with a shared libc on Sunos 4. To make this work, you must completely replace your C shared library using one of the SunOS 4.1.x jumbo replacement patches from Sun. diff --git a/src/s/umips.h b/src/s/umips.h deleted file mode 100644 index 3d497892c4b..00000000000 --- a/src/s/umips.h +++ /dev/null @@ -1,74 +0,0 @@ -/* Definitions file for GNU Emacs running on Mips operating system. - That system can emulate either BSD or Sys V, in either case with changes. - If BSD_SYSTEM is defined, we assume BSD is being emulated; otherwise, - Sys V. */ - -#ifdef BSD_SYSTEM -#include "bsd4-3.h" - -#define C_SWITCH_SYSTEM -systype bsd43 -#define LD_SWITCH_SYSTEM -systype bsd43 -#define LIBS_SYSTEM -lmld -#define LIBS_DEBUG -#define START_FILES pre-crt0.o /lib/crt1.o -#define LIB_STANDARD -lc /usr/lib/crtn.o - -#define COFF -#define TERMINFO -#undef MAIL_USE_FLOCK /* Someone should check this. */ -#undef HAVE_UNION_WAIT - -#else /* not BSD_SYSTEM */ - -#include "usg5-2-2.h" - -#define LIBS_SYSTEM -lmld -#define LIBS_DEBUG -#define START_FILES pre-crt0.o /usr/lib/crt1.o -#define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o -/* #define LIBS_TERMCAP -lcurses */ - -#define C_SWITCH_SYSTEM -I/usr/include/bsd - -/* Cancel certain parts of standard sysV support. */ -#undef NONSYSTEM_DIR_LIBRARY -#define SYSV_SYSTEM_DIR -#undef static - -/* Don't try to use SIGIO or FIONREAD even though they are defined. */ -#define BROKEN_SIGIO -#define BROKEN_FIONREAD - -/* Describe special kernel features. */ - -#define HAVE_SYSVIPC - -#if defined(emacs) -#include <bsd/sys/time.h> -#endif - -/* The `select' in the system won't work for pipes, - so don't use it. */ -#define BROKEN_SELECT - -#define HAVE_DUP2 - -#define HAVE_PTYS -#define HAVE_SOCKETS -/* #define BSTRING Supposedly removed. */ - -#undef NOMULTIPLEJOBS - -#define CLASH_DETECTION - -#define utimes utime /* Someone should check this. */ -/* ??? */ -#define IRIS - -#endif /* not BSD_SYSTEM */ - -/* High order bit must be stripped off nlist return values */ -#define FIXUP_KERNEL_SYMBOL_ADDR(NL) (NL)[0].n_value &= 0x7fffffff; - -/* arch-tag: 9b816c7d-6ee2-40d9-b6dc-42c0aeccfbec - (do not change this comment) */ diff --git a/src/s/usg5-4-2.h b/src/s/usg5-4-2.h index 8b11bc54eae..56b2a345814 100644 --- a/src/s/usg5-4-2.h +++ b/src/s/usg5-4-2.h @@ -1,4 +1,25 @@ -/* s/ file for System V release 4.2. */ +/* s/ file for System V release 4.2. + + Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2007 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ + #include "usg5-4.h" diff --git a/src/w32.c b/src/w32.c index 87ae9d9f8fd..9ad82c7a231 100644 --- a/src/w32.c +++ b/src/w32.c @@ -32,6 +32,7 @@ Boston, MA 02110-1301, USA. #include <sys/file.h> #include <sys/time.h> #include <sys/utime.h> +#include <mbstring.h> /* for _mbspbrk */ /* must include CRT headers *before* config.h */ @@ -739,7 +740,7 @@ get_long_basename (char * name, char * buf, int size) int len = 0; /* must be valid filename, no wild cards or other invalid characters */ - if (strpbrk (name, "*?|<>\"")) + if (_mbspbrk (name, "*?|<>\"")) return 0; dir_handle = FindFirstFile (name, &find_data); @@ -814,7 +815,7 @@ is_unc_volume (const char *filename) if (!IS_DIRECTORY_SEP (ptr[0]) || !IS_DIRECTORY_SEP (ptr[1]) || !ptr[2]) return 0; - if (strpbrk (ptr + 2, "*?|<>\"\\/")) + if (_mbspbrk (ptr + 2, "*?|<>\"\\/")) return 0; return 1; @@ -2386,8 +2387,12 @@ stat (const char * path, struct stat * buf) } name = (char *) map_w32_filename (path, &path); - /* must be valid filename, no wild cards or other invalid characters */ - if (strpbrk (name, "*?|<>\"")) + /* Must be valid filename, no wild cards or other invalid + characters. We use _mbspbrk to support multibyte strings that + might look to strpbrk as if they included literal *, ?, and other + characters mentioned below that are disallowed by Windows + filesystems. */ + if (_mbspbrk (name, "*?|<>\"")) { errno = ENOENT; return -1; diff --git a/src/w32fns.c b/src/w32fns.c index 885ade0e4bb..e4961a6bfbe 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -297,6 +297,10 @@ extern int w32_use_visible_system_caret; static HWND w32_visible_system_caret_hwnd; +/* From w32menu.c */ +extern HMENU current_popup_menu; +static int menubar_in_use = 0; + /* Error if we are not connected to MS-Windows. */ void @@ -3411,11 +3415,14 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) KillTimer (hwnd, menu_free_timer); menu_free_timer = 0; f = x_window_to_frame (dpyinfo, hwnd); - if (!f->output_data.w32->menu_command_in_progress) + /* If a popup menu is active, don't wipe its strings. */ + if (menubar_in_use + && current_popup_menu == NULL) { /* Free memory used by owner-drawn and help-echo strings. */ w32_free_menu_strings (hwnd); f->output_data.w32->menubar_active = 0; + menubar_in_use = 0; } } return 0; @@ -3467,16 +3474,21 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) if (find_deferred_msg (hwnd, msg) != NULL) abort (); + menubar_in_use = 1; + return send_deferred_msg (&msg_buf, hwnd, msg, wParam, lParam); } case WM_EXITMENULOOP: f = x_window_to_frame (dpyinfo, hwnd); - /* If a menu command is not already in progress, check again - after a short delay, since Windows often (always?) sends the - WM_EXITMENULOOP before the corresponding WM_COMMAND message. */ - if (f && !f->output_data.w32->menu_command_in_progress) + /* If a menu is still active, check again after a short delay, + since Windows often (always?) sends the WM_EXITMENULOOP + before the corresponding WM_COMMAND message. + Don't do this if a popup menu is active, since it is only + menubar menus that require cleaning up in this way. + */ + if (f && menubar_in_use && current_popup_menu == NULL) menu_free_timer = SetTimer (hwnd, MENU_FREE_ID, MENU_FREE_DELAY, NULL); goto dflt; @@ -3631,10 +3643,10 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) } goto command; case WM_COMMAND: + menubar_in_use = 0; f = x_window_to_frame (dpyinfo, hwnd); if (f && HIWORD (wParam) == 0) { - f->output_data.w32->menu_command_in_progress = 1; if (menu_free_timer) { KillTimer (hwnd, menu_free_timer); diff --git a/src/w32menu.c b/src/w32menu.c index a3bd82a0d7d..ba29c6ae433 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -129,7 +129,7 @@ typedef struct _widget_value #define FALSE 0 #endif /* no TRUE */ -static HMENU current_popup_menu; +HMENU current_popup_menu; void syms_of_w32menu (); void globals_of_w32menu (); @@ -835,7 +835,6 @@ cached information about equivalent key sequences. */) UNBLOCK_INPUT; discard_menu_items (); - w32_free_menu_strings (FRAME_W32_WINDOW (f)); #endif /* HAVE_MENUS */ @@ -1067,11 +1066,10 @@ menubar_selection_callback (FRAME_PTR f, void * client_data) buf.kind = MENU_BAR_EVENT; buf.frame_or_window = frame; buf.arg = entry; - kbd_buffer_store_event (&buf); - /* Free memory used by owner-drawn and help-echo strings. */ w32_free_menu_strings (FRAME_W32_WINDOW (f)); - f->output_data.w32->menu_command_in_progress = 0; + kbd_buffer_store_event (&buf); + f->output_data.w32->menubar_active = 0; return; } @@ -1080,7 +1078,6 @@ menubar_selection_callback (FRAME_PTR f, void * client_data) } /* Free memory used by owner-drawn and help-echo strings. */ w32_free_menu_strings (FRAME_W32_WINDOW (f)); - f->output_data.w32->menu_command_in_progress = 0; f->output_data.w32->menubar_active = 0; } @@ -1938,6 +1935,10 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error) DestroyMenu (menu); + /* Free the owner-drawn and help-echo menu strings. */ + w32_free_menu_strings (FRAME_W32_WINDOW (f)); + f->output_data.w32->menubar_active = 0; + /* Find the selected item, and its pane, to return the proper value. */ if (menu_item_selection != 0) diff --git a/src/w32term.c b/src/w32term.c index 8044e23d5ae..e7118caa0d7 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1,6 +1,7 @@ /* Implementation of GUI terminal on the Microsoft W32 API. - Copyright (C) 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003, 2004, 2005, + 2006, 2007 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -3473,25 +3474,51 @@ w32_set_scroll_bar_thumb (bar, portion, position, whole) int portion, position, whole; { Window w = SCROLL_BAR_W32_WINDOW (bar); - double range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height)); + /* We use the whole scroll-bar height in the calculations below, to + avoid strange effects like scrolling backwards when just clicking + on the handle (without moving it). */ + double range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height)) + + VERTICAL_SCROLL_BAR_MIN_HANDLE; int sb_page, sb_pos; BOOL draggingp = !NILP (bar->dragging) ? TRUE : FALSE; SCROLLINFO si; + /* We used to change the nPage setting while dragging the handle, + but that had very strange effects (such as scrolling backwards + while dragging downwards). + + Now, we don't change the nPage setting while dragging unless we + get near to the end of the buffer, in which case we often have to + resize the handle to "go all the way". */ + + if (draggingp) + { + int near_bottom_p; + BLOCK_INPUT; + si.cbSize = sizeof (si); + si.fMask = SIF_POS | SIF_PAGE; + GetScrollInfo(w, SB_CTL, &si); + near_bottom_p = si.nPos + si.nPage >= range; + UNBLOCK_INPUT; + if (!near_bottom_p) + return; + } + if (whole) { /* Position scroll bar at rock bottom if the bottom of the buffer is visible. This avoids shinking the thumb away to nothing if it is held at the bottom of the buffer. */ - if (position + portion >= whole) - { - sb_page = range * (whole - position) / whole - + VERTICAL_SCROLL_BAR_MIN_HANDLE; - sb_pos = range; - } - - sb_page = portion * range / whole + VERTICAL_SCROLL_BAR_MIN_HANDLE; - sb_pos = position * range / whole; + if (position + portion >= whole && !draggingp) + { + sb_page = range * (whole - position) / whole; + sb_pos = range; + } + else + { + sb_pos = position * range / whole; + sb_page = (min (portion, (whole - position)) * range) / whole; + } } else { @@ -3499,19 +3526,16 @@ w32_set_scroll_bar_thumb (bar, portion, position, whole) sb_pos = 0; } + sb_page = max (sb_page, VERTICAL_SCROLL_BAR_MIN_HANDLE); + BLOCK_INPUT; si.cbSize = sizeof (si); - /* Only update page size if currently dragging, to reduce - flicker effects. */ - if (draggingp) - si.fMask = SIF_PAGE; - else - si.fMask = SIF_PAGE | SIF_POS; + si.fMask = SIF_PAGE | SIF_POS; si.nPage = sb_page; si.nPos = sb_pos; - SetScrollInfo (w, SB_CTL, &si, !draggingp); + SetScrollInfo (w, SB_CTL, &si, TRUE); UNBLOCK_INPUT; } diff --git a/src/w32term.h b/src/w32term.h index ac312c84a19..ceb4f4e4b07 100644 --- a/src/w32term.h +++ b/src/w32term.h @@ -378,9 +378,6 @@ struct w32_output /* Nonzero means menubar is currently active. */ char menubar_active; - /* Nonzero means a menu command is being processed. */ - char menu_command_in_progress; - /* Nonzero means menubar is about to become active, but should be brought up to date first. */ volatile char pending_menu_activation; diff --git a/src/window.c b/src/window.c index 57a818eeee6..1554ef7ec3b 100644 --- a/src/window.c +++ b/src/window.c @@ -539,7 +539,8 @@ WINDOW defaults to the selected window. */) } DEFUN ("window-height", Fwindow_height, Swindow_height, 0, 1, 0, - doc: /* Return the number of lines in WINDOW (including its mode line). */) + doc: /* Return the number of lines in WINDOW (including its mode line). +WINDOW defaults to the selected window. */) (window) Lisp_Object window; { @@ -558,7 +559,8 @@ use (let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */) } DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, - doc: /* Return the number of columns by which WINDOW is scrolled from left margin. */) + doc: /* Return the number of columns by which WINDOW is scrolled from left margin. +WINDOW defaults to the selected window. */) (window) Lisp_Object window; { @@ -591,6 +593,7 @@ window so that the location of point moves off-window. */) DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger, Swindow_redisplay_end_trigger, 0, 1, 0, doc: /* Return WINDOW's redisplay end trigger value. +WINDOW defaults to the selected window. See `set-window-redisplay-end-trigger' for more information. */) (window) Lisp_Object window; @@ -1113,6 +1116,8 @@ column 0. */) DEFUN ("window-point", Fwindow_point, Swindow_point, 0, 1, 0, doc: /* Return current value of point in WINDOW. +WINDOW defaults to the selected window. + For a nonselected window, this is the value point would have if that window were selected. @@ -1134,6 +1139,7 @@ But that is hard to define. */) DEFUN ("window-start", Fwindow_start, Swindow_start, 0, 1, 0, doc: /* Return position at which display currently starts in WINDOW. +WINDOW defaults to the selected window. This is updated by redisplay or by calling `set-window-start'. */) (window) Lisp_Object window; @@ -1154,6 +1160,7 @@ have been if redisplay had finished, do this: DEFUN ("window-end", Fwindow_end, Swindow_end, 0, 2, 0, doc: /* Return position at which display currently ends in WINDOW. +WINDOW defaults to the selected window. This is updated by redisplay, when it runs to completion. Simply changing the buffer text or setting `window-start' does not update this value. @@ -1304,7 +1311,8 @@ non-nil means yes. */) DEFUN ("window-display-table", Fwindow_display_table, Swindow_display_table, 0, 1, 0, - doc: /* Return the display-table that WINDOW is using. */) + doc: /* Return the display-table that WINDOW is using. +WINDOW defaults to the selected window. */) (window) Lisp_Object window; { @@ -5898,6 +5906,7 @@ and redisplay normally--don't erase and redraw the frame. */) DEFUN ("window-text-height", Fwindow_text_height, Swindow_text_height, 0, 1, 0, doc: /* Return the height in lines of the text display area of WINDOW. +WINDOW defaults to the selected window. This doesn't include the mode-line (or header-line if any) or any partial-height lines in the text display area. */) (window) diff --git a/src/xfaces.c b/src/xfaces.c index 52252001137..ca55b82a9b2 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -5365,13 +5365,11 @@ If FRAME is unspecified or nil, the current frame is used. */) CHECK_LIVE_FRAME (frame); f = XFRAME (frame); - if ((CONSP (color1) && !parse_rgb_list (color1, &cdef1)) - || !STRINGP (color1) - || !defined_color (f, SDATA (color1), &cdef1, 0)) + if (!(CONSP (color1) && parse_rgb_list (color1, &cdef1)) + && !(STRINGP (color1) && defined_color (f, SDATA (color1), &cdef1, 0))) signal_error ("Invalid color", color1); - if ((CONSP (color2) && !parse_rgb_list (color2, &cdef2)) - || !STRINGP (color2) - || !defined_color (f, SDATA (color2), &cdef2, 0)) + if (!(CONSP (color2) && parse_rgb_list (color2, &cdef2)) + && !(STRINGP (color2) && defined_color (f, SDATA (color2), &cdef2, 0))) signal_error ("Invalid color", color2); return make_number (color_distance (&cdef1, &cdef2)); diff --git a/src/xterm.c b/src/xterm.c index 5a8d50db072..5810eb14b20 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5292,6 +5292,11 @@ x_scroll_bar_expose (bar, event) x_scroll_bar_set_handle (bar, XINT (bar->start), XINT (bar->end), 1); + /* Switch to scroll bar foreground color. */ + if (f->output_data.x->scroll_bar_foreground_pixel != -1) + XSetForeground (FRAME_X_DISPLAY (f), gc, + f->output_data.x->scroll_bar_foreground_pixel); + /* Draw a one-pixel border just inside the edges of the scroll bar. */ XDrawRectangle (FRAME_X_DISPLAY (f), w, gc, @@ -5300,7 +5305,12 @@ x_scroll_bar_expose (bar, event) XINT (bar->width) - 1 - width_trim - width_trim, XINT (bar->height) - 1); - UNBLOCK_INPUT; + /* Restore the foreground color of the GC if we changed it above. */ + if (f->output_data.x->scroll_bar_foreground_pixel != -1) + XSetForeground (FRAME_X_DISPLAY (f), gc, + f->output_data.x->foreground_pixel); + + UNBLOCK_INPUT; } #endif /* not USE_TOOLKIT_SCROLL_BARS */ @@ -8456,6 +8466,11 @@ do_ewmh_fullscreen (f) { int have_net_atom = wm_supports (f, "_NET_WM_STATE"); + /* Some window managers don't say they support _NET_WM_STATE, but they do say + they support _NET_WM_STATE_FULLSCREEN. Try that also. */ + if (!have_net_atom) + have_net_atom = wm_supports (f, "_NET_WM_STATE_FULLSCREEN"); + if (have_net_atom) { Lisp_Object frame; @@ -8482,7 +8497,7 @@ do_ewmh_fullscreen (f) break; } - if (!wm_supports (f, what)) return 0; + if (what != NULL && !wm_supports (f, what)) return 0; Fx_send_client_event (frame, make_number (0), frame, |