From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: Shift-select-mode has no effect Resent-From: Brian Tannahill Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11221@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13341602765491 (code B ref -1); Wed, 11 Apr 2012 16:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Apr 2012 16:04:36 +0000 Received: from localhost ([127.0.0.1]:52279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI027-0001QV-PJ for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:04:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55384) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI01h-0001PT-71 for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:04:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI00V-00043F-4M for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:03:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00U-00042x-Tv for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:02:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00P-0007pB-59 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI00H-00040f-EN for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:48 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:64865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00G-00040L-TH for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:41 -0400 Received: by eeke53 with SMTP id e53so290044eek.0 for ; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Cw0QVsTgrygNWPPkmo8UWF15PBlTaZri0SIlmQj9UWs=; b=IWn9NcEhX24rjM7/5RGeK57yS0eVZINjTD1pPz5dpFGpFfo7HDePkePx0Wr2lgu0lQ zDhm0CBuKLW+K8kUInOWHDTexGJ+qB0OzVjeGEetNN3ZoYmemXr4KfRNlzCbGZzL1D33 B8sQZD0PF0381RgH2qX9utOKvgMURTbhZDh1EPc6+VLp+57IO4AKqn4F9lBtl+B8fcZc K+TAJlk4A6FqLuRKAARaga6VFn/JxcT12IJXdcnvyq1iUcngEi555uXxKgTzzt1RczlX OARzwyB+a1Gp9zfLeAhqyT5YqWurIdPHYkh9h0exUXMjESbh3gCvBwbOnQ1PyOLfski6 pq6A== MIME-Version: 1.0 Received: by 10.14.52.80 with SMTP id d56mr1985560eec.105.1334160158241; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) Received: by 10.213.23.66 with HTTP; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) Date: Wed, 11 Apr 2012 11:02:38 -0500 Message-ID: From: Brian Tannahill Content-Type: multipart/alternative; boundary=00235445bbf64e338304bd695ed6 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Wed, 11 Apr 2012 12:04:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --00235445bbf64e338304bd695ed6 Content-Type: text/plain; charset=ISO-8859-1 From: bjt1230@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.0.94; shift-select-mode has no effect --text follows this line-- I'm experimenting with new bindings for basic movement in Emacs. Borrowing from http://xahlee.org/emacs/emacs_useful_user_keybinding.html and ErgoEmacs, this remapping works as expected: (global-set-key (kbd "M-i") 'previous-line) (global-set-key (kbd "M-k") 'next-line) (global-set-key (kbd "M-j") 'backward-char) (global-set-key (kbd "M-l") 'forward-char) But defining a Shift-Alt combination gives an unwanted side-effect. (global-set-key (kbd "M-I") 'cua-scroll-down) (global-set-key (kbd "M-K") 'cua-scroll-up) (global-set-key (kbd "M-J") 'backward-word) (global-set-key (kbd "M-L") 'forward-word) Running describe-key (C-h k) shows that the bindings were successful. And these bindings move point as they should, but for some reason it sets the mark at my original position, and gives me a highlighted region as I move the point. I tried setting shift-select-mode to nil. This had no effect. Also described at http://stackoverflow.com/questions/10106797. 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 /usr/local/share/emacs/24.0.94/etc/DEBUG. In GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-04-04 on b-l Windowing system distributor `The X.Org Foundation', version 11.0.11200000 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: Org Minor modes in effect: ido-everywhere: t delete-selection-mode: t display-time-mode: t cua-mode: t bt-keys-minor-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: C-8 M-k M-k M-k M-k M-k M-k M-k M-k M-k M-i * * SPC M-1 SPC 1 4 : 0 0 > SPC SPC H a r i i r c u t C-x C-s M-3 M-x r e p o r t - e m a c s - b u g Recent messages: Omitting... Omitted 34 lines. Omitting... (Nothing to omit) Omitting... Omitted 1 line. OVERVIEW For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /home/brian/Org/projects.org... Wrote /home/brian/Org/projects.org Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cal-china lunar solar cal-dst cal-hebrew diary-lib diary-loaddefs mule-util cal-move parse-time calfw-org calfw holidays hol-loaddefs cl org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html format-spec org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload help-mode view derived dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux dired regexp-opt easymenu ido delsel time server cua-base easy-mmode edmacro kmacro time-date 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 minibuffer loaddefs button faces cus-face files text-properties overlay sha1 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) --00235445bbf64e338304bd695ed6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable From: bjt1230@gmail.com
To: bug-gnu-emacs@gnu.org
Subject:= 24.0.94; shift-select-mode has no effect
--text follows this line--
= I'm experimenting with new bindings for basic movement in Emacs. Borrow= ing from http://xahlee.org/emacs/emacs_useful_user_keybinding.html and ErgoE= macs, this remapping works as expected:

