From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs kill/copy under X versus under Windows Date: Mon, 31 Aug 2009 19:28:13 +0300 Message-ID: <83k50k9cde.fsf@gnu.org> References: <4A9AAEB9.2000809@chaosphere.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251736662 27841 80.91.229.12 (31 Aug 2009 16:37:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 16:37:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 31 18:37:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mi9sq-0000Tv-L3 for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 18:37:33 +0200 Original-Received: from localhost ([127.0.0.1]:47217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9sp-0000mN-Vz for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 12:37:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi9lv-0006Sr-SQ for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 12:30:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi9lt-0006QH-Rs for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 12:30:22 -0400 Original-Received: from [199.232.76.173] (port=42127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9lt-0006Py-JZ for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 12:30:21 -0400 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:49096) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi9lt-0007Ag-6r for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 12:30:21 -0400 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KP9002001AVWO00@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 19:30:16 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KP9001S21UFOA10@i_mtaout5.012.net.il> for help-gnu-emacs@gnu.org; Mon, 31 Aug 2009 19:30:16 +0300 (IDT) In-reply-to: <4A9AAEB9.2000809@chaosphere.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67688 Archived-At: > Date: Sun, 30 Aug 2009 12:54:17 -0400 > From: Jeff Clough > > Under X, killing and yanking text with the "normal" commands (such as > kill-line) only diddles the kill ring and doesn't touch the clipboard > selection. Copying text in another application does not affect what you > get when doing C-y in Emacs. C-y doesn't care about your clipboard > selection at all and neither does C-k, etc. When you *do* care about > such things, there are specific commands (like "Copy" from the menu) > that let you do things. > > Under Windows, this isn't true at all. Whatever you last killed goes > straight to the clipboard, and whatever you last copied in another > application gets dumped into your buffer with a yank. As Drew pointed out, this is a feature. Unlike X, which has primary and secondary selection in addition the the clipboard, Windows has only the clipboard. So on Windows Emacs uses the clipboard as the primary selection would be used on X (well, almost, because the semantics of the clipboard and the primary selection are different).