From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Change behaviour of Copy/Cut/Paste from the menu bar. Date: Tue, 20 Jan 2004 16:10:45 +0000 Organization: Integra SP Ltd Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <400D5305.40205@gnu.org> References: <200401201604.i0KG4i7L001202@stubby.bodenonline.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074616458 10963 80.91.224.253 (20 Jan 2004 16:34:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 16:34:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 20 17:33:53 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aiyp6-0006fG-00 for ; Tue, 20 Jan 2004 17:33:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aiyp6-0006Hk-00 for ; Tue, 20 Jan 2004 17:33:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AiymT-0004TN-KS for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 11:31:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aiyf1-0002ZK-PT for emacs-devel@gnu.org; Tue, 20 Jan 2004 11:23:27 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AiyUE-000720-BO for emacs-devel@gnu.org; Tue, 20 Jan 2004 11:12:49 -0500 Original-Received: from [209.61.173.204] (helo=integrasp.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1AiyUD-00071Y-RK for emacs-devel@gnu.org; Tue, 20 Jan 2004 11:12:18 -0500 Original-Received: (qmail 14594 invoked from network); 20 Jan 2004 16:00:15 -0000 Original-Received: from unknown (HELO ntserver.altio.com) (217.207.198.106) by 66.216.96.43 with SMTP; 20 Jan 2004 16:00:15 -0000 Original-Received: from gnu.org (ALTIOJR [192.168.111.42]) by ntserver.altio.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YYCBF4Z7; Tue, 20 Jan 2004 16:10:41 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-gb, en, ja Original-To: "Jan D." In-Reply-To: <200401201604.i0KG4i7L001202@stubby.bodenonline.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19353 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19353 Jan D. wrote: >Now, if menu-bar-enable-clipboard is called we are almost there, >except for the Paste thing. Emacs always pastes from the kill ring, >even if there is a CLIPBOARD selection. So I suggest that we modify >lisp/term/x-term.el as below. My question is if this is OK, and how >does the other ports (W32, Mac) handle Paste from the menu? Is it >always from the clipboard, or from the kill-ring? > > On W32, x-select-enable-clipboard defaults to t. There is no seperate SELECTION on Windows, so this gives the behavior users expect. It means we always paste from the clipboard unless Emacs is the clipboard owner, in which case we use the kill-ring to avoid clobbering Mule characters (code to handle this is in w32select.c).