aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
Commit message (Collapse)AuthorAgeFilesLines
* (wait_for_property_change): Encode location as a cons of two integers insteadKarl Heuer1994-11-161-2/+6
| | | | | of lying about the type. (wait_for_property_change_unwind): Decode it likewise.
* (x_own_selection, x_get_foreign_selection): Change callsRichard M. Stallman1994-10-261-6/+6
| | | | to x_catch_errors and friends.
* (Fx_selection_exists_p): Fix backwards if.Richard M. Stallman1994-10-251-1/+1
|
* (Fx_selection_exists_p): If selected_frame isn't an x frame, return nil.Richard M. Stallman1994-10-241-1/+4
|
* Use XFlush, not XFlushQueue, throughout.Richard M. Stallman1994-10-231-81/+81
| | | | | | | | (Xatom_*): Variables deleted. Use slots in x_display_info structure instead. (symbol_to_x_atom, x_atom_to_symbol): New arg dpyinfo. All callers changed. (xatoms_of_xselect): Function deleted.
* Log omitted from previous checkin:Richard M. Stallman1994-10-201-1/+1
| | | | | (x_own_selection, x_get_foreign_selection): Pass frame to x_catch_errors, x_check_errors, x_uncatch_errors.
* (x_get_foreign_selection): Get display fromRichard M. Stallman1994-10-201-23/+39
| | | | | | | | selected_frame. Pass frame to x_stop_queuing_selection_requests and x_start_queuing_selection_requests. (x_own_selection, Fx_disown_selection_internal, Fx_selection_exists_p) (Fx_store_cut_buffer_internal, Fx_get_cut_buffer_internal) (Fx_rotate_cut_buffers_internal): Get display from selected_frame.
* (x_clear_frame_selections, wait_for_property_change): Use new accessor macrosKarl Heuer1994-10-041-2/+2
| | | | instead of calling XSET directly.
* (x_get_foreign_selection): Use the new featureRichard M. Stallman1994-07-271-0/+2
| | | | to queue up SelectionRequest events.
* (x_own_selection, x_get_foreign_selection):Richard M. Stallman1994-07-011-15/+61
| | | | | | | Get rid of spurious X_TOOLKIT conditional. (x_own_selection): Put the frame in Vselection_alist. (x_clear_frame_selections): New function.
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (x_own_selection): Catch errors around XSetSelectionOwner.Richard M. Stallman1994-05-041-0/+3
|
* (x_decline_selection_request): Call XFlushQueue.Richard M. Stallman1994-04-111-2/+3
|
* (x_get_local_selection, x_handle_selection_request): Use assignment, notKarl Heuer1994-03-251-8/+17
| | | | initialization.
* (x-own-selection-internal, x-get-selection-internal,Karl Heuer1994-02-141-0/+8
| | | | | | 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.
* (x_get_foreign_selection): Use x_catch_errors.Richard M. Stallman1993-12-231-0/+7
| | | | (x_handle_selection_clear): Call prepare_menu_bars.
* (Fx_disown_selection_internal): When making the fakeRichard M. Stallman1993-11-231-3/+3
| | | | event for x_handle_selection_clear, use SELECTION_EVENT_... macros.
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (struct property_change): New field `arrived'.Richard M. Stallman1993-08-141-74/+79
| | | | | | | | | | | | | | (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.
* (receive_incremental_selection): Use bcopy, not memcpy.Richard M. Stallman1993-08-111-1/+1
|
* (prop_location_identifier): Was named prop_location_tick.Richard M. Stallman1993-07-311-64/+93
| | | | | | | | | | | | | | | | | | | (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.
* (lisp_data_to_selection_data): New arg NOFREE_RET.Richard M. Stallman1993-07-251-5/+13
| | | | | | 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.
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-1/+1
|
* (x_get_foreign_selection): Handle x_selection_timeoutRichard M. Stallman1993-06-051-10/+11
| | | | | as milliseconds, not as seconds. (syms_of_xselect): Doc fix to match.
* (Fx_store_cut_buffer_internal): Handle empty string right.Richard M. Stallman1993-06-041-0/+6
|
* (x_reply_selection_request): Call XFlushQueue.Richard M. Stallman1993-05-311-0/+1
|
* (x_get_local_selection): If no conversion functionRichard M. Stallman1993-05-271-7/+6
| | | | exists for the requested type, just return nil.
* Updated copyright years.Jim Blandy1993-05-221-6/+6
|
* (Fx_selection_exists_p): Handle nil, t as SELECTION arg.Richard M. Stallman1993-05-151-1/+7
| | | | Don't die if SELECTION is not recognized.
* long_to_cons and cons_to_long are generally useful things; they'reJim Blandy1993-04-101-30/+0
| | | | | | | 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.
* Put interrupt input blocking in a separate file from xterm.h.Jim Blandy1993-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;Jim Blandy1993-03-251-2/+5
| | | | access the display structure directly.
* (cons_to_long, long_to_cons): No longer static.Richard M. Stallman1993-03-191-9/+13
|
* entered into RCSRichard M. Stallman1993-03-141-28/+57
|
* *** empty log message ***Richard M. Stallman1993-03-131-81/+85
|
* Initial revisionRichard M. Stallman1993-03-131-0/+1949