From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: Copy/paste issue. Date: Sat, 31 Mar 2012 21:47:44 +0800 Message-ID: <87obrc7ugv.fsf@Gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1333201692 5905 80.91.229.3 (31 Mar 2012 13:48:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2012 13:48:12 +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 15:48:11 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 1SDyf4-0001G2-Nr for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 15:48:10 +0200 Original-Received: from localhost ([::1]:48405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDyf4-0007VR-5f for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 09:48:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDyew-0007Uj-Uy for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 09:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDyev-0005TP-3P for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 09:48:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:44171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDyeu-0005TL-Sl for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 09:48:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDyet-00012r-Ca for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 15:47:59 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 15:47:59 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 15:47:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:W6SjcZZUAY+jg8u58G4M7lK2qaU= 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:84226 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "J=C3=A9r=C3=B4me M. Berger" writes: > Hi, > > I have an issue with copy/paste. Here are the steps to reproduce: > * Select some text (say "foo") and copy it (M-w); > * Select some other text (say "bar") and paste (C-y): > -> The text "bar" is deleted and the text "foo" is inserted > in its place; > * Select yet some other text (say "zzz") and paste (C-y): > -> Expected behavior: The text "zzz" is deleted and the text > "foo" is inserted in its place; > -> Actual behavior: The text "zzz" is deleted and the text > "bar" is inserted in its place. > > This behavior is with my configuration files. If I start emacs with > -Q, pasting over selected text does not erase the selection but > inserts the pasted text at the cursor position. In that case, > pasting multiple times always pastes "foo". I'm not sure what part > of my configuration changes this behavior (grepping for "yank" and > "kill" yields nothing obvious). > > I've looked through the docs and code for the "yank" and > "kill-ring-save" functions but could not find anything. > > Can somebody give me pointers to what > variables/functions/customizations I should check to get the > behavior I want? It should come from delete-selection-mode. Anyway, bisect your configuration should be accurate. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJPdwsDAAoJEI1xjsR3leWRf3gH/2MQquXNP6OF6tS3Vohl58E+ f010M0ZlN8kex4iHMGBkPoxeSHt3Htfi6UrOdfJLqwOGaVVfwwwbGqV4+bBnneo6 Oj6LKVzh+I1kCuT6xqTHm9g4t50H8zpMyZ8uXuPxJ8p9okfsQmvUt9Ne7XFrjTvD 7tN/MX4PvsOJuhuAaDwj3EubyYvQ+Mynf0vlVeQASk5WH5fH8w9AeMXhZb5ffpHv +XeChU2lw/3fzk/rtIBLBqn1bZRcTYBnSDLP+k8L0MhWLfV3kdu4Xw+FW8dyw1/L UIL1JL/PRssyoS3qHzJ1tVq1QIvf3XLmvk2BExYJBie1i0WuTKaNwP0HFDckROs= =uGIS -----END PGP SIGNATURE----- --=-=-=--