From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= Newsgroups: gmane.emacs.help Subject: Re: Copy/paste issue. Date: Sat, 31 Mar 2012 12:24:57 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5DC2489E047A1AE3687C649F" X-Trace: dough.gmane.org 1333189530 25131 80.91.229.3 (31 Mar 2012 10:25:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2012 10:25:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 31 12:25:30 2012 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 1SDvUu-0000jl-Gy for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 12:25:28 +0200 Original-Received: from localhost ([::1]:40292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDvUt-0007WW-Qo for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 06:25:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDvUo-0007Vj-9U for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:25:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDvUl-0001ba-UY for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:25:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDvUl-0001bH-Ka for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:25:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDvUj-0000aj-Qq for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 12:25:17 +0200 Original-Received: from def92-4-82-224-197-72.fbx.proxad.net ([82.224.197.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 12:25:17 +0200 Original-Received: from jeberger by def92-4-82-224-197-72.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 12:25:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 82 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: def92-4-82-224-197-72.fbx.proxad.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.24) Gecko/20120206 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 In-Reply-To: X-Enigmail-Version: 0.96.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:84224 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5DC2489E047A1AE3687C649F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for your reply. Peter Dyballa wrote: > Am 31.3.2012 um 10:51 schrieb J=C3=A9r=C3=B4me M. Berger: >=20 >> - The described behavior happens when selecting with the mouse, >> selecting with the keyboard gives the expected behavior. >=20 > 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 =E2=80=93 unti= l > 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 =E2=80=93 until the culpr= it > line is found. >=20 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 =E2=80=93 except your X server an= d > 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. >=20 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 --=20 mailto:jeberger@free.fr http://jeberger.free.fr Jabber: jeberger@jabber.fr --------------enig5DC2489E047A1AE3687C649F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk9224IACgkQd0kWM4JG3k/MtQCgtzPftH7qRdvmgf59+4sKCvd2 kkQAnixD2hCxCiXqJFKpMA6PJsxCNMr1 =YYUJ -----END PGP SIGNATURE----- --------------enig5DC2489E047A1AE3687C649F--