GNU bug report logs - #7260
24.0.50; DEL screwed up

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Thu, 21 Oct 2010 12:51:01 UTC

Severity: normal

Merged with 7235

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

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 7260 in the body.
You can then email your comments to 7260 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#7260; Package emacs. (Thu, 21 Oct 2010 12:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 21 Oct 2010 12:51:02 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 08:53:50 -0400
Today I typed DEL after yanking some text and typing C-x C-x to go to
the beginning of it.  DEL surprised me by deleting the region.
This change causes a lot of trouble.



In GNU Emacs 24.0.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12)
 of 2010-10-10 on theobromine2
configured using `configure  'CFLAGS=-g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  display-battery-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
SPC ESC DEL l a v a r SPC l o s SPC f i d e o s SPC 
c o n SPC a g u a SPC f r i a . C-c C-c C-u C-n C-u 
C-n C-n C-n C-n C-n ESC x m i m e RET C-u C-v C-u C-v 
ESC v C-v C-u C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-n C-n C-e C-b C-@ ESC 
b ESC b ESC b ESC b ESC w m C-y C-n P o r SPC q u e 
' DEL DEL C-\ e ' SPC d i m i t e s ? ESC b ESC b ESC 
b ? / C-n C-n C-n C-x o C-v C-u C-n C-u C-n C-n C-n 
C-p C-p C-p C-e ESC b ESC b ESC b ESC b ESC b ESC b 
ESC b ESC b C-@ C-n C-n C-x o ESC , RET M e SPC i n 
q u i e t o SPC DEL DEL a DEL o SPC d e SPC t u SPC 
s a l i d a . SPC SPC C-a C-o C o n SPC t u SPC s a 
l i d a , SPC ESC l ESC q C-e ESC DEL ESC DEL ESC DEL 
p o r SPC E c u a d o r . RET ? / P o r SPC q u e ' 
SPC s a l i s t e ? C-c C-c . o f s f - l a TAB RET 
d d d d d ESC x e m a c s ESC DEL r e p o r t SPC e 
m a c s SPC b u g RET

Recent messages:
Auto-saving...
Sending...
Wrote /home/rms/outgoing/out-3
Sending...done
Mark set [4 times]
Auto-saving...done
Sending...
Wrote /home/rms/outgoing/out-4
Sending...done
Added to /home/rms/xmail/fsf-la.xmail

Load-path shadows:
None found.

Features:
(rmailkwd warnings rmailsum goto-addr thingatpt noutline outline
apropos two-column kmacro iso-transl etags debug pp vc-bzr sha1
hex-util find-func help-fns compare-w ispell shadow emacsbug dired-aux
diff-mode easy-mmode vc vc-dispatcher parse-time vc-cvs sgml-mode
mule-util cal-move cal-menu calendar cal-loaddefs grep compile
ansi-color shell tabify man assoc mh-e mh-compat mailabbrev mh-acros
cl mh-buffers mh-loaddefs gnus gnus-ems nnheader gnus-util mm-util
mail-prsvr wid-edit novice quail help-mode view rmailout dabbrev
newcomment mailalias sendmail multi-isearch dired t-mouse finder-inf
package rmailedit rmail mail-utils battery paren cus-start cus-load
mailcrypt rfc822 comint regexp-opt ring easymenu mailcrypt-init
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 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 move-toolbar gtk x-toolkit x multi-tty emacs)


-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org




Merged 7235 7260. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 21 Oct 2010 17:09:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 17:19:01 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
To: rms <at> gnu.org
Cc: 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 19:21:54 +0200
Richard Stallman <rms <at> gnu.org> writes:

> Today I typed DEL after yanking some text and typing C-x C-x to go to
> the beginning of it.  DEL surprised me by deleting the region.

I think most people now agree that `C-x C-x' shouldn't activate the
region when transient-mark-mode is switched on, but nobody has actually
altered that function to stop doing this.

