aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * frame.h (struct frame): New fields `can_have_scrollbars' andJim Blandy1992-12-241-19/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `has_vertical_scrollbars'. (FRAME_CAN_HAVE_SCROLLBARS, FRAME_HAS_VERTICAL_SCROLLBARS): New accessors, for both the MULTI_FRAME and non-MULTI_FRAME. (VERTICAL_SCROLLBAR_WIDTH, WINDOW_VERTICAL_SCROLLBAR, WINDOW_VERTICAL_SCROLLBAR_COLUMN, WINDOW_VERTICAL_SCROLLBAR_HEIGHT): New macros. * window.h (struct window): New field `vertical_scrollbar'. * 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. * 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 scrollbars. (mouse_position_hook): Document new args. (set_vertical_scrollbar_hook, condemn_scrollbars_hook, redeem_scrollbar_hook, judge_scrollbars_hook): New hooks. * termhooks.h: Declare and document them. (enum scrollbar_part): New type. (struct input_event): Describe the new form of the scrollbar_click event type. Change `part' from a Lisp_Object to an enum scrollbar_part. Add a new field `scrollbar'. * keyboard.c (kbd_buffer_get_event): Pass appropriate new parameters to *mouse_position_hook, and make_lispy_movement. * xfns.c (x_set_vertical_scrollbar): New function. (x_figure_window_size): Use new macros to calculate frame size. (Fx_create_frame): Note that X Windows frames do support scroll bars. Default to "yes". * 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 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_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. (x_make_frame_visible): Use the frame accessor FRAME_HAS_VERTICAL_SCROLLBARS to decide if we need to map the frame's subwindows as well. (XTread_socket): Use new size-calculation macros from xterm.h when processing ConfigureNotify events. (x_wm_set_size_hint): Use PIXEL_TO_CHAR_WIDTH and PIXEL_TO_CHAR_HEIGHT macros. * ymakefile (xdisp.o): This now depends on termhooks.h. (xterm.o): This now depends on window.h. * floatfns.c (Flog): Fix unescaped newline in string. * frame.c (Fnext_frame): Same. * textprop.c (Fprevious_single_property_change): Same. (syms_of_textprop): Same, for DEFVAR for `interval_balance_threshold'. Change the meaning of focus redirection to make switching windows work properly. Fredirect_frame_focus has the details. * frame.h (focus_frame): Doc fix. [not MULTI_FRAME] (FRAME_FOCUS_FRAME): Make this Qnil, which indicates no focus redirection, instead of zero, which is selected_frame. * frame.c (make_frame): Initialize f->focus_frame to Qnil, rather than making it point to frame itself. (Fselect_frame): If changing the selected frame from FOO to BAR, make all redirections to FOO shift to BAR as well. Doc fix. (Fredirect_frame_focus): Doc fix. Accept nil as a valid redirection, not just as a default for FRAME. (Fframe_focus): Doc fix. * keyboard.c (kbd_buffer_store_event, kbd_buffer_get_event): Deal with focus redirections being nil. * xterm.c (XTframe_rehighlight): Doc fix. Deal with focus redirections being nil. It's a pain to remember that you can't assign to FRAME->visible. Let's change all references to the `visible' member of struct frame to use the accessor macros, and then write a setter for the `visible' field that does the right thing. * frame.h (FRAME_VISIBLE_P): Make this not an l-value. (FRAME_SET_VISIBLE): New macro. * frame.c (make_terminal_frame, Fdelete_frame): Use FRAME_SET_VISIBLE. (Fframe_visible_p, Fvisible_frame_list): Use FRAME_VISIBLE_P and FRAME_ICONIFIED_P. * dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and FRAME_GARBAGED_P accessors. * xdisp.c (redisplay): Use the FRAME_VISIBLE_P accessor. * xfns.c (x_set_foreground_color, x_set_background_color, x_set_cursor_color, x_set_border_pixel, x_set_icon_type): Use the FRAME_VISIBLE_P accessor. (Fx_create_frame): Use FRAME_SET_VISIBILITY. * xterm.c (clear_cursor, x_display_bar_cursor, x_display_box_cursor): Use FRAME_SET_VISIBILITY.
* * dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P andJim Blandy1992-12-241-1/+1
| | | | | | FRAME_GARBAGED_P accessors. * dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and FRAME_GARBAGED_P accessors.
* * buffer.c (Frename_buffer): Set update_mode_lines.Jim Blandy1992-12-241-0/+5
|
* * ymakefile (all, xemacs): We build an executable called `emacs' now,Jim Blandy1992-12-241-5/+5
| | | | | not `xemacs'. * Makefile.in (distclean, xemacs, doxemacs): Same.
* (tagsfiles): New variable.Roland McGrath1992-12-211-3/+6
| | | | | (TAGS): Depend on $(tagsfiles); use that in cmds. (tags): Separate phony rule; depends on TAGS.
* (Fcall_interactively): For `s', use Fread_string.Richard M. Stallman1992-12-211-1/+1
|
* * frame.c (make_terminal_frame): Don't forget to set theJim Blandy1992-12-181-0/+1
| | | | `async_visible' flag of the new frame.
* *** empty log message ***David J. MacKenzie1992-12-151-1/+1
|
* *** empty log message ***Jim Blandy1992-12-141-8/+10
|
* * window.c (Fset_window_configuration): If we're restoring theJim Blandy1992-12-121-135/+147
| | | | | | | | | | | | | configuration of a dead frame, don't bother rebuilding its window tree, restoring its focus redirection, or temporarily resizing it to fit the saved window configuration. If the frame which was selected when the configuration was captured is now dead, don't try to select it. * frame.c (Fdelete_frame): Delete all the windows in the frame's window tree, using delete_all_subwindows. * window.c (delete_all_subwindows): Don't make this static anymore.
* * search.c (Fskip_chars_forward, Fskip_chars_backward): Return theJim Blandy1992-12-121-18/+27
| | | | | distance traveled. (skip_chars): Return the distance traveled, as a Lisp_Object.
* Give subprocess creation a way to find a valid current directoryJim Blandy1992-12-121-12/+30
| | | | | | | | | | | | | | | | for subprocesses when the buffer's default-directory is a handled name. * fileio.c (Funhandled_file_name_directory): New function. (Qunhandled_file_name_directory): New file-name-handler operation. (syms_of_fileio): Defsubr Sunhandled_file_name_directory, and initialize and staticpro Qunhandled_file_name_directory. * callproc.c (Fcall_process): Call Funhandled_file_name_directory on the buffer's default directory. Do it earlier in the function so there's less to GCPRO. * process.c (create_process): Don't check the validity of the buffer's default directory here... (Fstart_process): Instead, do it here; if we call Funhandled_file_name_directory here, there's less GCPROing to do.
* * macros.c (Fend_kbd_macro): Don't use XFASTINT to check if arg isJim Blandy1992-12-121-2/+4
| | | | | | | negative; XFASTINT only works on values known to be positive. (Fexecute_kbd_macro): Check QUIT in the repetition loop. If the macro is null, no characters are actually being read, so this matters.
* * fileio.c (find_file_handler): Rename this toJim Blandy1992-12-122-5/+6
| | | | | | | | | | Ffind_file_name_handler, and make it visible to lisp. Add a QUIT to the loop which scans file-name-handler-alist. All uses changed. (syms_of_fileio): Mention this new function in the docstring for Vfile_name_handler_alist. defsubr Sfind_file_name_handler. * lisp.h (Ffind_file_name_handler): Added extern declaration. * dired.c: All uses of find_file_handler changed here too.
* * frame.c (Fdelete_frame): Delete all the windows in the frame'sJim Blandy1992-12-121-0/+5
| | | | | | window tree, using delete_all_subwindows. * window.c (delete_all_subwindows): Don't make this static anymore.
* Give subprocess creation a way to find a valid current directoryJim Blandy1992-12-121-37/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for subprocesses when the buffer's default-directory is a handled name. * fileio.c (Funhandled_file_name_directory): New function. (Qunhandled_file_name_directory): New file-name-handler operation. (syms_of_fileio): Defsubr Sunhandled_file_name_directory, and initialize and staticpro Qunhandled_file_name_directory. * callproc.c (Fcall_process): Call Funhandled_file_name_directory on the buffer's default directory. Do it earlier in the function so there's less to GCPRO. * process.c (create_process): Don't check the validity of the buffer's default directory here... (Fstart_process): Instead, do it here; if we call Funhandled_file_name_directory here, there's less GCPROing to do. * fileio.c (find_file_handler): Rename this to Ffind_file_name_handler, and make it visible to lisp. Add a QUIT to the loop which scans file-name-handler-alist. All uses changed. (syms_of_fileio): Mention this new function in the docstring for Vfile_name_handler_alist. defsubr Sfind_file_name_handler. * lisp.h (Ffind_file_name_handler): Added extern declaration. * dired.c: All uses of find_file_handler changed here too. * fileio.c (syms_of_fileio): Add staticpros for Qexpand_file_name, Qdirectory_file_name, Qfile_name_directory, Qfile_name_nondirectory, Qfile_name_as_directory.
* Give subprocess creation a way to find a valid current directoryJim Blandy1992-12-121-11/+29
| | | | | | | | | | | | | | | | | | | for subprocesses when the buffer's default-directory is a handled name. * fileio.c (Funhandled_file_name_directory): New function. (Qunhandled_file_name_directory): New file-name-handler operation. (syms_of_fileio): Defsubr Sunhandled_file_name_directory, and initialize and staticpro Qunhandled_file_name_directory. * callproc.c (Fcall_process): Call Funhandled_file_name_directory on the buffer's default directory. Do it earlier in the function so there's less to GCPRO. * process.c (create_process): Don't check the validity of the buffer's default directory here... (Fstart_process): Instead, do it here; if we call Funhandled_file_name_directory here, there's less GCPROing to do. * callproc.c (Fcall_process_region): Return the value returned by Fcall_process.
* * Makefile.in (distclean): Don't delete machine.h or system.h;Jim Blandy1992-12-121-3/+13
| | | | | | | | | | | | | | | | | | they don't exist anymore. * Makefile.in (distclean): Don't delete autosave or backup files. (extraclean): New target; like distclean, but delete autosave and backup files too. * Makefile.in (srcdir): New variable, not fully implemented. (xmakefile): Turn -g and -O in CFLAGS into C_DEBUG_SWITCH and C_OPTIMIZE_SWITCH in C_SWITCH_SITE's definition. Delete junk.cpp when done. * ymakefile (archlib): Variable definition deleted. Run programs from ../lib-src directly, or use ${archlibdir}. (${etc}DOC): Run make-docfile from ${libsrc}, not ${archlib}. (${archlib}make-docfile, ${archlib}emacstool): Use ${libsrc}, not ${archlib}.
* *** empty log message ***Jim Blandy1992-12-121-15/+7
|
* *** empty log message ***Jim Meyering1992-12-121-19/+38
|
* *** empty log message ***Jim Blandy1992-12-081-1/+1
|
* * xterm.c (XTread_socket): When we get MapNotify, UnmapNotify,Jim Blandy1992-12-061-20/+20
| | | | | | | | | 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): Test and set f->async_visible and f->async_iconified, not f->visible or f->async_iconified.
* * xfns.c (Fx_create_frame): Initialize f->async_visible too.Jim Blandy1992-12-061-1/+2
|
* * xdisp.c (redisplay): Call FRAME_SAMPLE_VISIBILITY to set theJim Blandy1992-12-061-18/+18
| | | | | | | | | | | | | | | | | visible and iconified flags appropriately for each frame. (message1): Call FRAME_SAMPLE_VISIBILITY to set the visible and iconified flags for the minibuffer frame. * xdisp.c (redisplay): Use FOR_EACH_FRAME to apply redisplay_windows to the root window of each frame. This makes a #ifdef MULTI_FRAME unneeded, but it also means we recompute buffer_shared from scratch even on non-MULTI_FRAME configurations. Don't skip elements of Vframe_list that aren't frames; go ahead and crash here. * xdisp.c (redisplay): Remove #ifdef MULTI_FRAME around the code which updates separate minibuffer frames specially; there's nothing there that won't work on a single-frame configuration.
* Tue Dec 1 23:42:25 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)Jim Blandy1992-12-061-1/+2
| | | | * process.c (wait_reading_process_input): Doc fix.
* * keyboard.c (kbd_store_ptr): Declare this to be volatile, ifJim Blandy1992-12-061-1/+7
| | | | | | __STDC__ is #defined. (Fdiscard_input): Use cast to keep GCC from complaining about the assignment of kbd_store_ptr to kbd_fetch_ptr.
* * frame.h (struct frame): New fields called async_visible andJim Blandy1992-12-061-5/+50
| | | | | | async_iconified. (FRAME_SAMPLE_VISIBILITY): New macro, with MULTI_FRAME and non-MULTI_FRAME definitions.
* * frame.c (make_frame): Initialize async_visible andJim Blandy1992-12-061-0/+2
| | | | async_iconified properly.
* * doc.c (store_function_docstring): New function, made from partJim Blandy1992-12-061-35/+50
| | | | | | of Fsnarf_documentation, which handles docstrings for macros properly. (Fsnarf_documentation): Call store_function_docstring.
* * dispnew.c: Remove dyked-out copy of safe_bcopy.Jim Blandy1992-12-061-30/+0
|
* * dispextern.h (struct frame_glyphs): Doc fix.Jim Blandy1992-12-061-0/+1
|
* src/ * data.c (indirect_function): Delete unused argument ERROR.Jim Blandy1992-12-061-1/+1
|
* Now partially conforms with GNU coding standards. I'm only checkingJim Blandy1992-12-061-3/+12
| | | | it in to RCS so I can check my changes in with FSF Cambridge.
* *** empty log message ***David J. MacKenzie1992-12-011-1/+4
|
* Copy changes from 18.59:Richard M. Stallman1992-11-261-29/+69
| | | | | | | | | | | (NeXT): Defined. (BIG_ENDIAN): Define only if __BIG_ENDIAN__. (m68000, COMPILER_REGISTER_BUG): Defs deleted. (SIGN_EXTEND_CHAR, LIB_X11_LIB, NO_T_CHARS_DEFINES, UNEXEC): Defined. (LIBS_DEBUG, LIB_GCC, C_SWITCH_MACHINE, ORDINARY_LINK): Defined. (TEXT_START, TEXT_END, DATA_END, LD_SWITCH_MACHINE): Defined. (KERNEL_FILE): #undef it. (environ): Define as _environ.
* *** empty log message ***David J. MacKenzie1992-11-261-1/+3
|
* *** empty log message ***David J. MacKenzie1992-11-241-1/+1
|
* * Makefile.in (clean): Remove prefix-args.Jim Blandy1992-11-241-1/+1
|
* (LD_SWITCH_SYSTEM): Make alternate version for GCC.Richard M. Stallman1992-11-211-1/+5
|
* *** empty log message ***Karl Berry1992-11-212-79/+115
|
* * m/sparc.h: Don't include <sys/param.h> here; that screws up theJim Blandy1992-11-201-4/+0
| | | | | | xmakefile. Instead, include it in getloadavg.c, which is the only place that uses LOAD_AVE_CVT, which is the only reason <sys/param.h> was here in the first place.
* * xselect.c (Fx_get_cut_buffer): Correct check for buf_num inJim Blandy1992-11-161-4/+4
| | | | | | | range. * xselect.c (Fx_get_cut_buffer, Fx_set_cut_buffer): Fix error message format; use NUM_CUT_BUFFERS instead of literal 7.
* * xfns.c (unread_command_char): Change name in extern declarationJim Blandy1992-11-161-4/+4
| | | | to unread_command_event.
* * xdisp.c (display_string): Use w's buffer's value ofJim Blandy1992-11-161-1/+1
| | | | | tab-width to display the string, instead of the current buffer's, which could be anything.
* * vmspaths.h: New version from Roland Roberts.Jim Blandy1992-11-161-3/+20
|
* * undo.c (Fprimitive_undo): Remove whitespace in front of #ifdefJim Blandy1992-11-161-2/+2
| | | | and #endif.
* * systty.h: Doc fix.Jim Blandy1992-11-161-8/+43
| | | | | * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c: Added VMS changes from Roland Roberts.
* * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:Jim Blandy1992-11-164-77/+54
| | | | Added VMS changes from Roland Roberts.
* * ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC.Jim Blandy1992-11-161-21/+23
| | | | | | | | (free_bloc): This can now be simplified. * ralloc.c (r_alloc_sbrk): When we allocate new space for the malloc heap, zero it out even if we don't have any blocs in the free list.
* * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:Jim Blandy1992-11-161-27/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added VMS changes from Roland Roberts. * process.c (read_process_output): Save, widen, insert the process output, and then restore the restriction if inserting text outside the visible region. * process.c (Fstart_process): Establish an unwind-protect to remove PROC from the process list if an error occurs while starting it. (start_process_unwind): New function to help with that. (create_process): There's no need to explicitly call remove_process if the fork fails; the record_unwind_protect in Fstart_process will take care of it. * process.c (wait_reading_process_input): Test the C preprocessor symbol "ultrix", not "__ultrix__" to see if we should ignore ENOMEM errors from select. * process.c (process_send_signal): On systems which have both the TIOCGETC and TCGETA ioctls, just use the former. * s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS. * process.c (process_send_signal): Put all the code for sending signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS. Decide whether to use the Berkeley-style or SYSV-style ioctls by seeing which ioctl commands are #defined. * process.c (process_send_signal): Doc fix.