unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 6348@debbugs.gnu.org
Subject: bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon.
Date: Fri, 04 Jun 2010 19:43:10 +0300	[thread overview]
Message-ID: <878w6u3g0x.fsf@mail.jurta.org> (raw)
In-Reply-To: <4C089EE5.80700@swipnet.se> ("Jan Djärv"'s message of "Fri, 04 Jun 2010 08:36:21 +0200")

> % emacs -Q
> M-x delete-selection-mode <return>
> 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)?

-- 
Juri Linkov
http://www.jurta.org/emacs/





  reply	other threads:[~2010-06-04 16:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04  6:36 bug#6348: 24.0.50; delsel mode (or register insert) deletes text too soon Jan Djärv
2010-06-04 16:43 ` Juri Linkov [this message]
2010-06-04 21:27   ` Jan Djärv
2010-06-05 20:02     ` Juri Linkov
2010-06-25  7:18       ` Jan Djärv
2010-06-26 22:24         ` Stefan Monnier

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=878w6u3g0x.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=6348@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).