1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
Commit graph

28 commits

Author SHA1 Message Date
Richard M. Stallman
0d55704c3b (x_get_foreign_selection): Use the new feature
to queue up SelectionRequest events.
1994-07-27 00:13:42 +00:00
Richard M. Stallman
118bd8410d (x_own_selection, x_get_foreign_selection):
Get rid of spurious X_TOOLKIT conditional.

(x_own_selection): Put the frame in Vselection_alist.
(x_clear_frame_selections): New function.
1994-07-01 00:46:37 +00:00
Karl Heuer
3a22ee3595 Update copyright. 1994-05-04 02:41:09 +00:00
Richard M. Stallman
c650d108f1 (x_own_selection): Catch errors around XSetSelectionOwner. 1994-05-04 00:46:39 +00:00
Richard M. Stallman
7ffb284121 (x_decline_selection_request): Call XFlushQueue. 1994-04-11 21:20:28 +00:00
Karl Heuer
9d2d1dd88c (x_get_local_selection, x_handle_selection_request): Use assignment, not
initialization.
1994-03-25 00:42:33 +00:00
Karl Heuer
703e0710e9 (x-own-selection-internal, x-get-selection-internal,
x-disown-selection-internal, x-selection-owner-p, x-selection-exists-p,
x-get-cut-buffer-internal, x-store-cut-buffer-internal,
x-rotate-cut-buffers-internal): call check_x.
1994-02-14 21:40:43 +00:00
Richard M. Stallman
7c6b2ea4a6 (x_get_foreign_selection): Use x_catch_errors.
(x_handle_selection_clear): Call prepare_menu_bars.
1993-12-23 01:43:11 +00:00
Richard M. Stallman
8d47f8c474 (Fx_disown_selection_internal): When making the fake
event for x_handle_selection_clear, use SELECTION_EVENT_... macros.
1993-11-23 10:40:17 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
d1f21a66c4 (struct property_change): New field `arrived'.
(expect_property_change): Return struct property_change *.
Clear `arrived'.
(unexpect_property_change): Take one as argument.
(wait_for_property_change): Take one as argument.
If `arrived' is set, don't wait.
(wait_for_property_change_unwind): Corresponding changes.
(receive_incremental_selection): Corresponding changes.
(x_reply_selection_request): Corresponding changes.
(property_deleted_p): Function deleted.

(x_handle_selection_clear): Redisplay.
1993-08-14 23:02:58 +00:00
Richard M. Stallman
018cfa0756 (receive_incremental_selection): Use bcopy, not memcpy. 1993-08-11 04:51:08 +00:00
Richard M. Stallman
2f65feb682 (prop_location_identifier): Was named prop_location_tick.
(property_change_reply_identifier): Renamed from ...-tick.
(struct prop_location): Field `identifier' renamed from `tick'.
Various functions changed accordingly.
(x_handle_selection_request): Delete local struct var `reply'.

(wait_for_property_change_unwind): New function.
(wait_for_property_change): Add unwind protect.

(wait_for_property_change): Eventually time out with error.
(x_reply_selection_request): XFlushQueue and UNBLOCK_INPUT
before calling wait_for_property_change.
(x_get_window_property): Simplify input blocking/unblocking.
Don't delete the property here.
(receive_incremental_selection): Delete property here.
Call XSelectInput to enable and disable PropertyChangeMask.
(x_get_window_property_as_lisp_data): And here.
1993-07-31 05:55:52 +00:00
Richard M. Stallman
aca39f42ae (lisp_data_to_selection_data): New arg NOFREE_RET.
For a string, just return its data's address.
(x_handle_selection_request): Pass new arg.
If value comes back 1, don't call xfree.
1993-07-25 22:00:25 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
80da01904c (x_get_foreign_selection): Handle x_selection_timeout
as milliseconds, not as seconds.
(syms_of_xselect): Doc fix to match.
1993-06-05 08:37:45 +00:00
Richard M. Stallman
10608c8c2a (Fx_store_cut_buffer_internal): Handle empty string right. 1993-06-04 05:32:31 +00:00
Richard M. Stallman
cf2d699cf7 (x_reply_selection_request): Call XFlushQueue. 1993-05-31 17:02:59 +00:00
Richard M. Stallman
1eb4d468b5 (x_get_local_selection): If no conversion function
exists for the requested type, just return nil.
1993-05-27 04:01:13 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Richard M. Stallman
356ba514a3 (Fx_selection_exists_p): Handle nil, t as SELECTION arg.
Don't die if SELECTION is not recognized.
1993-05-15 19:00:34 +00:00
Jim Blandy
51cf3e317c 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.
1993-04-10 08:05:07 +00:00
Jim Blandy
9ac0d9e041 Put interrupt input blocking in a separate file from xterm.h.
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.
	(x_input_blocked, x_pending_input): Deleted; there are analogs
	in blockinput.h called interrupt_input_blocked and
	interrupt_input_pending.
	* keyboard.c (interrupt_input_blocked, interrupt_input_pending):
	New variables, used by the macros in blockinput.h.
	* xterm.c: #include blockinput.h.
	(x_input_blocked, x_pending_input): Deleted.
	(XTread_socket): Test and set interrupt_input_blocked and
	interrupt_input_pending instead of the old variables.
	* alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c:
	#include blockinput.h.
	* eval.c: #include blockinput.h instead of xterm.h.
	* keyboard.c: #include blockinput.h.
	(input_poll_signal): Just test
	interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and
	x_input_blocked.

	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.
	(xmalloc, xrealloc): Block X input while doing the deed.
	(VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree
	instead of free.
	(uninterrupt_malloc): New function, to install input-blocking
	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):
	Use xmalloc instead of malloc; don't bother to check if out of
	memory here.
	(Fgarbage_collect): Call xrealloc instead of realloc.
	* buffer.c: Use xmalloc and xfree instead of malloc and free;
	don't bother to check if out of memory here.
	(Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around
	calls to ralloc routines.
	* insdel.c: Same.
	* lisp.h (xfree): New extern declaration.
	* 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.
	* hftctl.c: Use xfree and xmalloc instead of free and malloc.
	* keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc
	and malloc.
	* search.c: Since the regexp routines can malloc, BLOCK_INPUT
	while runing them.  #include blockinput.h.
	* sysdep.c: #include blockinput.h.  Call xfree and xmalloc instead
	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
	these depend on blockinput.h.
1993-03-31 10:55:33 +00:00
Jim Blandy
c3498e6438 * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
access the display structure directly.
1993-03-25 23:27:42 +00:00
Richard M. Stallman
8a89415ece (cons_to_long, long_to_cons): No longer static. 1993-03-19 05:19:23 +00:00
Richard M. Stallman
a87ed99c5b entered into RCS 1993-03-14 20:19:28 +00:00
Richard M. Stallman
7da64e5c76 *** empty log message *** 1993-03-13 21:25:55 +00:00
Richard M. Stallman
ede4db72d3 Initial revision 1993-03-13 20:12:23 +00:00