Fix up autoloads in vc-rcs.el and vc-sccs.el.
[emacs.git] / lisp / select.el
blob5a10756ea486f3b5c1e9dfdbe9da8ccf434ee36e
1 ;;; select.el --- lisp portion of standard selection support -*- lexical-binding:t -*-
3 ;; Copyright (C) 1993-1994, 2001-2014 Free Software Foundation, Inc.
5 ;; Maintainer: emacs-devel@gnu.org
6 ;; Keywords: internal
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software: you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation, either version 3 of the License, or
13 ;; (at your option) any later version.
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23 ;;; Commentary:
25 ;; Based partially on earlier release by Lucid.
27 ;; The functionality here is divided in two parts:
28 ;; - Low-level: gui-get-selection, gui-set-selection, gui-selection-owner-p,
29 ;; gui-selection-exists-p are the backend-dependent functions meant to access
30 ;; various kinds of selections (CLIPBOARD, PRIMARY, SECONDARY).
31 ;; - Higher-level: gui-select-text and gui-selection-value go together to
32 ;; access the general notion of "GUI selection" for interoperation with other
33 ;; applications. This can use either the clipboard or the primary selection,
34 ;; or both or none according to select-enable-clipboard/primary. These are
35 ;; the default values of interprogram-cut/paste-function.
36 ;; Additionally, there's gui-get-primary-selection which is used to get the
37 ;; PRIMARY selection, specifically for mouse-yank-primary.
39 ;;; Code:
41 (defcustom selection-coding-system nil
42 "Coding system for communicating with other programs.
44 For MS-Windows and MS-DOS:
45 When sending or receiving text via selection and clipboard, the text
46 is encoded or decoded by this coding system. The default value is
47 the current system default encoding on 9x/Me, `utf-16le-dos'
48 \(Unicode) on NT/W2K/XP, and `iso-latin-1-dos' on MS-DOS.
50 For X Windows:
51 When sending text via selection and clipboard, if the target
52 data-type matches with the type of this coding system, it is used
53 for encoding the text. Otherwise (including the case that this
54 variable is nil), a proper coding system is used as below:
56 data-type coding system
57 --------- -------------
58 UTF8_STRING utf-8
59 COMPOUND_TEXT compound-text-with-extensions
60 STRING iso-latin-1
61 C_STRING no-conversion
63 When receiving text, if this coding system is non-nil, it is used
64 for decoding regardless of the data-type. If this is nil, a
65 proper coding system is used according to the data-type as above.
67 See also the documentation of the variable `x-select-request-type' how
68 to control which data-type to request for receiving text.
70 The default value is nil."
71 :type 'coding-system
72 :group 'mule
73 ;; Default was compound-text-with-extensions in 22.x (pre-unicode).
74 :version "23.1"
75 :set (lambda (symbol value)
76 (set-selection-coding-system value)
77 (set symbol value)))
79 (defvar next-selection-coding-system nil
80 "Coding system for the next communication with other programs.
81 Usually, `selection-coding-system' is used for communicating with
82 other programs (X Windows clients or MS Windows programs). But, if this
83 variable is set, it is used for the next communication only.
84 After the communication, this variable is set to nil.")
86 ;; Only declared obsolete in 23.3.
87 (define-obsolete-function-alias 'x-selection 'x-get-selection "at least 19.34")
89 (defcustom select-enable-clipboard t
90 "Non-nil means cutting and pasting uses the clipboard.
91 This can be in addition to, but in preference to, the primary selection,
92 if applicable (i.e. under X11)."
93 :type 'boolean
94 :group 'killing
95 ;; The GNU/Linux version changed in 24.1, the MS-Windows version did not.
96 :version "24.1")
97 (define-obsolete-variable-alias 'x-select-enable-clipboard
98 'select-enable-clipboard "25.1")
100 (defcustom select-enable-primary nil
101 "Non-nil means cutting and pasting uses the primary selection
102 The existence of a primary selection depends on the underlying GUI you use.
103 E.g. it doesn't exist under MS-Windows."
104 :type 'boolean
105 :group 'killing
106 :version "24.1")
107 (define-obsolete-variable-alias 'x-select-enable-primary
108 'select-enable-primary "25.1")
110 ;; We keep track of the last text selected here, so we can check the
111 ;; current selection against it, and avoid passing back our own text
112 ;; from gui-selection-value. We track both
113 ;; separately in case another X application only sets one of them
114 ;; we aren't fooled by the PRIMARY or CLIPBOARD selection staying the same.
116 (defvar gui--last-selected-text-clipboard nil
117 "The value of the CLIPBOARD selection last seen.")
118 (defvar gui--last-selected-text-primary nil
119 "The value of the PRIMARY selection last seen.")
121 (defun gui-select-text (text)
122 "Select TEXT, a string, according to the window system.
123 if `select-enable-clipboard' is non-nil, copy TEXT to the system's clipboard.
124 If `select-enable-primary' is non-nil, put TEXT in the primary selection.
126 MS-Windows does not have a \"primary\" selection."
127 (when select-enable-primary
128 (gui-set-selection 'PRIMARY text)
129 (setq gui--last-selected-text-primary text))
130 (when select-enable-clipboard
131 ;; When cutting, the selection is cleared and PRIMARY
132 ;; set to the empty string. Prevent that, PRIMARY
133 ;; should not be reset by cut (Bug#16382).
134 (setq saved-region-selection text)
135 (gui-set-selection 'CLIPBOARD text)
136 (setq gui--last-selected-text-clipboard text)))
137 (define-obsolete-function-alias 'x-select-text 'gui-select-text "25.1")
139 (defcustom x-select-request-type nil
140 "Data type request for X selection.
141 The value is one of the following data types, a list of them, or nil:
142 `COMPOUND_TEXT', `UTF8_STRING', `STRING', `TEXT'
144 If the value is one of the above symbols, try only the specified type.
146 If the value is a list of them, try each of them in the specified
147 order until succeed.
149 The value nil is the same as the list (UTF8_STRING COMPOUND_TEXT STRING)."
150 :type '(choice (const :tag "Default" nil)
151 (const COMPOUND_TEXT)
152 (const UTF8_STRING)
153 (const STRING)
154 (const TEXT)
155 (set :tag "List of values"
156 (const COMPOUND_TEXT)
157 (const UTF8_STRING)
158 (const STRING)
159 (const TEXT)))
160 :group 'killing)
162 ;; Get a selection value of type TYPE by calling gui-get-selection with
163 ;; an appropriate DATA-TYPE argument decided by `x-select-request-type'.
164 ;; The return value is already decoded. If gui-get-selection causes an
165 ;; error, this function return nil.
167 (defun gui--selection-value-internal (type)
168 (let ((request-type (if (eq window-system 'x)
169 (or x-select-request-type
170 '(UTF8_STRING COMPOUND_TEXT STRING))
171 'STRING))
172 text)
173 (with-demoted-errors "gui-get-selection: %S"
174 (if (consp request-type)
175 (while (and request-type (not text))
176 (setq text (gui-get-selection type (car request-type)))
177 (setq request-type (cdr request-type)))
178 (setq text (gui-get-selection type request-type))))
179 (if text
180 (remove-text-properties 0 (length text) '(foreign-selection nil) text))
181 text))
183 (defun gui-selection-value ()
184 (let ((clip-text
185 (when select-enable-clipboard
186 (let ((text (gui--selection-value-internal 'CLIPBOARD)))
187 (if (string= text "") (setq text nil))
189 ;; Check the CLIPBOARD selection for 'newness', is it different
190 ;; from what we remembered them to be last time we did a
191 ;; cut/paste operation.
192 (prog1
193 (unless (equal text gui--last-selected-text-clipboard)
194 text)
195 (setq gui--last-selected-text-clipboard text)))))
196 (primary-text
197 (when select-enable-primary
198 (let ((text (gui--selection-value-internal 'PRIMARY)))
199 (if (string= text "") (setq text nil))
200 ;; Check the PRIMARY selection for 'newness', is it different
201 ;; from what we remembered them to be last time we did a
202 ;; cut/paste operation.
203 (prog1
204 (unless (equal text gui--last-selected-text-primary)
205 text)
206 (setq gui--last-selected-text-primary text))))))
208 ;; As we have done one selection, clear this now.
209 (setq next-selection-coding-system nil)
211 ;; At this point we have recorded the current values for the
212 ;; selection from clipboard (if we are supposed to) and primary.
213 ;; So return the first one that has changed
214 ;; (which is the first non-null one).
216 ;; NOTE: There will be cases where more than one of these has
217 ;; changed and the new values differ. This indicates that
218 ;; something like the following has happened since the last time
219 ;; we looked at the selections: Application X set all the
220 ;; selections, then Application Y set only one of them.
221 ;; In this case since we don't have
222 ;; timestamps there is no way to know what the 'correct' value to
223 ;; return is. The nice thing to do would be to tell the user we
224 ;; saw multiple possible selections and ask the user which was the
225 ;; one they wanted.
226 (or clip-text primary-text)
229 (define-obsolete-function-alias 'x-selection-value 'gui-selection-value "25.1")
231 (defun x-get-clipboard ()
232 "Return text pasted to the clipboard."
233 (declare (obsolete gui-get-selection "25.1"))
234 (gui-call gui-get-selection 'CLIPBOARD 'STRING))
236 (defun gui-get-primary-selection ()
237 "Return the PRIMARY selection, or the best emulation thereof."
238 (or (gui-get-selection 'PRIMARY)
239 (and (fboundp 'w32-get-selection-value)
240 (eq (framep (selected-frame)) 'w32)
241 ;; MS-Windows emulates PRIMARY in x-get-selection, but only
242 ;; within the Emacs session, so consult the clipboard if
243 ;; primary is not found.
244 (w32-get-selection-value))
245 (error "No selection is available")))
246 (define-obsolete-function-alias 'x-get-selection-value
247 'gui-get-primary-selection "25.1")
249 ;;; Lower-level, backend dependent selection handling.
251 (gui-method-declare gui-get-selection #'ignore
252 "Return selected text.
253 Called with 2 arguments: (SELECTION-SYMBOL TARGET-TYPE)
254 SELECTION-SYMBOL is typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
255 \(Those are literal upper-case symbol names, since that's what X expects.)
256 TARGET-TYPE is the type of data desired, typically `STRING'.")
258 (gui-method-declare gui-set-selection #'ignore
259 "Method to assert a selection of type SELECTION and value VALUE.
260 SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
261 If VALUE is nil and we own the selection SELECTION, disown it instead.
262 Disowning it means there is no such selection.
263 \(Those are literal upper-case symbol names, since that's what X expects.)
264 VALUE is typically a string, or a cons of two markers, but may be
265 anything that the functions on `selection-converter-alist' know about.
267 Called with 2 args: (SELECTION VALUE).")
269 (gui-method-declare gui-selection-owner-p #'ignore
270 "Whether the current Emacs process owns the given X Selection.
271 Called with one argument: (SELECTION).
272 The arg should be the name of the selection in question, typically one of
273 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
274 \(Those are literal upper-case symbol names, since that's what X expects.)")
276 (gui-method-declare gui-selection-exists-p #'ignore
277 "Whether there is an owner for the given X Selection.
278 Called with one argument: (SELECTION).
279 The arg should be the name of the selection in question, typically one of
280 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
281 \(Those are literal upper-case symbol names, since that's what X expects.)")
283 (defun gui-get-selection (&optional type data-type)
284 "Return the value of an X Windows selection.
285 The argument TYPE (default `PRIMARY') says which selection,
286 and the argument DATA-TYPE (default `STRING') says
287 how to convert the data.
289 TYPE may be any symbol \(but nil stands for `PRIMARY'). However,
290 only a few symbols are commonly used. They conventionally have
291 all upper-case names. The most often used ones, in addition to
292 `PRIMARY', are `SECONDARY' and `CLIPBOARD'.
294 DATA-TYPE is usually `STRING', but can also be one of the symbols
295 in `selection-converter-alist', which see. This argument is
296 ignored on NS, MS-Windows and MS-DOS."
297 (let ((data (gui-call gui-get-selection (or type 'PRIMARY)
298 (or data-type 'STRING))))
299 (when (and (stringp data)
300 (setq data-type (get-text-property 0 'foreign-selection data)))
301 (let ((coding (or next-selection-coding-system
302 selection-coding-system
303 (pcase data-type
304 ('UTF8_STRING 'utf-8)
305 ('COMPOUND_TEXT 'compound-text-with-extensions)
306 ('C_STRING nil)
307 ('STRING 'iso-8859-1)
308 (_ (error "Unknown selection data type: %S"
309 type))))))
310 (setq data (if coding (decode-coding-string data coding)
311 (string-to-multibyte data))))
312 (setq next-selection-coding-system nil)
313 (put-text-property 0 (length data) 'foreign-selection data-type data))
314 data))
315 (define-obsolete-function-alias 'x-get-selection 'gui-get-selection "25.1")
317 (defun gui-set-selection (type data)
318 "Make an X selection of type TYPE and value DATA.
319 The argument TYPE (nil means `PRIMARY') says which selection, and
320 DATA specifies the contents. TYPE must be a symbol. \(It can also
321 be a string, which stands for the symbol with that name, but this
322 is considered obsolete.) DATA may be a string, a symbol, an
323 integer (or a cons of two integers or list of two integers).
325 The selection may also be a cons of two markers pointing to the same buffer,
326 or an overlay. In these cases, the selection is considered to be the text
327 between the markers *at whatever time the selection is examined*.
328 Thus, editing done in the buffer after you specify the selection
329 can alter the effective value of the selection.
331 The data may also be a vector of valid non-vector selection values.
333 The return value is DATA.
335 Interactively, this command sets the primary selection. Without
336 prefix argument, it reads the selection in the minibuffer. With
337 prefix argument, it uses the text of the region as the selection value.
339 Note that on MS-Windows, primary and secondary selections set by Emacs
340 are not available to other programs."
341 (interactive (if (not current-prefix-arg)
342 (list 'PRIMARY (read-string "Set text for pasting: "))
343 (list 'PRIMARY (buffer-substring (region-beginning) (region-end)))))
344 (if (stringp type) (setq type (intern type)))
345 (or (gui--valid-simple-selection-p data)
346 (and (vectorp data)
347 (let ((valid t))
348 (dotimes (i (length data))
349 (or (gui--valid-simple-selection-p (aref data i))
350 (setq valid nil)))
351 valid))
352 (signal 'error (list "invalid selection" data)))
353 (or type (setq type 'PRIMARY))
354 (gui-call gui-set-selection type data)
355 data)
356 (define-obsolete-function-alias 'x-set-selection 'gui-set-selection "25.1")
358 (defun gui--valid-simple-selection-p (data)
359 (or (bufferp data)
360 (and (consp data)
361 (markerp (car data))
362 (markerp (cdr data))
363 (marker-buffer (car data))
364 (buffer-live-p (marker-buffer (car data)))
365 (eq (marker-buffer (car data))
366 (marker-buffer (cdr data))))
367 (stringp data)
368 (and (overlayp data)
369 (overlay-buffer data)
370 (buffer-live-p (overlay-buffer data)))
371 (symbolp data)
372 (integerp data)))
374 ;; Functions to convert the selection into various other selection types.
375 ;; Every selection type that Emacs handles is implemented this way, except
376 ;; for TIMESTAMP, which is a special case.
378 (defun xselect--selection-bounds (value)
379 "Return bounds of X selection value VALUE.
380 The return value is a list (BEG END BUF) if VALUE is a cons of
381 two markers or an overlay. Otherwise, it is nil."
382 (cond ((bufferp value)
383 (with-current-buffer value
384 (when (mark t)
385 (list (mark t) (point) value))))
386 ((and (consp value)
387 (markerp (car value))
388 (markerp (cdr value)))
389 (when (and (marker-buffer (car value))
390 (buffer-name (marker-buffer (car value)))
391 (eq (marker-buffer (car value))
392 (marker-buffer (cdr value))))
393 (list (marker-position (car value))
394 (marker-position (cdr value))
395 (marker-buffer (car value)))))
396 ((overlayp value)
397 (when (overlay-buffer value)
398 (list (overlay-start value)
399 (overlay-end value)
400 (overlay-buffer value))))))
402 (defun xselect--int-to-cons (n)
403 (cons (ash n -16) (logand n 65535)))
405 (defun xselect--encode-string (type str &optional can-modify)
406 (when str
407 ;; If TYPE is nil, this is a local request; return STR as-is.
408 (if (null type)
410 ;; Otherwise, encode STR.
411 (let ((coding (or next-selection-coding-system
412 selection-coding-system)))
413 (if coding
414 (setq coding (coding-system-base coding)))
415 (let ((inhibit-read-only t))
416 ;; Suppress producing escape sequences for compositions.
417 ;; But avoid modifying the string if it's a buffer name etc.
418 (unless can-modify (setq str (substring str 0)))
419 (remove-text-properties 0 (length str) '(composition nil) str)
420 ;; For X selections, TEXT is a polymorphic target; choose
421 ;; the actual type from `UTF8_STRING', `COMPOUND_TEXT',
422 ;; `STRING', and `C_STRING'. On Nextstep, always use UTF-8
423 ;; (see ns_string_to_pasteboard_internal in nsselect.m).
424 (when (eq type 'TEXT)
425 (cond
426 ((featurep 'ns)
427 (setq type 'UTF8_STRING))
428 ((not (multibyte-string-p str))
429 (setq type 'C_STRING))
431 (let (non-latin-1 non-unicode eight-bit)
432 (mapc #'(lambda (x)
433 (if (>= x #x100)
434 (if (< x #x110000)
435 (setq non-latin-1 t)
436 (if (< x #x3FFF80)
437 (setq non-unicode t)
438 (setq eight-bit t)))))
439 str)
440 (setq type (if (or non-unicode
441 (and
442 non-latin-1
443 ;; If a coding is specified for
444 ;; selection, and that is
445 ;; compatible with COMPOUND_TEXT,
446 ;; use it.
447 coding
448 (eq (coding-system-get coding :mime-charset)
449 'x-ctext)))
450 'COMPOUND_TEXT
451 (if non-latin-1 'UTF8_STRING
452 (if eight-bit 'C_STRING
453 'STRING))))))))
454 (cond
455 ((eq type 'UTF8_STRING)
456 (if (or (not coding)
457 (not (eq (coding-system-type coding) 'utf-8)))
458 (setq coding 'utf-8))
459 (setq str (encode-coding-string str coding)))
461 ((eq type 'STRING)
462 (if (or (not coding)
463 (not (eq (coding-system-type coding) 'charset)))
464 (setq coding 'iso-8859-1))
465 (setq str (encode-coding-string str coding)))
467 ((eq type 'COMPOUND_TEXT)
468 (if (or (not coding)
469 (not (eq (coding-system-type coding) 'iso-2022)))
470 (setq coding 'compound-text-with-extensions))
471 (setq str (encode-coding-string str coding)))
473 ((eq type 'C_STRING)
474 (setq str (string-make-unibyte str)))
477 (error "Unknown selection type: %S" type)))))
479 (setq next-selection-coding-system nil)
480 (cons type str))))
482 (defun xselect-convert-to-string (_selection type value)
483 (let ((str (cond ((stringp value) value)
484 ((setq value (xselect--selection-bounds value))
485 (with-current-buffer (nth 2 value)
486 (buffer-substring (nth 0 value)
487 (nth 1 value)))))))
488 (xselect--encode-string type str t)))
490 (defun xselect-convert-to-length (_selection _type value)
491 (let ((len (cond ((stringp value)
492 (length value))
493 ((setq value (xselect--selection-bounds value))
494 (abs (- (nth 0 value) (nth 1 value)))))))
495 (if len
496 (xselect--int-to-cons len))))
498 (defun xselect-convert-to-targets (_selection _type _value)
499 ;; return a vector of atoms, but remove duplicates first.
500 (let* ((all (cons 'TIMESTAMP
501 (cons 'MULTIPLE
502 (mapcar 'car selection-converter-alist))))
503 (rest all))
504 (while rest
505 (cond ((memq (car rest) (cdr rest))
506 (setcdr rest (delq (car rest) (cdr rest))))
507 ((eq (car (cdr rest)) '_EMACS_INTERNAL) ; shh, it's a secret
508 (setcdr rest (cdr (cdr rest))))
510 (setq rest (cdr rest)))))
511 (apply 'vector all)))
513 (defun xselect-convert-to-delete (selection _type _value)
514 (gui-call gui-set-selection selection nil)
515 ;; A return value of nil means that we do not know how to do this conversion,
516 ;; and replies with an "error". A return value of NULL means that we have
517 ;; done the conversion (and any side-effects) but have no value to return.
518 'NULL)
520 (defun xselect-convert-to-filename (_selection _type value)
521 (when (setq value (xselect--selection-bounds value))
522 (xselect--encode-string 'TEXT (buffer-file-name (nth 2 value)))))
524 (defun xselect-convert-to-charpos (_selection _type value)
525 (when (setq value (xselect--selection-bounds value))
526 (let ((beg (1- (nth 0 value))) ; zero-based
527 (end (1- (nth 1 value))))
528 (cons 'SPAN (vector (xselect--int-to-cons (min beg end))
529 (xselect--int-to-cons (max beg end)))))))
531 (defun xselect-convert-to-lineno (_selection _type value)
532 (when (setq value (xselect--selection-bounds value))
533 (with-current-buffer (nth 2 value)
534 (let ((beg (line-number-at-pos (nth 0 value)))
535 (end (line-number-at-pos (nth 1 value))))
536 (cons 'SPAN (vector (xselect--int-to-cons (min beg end))
537 (xselect--int-to-cons (max beg end))))))))
539 (defun xselect-convert-to-colno (_selection _type value)
540 (when (setq value (xselect--selection-bounds value))
541 (with-current-buffer (nth 2 value)
542 (let ((beg (progn (goto-char (nth 0 value)) (current-column)))
543 (end (progn (goto-char (nth 1 value)) (current-column))))
544 (cons 'SPAN (vector (xselect--int-to-cons (min beg end))
545 (xselect--int-to-cons (max beg end))))))))
547 (defun xselect-convert-to-os (_selection _type _size)
548 (xselect--encode-string 'TEXT (symbol-name system-type)))
550 (defun xselect-convert-to-host (_selection _type _size)
551 (xselect--encode-string 'TEXT (system-name)))
553 (defun xselect-convert-to-user (_selection _type _size)
554 (xselect--encode-string 'TEXT (user-full-name)))
556 (defun xselect-convert-to-class (_selection _type _size)
557 "Convert selection to class.
558 This function returns the string \"Emacs\"."
559 "Emacs")
561 ;; We do not try to determine the name Emacs was invoked with,
562 ;; because it is not clean for a program's behavior to depend on that.
563 (defun xselect-convert-to-name (_selection _type _size)
564 "Convert selection to name.
565 This function returns the string \"emacs\"."
566 "emacs")
568 (defun xselect-convert-to-integer (_selection _type value)
569 (and (integerp value)
570 (xselect--int-to-cons value)))
572 (defun xselect-convert-to-atom (_selection _type value)
573 (and (symbolp value) value))
575 (defun xselect-convert-to-identity (_selection _type value) ; used internally
576 (vector value))
578 ;; Null target that tells clipboard managers we support SAVE_TARGETS
579 ;; (see freedesktop.org Clipboard Manager spec).
580 (defun xselect-convert-to-save-targets (selection _type _value)
581 (when (eq selection 'CLIPBOARD)
582 'NULL))
584 (setq selection-converter-alist
585 '((TEXT . xselect-convert-to-string)
586 (COMPOUND_TEXT . xselect-convert-to-string)
587 (STRING . xselect-convert-to-string)
588 (UTF8_STRING . xselect-convert-to-string)
589 (TARGETS . xselect-convert-to-targets)
590 (LENGTH . xselect-convert-to-length)
591 (DELETE . xselect-convert-to-delete)
592 (FILE_NAME . xselect-convert-to-filename)
593 (CHARACTER_POSITION . xselect-convert-to-charpos)
594 (LINE_NUMBER . xselect-convert-to-lineno)
595 (COLUMN_NUMBER . xselect-convert-to-colno)
596 (OWNER_OS . xselect-convert-to-os)
597 (HOST_NAME . xselect-convert-to-host)
598 (USER . xselect-convert-to-user)
599 (CLASS . xselect-convert-to-class)
600 (NAME . xselect-convert-to-name)
601 (ATOM . xselect-convert-to-atom)
602 (INTEGER . xselect-convert-to-integer)
603 (SAVE_TARGETS . xselect-convert-to-save-targets)
604 (_EMACS_INTERNAL . xselect-convert-to-identity)))
606 (provide 'select)
608 ;;; select.el ends here