From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Need help with emacs clipboard. Date: Sat, 31 Jan 2015 21:45:12 -0700 Message-ID: <20150131212943548966295@bob.proulx.com> References: <20150129185746715118144@bob.proulx.com> <874mr6ojt0.fsf@robertthorpeconsulting.com> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1422765934 20616 80.91.229.3 (1 Feb 2015 04:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 04:45:34 +0000 (UTC) To: Robert Thorpe , help-gnu-emacs@gnu.org, cplum984@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 05:45:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YHmPd-0008Tf-47 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 05:45:33 +0100 Original-Received: from localhost ([::1]:43529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHmPc-0002JK-9R for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 23:45:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHmPN-0002J3-CX for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 23:45:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHmPK-0006I1-1r for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 23:45:17 -0500 Original-Received: from joseki.proulx.com ([216.17.153.58]:48215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHmPJ-0006He-MF for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 23:45:13 -0500 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id B901721832; Sat, 31 Jan 2015 21:45:12 -0700 (MST) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 9CB022DC41; Sat, 31 Jan 2015 21:45:12 -0700 (MST) Mail-Followup-To: Robert Thorpe , help-gnu-emacs@gnu.org, cplum984@gmail.com Content-Disposition: inline In-Reply-To: <874mr6ojt0.fsf@robertthorpeconsulting.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102411 Archived-At: Robert Thorpe wrote: > I agree with your description of these facilities, and I now see why you > setup things the way you do. Except one thing.... > > You write: > > 1. Click and hold mouse-1, drag, release. Text is highlighted and > > placed into the primary selection. Click mouse-2. Primary selection > > is pasted as input. Generally everywhere but in Emacs v24 this was > > changed to use the clipboard by default instead of the primary selection. Same for you too, right? > Then later on: > > Note that in your words "If I mark something" that at that time it has > > already been placed into the primary selection using the X Window > > System behavior. You can immediately paste that with the mouse middle > > button. > > The behaviour you describe in the latter paragraph still works for me in > Libreoffice and Firefox. So, I don't see why you say in the former > paragraph "Generally everywhere but in Emacs v24 this was changed to use > the clipboard by default instead of the primary selection." Does that mean when you mouse-2 paste in Libreoffice and Firefox that it uses the clipboard there instead of the primary selection? For me it definitely uses the primary selection. I verified that to be true before writing my last message. > I don't see that it has been changed much. Like you say yourself, when > you press C-c or C-x it's placed on the clipboard. The only thing I've > noticed change is that C-v in those programs pastes the clipboard not > the primary selection. Same for me too. If I use C-v it would paste from the clipboard. But C-v is not the mouse-2 middle button. It is the mouse middle button mouse-2 paste that I was talking about that uses the primary selection. (Although my notes show that Emacs did for at least a while paste from the clipboard with mouse middle. That was a problem. It doesn't do that today. Thankfully. I will stop complaining that it did.) But for me if I have highlighted text with the mouse using the left button it is trivially easy to middle click to paste it. Your hand stays on the mouse and thought stays with the mouse hand. It also seems silly to highlight and then also do C-c when the text is already available for pasting without doing C-c. Plus in a terminal window C-c would send an interrupt so most definitely not what anyone wants. How do the Microsoft folks do that in a terminal?. So using C-c and C-v is anti-ergo for me. With C-c already being used to send a SIGINT to interrupt shell processes it just doesn't make sense to me. I do acknowledge that *replacing* highlighted text is a valid functional mode. I can see people really liking it. That is only reason for having an explicit and separate key to cut or paste. It just isn't the way it works in X and therefore collides with it. In X I paste the new text at the beginning and then C-k or C-d to delete the old text. That is the same effort in that case. But I definitely understand that people like the replaced highlighted text feature. It just isn't something I need or want because I didn't grow up with it. > Perhaps Firefox and Libreoffice are setup different by distro makers. Definitely possible. I am using Debian. And I would definitely expect it to be different on MS Windows and there are a lot of MS Windows users. Bob