aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-09 17:30:22 -0800
committerPaul Eggert2011-03-09 17:30:22 -0800
commit811e9bacd8e24097bc65f1dfa79a5f6ac51071d9 (patch)
treed78acd8907ffd92ed88ba9ca1b2ecac1d4372d2d /src
parent7e3ab3026e9b0f783b8aacead1fad668c792e8ab (diff)
downloademacs-811e9bacd8e24097bc65f1dfa79a5f6ac51071d9.tar.gz
emacs-811e9bacd8e24097bc65f1dfa79a5f6ac51071d9.zip
* xselect.c (x_disown_buffer_selections): Remove; not used.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xselect.c20
2 files changed, 2 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 33fa9806be2..5a84813fd80 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-03-10 Paul Eggert <eggert@cs.ucla.edu> 12011-03-10 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xselect.c (x_disown_buffer_selections): Remove; not used.
4
3 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros, 5 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
4 so that the caller can use some name other than gcpro1. 6 so that the caller can use some name other than gcpro1.
5 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros. 7 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
diff --git a/src/xselect.c b/src/xselect.c
index a502a74f904..9fedb7126e1 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2131,26 +2131,6 @@ Disowning it means there is no such selection. */)
2131 return Qt; 2131 return Qt;
2132} 2132}
2133 2133
2134/* Get rid of all the selections in buffer BUFFER.
2135 This is used when we kill a buffer. */
2136
2137void
2138x_disown_buffer_selections (Lisp_Object buffer)
2139{
2140 Lisp_Object tail;
2141 struct buffer *buf = XBUFFER (buffer);
2142
2143 for (tail = Vselection_alist; CONSP (tail); tail = XCDR (tail))
2144 {
2145 Lisp_Object elt, value;
2146 elt = XCAR (tail);
2147 value = XCDR (elt);
2148 if (CONSP (value) && MARKERP (XCAR (value))
2149 && XMARKER (XCAR (value))->buffer == buf)
2150 Fx_disown_selection_internal (XCAR (elt), Qnil);
2151 }
2152}
2153
2154DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p, 2134DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p,
2155 0, 1, 0, 2135 0, 1, 0,
2156 doc: /* Whether the current Emacs process owns the given X Selection. 2136 doc: /* Whether the current Emacs process owns the given X Selection.