| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
of lying about the type.
(wait_for_property_change_unwind): Decode it likewise.
|
|
|
|
| |
to x_catch_errors and friends.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
| |
(x_own_selection, x_get_foreign_selection): Pass frame
to x_catch_errors, x_check_errors, x_uncatch_errors.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
instead of calling XSET directly.
|
|
|
|
| |
to queue up SelectionRequest events.
|
|
|
|
|
|
|
| |
Get rid of spurious X_TOOLKIT conditional.
(x_own_selection): Put the frame in Vselection_alist.
(x_clear_frame_selections): New function.
|
| |
|
| |
|
| |
|
|
|
|
| |
initialization.
|
|
|
|
|
|
| |
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_handle_selection_clear): Call prepare_menu_bars.
|
|
|
|
| |
event for x_handle_selection_clear, use SELECTION_EVENT_... macros.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
as milliseconds, not as seconds.
(syms_of_xselect): Doc fix to match.
|
| |
|
| |
|
|
|
|
| |
exists for the requested type, just return nil.
|
| |
|
|
|
|
| |
Don't die if SELECTION is not recognized.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
access the display structure directly.
|
| |
|
| |
|
| |
|
|
|