From: "\"Jérôme M. Berger\"" <jeberger@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy/paste issue.
Date: Sat, 31 Mar 2012 12:24:57 +0200 [thread overview]
Message-ID: <jl6m23$odi$1@dough.gmane.org> (raw)
In-Reply-To: <C46305CA-FE87-4935-93DC-AA4A4E89FFE5@Web.DE>
[-- Attachment #1: Type: text/plain, Size: 2810 bytes --]
Thank you for your reply.
Peter Dyballa wrote:
> Am 31.3.2012 um 10:51 schrieb Jérôme M. Berger:
>
>> - The described behavior happens when selecting with the mouse,
>> selecting with the keyboard gives the expected behavior.
>
> You can try to bisect your init file: comment first have, if
> effect persists then it comes from other half; if effect is gone
> then it came from commented half. In case one leave first half
> commented and now additionally comment first half (a quarter of
> complete file) of uncommented second half and test again – until
> you've found the culprit line. If case two was true, then uncomment
> the commented first half of the init file and comment its second
> half plus comment the first half (a quarter of the whole file) of
> the now uncommented first half and test again – until the culprit
> line is found.
>
I could, but my configuration files total over 5000 lines in 24
files, so I'd rather not if I can avoid it :) Especially since I
prefer the current behavior to the default one anyway, I just think
it could be even better :)
> You may find that there is no culprit – except your X server and
> maybe the window manager. When you select some text with the mouse
> the X server may serve as the copier and insert a copy of the
> selection into GNU Emacs' ring of copied or deleted items while the
> yank command has a previously taken private copy of the ring's last
> element in its memory. This one is inserted. After that the yank
> command finds the just inserted copy of the selection as the
> youngest element in the ring and will insert that one.
>
I thought about that, especially since I have autocutsel configured
to duplicate the application's copied text to the X buffer (i.e if I
hit "M-w" in (X)Emacs or "C-c" in other applications, then I can
paste with the middle mouse button). However, it only copies in one
direction (i.e if I select with the mouse, this copies the text into
the X buffer but not to the application buffer). I have done the
following tests to confirm:
- Stop autocutsel -> emacs' behavior is unchanged;
- Test with emacs -Q -> selecting text with the mouse does not
affect the copied text;
- Test with other applications (namely XEmacs, kate and geany)
-> They all behave the way I want.
However, you gave me an idea and I did an extra test: going back to
my original scenario, if I select "bar" then click somewhere else
(to empty the selection) and then paste, the pasted text is "bar"
and not "foo". So, is there some setting in *Emacs* that could cause
text selected with the mouse to be automagically copied to the kill
ring and yank buffer?
Jerome
--
mailto:jeberger@free.fr
http://jeberger.free.fr
Jabber: jeberger@jabber.fr
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-03-31 10:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-31 8:46 Copy/paste issue "Jérôme M. Berger"
2012-03-31 8:51 ` "Jérôme M. Berger"
2012-03-31 9:49 ` Peter Dyballa
2012-03-31 10:24 ` "Jérôme M. Berger" [this message]
2012-03-31 10:34 ` Eli Zaretskii
2012-03-31 13:47 ` XeCycle
2012-03-31 15:14 ` Drew Adams
2012-04-01 7:59 ` "Jérôme M. Berger"
[not found] ` <mailman.189.1333201685.20052.help-gnu-emacs@gnu.org>
2012-05-07 4:19 ` David Combs
2012-05-07 6:27 ` Drew Adams
2012-05-07 7:52 ` Yaoyuan
[not found] ` <mailman.730.1336372071.855.help-gnu-emacs@gnu.org>
2012-05-29 1:36 ` David Combs
[not found] ` <mailman.731.1336377127.855.help-gnu-emacs@gnu.org>
2012-05-29 1:40 ` David Combs
2012-05-29 13:53 ` Barry Margolin
-- strict thread matches above, loose matches on Subject: below --
2012-03-31 15:44 Silvio Levy
2012-03-31 16:03 ` Drew Adams
2012-03-31 16:15 ` Peter Dyballa
[not found] ` <mailman.205.1333209850.20052.help-gnu-emacs@gnu.org>
2012-05-07 4:46 ` David Combs
2012-05-07 6:09 ` Vladimir Murzin
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jl6m23$odi$1@dough.gmane.org' \
--to=jeberger@free.fr \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).