GNU bug report logs - #10375
24.0.92; `cua-rectangle-mark-key' bindings and the minibuffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Drew Adams" <drew.adams@HIDDEN>; dated Mon, 26 Dec 2011 22:13:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 10375 <at> debbugs.gnu.org:


Received: (at 10375) by debbugs.gnu.org; 17 Sep 2012 00:20:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 16 20:20:56 2012
Received: from localhost ([127.0.0.1]:37919 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TDP55-0006hg-JF
	for submit <at> debbugs.gnu.org; Sun, 16 Sep 2012 20:20:55 -0400
Received: from acsinet15.oracle.com ([141.146.126.227]:38985)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1TDP53-0006ha-Qy
	for 10375 <at> debbugs.gnu.org; Sun, 16 Sep 2012 20:20:54 -0400
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with
	ESMTP id q8H0JeCG007047
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <10375 <at> debbugs.gnu.org>; Mon, 17 Sep 2012 00:19:41 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	q8H0JdsC004047
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <10375 <at> debbugs.gnu.org>; Mon, 17 Sep 2012 00:19:40 GMT
Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	q8H0Jd2E017106
	for <10375 <at> debbugs.gnu.org>; Sun, 16 Sep 2012 19:19:39 -0500
Received: from dradamslap1 (/10.159.170.142)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 16 Sep 2012 17:19:39 -0700
From: "Drew Adams" <drew.adams@HIDDEN>
To: <10375 <at> debbugs.gnu.org>
References: <1D743B912D0E41D0993FA26C89AD5B67@HIDDEN>
Subject: RE: bug#10375: 24.0.92;
	`cua-rectangle-mark-key' bindings and the minibuffer
Date: Sun, 16 Sep 2012 17:19:28 -0700
Message-ID: <5AE7568273A3438ABCEB560F1255E71C@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <1D743B912D0E41D0993FA26C89AD5B67@HIDDEN>
Thread-Index: AczEGv7IqEA9n1u2TQ2l5XxIqOjJgjQTxdvA
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-Spam-Score: -7.4 (-------)
X-Debbugs-Envelope-To: 10375
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -7.4 (-------)

ping





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10375; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Dec 2011 22:12:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 26 17:12:08 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RfIm8-00057f-0e
	for submit <at> debbugs.gnu.org; Mon, 26 Dec 2011 17:12:08 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIm6-00057Y-5N
	for submit <at> debbugs.gnu.org; Mon, 26 Dec 2011 17:12:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIja-0007iM-Gd
	for submit <at> debbugs.gnu.org; Mon, 26 Dec 2011 17:09:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:40152)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIja-0007iI-F6
	for submit <at> debbugs.gnu.org; Mon, 26 Dec 2011 17:09:30 -0500
Received: from eggs.gnu.org ([140.186.70.92]:50027)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIjZ-0006Cn-EU
	for bug-gnu-emacs@HIDDEN; Mon, 26 Dec 2011 17:09:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIjY-0007i5-5m
	for bug-gnu-emacs@HIDDEN; Mon, 26 Dec 2011 17:09:29 -0500
Received: from acsinet15.oracle.com ([141.146.126.227]:45818)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RfIjX-0007hs-Uu
	for bug-gnu-emacs@HIDDEN; Mon, 26 Dec 2011 17:09:28 -0500
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pBQM9ONE020858
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Dec 2011 22:09:25 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pBQM9N3b003722
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Dec 2011 22:09:24 GMT
Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pBQM9NjC024688
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Dec 2011 16:09:23 -0600
Received: from dradamslap1 (/10.159.40.114)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Mon, 26 Dec 2011 14:09:23 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.0.92; `cua-rectangle-mark-key' bindings and the minibuffer
Date: Mon, 26 Dec 2011 14:09:11 -0800
Message-ID: <1D743B912D0E41D0993FA26C89AD5B67@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Thread-Index: AczEGv7IqEA9n1u2TQ2l5XxIqOjJgg==
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090202.4EF8F095.0033,ss=1,re=0.000,fgs=0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

This is an enhancement request.  Caveat: I'm no expert on CUA mode or
CUA rectangle commands.  I took a quick look at some of the code.
 
CUA mode is a minor mode, so its key bindings take precedence over
local-map bindings and global-map bindings.  The minibuffer keymaps are
local maps.
 
IIUC, some CUA keys don't make much (any?) sense in the minibuffer.  I'm
guessing that `C-RET' is one that makes little or no sense there.
 
The enhancement would be to change the command that CUA binds `C-RET'
to, so that it checks whether the current buffer is the active
minibuffer and, if so, looks up the binding of `C-RET' (actually, the
key that is the value of `cua-rectangle-mark-key') in the current
minibuffer keymap.  If the key is bound in the minibuffer map then the
command would invoke the command it is bound to there.
 
That would respect the CUA behavior of the key outside the minibuffer,
and yet respect any bindings for the key in the minibuffer keymaps.
 
This would give CUA users who also use packages that bind `C-RET' in the
minibuffer (e.g. Icicles does that, by default) an alternative to
customizing or juggling key bindings.  They might well like to keep
`C-RET' for CUA outside the minibuffer, and so would not want to
customize option `cua-rectangle-mark-key'.
 
In CUA mode, whatever key they choose for `cua-rectangle-mark-key' the
behavior is currently all-or-nothing: the key is used equally in the
minibuffer and outside, even if the key's behavior makes no sense in the
minibuffer.
 
(In Icicles, users can easily customize the key to use in the minibuffer
to something other than `C-RET'.  This enhancement request is not
particularly for Icicles users (but is also for Icicles users who want
to keep CUA's `C-RET' outside the minibuffer and Icicles's `C-RET' in
the minibuffer))
 
If I'm mistaken and the use of CUA's `C-RET' behavior in the minibuffer
*is* useful, then please ignore.  That's not my impression, but again,
I'm no expert on CUA mode.
 
The same idea would apply to any other CUA keys that are not
particularly useful in the minibuffer: have CUA take a hands-off policy
toward the minibuffer whenever it adds nothing to the party.
 
In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-06 on MARVIN
 Windowing system distributor `Microsoft Corp.', version 5.1.2600
 configured using `configure --with-gcc (4.6) --no-opt --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-2.10.1/include --ldflags
 -LD:/devel/emacs/libs/gnutls-2.10.1/lib'
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10375; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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