If nobody objects, I'll make that change later tonight.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 18:16:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
Cc: rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 20:19:05 +0200
On Thu, Oct 21, 2010 at 7:21 PM, Lars Magne Ingebrigtsen <lmi <at> gnus.org> wrote:
> Richard Stallman <rms <at> gnu.org> writes:
>
>> Today I typed DEL after yanking some text and typing C-x C-x to go to
>> the beginning of it.  DEL surprised me by deleting the region.
>
> I think most people now agree that `C-x C-x' shouldn't activate the
> region when transient-mark-mode is switched on, but nobody has actually
> altered that function to stop doing this.

I did not follow, but how should then the region be activated if
transient-mark-mode is on?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 18:23:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 20:26:28 +0200
Lennart Borgman <lennart.borgman <at> gmail.com> writes:

> I did not follow, but how should then the region be activated if
> transient-mark-mode is on?

`C-u C-x C-x' was the general idea from the discussion, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 18:43:01 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Lars Magne Ingebrigtsen'" <lmi <at> gnus.org>, <rms <at> gnu.org>
Cc: 'Emacs-Devel devel' <emacs-devel <at> gnu.org>, 7260 <at> debbugs.gnu.org
Subject: RE: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 11:45:13 -0700
> Richard Stallman <rms <at> gnu.org> writes:
> 
> > Today I typed DEL after yanking some text and typing C-x 
> > C-x to go to the beginning of it.  DEL surprised me by
> > deleting the region.
> 
> I think most people now agree that `C-x C-x' shouldn't activate the
> region when transient-mark-mode is switched on, but nobody 
> has actually altered that function to stop doing this.
> 
> If nobody objects, I'll make that change later tonight.

Huh??????

_Nothing_ has been decided in this regard.

Refer to the giant thread "C-d deleting region considered harmful".  See in
particular the sub/derived threads "Should C-x C-x activate the region?" and
"C-x C-x".
http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00965.html
http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg01011.html

There was _lots_ of discussion about this, but no conclusion about just what
should be done.

The last mail I see on this topic was Richard's of 2010/09/22.
He argued that a poll should be taken.
The last line of the thread is Richard's:
"If we just speculate about this, we might be very wrong."
http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg01110.html

Please do _not_ just "make that change later tonight".

(You certainly should not make changes like that based only on someone filing a
bug to report an annoyance.)

(FWIW, I was the first in the thread to suggest that we might consider changing
`C-x C-x' so that it does not activate the region.  So I am not against such a
change, in principle.  But just "making that change later tonight" is truly not
kosher/halal.)





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 19:36:01 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
Cc: rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 15:39:20 -0400
Lars Magne Ingebrigtsen <lmi <at> gnus.org> writes:

> Richard Stallman <rms <at> gnu.org> writes:
>
>> Today I typed DEL after yanking some text and typing C-x C-x to go to
>> the beginning of it.  DEL surprised me by deleting the region.
>
> I think most people now agree that `C-x C-x' shouldn't activate the
> region when transient-mark-mode is switched on, but nobody has actually
> altered that function to stop doing this.
>
> If nobody objects, I'll make that change later tonight.

Bad idea.  If C-x C-x does not enable the mark, it becomes impossible to
exchange point and mark while activating the region.

If you want to return to the mark without reactivating it, do C-u C-SPC.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 19:58:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 22:01:18 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

> Bad idea.  If C-x C-x does not enable the mark, it becomes impossible to
> exchange point and mark while activating the region.

I don't follow you.  `C-u C-x C-x' would do that, wouldn't it?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Thu, 21 Oct 2010 20:13:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
Cc: rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 16:16:47 -0400
Lars Magne Ingebrigtsen <lmi <at> gnus.org> writes:

> Chong Yidong <cyd <at> stupidchicken.com> writes:
>
>> Bad idea.  If C-x C-x does not enable the mark, it becomes impossible to
>> exchange point and mark while activating the region.
>
> I don't follow you.  `C-u C-x C-x' would do that, wouldn't it?

