1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
emacs/src
Jim Blandy 46a5c4874d * frame.h (struct frame): New fields `can_have_scrollbars' and
`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.

	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.
1992-12-24 06:07:02 +00:00
..
m Copy changes from 18.59: 1992-11-26 18:32:45 +00:00
s (LD_SWITCH_SYSTEM): Make alternate version for GCC. 1992-11-21 22:12:53 +00:00
.gdbinit Added `mips' command. 1992-11-07 05:29:26 +00:00
abbrev.c * abbrev.c (Funexpand_abbrev): Just assign the last abbrev's value 1992-10-31 04:49:31 +00:00
acldef.h entered into RCS 1992-01-13 21:48:03 +00:00
alloc.c * alloc.c: #include "frame.h" unconditionally. frame.h does the 1992-11-07 06:59:38 +00:00
buffer.c * buffer.c (Frename_buffer): Set update_mode_lines. 1992-12-24 06:03:20 +00:00
buffer.h * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c: 1992-11-16 00:54:53 +00:00
bytecode.c * bytecode.c (Fbyte_code): Use EQ to compare string_saved with 1992-10-31 04:52:24 +00:00
callint.c (Fcall_interactively): For `s', use Fread_string. 1992-12-21 05:38:25 +00:00
callproc.c Give subprocess creation a way to find a valid current directory 1992-12-12 15:31:32 +00:00
casefiddle.c * casefiddle.c (operate_on_word): Declare end to be an int, not a 1992-10-31 04:54:35 +00:00
casetab.c * casetab.c (set_case_table): Declare this to be static, and 1992-10-31 04:55:02 +00:00
chpdef.h entered into RCS 1992-01-13 21:48:03 +00:00
cm.c entered into RCS 1992-01-13 21:48:03 +00:00
cm.h entered into RCS 1992-07-14 23:23:55 +00:00
cmds.c (internal_self_insert): Assume Fexpand_abbrev expanded 1992-09-11 23:34:08 +00:00
commands.h * commands.h (unread_command_event): Doc fix. 1992-11-16 00:41:30 +00:00
config.in * config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES, 1992-10-05 19:03:02 +00:00
data.c src/ * data.c (indirect_function): Delete unused argument ERROR. 1992-12-06 22:13:53 +00:00
dired.c * fileio.c (find_file_handler): Rename this to 1992-12-12 15:35:12 +00:00
dispextern.h * dispextern.h (struct frame_glyphs): Doc fix. 1992-12-06 22:15:29 +00:00
dispnew.c * dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and 1992-12-24 06:04:32 +00:00
disptab.h entered into RCS 1992-01-13 21:48:03 +00:00
doc.c * doc.c (store_function_docstring): New function, made from part 1992-12-06 22:16:26 +00:00
doprnt.c entered into RCS 1992-01-13 21:48:03 +00:00
editfns.c * * editfns.c (Fmessage): With no arguments, clear any active 1992-10-17 22:11:56 +00:00
emacs.c * emacs.c (main): Correct spelling of HAVE_X_WINDOW to 1992-10-23 20:40:04 +00:00
environ.c entered into RCS 1990-11-12 20:20:40 +00:00
epaths.in entered into RCS 1992-05-01 06:20:52 +00:00
eval.c * eval.c (Fautoload): Renamed fifth argument TYPE. Document the 1992-11-07 07:00:37 +00:00
fileio.c Give subprocess creation a way to find a valid current directory 1992-12-12 15:32:51 +00:00
filelock.c entered into RCS 1992-06-30 13:55:35 +00:00
floatfns.c * floatfns.c (Flog): Don't forget to declare the BASE argument a 1992-10-31 05:19:58 +00:00
fns.c * fns.c: #include keyboard.h. 1992-10-31 05:20:23 +00:00
frame.c * frame.h (struct frame): New fields `can_have_scrollbars' and 1992-12-24 06:05:56 +00:00
frame.h * frame.h (struct frame): New fields `can_have_scrollbars' and 1992-12-24 06:07:02 +00:00
gnu.h entered into RCS 1992-09-13 11:44:06 +00:00
hftctl.c entered into RCS 1992-02-22 21:15:26 +00:00
indent.c * indent.c (Fmove_to_column): Pass the right number of arguments 1992-09-23 12:45:50 +00:00
indent.h entered into RCS 1992-01-13 21:48:03 +00:00
insdel.c * insdel.c: #include "intervals.h" 1992-10-01 00:56:11 +00:00
intervals.c * intervals.c (traverse_intervals): New parameter `depth'. 1992-10-14 23:12:09 +00:00
intervals.h * intervals.h: Declare `copy_intervals()'. 1992-10-03 00:04:59 +00:00
ioctl.h entered into RCS 1992-01-13 21:48:03 +00:00
keyboard.c * keyboard.c (kbd_store_ptr): Declare this to be volatile, if 1992-12-06 22:18:02 +00:00
keyboard.h * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers, 1992-10-31 05:24:03 +00:00
keymap.c * keymap.c (get_keymap_1): Don't try to autoload OBJECT's function 1992-11-07 07:34:58 +00:00
lastfile.c entered into RCS 1992-01-13 21:48:03 +00:00
line.h entered into RCS 1992-01-13 21:48:03 +00:00
lisp.h * fileio.c (find_file_handler): Rename this to 1992-12-12 15:35:12 +00:00
lread.c * lread.c: #include "keyboard.h". 1992-11-16 00:45:02 +00:00
macros.c * macros.c (Fend_kbd_macro): Don't use XFASTINT to check if arg is 1992-12-12 15:35:41 +00:00
macros.h entered into RCS 1992-01-13 21:48:03 +00:00
Makefile.in * ymakefile (all, xemacs): We build an executable called `emacs' now, 1992-12-24 06:03:04 +00:00
marker.c entered into RCS 1992-01-13 21:48:03 +00:00
mem-limits.h * mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to 1992-11-16 00:45:34 +00:00
minibuf.c * minibuf.c (temp_echo_area_glyphs): Change reference to 1992-11-16 00:46:19 +00:00
mocklisp.c * mocklisp.c (Fml_substr): Put comments around text following #endif. 1992-08-19 06:34:26 +00:00
mocklisp.h entered into RCS 1992-01-13 21:48:03 +00:00
ndir.h entered into RCS 1992-01-13 21:48:03 +00:00
old-ralloc.c entered into RCS 1990-11-12 20:20:40 +00:00
param.h entered into RCS 1992-01-13 21:48:03 +00:00
point.h entered into RCS 1992-01-13 21:48:03 +00:00
pre-crt0.c entered into RCS 1992-01-13 21:48:03 +00:00
print.c * print.c (print): Cast the frame's address to an integer before 1992-10-31 05:27:05 +00:00
process.c Give subprocess creation a way to find a valid current directory 1992-12-12 15:36:50 +00:00
process.h entered into RCS 1992-02-11 02:10:29 +00:00
puresize.h entered into RCS 1992-01-13 21:48:03 +00:00
ralloc.c * ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC. 1992-11-16 00:54:08 +00:00
regex.c *** empty log message *** 1992-12-14 02:28:29 +00:00
regex.h *** empty log message *** 1992-12-15 02:35:40 +00:00
scroll.c * scroll.c (do_scrolling): Don't bcopy non-existant `nruns' or 1992-10-14 23:00:38 +00:00
search.c * search.c (Fskip_chars_forward, Fskip_chars_backward): Return the 1992-12-12 15:37:30 +00:00
sink.h entered into RCS 1992-01-13 21:48:03 +00:00
sink11.h entered into RCS 1992-01-13 21:48:03 +00:00
sink11mask.h entered into RCS 1992-01-13 21:48:03 +00:00
sinkmask.h entered into RCS 1992-09-13 11:44:06 +00:00
sunfns.c * frame.c (make_frame_without_minibuffer, Fwindow_frame): Use 1992-10-19 18:33:14 +00:00
syntax.c (find_defun_start): scan_buffer returns start of line; 1992-10-11 20:41:13 +00:00
syntax.h entered into RCS 1992-09-02 23:42:24 +00:00
sysdep.c * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c: 1992-11-16 00:54:53 +00:00
syssignal.h entered into RCS 1992-05-10 18:13:22 +00:00
systime.h * systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not 1992-11-07 07:37:08 +00:00
systty.h * systty.h: Doc fix. 1992-11-16 00:55:34 +00:00
term.c * term.c (term_get_fkeys): Some systems define `static' to be the 1992-08-19 06:38:40 +00:00
termchar.h entered into RCS 1992-07-13 20:56:17 +00:00
termhooks.h Doc fix. 1992-10-03 01:09:59 +00:00
terminfo.c entered into RCS 1992-01-13 21:48:03 +00:00
termopts.h entered into RCS 1992-07-14 23:23:55 +00:00
textprop.c Fixed typeos. 1992-10-02 22:30:42 +00:00
uaf.h entered into RCS 1992-01-13 21:48:03 +00:00
undo.c * undo.c (Fprimitive_undo): Remove whitespace in front of #ifdef 1992-11-16 00:57:54 +00:00
unexaix.c entered into RCS 1992-02-22 21:15:26 +00:00
unexconvex.c entered into RCS 1992-01-13 21:48:03 +00:00
unexec.c entered into RCS 1992-04-24 08:11:28 +00:00
unexelf.c entered into RCS 1992-01-13 21:48:03 +00:00
unexencap.c Initial revision 1992-01-13 22:04:23 +00:00
unexenix.c entered into RCS 1992-01-13 21:48:03 +00:00
unexfx2800.c entered into RCS 1992-01-31 21:19:17 +00:00
unexhp9k800.c entered into RCS 1992-01-13 21:48:03 +00:00
unexmips.c [sony, IRIS_4D]: Include getpagesize.h and fcntl.h. 1992-10-27 19:42:55 +00:00
unexnext.c entered into RCS 1992-10-06 04:54:56 +00:00
unexsunos4.c * unexsunos4.c: Deleted "$Log" header in comments at top of file; 1992-08-12 14:23:38 +00:00
vlimit.h entered into RCS 1992-01-13 21:48:03 +00:00
vm-limit.c (check_memory_limits): Declare __morecore. 1992-10-15 23:44:00 +00:00
vms-pp.c entered into RCS 1992-01-13 21:48:03 +00:00
vms-pwd.h entered into RCS 1992-01-13 21:48:03 +00:00
vmsdir.h entered into RCS 1992-01-13 21:48:03 +00:00
vmsfns.c entered into RCS 1992-01-13 21:48:03 +00:00
vmsmap.c entered into RCS 1992-01-13 21:48:03 +00:00
vmspaths.h * vmspaths.h: New version from Roland Roberts. 1992-11-16 00:58:28 +00:00
vmsproc.c entered into RCS 1992-01-13 21:48:03 +00:00
vmsproc.h entered into RCS 1992-01-13 21:48:03 +00:00
window.c * window.c (Fset_window_configuration): If we're restoring the 1992-12-12 15:38:45 +00:00
window.h * window.h (make_window, window_from_coordinates, 1992-10-31 05:40:28 +00:00
x11term.h entered into RCS 1992-05-01 06:20:52 +00:00
xdisp.c * xdisp.c (redisplay): Call FRAME_SAMPLE_VISIBILITY to set the 1992-12-06 22:20:47 +00:00
xfns.c * xfns.c (Fx_create_frame): Initialize f->async_visible too. 1992-12-06 22:21:21 +00:00
xmenu.c * frame.c (make_frame_without_minibuffer, Fwindow_frame): Use 1992-10-19 18:33:14 +00:00
xrdb.c * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid 1992-10-11 06:44:42 +00:00
xscrollbar.h entered into RCS 1992-01-13 21:48:03 +00:00
xselect.c.old * xselect.c (Fx_get_cut_buffer): Correct check for buf_num in 1992-11-16 01:04:24 +00:00
xterm.c * xterm.c (XTread_socket): When we get MapNotify, UnmapNotify, 1992-12-06 22:22:09 +00:00
xterm.h * xterm.h (x_screen_count, x_release, x_screen_height, 1992-10-31 05:43:42 +00:00
XTests.c entered into RCS 1992-01-13 21:48:03 +00:00
XTests.h entered into RCS 1992-01-13 21:48:03 +00:00