(global-set-key (kbd "M-i")=A0=A0 'previous-line)
(glo= bal-set-key (kbd "M-k")=A0=A0 'next-line)
(global-set-key = (kbd "M-j")=A0=A0 'backward-char)
(global-set-key (kbd &qu= ot;M-l")=A0=A0 'forward-char)

But defining a Shift-Alt combination gives an unwanted side-effect.
=
(global-set-key (kbd "M-I")=A0=A0 'cua-scroll-down)
(g= lobal-set-key (kbd "M-K")=A0=A0 'cua-scroll-up)
(global-se= t-key (kbd "M-J")=A0=A0 'backward-word)
(global-set-key (kbd "M-L")=A0=A0 'forward-word)

Runni= ng describe-key (C-h k) shows that the bindings were
successful. And the= se bindings move point as they should, but for some
reason it sets the m= ark at my original position, and gives me a
highlighted region as I move the point.

I tried setting shift-select= -mode to nil.=A0 This had no effect.

Also described at http://stackoverflow.com/questio= ns/10106797.

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


In GNU Emacs 24.0.94.1= (i686-pc-linux-gnu, GTK+ Version 2.24.10)
=A0of 2012-04-04 on b-l
Wi= ndowing system distributor `The X.Org Foundation', version 11.0.1120000= 0
Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_COLLAT= E: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
= =A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 valu= e of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: nil
=A0 loc= ale-coding-system: utf-8-unix
=A0 default enable-multibyte-characters: t=

Major mode: Org

Minor modes in effect:
=A0 ido-everywhere= : t
=A0 delete-selection-mode: t
=A0 display-time-mode: t
=A0 cua-mode: t=
=A0 bt-keys-minor-mode: t
=A0 tooltip-mode: t
=A0 mouse-wheel-mod= e: t
=A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0= font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryp= tion-mode: t
=A0 auto-compression-mode: t
=A0 column-number-mode: t=A0 line-number-mode: t
=A0 global-visual-line-mode: t
=A0 visual-l= ine-mode: t
=A0 transient-mark-mode: t

Recent input:
C-8 M-k M-k M-k M-k M-k = M-k M-k M-k M-k <return> M-i
* * SPC M-1 <return> <backs= pace> SPC 1 4 : 0 0 > SPC
SPC H a r i <backspace> <backs= pace> i r c u t C-x C-s
M-3 <down> <up> <M-next> <M-end> <help-echo> = <help-echo>
<help-echo> M-x r e p o r t - e m a c s - b u g= <r
eturn>

Recent messages:
Omitting...
Omitted 34 li= nes.
Omitting...
(Nothing to omit)
Omitting...
Omitted 1 line.
OVERV= IEW
For information about GNU Emacs and the GNU system, type C-h C-a.Saving file /home/brian/Org/projects.org...
Wrote /home/brian/Org/projects.org

Load-path shadows:
None found.

Features:
(shadow sort gnus= -util mail-extr emacsbug message rfc822 mml mml-sec
mm-decode mm-bodies = mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rf= c2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils cal-china lunar solar cal-dst cal-hebrew diary-lib
diary-load= defs mule-util cal-move parse-time calfw-org calfw holidays
hol-loaddefs= cl org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc
org-jsinfo o= rg-infojs org-html format-spec org-exp ob-exp org-exp-blocks
org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org
= ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src
ob-c= omint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color
ring = org-list org-faces org-compat org-entities org-macs noutline
outline cal-menu calendar cal-loaddefs byte-opt warnings bytecomp
byte-c= ompile cconv macroexp advice help-fns advice-preload help-mode
view deri= ved dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult
ediff-hel= p ediff-init ediff-util dired-aux dired regexp-opt easymenu ido
delsel time server cua-base easy-mmode edmacro kmacro time-date tooltip
= ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
font= set image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
fra= me cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet l= ao korean japanese hebrew greek romanian slovak czech european
ethiopic = indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-prope= rties overlay sha1 md5 base64 format env code-pages mule
custom widget h= ashtable-print-readable backquote make-network-process
dbusbind dynamic-= setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

--00235445bbf64e338304bd695ed6-- From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: Shift-select-mode has no effect Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Brian Tannahill Cc: 11221@debbugs.gnu.org Received: via spool by 11221-submit@debbugs.gnu.org id=B11221.133416746216665 (code B ref 11221); Wed, 11 Apr 2012 18:05:01 +0000 Received: (at 11221) by debbugs.gnu.org; 11 Apr 2012 18:04:22 +0000 Received: from localhost ([127.0.0.1]:52476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1u2-0004Kj-4C for submit@debbugs.gnu.org; Wed, 11 Apr 2012 14:04:22 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46348) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1tz-0004Kb-As for 11221@debbugs.gnu.org; Wed, 11 Apr 2012 14:04:21 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SI1sr-00056O-FA; Wed, 11 Apr 2012 14:03:09 -0400 From: Glenn Morris References: X-Spook: csim assassinate UOP csystems UNSCOM BATF Taiwan bank X-Ran: q*p%`$s`{$F?3o+"85)tN"gp3>dPdORk\t:Nd+20p|-LnaM.OnmQm~WE]|p[F#k{4$*U2w X-Hue: green X-Attribution: GM Date: Wed, 11 Apr 2012 14:03:09 -0400 In-Reply-To: (Brian Tannahill's message of "Wed, 11 Apr 2012 11:02:38 -0500") Message-ID: <42aa2i6t9e.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Brian Tannahill wrote: > (global-set-key (kbd "M-J") 'backward-word) [...] > Running describe-key (C-h k) shows that the bindings were > successful. And these bindings move point as they should, but for some > reason it sets the mark at my original position, and gives me a > highlighted region as I move the point. I'm unable to reproduce this; even with shift-select-mode on. Note that this-command-keys-shift-translated says: Shift-translation occurs when there is no binding for the key sequence as entered [...] Does this happen if you start from emacs -Q? From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: Shift-select-mode has no effect Resent-From: Brian Tannahill Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 11221@debbugs.gnu.org Received: via spool by 11221-submit@debbugs.gnu.org id=B11221.133417558632491 (code B ref 11221); Wed, 11 Apr 2012 20:20:02 +0000 Received: (at 11221) by debbugs.gnu.org; 11 Apr 2012 20:19:46 +0000 Received: from localhost ([127.0.0.1]:52801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI414-0008Rz-4o for submit@debbugs.gnu.org; Wed, 11 Apr 2012 16:19:46 -0400 Received: from mail-ey0-f172.google.com ([209.85.215.172]:35752) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI411-0008Rr-H9 for 11221@debbugs.gnu.org; Wed, 11 Apr 2012 16:19:44 -0400 Received: by eaaq11 with SMTP id q11so337551eaa.3 for <11221@debbugs.gnu.org>; Wed, 11 Apr 2012 13:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bmJUIKiALO2VW4M8U3F4Gf3eXp//Onok7RwmbMhPiUA=; b=JRM5W8XRf2RlFwcowsCM4CIYAmWj9hNMKoaQqDUnhaZ0fo69KHzXMh7Uu4pN30Y89g XJj0nwHw72NNo1gzeImokNjRdCq6l7kKxTFQLcbFbDI5TGMxXjL5rMPK3Ozrn6JLmNm7 MboThP2RyXPaaejiGaPglOxUJkQMM7OpQTxhlI5uXZCH7ucNjQcc83e9TneOUrNjeorv oCU+oriYZNqjw8r5pNRjE4HF/oIuxs5GZOLqtu88mxWWMyoEO4HuFOF06ToeBXF1/Aw7 koNo5NRgsipA+xjRDrjrnD2lMFnTPGDB+T4rrv5xs8gig4IpA0P2l4zSLoO4Rj8D7I3c N+0g== MIME-Version: 1.0 Received: by 10.14.29.65 with SMTP id h41mr2133402eea.71.1334175514088; Wed, 11 Apr 2012 13:18:34 -0700 (PDT) Received: by 10.213.23.66 with HTTP; Wed, 11 Apr 2012 13:18:33 -0700 (PDT) In-Reply-To: <42aa2i6t9e.fsf@fencepost.gnu.org> References: <42aa2i6t9e.fsf@fencepost.gnu.org> Date: Wed, 11 Apr 2012 15:18:33 -0500 Message-ID: From: Brian Tannahill Content-Type: multipart/alternative; boundary=90e6ba539f2495d55804bd6cf19c X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) --90e6ba539f2495d55804bd6cf19c Content-Type: text/plain; charset=ISO-8859-1 When I run emacs -Q and then do my custom keybindings, the problem does NOT occur. So apparently something in my init file is messing things up. I'll work on isolating it. Thanks. On Wed, Apr 11, 2012 at 1:03 PM, Glenn Morris wrote: > Brian Tannahill wrote: > > > (global-set-key (kbd "M-J") 'backward-word) > [...] > > Running describe-key (C-h k) shows that the bindings were > > successful. And these bindings move point as they should, but for some > > reason it sets the mark at my original position, and gives me a > > highlighted region as I move the point. > > I'm unable to reproduce this; even with shift-select-mode on. Note that > this-command-keys-shift-translated says: > > Shift-translation occurs when there is no binding for the key sequence > as entered [...] > > Does this happen if you start from emacs -Q? > --90e6ba539f2495d55804bd6cf19c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When I run emacs -Q and then do my custom keybindings, the problem does NOT= occur.=A0

So apparently something in my init file is messing thing= s up.=A0 I'll work on isolating it.

Thanks.



On Wed, Apr 11, 2012 at 1:03 PM, Glenn Morris <rgm@gnu.org> wrote:
Brian Tannahill wrote:

> (global-set-key (kbd "M-J") =A0 'backward-word)
[...]
> Running describe-key (C-h k) shows that the bindings were
> successful. And these bindings move point as they should, but for some=
> reason it sets the mark at my original position, and gives me a
> highlighted region as I move the point.

I'm unable to reproduce this; even with shift-select-mode on. Note that=
this-command-keys-shift-translated says:

=A0 Shift-translation occurs when there is no binding for the key sequence=
=A0 as entered [...]

Does this happen if you start from emacs -Q?

--90e6ba539f2495d55804bd6cf19c-- From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: Shift-select-mode has no effect -- interaction with cua-mode References: In-Reply-To: Resent-From: Brian Tannahill Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Glenn Morris , 11221@debbugs.gnu.org Received: via spool by 11221-submit@debbugs.gnu.org id=B11221.133425192215338 (code B ref 11221); Thu, 12 Apr 2012 17:33:02 +0000 Received: (at 11221) by debbugs.gnu.org; 12 Apr 2012 17:32:02 +0000 Received: from localhost ([127.0.0.1]:54576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SINsI-0003zH-91 for submit@debbugs.gnu.org; Thu, 12 Apr 2012 13:32:02 -0400 Received: from mail-ee0-f44.google.com ([74.125.83.44]:63080) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SINsF-0003z4-Vz for 11221@debbugs.gnu.org; Thu, 12 Apr 2012 13:32:00 -0400 Received: by eeke51 with SMTP id e51so615123eek.3 for <11221@debbugs.gnu.org>; Thu, 12 Apr 2012 10:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3a6Hr3kx/i/ZuLQa1kNlsEmXHhStdK/5OIpjz65giVA=; b=VS2tECGX8MXM+6+YS3SE3MufZRgxocR4wLIGmZSI4pORsmnAtp9MVwgUQplbjv1ce+ VRfCMglh+V1Dcmj6DTqiu0ubmwsBnv4HTDwHmCrbcSi/G49xGuqIiLnrviSCeAey1Kpu OK1pEB3/mCp1Q1ASesQri+m6O5f+LO6IRAmGbkf7L0LrNvluCp0Lq+DLTreH0T8JoRJZ 07J+WC/Om7axm4H9ylKVQf9ES27vborjUZmTLEHxdz8lf+jpH3uTEBFTPKDoEKvE+r1k qQ2AqmaeYWHSxBRkprG3hO7Rp83/AXkdx7L9q88jDIl3JqBeNbilGV7b4cOH0YFlno01 Nh/g== MIME-Version: 1.0 Received: by 10.14.29.65 with SMTP id h41mr498486eea.71.1334251845445; Thu, 12 Apr 2012 10:30:45 -0700 (PDT) Received: by 10.213.23.66 with HTTP; Thu, 12 Apr 2012 10:30:45 -0700 (PDT) Date: Thu, 12 Apr 2012 12:30:45 -0500 Message-ID: From: Brian Tannahill Content-Type: multipart/alternative; boundary=90e6ba539f2449e6de04bd7eb741 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) --90e6ba539f2449e6de04bd7eb741 Content-Type: text/plain; charset=ISO-8859-1 After working through my .emacs file I found that this problem goes away when I turn off cua-mode. Not sure whether this is actually a bug or if it's the intended behavior. ---------- Forwarded message ---------- From: Brian Tannahill Date: Wed, Apr 11, 2012 at 3:18 PM Subject: Re: bug#11221: Shift-select-mode has no effect To: Glenn Morris Cc: 11221@debbugs.gnu.org When I run emacs -Q and then do my custom keybindings, the problem does NOT occur. So apparently something in my init file is messing things up. I'll work on isolating it. Thanks. On Wed, Apr 11, 2012 at 1:03 PM, Glenn Morris wrote: > Brian Tannahill wrote: > > > (global-set-key (kbd "M-J") 'backward-word) > [...] > > Running describe-key (C-h k) shows that the bindings were > > successful. And these bindings move point as they should, but for some > > reason it sets the mark at my original position, and gives me a > > highlighted region as I move the point. > > I'm unable to reproduce this; even with shift-select-mode on. Note that > this-command-keys-shift-translated says: > > Shift-translation occurs when there is no binding for the key sequence > as entered [...] > > Does this happen if you start from emacs -Q? > --90e6ba539f2449e6de04bd7eb741 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable After working through my .emacs file I found that this problem goes away wh= en I turn off cua-mode.=A0

Not sure whether this is actually a bug = or if it's the intended behavior.


---------- Forwarded message ----------
From: Brian Tannahill <bjt1230@gmail.com>
Date: Wed, Apr 11, 2012 at 3:18= PM
Subject: Re: bug#11221: Shift-select-mode has no effect
To: Glenn Morris= <rgm@gnu.org>
Cc: 11221@debbugs.gnu.org


When I ru= n emacs -Q and then do my custom keybindings, the problem does NOT occur.= =A0

So apparently something in my init file is messing things up.=A0 I'= ll work on isolating it.

Thanks.



On Wed, Apr 11, 2012 at 1:03 PM, Glenn Morris <rgm@gnu.org> wrote:=
Brian Tannahill wrote:

> (global-set-key (kbd "M-J") =A0 'backward-word)
[...]
> Running describe-key (C-h k) shows that the bindings were
> successful. And these bindings move point as they should, but for some=
> reason it sets the mark at my original position, and gives me a
> highlighted region as I move the point.

I'm unable to reproduce this; even with shift-select-mode on. Note that=
this-command-keys-shift-translated says:

=A0 Shift-translation occurs when there is no binding for the key sequence=
=A0 as entered [...]

Does this happen if you start from emacs -Q?


--90e6ba539f2449e6de04bd7eb741-- From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: cua-mode activates the mark for shifted bindings Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 18:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Brian Tannahill Cc: Glenn Morris , 11221@debbugs.gnu.org, "Kim F. Storm" Received: via spool by 11221-submit@debbugs.gnu.org id=B11221.133425688429263 (code B ref 11221); Thu, 12 Apr 2012 18:55:01 +0000 Received: (at 11221) by debbugs.gnu.org; 12 Apr 2012 18:54:44 +0000 Received: from localhost ([127.0.0.1]:54711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIPAJ-0007br-D3 for submit@debbugs.gnu.org; Thu, 12 Apr 2012 14:54:43 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44075) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIPAH-0007bf-6F; Thu, 12 Apr 2012 14:54:41 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3CIrOR7030075; Thu, 12 Apr 2012 14:53:24 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 15C1AB4066; Thu, 12 Apr 2012 14:53:24 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Thu, 12 Apr 2012 14:53:23 -0400 In-Reply-To: (Brian Tannahill's message of "Thu, 12 Apr 2012 12:30:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4190=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4190> : streams <746304> : uri <1098491> X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) retitle 11221 cua-mode activates the mark for shifted bindings thanks > After working through my .emacs file I found that this problem goes away > when I turn off cua-mode. Indeed, I can reproduce it now with: emacs -Q M-: (global-set-key (kbd "M-J") 'backward-word) RET M-x cua-mode RET after which M-J will not only move point but also activate the mark. > Not sure whether this is actually a bug or if it's the intended behavior. The shift-select-mode we added in Emacs-23 was careful to get this right, so I think it's at least a misfeature of cua-mode. The code in cua--pre-command-handler-1 does not try to catch this situation, currently. Kim, WDYT about the patch below, which makes cua-mode use the same mechanism as shift-select-mode? Stefan === modified file 'lisp/emulation/cua-base.el' --- lisp/emulation/cua-base.el 2012-03-10 08:26:45 +0000 +++ lisp/emulation/cua-base.el 2012-04-12 18:50:34 +0000 @@ -1246,22 +1246,7 @@ ;; (and region not started with C-SPC). ;; If rectangle is active, expand rectangle in specified direction and ;; ignore the movement. - ((if window-system - ;; Shortcut for window-system, assuming that input-decode-map is empty. - (memq 'shift (event-modifiers - (aref (this-single-command-raw-keys) 0))) - (or - ;; Check if the final key-sequence was shifted. - (memq 'shift (event-modifiers - (aref (this-single-command-keys) 0))) - ;; If not, maybe the raw key-sequence was mapped by input-decode-map - ;; to a shifted key (and then mapped down to its unshifted form). - (let* ((keys (this-single-command-raw-keys)) - (ev (lookup-key input-decode-map keys))) - (or (and (vector ev) (memq 'shift (event-modifiers (aref ev 0)))) - ;; Or maybe, the raw key-sequence was not an escape sequence - ;; and was shifted (and then mapped down to its unshifted form). - (memq 'shift (event-modifiers (aref keys 0))))))) + (this-command-keys-shift-translated (unless mark-active (push-mark-command nil t)) (setq cua--last-region-shifted t) From unknown Sun Sep 21 07:52:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11221: cua-mode activates the mark for shifted bindings Resent-From: Kim Storm Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 21:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Glenn Morris , 11221@debbugs.gnu.org, Brian Tannahill Received: via spool by 11221-submit@debbugs.gnu.org id=B11221.133426620423434 (code B ref 11221); Thu, 12 Apr 2012 21:31:02 +0000 Received: (at 11221) by debbugs.gnu.org; 12 Apr 2012 21:30:04 +0000 Received: from localhost ([127.0.0.1]:54970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIRad-00065n-AE for submit@debbugs.gnu.org; Thu, 12 Apr 2012 17:30:04 -0400 Received: from sommerhuse-i-danmark.dk ([193.201.35.153]:58937 helo=ispc3.dotserv.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIRab-00064z-AE for 11221@debbugs.gnu.org; Thu, 12 Apr 2012 17:30:02 -0400 Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id A8DDF8032A1BF; Thu, 12 Apr 2012 23:28:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yigTXzQFfx5k; Thu, 12 Apr 2012 23:28:42 +0200 (CEST) Received: from [10.1.82.9] (1405ds6-amb.0.fullrate.dk [95.166.178.253]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id 3A5EB8032A1BD; Thu, 12 Apr 2012 23:28:42 +0200 (CEST) Message-ID: <4F874909.3030201@cua.dk> Date: Thu, 12 Apr 2012 23:28:41 +0200 From: Kim Storm User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 04/12/2012 08:53 PM, Stefan Monnier wrote: > > The shift-select-mode we added in Emacs-23 was careful to get this > right, so I think it's at least a misfeature of cua-mode. > The code in cua--pre-command-handler-1 does not try to catch > this situation, currently. > > Kim, WDYT about the patch below, which makes cua-mode use the same > mechanism as shift-select-mode? > > > Stefan > > > + (this-command-keys-shift-translated > Hi Stefan This looks much cleaner indeed. I haven't tried your patch thorughly, but it seems to work just fine, so let's go with it. Thank you for working on cua bugs! Kim From unknown Sun Sep 21 07:52:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brian Tannahill Subject: bug#11221: closed (Re: bug#11221: cua-mode activates the mark for shifted bindings) Message-ID: References: X-Gnu-PR-Message: they-closed 11221 X-Gnu-PR-Package: emacs Reply-To: 11221@debbugs.gnu.org Date: Fri, 13 Apr 2012 13:37:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1334324223-1877-1" This is a multi-part message in MIME format... ------------=_1334324223-1877-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11221: cua-mode activates the mark for shifted bindings which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11221@debbugs.gnu.org. --=20 11221: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11221 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1334324223-1877-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11221-done) by debbugs.gnu.org; 13 Apr 2012 13:36:49 +0000 Received: from localhost ([127.0.0.1]:56360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIggC-0000Tt-Fp for submit@debbugs.gnu.org; Fri, 13 Apr 2012 09:36:48 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:27581) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIgg6-0000Th-2z for 11221-done@debbugs.gnu.org; Fri, 13 Apr 2012 09:36:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYIACxOgk9sr+di/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQsLNBIUGA0kiBwFtjKLYYR5BKRFgV2DAw X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="174058039" Received: from 108-175-231-98.dsl.teksavvy.com (HELO pastel.home) ([108.175.231.98]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Apr 2012 09:35:22 -0400 Received: by pastel.home (Postfix, from userid 20848) id 337F45809E; Fri, 13 Apr 2012 09:35:22 -0400 (EDT) From: Stefan Monnier To: Kim Storm Subject: Re: bug#11221: cua-mode activates the mark for shifted bindings Message-ID: References: <4F874909.3030201@cua.dk> Date: Fri, 13 Apr 2012 09:35:22 -0400 In-Reply-To: <4F874909.3030201@cua.dk> (Kim Storm's message of "Thu, 12 Apr 2012 23:28:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11221-done Cc: Glenn Morris , 11221-done@debbugs.gnu.org, Brian Tannahill X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Version: 24.2 > I haven't tried your patch thorughly, but it seems to work just fine, so > let's go with it. Thanks, installed, Stefan ------------=_1334324223-1877-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Apr 2012 16:04:36 +0000 Received: from localhost ([127.0.0.1]:52279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI027-0001QV-PJ for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:04:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55384) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI01h-0001PT-71 for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:04:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI00V-00043F-4M for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:03:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00U-00042x-Tv for submit@debbugs.gnu.org; Wed, 11 Apr 2012 12:02:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00P-0007pB-59 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI00H-00040f-EN for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:48 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:64865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI00G-00040L-TH for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 12:02:41 -0400 Received: by eeke53 with SMTP id e53so290044eek.0 for ; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Cw0QVsTgrygNWPPkmo8UWF15PBlTaZri0SIlmQj9UWs=; b=IWn9NcEhX24rjM7/5RGeK57yS0eVZINjTD1pPz5dpFGpFfo7HDePkePx0Wr2lgu0lQ zDhm0CBuKLW+K8kUInOWHDTexGJ+qB0OzVjeGEetNN3ZoYmemXr4KfRNlzCbGZzL1D33 B8sQZD0PF0381RgH2qX9utOKvgMURTbhZDh1EPc6+VLp+57IO4AKqn4F9lBtl+B8fcZc K+TAJlk4A6FqLuRKAARaga6VFn/JxcT12IJXdcnvyq1iUcngEi555uXxKgTzzt1RczlX OARzwyB+a1Gp9zfLeAhqyT5YqWurIdPHYkh9h0exUXMjESbh3gCvBwbOnQ1PyOLfski6 pq6A== MIME-Version: 1.0 Received: by 10.14.52.80 with SMTP id d56mr1985560eec.105.1334160158241; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) Received: by 10.213.23.66 with HTTP; Wed, 11 Apr 2012 09:02:38 -0700 (PDT) Date: Wed, 11 Apr 2012 11:02:38 -0500 Message-ID: Subject: Shift-select-mode has no effect From: Brian Tannahill To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=00235445bbf64e338304bd695ed6 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 11 Apr 2012 12:04:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --00235445bbf64e338304bd695ed6 Content-Type: text/plain; charset=ISO-8859-1 From: bjt1230@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.0.94; shift-select-mode has no effect --text follows this line-- I'm experimenting with new bindings for basic movement in Emacs. Borrowing from http://xahlee.org/emacs/emacs_useful_user_keybinding.html and ErgoEmacs, this remapping works as expected: (global-set-key (kbd "M-i") 'previous-line) (global-set-key (kbd "M-k") 'next-line) (global-set-key (kbd "M-j") 'backward-char) (global-set-key (kbd "M-l") 'forward-char) But defining a Shift-Alt combination gives an unwanted side-effect. (global-set-key (kbd "M-I") 'cua-scroll-down) (global-set-key (kbd "M-K") 'cua-scroll-up) (global-set-key (kbd "M-J") 'backward-word) (global-set-key (kbd "M-L") 'forward-word) Running describe-key (C-h k) shows that the bindings were successful. And these bindings move point as they should, but for some reason it sets the mark at my original position, and gives me a highlighted region as I move the point. I tried setting shift-select-mode to nil. This had no effect. Also described at http://stackoverflow.com/questions/10106797. 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 /usr/local/share/emacs/24.0.94/etc/DEBUG. In GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-04-04 on b-l Windowing system distributor `The X.Org Foundation', version 11.0.11200000 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: Org Minor modes in effect: ido-everywhere: t delete-selection-mode: t display-time-mode: t cua-mode: t bt-keys-minor-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: C-8 M-k M-k M-k M-k M-k M-k M-k M-k M-k M-i * * SPC M-1 SPC 1 4 : 0 0 > SPC SPC H a r i i r c u t C-x C-s M-3 M-x r e p o r t - e m a c s - b u g Recent messages: Omitting... Omitted 34 lines. Omitting... (Nothing to omit) Omitting... Omitted 1 line. OVERVIEW For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /home/brian/Org/projects.org... Wrote /home/brian/Org/projects.org Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cal-china lunar solar cal-dst cal-hebrew diary-lib diary-loaddefs mule-util cal-move parse-time calfw-org calfw holidays hol-loaddefs cl org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html format-spec org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline cal-menu calendar cal-loaddefs byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload help-mode view derived dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux dired regexp-opt easymenu ido delsel time server cua-base easy-mmode edmacro kmacro time-date 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 minibuffer loaddefs button faces cus-face files text-properties overlay sha1 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) --00235445bbf64e338304bd695ed6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable From: bjt1230@gmail.com
To: bug-gnu-emacs@gnu.org
Subject:= 24.0.94; shift-select-mode has no effect
--text follows this line--
= I'm experimenting with new bindings for basic movement in Emacs. Borrow= ing from http://xahlee.org/emacs/emacs_useful_user_keybinding.html and ErgoE= macs, this remapping works as expected:

(global-set-key (kbd "M-i")=A0=A0 'previous-line)
(glo= bal-set-key (kbd "M-k")=A0=A0 'next-line)
(global-set-key = (kbd "M-j")=A0=A0 'backward-char)
(global-set-key (kbd &qu= ot;M-l")=A0=A0 'forward-char)

But defining a Shift-Alt combination gives an unwanted side-effect.
=
(global-set-key (kbd "M-I")=A0=A0 'cua-scroll-down)
(g= lobal-set-key (kbd "M-K")=A0=A0 'cua-scroll-up)
(global-se= t-key (kbd "M-J")=A0=A0 'backward-word)
(global-set-key (kbd "M-L")=A0=A0 'forward-word)

Runni= ng describe-key (C-h k) shows that the bindings were
successful. And the= se bindings move point as they should, but for some
reason it sets the m= ark at my original position, and gives me a
highlighted region as I move the point.

I tried setting shift-select= -mode to nil.=A0 This had no effect.

Also described at http://stackoverflow.com/questio= ns/10106797.

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


In GNU Emacs 24.0.94.1= (i686-pc-linux-gnu, GTK+ Version 2.24.10)
=A0of 2012-04-04 on b-l
Wi= ndowing system distributor `The X.Org Foundation', version 11.0.1120000= 0
Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_COLLAT= E: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
= =A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 valu= e of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: nil
=A0 loc= ale-coding-system: utf-8-unix
=A0 default enable-multibyte-characters: t=

Major mode: Org

Minor modes in effect:
=A0 ido-everywhere= : t
=A0 delete-selection-mode: t
=A0 display-time-mode: t
=A0 cua-mode: t=
=A0 bt-keys-minor-mode: t
=A0 tooltip-mode: t
=A0 mouse-wheel-mod= e: t
=A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0= font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryp= tion-mode: t
=A0 auto-compression-mode: t
=A0 column-number-mode: t=A0 line-number-mode: t
=A0 global-visual-line-mode: t
=A0 visual-l= ine-mode: t
=A0 transient-mark-mode: t

Recent input:
C-8 M-k M-k M-k M-k M-k = M-k M-k M-k M-k <return> M-i
* * SPC M-1 <return> <backs= pace> SPC 1 4 : 0 0 > SPC
SPC H a r i <backspace> <backs= pace> i r c u t C-x C-s
M-3 <down> <up> <M-next> <M-end> <help-echo> = <help-echo>
<help-echo> M-x r e p o r t - e m a c s - b u g= <r
eturn>

Recent messages:
Omitting...
Omitted 34 li= nes.
Omitting...
(Nothing to omit)
Omitting...
Omitted 1 line.
OVERV= IEW
For information about GNU Emacs and the GNU system, type C-h C-a.Saving file /home/brian/Org/projects.org...
Wrote /home/brian/Org/projects.org

Load-path shadows:
None found.

Features:
(shadow sort gnus= -util mail-extr emacsbug message rfc822 mml mml-sec
mm-decode mm-bodies = mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rf= c2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils cal-china lunar solar cal-dst cal-hebrew diary-lib
diary-load= defs mule-util cal-move parse-time calfw-org calfw holidays
hol-loaddefs= cl org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc
org-jsinfo o= rg-infojs org-html format-spec org-exp ob-exp org-exp-blocks
org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org
= ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src
ob-c= omint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color
ring = org-list org-faces org-compat org-entities org-macs noutline
outline cal-menu calendar cal-loaddefs byte-opt warnings bytecomp
byte-c= ompile cconv macroexp advice help-fns advice-preload help-mode
view deri= ved dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult
ediff-hel= p ediff-init ediff-util dired-aux dired regexp-opt easymenu ido
delsel time server cua-base easy-mmode edmacro kmacro time-date tooltip
= ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
font= set image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
fra= me cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet l= ao korean japanese hebrew greek romanian slovak czech european
ethiopic = indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-prope= rties overlay sha1 md5 base64 format env code-pages mule
custom widget h= ashtable-print-readable backquote make-network-process
dbusbind dynamic-= setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

--00235445bbf64e338304bd695ed6-- ------------=_1334324223-1877-1--