From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Clough Newsgroups: gmane.emacs.help Subject: Emacs kill/copy under X versus under Windows Date: Sun, 30 Aug 2009 12:54:17 -0400 Message-ID: <4A9AAEB9.2000809@chaosphere.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251715381 22245 80.91.229.12 (31 Aug 2009 10:43:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 10:43:01 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 31 12:42:55 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 1Mi4Lb-0007Xn-1k for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 12:42:51 +0200 Original-Received: from localhost ([127.0.0.1]:41870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi4La-0002Ou-Dw for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 06:42:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhngC-0004k3-Br for help-gnu-emacs@gnu.org; Sun, 30 Aug 2009 12:55:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhng7-0004ix-P0 for help-gnu-emacs@gnu.org; Sun, 30 Aug 2009 12:55:00 -0400 Original-Received: from [199.232.76.173] (port=50967 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhng7-0004it-IQ for help-gnu-emacs@gnu.org; Sun, 30 Aug 2009 12:54:55 -0400 Original-Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:53931) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhng7-000288-2d for help-gnu-emacs@gnu.org; Sun, 30 Aug 2009 12:54:55 -0400 Original-Received: from [127.0.0.1] (really [66.65.230.106]) by hrndva-omta01.mail.rr.com with ESMTP id <20090830165453349.IOXZ11777@hrndva-omta01.mail.rr.com> for ; Sun, 30 Aug 2009 16:54:53 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Antivirus: avast! (VPS 090829-0, 08/29/2009), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-Mailman-Approved-At: Mon, 31 Aug 2009 06:34:33 -0400 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:67678 Archived-At: While dinking around with kill/yank and copy/paste to answer a question posted earlier, I stumbled upon something that I'd like to know how to fix. Running 22.3 on both Windows and X, I notice a difference in how Emacs interacts with the clipboard. 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. What's worse, try this in Windows: 1. Type a line of text in Emacs and do a kill-line on it. 2. Copy a different line of text from some other application. 3. Do a (car kill-ring) in emacs. See it display the text you typed from step #1. 4. Do a C-y in emacs, this dumps in the text from step #2. 5. Do (car kill-ring) again and see that the text from #2 has magically been added to the kill ring. I should note that C-y, C-k and the like are all mapped to functions with the same names on both platforms (yank and kill-line, respectively) and doing a describe-function on these functions has no hint they should be working any differently. So we have different behavior between ports for I don't know what reason (is it really assumed that someone capable of downloading and using Emacs on their Windows box is going to be confused by the behavior found on X systems?), and some *truly* nutty behavior under the Windows side. Is there some way to make Emacs on Windows behave itself and ignore the clipboard unless told otherwise, just like under X? Jeff -- Author of the Genesys System A "free" universal role-playing game. http://www.chaosphere.com/genesys/