all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: Robert Thorpe <rt@robertthorpeconsulting.com>,
	help-gnu-emacs@gnu.org, cplum984@gmail.com
Subject: Re: Need help with emacs clipboard.
Date: Sat, 31 Jan 2015 21:45:12 -0700	[thread overview]
Message-ID: <20150131212943548966295@bob.proulx.com> (raw)
In-Reply-To: <874mr6ojt0.fsf@robertthorpeconsulting.com>

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



  reply	other threads:[~2015-02-01  4:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  2:47 Need help with emacs clipboard cplum984
2015-01-14  4:46 ` Bob Proulx
2015-01-14 16:36   ` Harry Putnam
2015-01-14 20:46     ` Bob Proulx
2015-01-15 20:50       ` Harry Putnam
     [not found]       ` <mailman.17973.1421355042.1147.help-gnu-emacs@gnu.org>
2015-01-15 21:05         ` Joost Kremers
2015-01-25 22:53   ` Robert Thorpe
2015-01-31  3:18     ` Bob Proulx
2015-01-31 19:02       ` Robert Thorpe
2015-02-01  4:45         ` Bob Proulx [this message]
2015-02-01 13:53           ` Robert Thorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150131212943548966295@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=cplum984@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rt@robertthorpeconsulting.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.