From xemacs-m  Fri Mar 14 09:15:09 1997
Received: from mail.cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.8.55])
	by xemacs.org (8.8.5/8.8.5) with SMTP id JAA10168
	for <xemacs-beta@xemacs.org>; Fri, 14 Mar 1997 09:15:09 -0600 (CST)
Received: from calico.cis.ohio-state.edu (calico.cis.ohio-state.edu [164.107.142.11]) by mail.cis.ohio-state.edu (8.6.7/8.6.4) with ESMTP id KAA02311; Fri, 14 Mar 1997 10:14:28 -0500
Received: (ware@localhost) by calico.cis.ohio-state.edu (8.8.0/8.6.4) id KAA05369; Fri, 14 Mar 1997 10:14:26 -0500 (EST)
To: xemacs-beta@xemacs.org
Subject: Re: 20.1-b6: pasting text
References: <QQcgsu14671.199703132013@crystal.WonderWorks.COM> <m2rahjjxfc.fsf@altair.xemacs.org> <rvvi6vxx7q.fsf@sdnp5.ucsd.edu>
From: Pete Ware <ware@cis.ohio-state.edu>
Date: 14 Mar 1997 10:14:08 -0500
In-Reply-To: David Moore's message of 13 Mar 1997 14:07:21 -0800
Message-ID: <vwmvi6uzetb.fsf@calico.cis.ohio-state.edu>
Lines: 50
X-Mailer: Gnus v5.4.17/XEmacs 19.15

From Asente&Swick, p 438:
	A selection refers to a piece of data that can be sent from
	one application to another.  Selections are global to the X
	server; at any one time there is only one selection with a
	given name among all applications connect to a server.
	...
	Although the X protocol does not assign any meanings to
	selection names, the ICCCM defines conventions for the
	meanings of selections:

	PRIMARY
		The main selection; most operations that use just one
		selection use the primary selection.
		...
	SECONDARY
		An alternative selection used for operations that need
		two selections or for operations that do not want to
		disturb the primary selection
	CLIPBOARD
		A selection sometimes used for cutting and pasting
		pieces of data between applications; its use overlaps
		with the primary selection.  Application suites that
		use the clipboard selection often include a special
		clipboard application that maintains the value...

From the xterm manual page:

      ...
      insert-selection(sourcename [, ...])
	      This action inserts the string found in the selection or
	      cutbuffer indicated by sourcename.  Sources are checked in the
	      order given (case is significant) until one is found.
	      Commonly-used selections include: PRIMARY, SECONDARY, and
	      CLIPBOARD.  Cut buffers are typically named CUT_BUFFER0
	      through CUT_BUFFER7.

      ...
      select-end(destname [, ...])
	      This action puts the currently selected text into all of the
	      selections or cutbuffers specified by destname.

[Translation table binding]:
			  <BtnUp>: select-end(PRIMARY, CUT_BUFFER0) \n\
	     ~Ctrl ~Meta <Btn2Up>: insert-selection(PRIMARY, CUT_BUFFER0) \n\


The CUT_BUFFER0 stuff is historical but represents the style of having
multiple stuff in the selection that the user can rotate through.

--pete