Ah yes, now I recall: the idea was to flip the meaning of ARG in
exchange-point-and-mark, yes?  This is not a bad idea in principle.  But
the effects may be strange.  It would mean that, when the mark is
active, you need to do C-u C-x C-x to exchange point and mark without
deactivating the mark, which is inconvenient.  So this may need
tweaking.

For this change, please post your proposed change as a patch to
emacs-devel, for others to comment, instead of checking it in directly.




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

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: emacs-devel <at> gnu.org, rms <at> gnu.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Thu, 21 Oct 2010 22:30:20 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

> Ah yes, now I recall: the idea was to flip the meaning of ARG in
> exchange-point-and-mark, yes?

Yup.

> This is not a bad idea in principle.  But the effects may be strange.
> It would mean that, when the mark is active, you need to do C-u C-x
> C-x to exchange point and mark without deactivating the mark, which is
> inconvenient.  So this may need tweaking.

Ah, yes, true.  

> For this change, please post your proposed change as a patch to
> emacs-devel, for others to comment, instead of checking it in directly.

Sure.

I've spelled out all the cases instead of using the
(xor arg (not (region-active-p))) logic for clarity.

It seems to do the trick in all the use cases (transient with active
mark, without active mark, with and without prefix, and non-transient
with and without prefix).  Unless there was some combination I forgot to
check. 

