Commit 811e9bac authored by Paul Eggert's avatar Paul Eggert
Browse files

* xselect.c (x_disown_buffer_selections): Remove; not used.

parent 7e3ab302
2011-03-10 Paul Eggert <>
* xselect.c (x_disown_buffer_selections): Remove; not used.
* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
so that the caller can use some name other than gcpro1.
(GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
......@@ -2131,26 +2131,6 @@ Disowning it means there is no such selection. */)
return Qt;
/* Get rid of all the selections in buffer BUFFER.
This is used when we kill a buffer. */
x_disown_buffer_selections (Lisp_Object buffer)
Lisp_Object tail;
struct buffer *buf = XBUFFER (buffer);
for (tail = Vselection_alist; CONSP (tail); tail = XCDR (tail))
Lisp_Object elt, value;
elt = XCAR (tail);
value = XCDR (elt);
if (CONSP (value) && MARKERP (XCAR (value))
&& XMARKER (XCAR (value))->buffer == buf)
Fx_disown_selection_internal (XCAR (elt), Qnil);
DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p,
0, 1, 0,
doc: /* Whether the current Emacs process owns the given X Selection.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment