From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.devel Subject: Re: The X window system, yanking, and pasting using the mouse Date: Thu, 27 Jan 2011 08:49:28 +0100 Message-ID: References: <87hbcvkrgr.fsf@anzu.internal.golden-gryphon.com> <878vy73wa0.fsf@catnip.gol.com> <87d3njkoln.fsf@anzu.internal.golden-gryphon.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296114624 29580 80.91.229.12 (27 Jan 2011 07:50:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 07:50:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 27 08:50:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiMcT-0002lZ-A5 for ged-emacs-devel@m.gmane.org; Thu, 27 Jan 2011 08:50:20 +0100 Original-Received: from localhost ([127.0.0.1]:35067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiMcO-0006Y3-Tc for ged-emacs-devel@m.gmane.org; Thu, 27 Jan 2011 02:50:13 -0500 Original-Received: from [140.186.70.92] (port=38941 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiMbv-0006Wk-IO for emacs-devel@gnu.org; Thu, 27 Jan 2011 02:49:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiMbu-0005yP-6C for emacs-devel@gnu.org; Thu, 27 Jan 2011 02:49:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:51979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiMbu-0005xu-0b for emacs-devel@gnu.org; Thu, 27 Jan 2011 02:49:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PiMbr-0002bS-QI for emacs-devel@gnu.org; Thu, 27 Jan 2011 08:49:39 +0100 Original-Received: from 193.186.169.68 ([193.186.169.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 08:49:39 +0100 Original-Received: from stefan by 193.186.169.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 08:49:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.186.169.68 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:MklT92yzxe7XG3prrxqZRV3mA6A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135079 Archived-At: Manoj Srivastava writes: > On Wed, Jan 26 2011, Miles Bader wrote: > >> Manoj Srivastava writes: >>> What I want is the behaviour I think I used to have in Emacs on >>> GNU/Linux X Windows: >>> 1) Whatever text is pasted when I click >>> (mouse-yank-primary?) should be the same thing yanked when I type >>> C-y (yank) >>> 2) Conversely, text that is selected in Emacs, such that it is >>> inserted with a C-y (yank) should also be the text that is pasted >>> into, say, an xterm when I do a middle mouse click in there. >> >> I agree, this was very nice behavior. >> >>> What changes do I need to make to get this? >> >> I've not found a tenable way to simulate the old behavior with the new >> code. > > I would say that this is a regression, then. Before the new > code, I never had to worry about primary and secondary selections; and > pasting using a mouse was the same as yanking, and text selected in > Emacs could easily be passed around to other X Windows applications. > > Is there a possibility for this regression to be fixed? If I > recall correctly, the new code was supposed to preserve the old > features, and that does not seem to be the case here. I use the same settings as Manoj. The thing that annoys me is replacing text. Whenever I select something and want to replace it with the X-Selection. It replaces it with the new (now selected X-Selection). That means there is no change and I have to use C-y M-y Before I could just use C-y Stefan.