=== modified file 'lisp/simple.el'
*** lisp/simple.el	2010-10-19 15:43:27 +0000
--- lisp/simple.el	2010-10-21 20:27:22 +0000
***************
*** 3966,3993 ****
    'exchange-dot-and-mark 'exchange-point-and-mark "23.3")
  (defun exchange-point-and-mark (&optional arg)
    "Put the mark where point is now, and point where the mark is now.
- This command works even when the mark is not active,
- and it reactivates the mark.
  
! If Transient Mark mode is on, a prefix ARG deactivates the mark
! if it is active, and otherwise avoids reactivating it.  If
! Transient Mark mode is off, a prefix ARG enables Transient Mark
! mode temporarily."
    (interactive "P")
    (let ((omark (mark t))
  	(temp-highlight (eq (car-safe transient-mark-mode) 'only)))
      (if (null omark)
          (error "No mark set in this buffer"))
      (deactivate-mark)
!     (set-mark (point))
      (goto-char omark)
      (if set-mark-default-inactive (deactivate-mark))
      (cond (temp-highlight
  	   (setq transient-mark-mode (cons 'only transient-mark-mode)))
! 	  ((or (and arg (region-active-p)) ; (xor arg (not (region-active-p)))
! 	       (not (or arg (region-active-p))))
! 	   (deactivate-mark))
! 	  (t (activate-mark)))
      nil))
  
  (defcustom shift-select-mode t
--- 3966,3999 ----
    'exchange-dot-and-mark 'exchange-point-and-mark "23.3")
  (defun exchange-point-and-mark (&optional arg)
    "Put the mark where point is now, and point where the mark is now.
  
! If Transient Mark mode is on, a prefix ARG activates the mark if
! it is inactive.  If Transient Mark mode is off, a prefix ARG
! enables Transient Mark mode temporarily."
    (interactive "P")
    (let ((omark (mark t))
+ 	(active (region-active-p))
  	(temp-highlight (eq (car-safe transient-mark-mode) 'only)))
      (if (null omark)
          (error "No mark set in this buffer"))
      (deactivate-mark)
!     (push-mark (point))
      (goto-char omark)
      (if set-mark-default-inactive (deactivate-mark))
      (cond (temp-highlight
  	   (setq transient-mark-mode (cons 'only transient-mark-mode)))
! 	  ;; Transient mode and active region -- activate.
! 	  ((and active
! 		(not arg))
! 	   (activate-mark))
! 	  ;; Transient mode and no prefix -- leave deactivated.
! 	  ((and (not active)
! 		(not arg))
! 	   )
! 	  ;; Non-transient mode, but prefix -- activate.
! 	  ((and (not transient-mark-mode)
! 		arg)
! 	   (activate-mark)))
      nil))
  
  (defcustom shift-select-mode t


-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 12:19:02 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: emacs-devel <at> gnu.org, lmi <at> gnus.org, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 08:22:38 -0400
    > I think most people now agree that `C-x C-x' shouldn't activate the
    > region when transient-mark-mode is switched on, but nobody 
    > has actually altered that function to stop doing this.

C-x C-x is the main way to activate an existing region in Transient
Mark mode.  To make that require C-u will be a different pain in the
neck.

The change for C-d and DEL to delete all regions was too radically
incompatible to make made without polling the users first.  The right
thing to do is take that change out, then address the issue the right
way: by polling the users.

-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 13:49:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: rms <at> gnu.org
Cc: 7260 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>,
	emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 15:52:05 +0200
Richard Stallman <rms <at> gnu.org> writes:

> C-x C-x is the main way to activate an existing region in Transient
> Mark mode.  To make that require C-u will be a different pain in the
> neck.

I wasn't present when the discussion to make `C-x C-x' do these things
took place, but it seems like the current behaviour conflates to rather
different actions -- exchange-point-and-mark, and activate-region.  How
about just decoupling them altogether, and let `C-x C-x' revert to
(only) doing what it's always done, and add `C-x C-a' for
`activate-region'?

`C-u C-x C-x' could still do both at once, for people who like that a
lot. 

> The change for C-d and DEL to delete all regions was too radically
> incompatible to make made without polling the users first.  The right
> thing to do is take that change out, then address the issue the right
> way: by polling the users.

It sounds rather odd to have `C-d' not delete the active region.  If
you (for instance) Shift-Right an area, and then press `DEL', I think
most people would expect the region you've just selected to be deleted.

So I think there are two completely separate issues here:

1) Should `C-x C-x' activate the region?  I think not, because it drives
   me totally insane.

2) Should `DEL' delete the active region?  I think it makes sense, but
   it might be too surprising.  And `C-w' already exists to do that, so
   there doesn't seem to be a really compelling reason for that
   behaviour.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 15:01:02 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: emacs-devel <at> gnu.org, rms <at> gnu.org, Drew Adams <drew.adams <at> oracle.com>,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 17:04:19 +0200
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> add `C-x C-a' for `activate-region'?

Note that ^X^A is already taken.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 15:45:02 GMT) Full text and rfc822 format available.

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

From: Miles Bader <miles <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: emacs-devel <at> gnu.org, rms <at> gnu.org, Drew Adams <drew.adams <at> oracle.com>,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 00:47:48 +0900
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> I wasn't present when the discussion to make `C-x C-x' do these things
> took place, but it seems like the current behaviour conflates to rather
> different actions -- exchange-point-and-mark, and activate-region.  How
> about just decoupling them altogether, and let `C-x C-x' revert to
> (only) doing what it's always done, and add `C-x C-a' for
> `activate-region'?

How about not doing that?

I don't disagree that having a dedicated key might be more
logical/elegant/whatever, but user interfaces, after all, are more about
what's convenient and familiar than what's the most minimal.

Saying "(only) doing what it's always done" is simply _wrong_ at this
point, because C-x C-x has had its current functionality for quite a
while -- if I interpret what I see in git correctly, at least since 1993!

-Miles

-- 
Conservative, n. A statesman enamored of existing evils, as opposed to a
Liberal, who wants to replace them with new ones.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 15:46:01 GMT) Full text and rfc822 format available.

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

From: Miles Bader <miles <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 7260 <at> debbugs.gnu.org, rms <at> gnu.org,
	Drew Adams <drew.adams <at> oracle.com>, emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 00:49:00 +0900
Andreas Schwab <schwab <at> linux-m68k.org> writes:
>> add `C-x C-a' for `activate-region'?
>
> Note that ^X^A is already taken.

Hmm, doesn't seem to be in my Emacs...

-Miles

-- 
Friendless, adj. Having no favors to bestow. Destitute of fortune. Addicted to
utterance of truth and common sense.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 16:07:01 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Miles Bader <miles <at> gnu.org>
Cc: emacs-devel <at> gnu.org, rms <at> gnu.org, Drew Adams <drew.adams <at> oracle.com>,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 18:10:25 +0200
Miles Bader <miles <at> gnu.org> writes:

> Saying "(only) doing what it's always done" is simply _wrong_ at this
> point, because C-x C-x has had its current functionality for quite a
> while -- if I interpret what I see in git correctly, at least since 1993!

Huh.  I though transient-mark-mode was new(ish)?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 16:39:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 7260 <at> debbugs.gnu.org, emacs-devel <at> gnu.org, rms <at> gnu.org,
	Miles Bader <miles <at> gnu.org>
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 18:42:48 +0200
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> Huh.  I though transient-mark-mode was new(ish)?

etc/NEWS.19:

* Changes in version 19.

** If you enable Transient Mark mode, then the mark becomes "inactive"

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

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

From: David Kastrup <dak <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Cc: emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 18:44:23 +0200
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> Miles Bader <miles <at> gnu.org> writes:
>
>> Saying "(only) doing what it's always done" is simply _wrong_ at this
>> point, because C-x C-x has had its current functionality for quite a
>> while -- if I interpret what I see in git correctly, at least since
>> 1993!
>
> Huh.  I though transient-mark-mode was new(ish)?

Nope.  Been around as long as I can remember.  It is just that it has
"recently" made active by default.

Temporary transient-mark-mode (sounds a bit redundant, doesn't it?) is
quite newer, 21.something I think.

-- 
David Kastrup





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 16:42:03 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 7260 <at> debbugs.gnu.org, emacs-devel <at> gnu.org, rms <at> gnu.org,
	Miles Bader <miles <at> gnu.org>
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 18:45:15 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

>> Huh.  I though transient-mark-mode was new(ish)?
>
> etc/NEWS.19:
>
> * Changes in version 19.

I mean, as a thing that's on by default.  (Stuff that's not on by
default doesn't exist for most people.)  People really started
complaining about this behaviour this year, so I'm assuming something
changed somewhere.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Fri, 22 Oct 2010 18:21:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 7260 <at> debbugs.gnu.org, emacs-devel <at> gnu.org, schwab <at> linux-m68k.org,
	rms <at> gnu.org, miles <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Fri, 22 Oct 2010 20:24:19 +0200
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 22 Oct 2010 18:45:15 +0200
> Cc: Miles Bader <miles <at> gnu.org>, emacs-devel <at> gnu.org, rms <at> gnu.org,
> 	7260 <at> debbugs.gnu.org
> 
> Andreas Schwab <schwab <at> linux-m68k.org> writes:
> 
> >> Huh.  I though transient-mark-mode was new(ish)?
> >
> > etc/NEWS.19:
> >
> > * Changes in version 19.
> 
> I mean, as a thing that's on by default.  (Stuff that's not on by
> default doesn't exist for most people.)  People really started
> complaining about this behaviour this year, so I'm assuming something
> changed somewhere.

  2008-03-23  Chong Yidong  <cyd <at> stupidchicken.com>

	  * simple.el (transient-mark-mode): Turn on by default.


Hardly "this year".

FWIW, the first thing I do in any Emacs I need to work is turn this
off.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 07:43:02 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 7260 <at> debbugs.gnu.org, drew.adams <at> oracle.com, emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 03:46:14 -0400
    I wasn't present when the discussion to make `C-x C-x' do these things
    took place, but it seems like the current behaviour conflates to rather
    different actions -- exchange-point-and-mark, and activate-region.

Combining the two actions was very convenient before the recent
change to C-d and DEL.  The problem has happened to me in fact
after C-x C-x, but I suspect it will also happen in other cases.

-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 07:43:02 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 7260 <at> debbugs.gnu.org, drew.adams <at> oracle.com, emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 03:46:15 -0400
    I wasn't present when the discussion to make `C-x C-x' do these things
    took place, but it seems like the current behaviour conflates to rather
    different actions -- exchange-point-and-mark, and activate-region.

Combining the two actions was very convenient before the recent
change to C-d and DEL.  The problem has happened to me in fact
after C-x C-x, but I suspect it will also happen in other cases.

    It sounds rather odd to have `C-d' not delete the active region.  If
    you (for instance) Shift-Right an area, and then press `DEL', I think
    most people would expect the region you've just selected to be deleted.

After shift-arrows is a special case when it might be proper for DEL
and C-d to delete the region.

-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 09:35:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: rms <at> gnu.org
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 7260 <at> debbugs.gnu.org,
	emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 11:38:48 +0200

Richard Stallman skrev 2010-10-23 09.46:
>
>      It sounds rather odd to have `C-d' not delete the active region.  If
>      you (for instance) Shift-Right an area, and then press `DEL', I think
>      most people would expect the region you've just selected to be deleted.
>
> After shift-arrows is a special case when it might be proper for DEL
> and C-d to delete the region.
>

FWIW, I often mark a region with the mouse and press DEL to delete it.  It is 
a habit picked up from other programs.  But then again, I enabled delsel a 
long time ago, so I'm used to that behaviour.

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 15:25:01 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: emacs-devel <at> gnu.org, rms <at> gnu.org, Drew Adams <drew.adams <at> oracle.com>,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 13:18:50 +0200
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> So I think there are two completely separate issues here:
>
> 1) Should `C-x C-x' activate the region?  I think not, because it drives
>    me totally insane.

Same here (FWIW).

-- 
 Bastien




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 16:06:01 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: David Kastrup <dak <at> gnu.org>
Cc: 7260 <at> debbugs.gnu.org, rms <at> gnu.org, emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 18:09:02 +0200
David Kastrup <dak <at> gnu.org> writes:

> Would suggest an option for inverting the meaning of a prefix argument
> on C-x C-x while in transient-mark-mode.

The question would then be what the default should be.  :-)

Anyway, my impression is that the vast majority of kvetching about
transient-mark-mode and/or delsel mode is purely about `C-x C-x'.  If
that command didn't activate the region, I think many people who find
transient-mark-mode problematic would no longer feel that way.
transient-mark-mode is quite useful (qv. `M-;'), and it's a shame that
something is simple as `C-x C-x' should make so many people switch it
off completely.

So my suggestion is this: Apply the patch that reverses (sort of) the
prefix in the `C-x C-x' in the pretest Emacs, and see what people feel
about it then.  If people absolutely loathe how `C-x C-x' then works, we
can revert the change, but at least we'll have one more data point.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 17:37:02 GMT) Full text and rfc822 format available.

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

From: James Cloos <cloos <at> jhcloos.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, emacs-devel <at> gnu.org, rms <at> gnu.org,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 13:26:15 -0400
>>>>> "JD" == Jan Djärv <jan.h.d <at> swipnet.se> writes:

JD> FWIW, I often mark a region with the mouse and press DEL to delete it.
JD> It is a habit picked up from other programs.  But then again, I
JD> enabled delsel a long time ago, so I'm used to that behaviour.

Perhaps what would kill :^) the controversy would be a dwim version,
kill-or-delete, which would add the region to the kill buffer if it
is big enough, but not bother if it is small.  Using that for DEL &
C-d may cover both camps' wants.

The C-u prefix arg could invert the choice, in case you really want
to delete a huge region or want to cut-n-paste a small one.

AISI, it would only be useful when the region is active.  C-d should
continue to delete just the single character to the (logical) right
when the region is not active.

Acting based on whether any input events occurred between activating
the region and pressing C-d or DEL may be a reasonable alternative.
In that case, those two keys would only kill if used immediately
after activating the region.

I find that I almost never want to delete (rather than kill) a region.
But only /almost/ never.

I could deal with <activate-region> C-u C-d deleting the region.  But
unless the region is small enough to retype quickly and easily, it would
be painful for C-d on its own to delete the region.

-JimC
-- 
James Cloos <cloos <at> jhcloos.com>         OpenPGP: 1024D/ED7DAEA6




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sat, 23 Oct 2010 18:07:01 GMT) Full text and rfc822 format available.

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

From: James Cloos <cloos <at> jhcloos.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 7260 <at> debbugs.gnu.org, rms <at> gnu.org,
	emacs-devel <at> gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sat, 23 Oct 2010 13:54:16 -0400
[I see my followup got truncated; trying again. -JimC]

>>>>> "JD" == Jan Djarv <jan.h.d <at> swipnet.se> writes:

JD> FWIW, I often mark a region with the mouse and press DEL to delete it.
JD> It is a habit picked up from other programs.  But then again, I
JD> enabled delsel a long time ago, so I'm used to that behaviour.

Perhaps what would kill :^) the controversy would be a dwim version,
kill-or-delete, which would add the region to the kill buffer if it
is big enough, but not bother if it is small.  Using that for DEL &
C-d may cover both camps' wants.

The C-u prefix arg could invert the choice, in case you really want
to delete a huge region or want to cut-n-paste a small one.

AISI, it would only be useful when the region is active.  C-d should
continue to delete just the single character to the (logical) right
when the region is not active.

Acting based on whether any input events occurred between activating
the region and pressing C-d or DEL may be a reasonable alternative.
In that case, those two keys would only kill if used immediately
after activating the region.

I find that I almost never want to delete (rather than kill) a region.
But only /almost/ never.

I could deal with <activate-region> C-u C-d deleting the region.  But
unless the region is small enough to retype quickly and easily, it would
be painful for C-d on its own to delete the region.

-JimC
-- 
James Cloos <cloos <at> jhcloos.com>         OpenPGP: 1024D/ED7DAEA6




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sun, 24 Oct 2010 16:27:01 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: rms <at> gnu.org
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, emacs-devel <at> gnu.org,
	drew.adams <at> oracle.com, 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sun, 24 Oct 2010 12:30:26 -0400
Richard Stallman <rms <at> gnu.org> writes:

>   It sounds rather odd to have `C-d' not delete the active region.  If
>   you (for instance) Shift-Right an area, and then press `DEL', I think
>   most people would expect the region you've just selected to be deleted.
>
> After shift-arrows is a special case when it might be proper for DEL
> and C-d to delete the region.

This might be OK, and indeed I think it should at least be an option.
One problem is that it can be confusing.  Currently, temporarily active
regions (i.e. shift-selected and/or mouse-selected) behave as much like
ordinary active regions as possible, with respect to user commands.  If
we make DEL behave differently for one type of region, what's the
justification for limiting ourselves to DEL?

For instance, in other X applications, shift-selecting a region and
typing a self-inserting character replaces the region.  By this
reasoning, shouldn't we enable Delete Selection mode style behavior for
shift-selected regions?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Mon, 25 Oct 2010 12:05:02 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: larsi <at> gnus.org, emacs-devel <at> gnu.org, drew.adams <at> oracle.com,
	7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Mon, 25 Oct 2010 08:08:29 -0400
      If
    we make DEL behave differently for one type of region, what's the
    justification for limiting ourselves to DEL?

DEL is so special that we need no "justification" for treating
it specially.  However, that's not what I recommend.  It's not
just DEL, it is also C-d.

    For instance, in other X applications, shift-selecting a region and
    typing a self-inserting character replaces the region.  By this
    reasoning, shouldn't we enable Delete Selection mode style behavior for
    shift-selected regions?

Maybe we should fully enable that behavior after shift-selections
and after mouse-selections.

-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org




bug closed, send any further explanations to 7260 <at> debbugs.gnu.org and rms <at> gnu.org Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 19 Feb 2012 06:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7260; Package emacs. (Sun, 19 Feb 2012 06:12:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> gnu.org>
To: 7260 <at> debbugs.gnu.org
Subject: Re: bug#7260: 24.0.50; DEL screwed up
Date: Sun, 19 Feb 2012 14:09:04 +0800
> Today I typed DEL after yanking some text and typing C-x C-x to go to
> the beginning of it.  DEL surprised me by deleting the region.  This
> change causes a lot of trouble.

Closing, see

http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00743.html




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

This bug report was last modified 13 years and 154 days ago.

Previous Next


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