annotate src/select.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents
children de805c49cfc1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 /* Generic select data structures functions
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2 Copyright (C) 1999 Andy Piper
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
4 This file is part of XEmacs.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 later version.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14 for more details.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
15
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
20
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23 #ifndef INCLUDED_select_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
24 #define INCLUDED_select_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
25
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
26 extern Lisp_Object QPRIMARY, QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
27 QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
28 QATOM_PAIR, QCOMPOUND_TEXT;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
29
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
30 /* This is an association list whose elements are of the form
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
31 ( selection-name selection-value selection-timestamp )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
32 selection-name is a lisp symbol, whose name is the name of an X Atom.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
33 selection-value is the value that emacs owns for that selection.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
34 It may be any kind of Lisp object.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
35 selection-timestamp is the time at which emacs began owning this selection,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
36 as a cons of two 16-bit numbers (making a 32 bit time).
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
37 If there is an entry in this alist, then it can be assumed that emacs owns
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
38 that selection.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
39 The only (eq) parts of this list that are visible from elisp are the
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
40 selection-values.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
41 */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
42 extern Lisp_Object Vselection_alist;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
43
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
44 /* "Selection owner couldn't convert selection" */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
45 extern Lisp_Object Qselection_conversion_error;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
46
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
47 Lisp_Object get_local_selection (Lisp_Object selection_symbol, Lisp_Object target_type);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
48 void handle_selection_clear (Lisp_Object selection_symbol);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
49
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
50 #endif /* INCLUDED_select_h_ */