Subject: 23.0.60; Different behavior in C-e and C-S-e between -nw and normal mode

From: Paul Lussier <[email-masked]>
Date: Wed, 11 Jun 2008 13:26:26 -0400 (EDT)

In a buffer with text, the actions:
  C-SPC
  C-n
  C-e

with trasient-mark-mode on results only in the last line being marked.
If a rectangle is being marked out, this results only in the region
from the beginning column of the last line to the end of the last line
being marked.

C-h k C-e reports:

    C-e (translated from C-S-e) runs the command move-end-of-line, which
    is an interactive compiled Lisp function in `simple.el'.

C-h k C-S-e reports:

    C-e runs the command move-end-of-line, which is an interactive
    compiled Lisp function in `simple.el'.

Though they are both bound to move-end-of-line, they have different
behaviors.  The above sequence to mark a rectangle, if done with C-S-e
instead of C-e, works as expected with the entire region being marked
as desired.

I have invoked emacs both with and without -Q and I get the same
behavior.  Interestingly, invoking emacs with -nw causes emacs to
behave normally.  There is no difference between C-e and C-S-e, and
C-e works as expected in -nw mode.

Thanks,
Paul

In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, X toolkit)
 of 2008-04-10 on ambivalent-optimist.permabit.com
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--prefix=/usr/local' '--with-kerberos5' '--with-x' '--with-x-toolkit=athena''

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: C
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: CPerl

Minor modes in effect:
  iswitchb-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: (only . 1)
  abbrev-mode: t

Recent input:
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> C-S-a C-SPC <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <up> <up> <up> <up> 
<up> <up> <down> C-S-w <up> <up> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> h <backspace> t h e SPC <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> C-SPC C-S-e C-S-w f r o m SPC b u i l <escape> 
/ <escape> / ( ) <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> C-S-x C-S-s <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <down> C-S-a <up> <down> 
C-SPC <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> C-S-h k C-e <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <help-echo> C-S-x 1 
C-S-x k <return> <escape> x <down-mouse-2> <mouse-2> 
C-S-a C-S-d C-S-d C-S-d C-S-d <return> C-S-g <escape> 
x r e p o <tab> r t <tab> <return>

Recent messages:
Mark activated
Mark set [2 times]
Mark set [4 times]
Mark set [2 times]
Type C-x 1 to delete the help window.
Making completion list...
Quit
Making completion list...