From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Copy/paste issue. Date: Sat, 31 Mar 2012 13:34:58 +0300 Message-ID: <83pqbtjbxp.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1333190109 28586 80.91.229.3 (31 Mar 2012 10:35:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2012 10:35:09 +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:35:09 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 1SDveE-0000pY-WB for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 12:35:07 +0200 Original-Received: from localhost ([::1]:42375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDveE-0001H7-72 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2012 06:35:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDve8-0001FX-15 for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:35:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDve6-0003Y9-6U for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:34:59 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:43421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDve5-0003Vk-UN for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 06:34:58 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M1Q00800VVY6300@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 13:34:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.100.223]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1Q008ALW260DB0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 31 Mar 2012 13:34:55 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:84225 Archived-At: > From: "J=C3=A9r=C3=B4me M. Berger" > Date: Sat, 31 Mar 2012 10:51:33 +0200 >=20 > > =09I have an issue with copy/paste. Here are the steps to reprodu= ce: > > * 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. > >=20 > > =09This 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 par= t > > of my configuration changes this behavior (grepping for "yank" an= d > > "kill" yields nothing obvious). > >=20 > > =09I've looked through the docs and code for the "yank" and > > "kill-ring-save" functions but could not find anything. > >=20 > > =09Can somebody give me pointers to what > > variables/functions/customizations I should check to get the > > behavior I want? > >=20 > =09Sorry, forgot a couple of points: > - OS: ArchLinux 64 bits; > - Emacs version 23.4 (standard Arch package); > - The described behavior happens when selecting with the mouse, > selecting with the keyboard gives the expected behavior. I think Emacs 24 will fix that; either wait for it to be released, or try its latest pretest tarball.