GNU bug report logs - #6348
24.0.50; delsel mode (or register insert) deletes text too soon.

Previous Next

Package: emacs;

Reported by: Jan Djärv <jan.h.d <at> swipnet.se>

Date: Fri, 4 Jun 2010 06:37:02 UTC

Severity: minor

Tags: wontfix

Found in version 24.0.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6348 in the body.
You can then email your comments to 6348 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6348; Package emacs. (Fri, 04 Jun 2010 06:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 04 Jun 2010 06:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; delsel mode (or register insert) deletes text too soon.
Date: 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.

        Jan D.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/opt/emacs-trunk/share/emacs/24.0.50/etc/DEBUG.


In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2010-06-04 on f12.localdomain
Windowing system distributor `Fedora Project', version 11.0.10706000
configured using `configure  '--prefix=/opt/emacs-trunk' '--verbose' 
'--enable-asserts' '--with-x-toolkit=lucid' 'CFLAGS=-O2 -g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  scroll-bar-mode: left
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<escape> x d e l e t e - s e l <tab> <return> C-x h
C-x r i a <escape> x r e p o r t - e m <tab> <retu
rn>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Delete-Selection mode enabled
Mark set [3 times]
insert-register: Register does not contain text

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message sendmail regexp-opt rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
gmm-utils mailheader emacsbug cus-start cus-load delsel tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces
cus-face files text-properties overlay md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting x-toolkit x multi-tty emacs)





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6348; Package emacs. (Fri, 04 Jun 2010 16:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 6348 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 6348 <at> debbugs.gnu.org
Subject: Re: bug#6348: 24.0.50;
	delsel mode (or register insert) deletes text too soon.
Date: Fri, 04 Jun 2010 19:43:10 +0300
> % 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/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6348; Package emacs. (Fri, 04 Jun 2010 21:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 6348 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Juri Linkov <juri <at> jurta.org>
Cc: 6348 <at> debbugs.gnu.org
Subject: Re: bug#6348: 24.0.50; delsel mode (or register insert) deletes text
	too soon.
Date: Fri, 04 Jun 2010 23:27:02 +0200

Juri Linkov skrev 2010-06-04 18.43:
>> % 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)?
>

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.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6348; Package emacs. (Sat, 05 Jun 2010 20:12:01 GMT) Full text and rfc822 format available.

Message #14 received at 6348 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 6348 <at> debbugs.gnu.org
Subject: Re: bug#6348: 24.0.50;
	delsel mode (or register insert) deletes text too soon.
Date: Sat, 05 Jun 2010 23:02:10 +0300
> The point is that C-x r i C-g should leave stuff as they where, like they
> do with delsel off.

delsel deletes the selection using pre-command-hook before the command
is executed.  I see no way to fix this for the current delsel mode.
Maybe with the core support for delsel mode this would be possible.

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




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Fri, 25 Jun 2010 07:20:03 GMT) Full text and rfc822 format available.

Notification sent to Jan Djärv <jan.h.d <at> swipnet.se>:
bug acknowledged by developer. (Fri, 25 Jun 2010 07:20:03 GMT) Full text and rfc822 format available.

Message #19 received at 6348-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Juri Linkov <juri <at> jurta.org>
Cc: 6348-done <at> debbugs.gnu.org
Subject: Re: bug#6348: 24.0.50; delsel mode (or register insert) deletes text
	too soon.
Date: Fri, 25 Jun 2010 09:18:04 +0200
I made some experiments, but you are correct, we need core delsel support to 
fix this.  Closing as wontfix.

	Jan D.


Juri Linkov skrev 2010-06-05 22.02:
>> The point is that C-x r i C-g should leave stuff as they where, like they
>> do with delsel off.
>
> delsel deletes the selection using pre-command-hook before the command
> is executed.  I see no way to fix this for the current delsel mode.
> Maybe with the core support for delsel mode this would be possible.
>




Severity set to 'minor' from 'normal' Request was from Jan Djärv <jan.h.d <at> swipnet.se> to control <at> debbugs.gnu.org. (Fri, 25 Jun 2010 07:22:02 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Jan Djärv <jan.h.d <at> swipnet.se> to control <at> debbugs.gnu.org. (Fri, 25 Jun 2010 07:22:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6348; Package emacs. (Sat, 26 Jun 2010 22:25:02 GMT) Full text and rfc822 format available.

Message #26 received at 6348 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 6348 <at> debbugs.gnu.org
Cc: jan.h.d <at> swipnet.se
Subject: Re: bug#6348: 24.0.50;
	delsel mode (or register insert) deletes text too soon.
Date: Sun, 27 Jun 2010 00:24:30 +0200
> I made some experiments, but you are correct, we need core delsel support to
> fix this.  Closing as wontfix.

Actually, I'm not opposed to adding core support for delsel.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 25 Jul 2010 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.