From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon. Date: Fri, 04 Jun 2010 23:27:02 +0200 Message-ID: <4C096FA6.1040904@swipnet.se> References: <4C089EE5.80700@swipnet.se> <878w6u3g0x.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275688722 32125 80.91.229.12 (4 Jun 2010 21:58:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 21:58:42 +0000 (UTC) Cc: 6348@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 04 23:58:38 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OKeuG-0007fY-5q for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 23:58:38 +0200 Original-Received: from localhost ([127.0.0.1]:36964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKeu2-0001ht-Sk for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 17:58:11 -0400 Original-Received: from [140.186.70.92] (port=48713 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKetp-0001fJ-N5 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 17:57:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKetm-0003Ej-G2 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 17:57:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56514) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKetm-0003Ed-DX for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 17:57:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKeQs-0004qA-Ch; Fri, 04 Jun 2010 17:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6348 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6348-submit@debbugs.gnu.org id=B6348.127568683018592 (code B ref 6348); Fri, 04 Jun 2010 21:28:02 +0000 Original-Received: (at 6348) by debbugs.gnu.org; 4 Jun 2010 21:27:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKeQ2-0004pp-3x for submit@debbugs.gnu.org; Fri, 04 Jun 2010 17:27:10 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKeQ0-0004pk-6U for 6348@debbugs.gnu.org; Fri, 04 Jun 2010 17:27:09 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 92C27CDF0 for <6348@debbugs.gnu.org>; Fri, 4 Jun 2010 23:27:03 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AudTAL4MCUxV4S0jPGdsb2JhbACHb5ZWDAEBAQE1Lb56hRcE X-IronPort-AV: E=Sophos;i="4.53,363,1272837600"; d="scan'208";a="87797600" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 04 Jun 2010 23:27:03 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 4AAC27FA05A; Fri, 4 Jun 2010 23:27:02 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: <878w6u3g0x.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 04 Jun 2010 17:28:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37555 Archived-At: Juri Linkov skrev 2010-06-04 18.43: >> % emacs -Q >> M-x delete-selection-mode >> C-x h C-x r i >> >> Notice that the whole text is deleted when i is pressed. If you then >> press a key, say a, it states that register does not conatin text, which >> is correct. But the text of the buffer is deleted, even though >> nothing replaced it. Undo gets you the text back, but it is >> inconvinient. > > What do you need undo when after deleting the selected region, > you can type again `C-x r i' with the correct key and get the > same result as you wanted before typing an incorrect key > (i.e. the region gets deleted and text from the correct register > still inserted into the buffer)? > Well, sometimss that works. But sometimss I think I have text in a register, but I have overwritten it with something else, or after C-x r i I descide to not do it that way and type C-g. Or I see thst the selection is just not the right selection to replace and want to abort the command for that reason. The point is that C-x r i C-g should leave stuff as they where, like they do with delsel off. Jan D.