From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: position on changing defaults? Date: Thu, 06 Mar 2008 00:52:34 +0100 Message-ID: <87pru8enjx.fsf@kfs-lx.rd.rdm> References: <200803050637.m256bXL3008361@sallyv1.ics.uci.edu> <87hcfkdhqk.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204761178 31275 80.91.229.12 (5 Mar 2008 23:52:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 23:52:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 00:53:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JX3QJ-0001y3-Dn for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 00:53:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX3Pm-0003Mf-73 for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 18:52:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JX3Pi-0003Lx-4h for emacs-devel@gnu.org; Wed, 05 Mar 2008 18:52:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JX3Pf-0003LH-8B for emacs-devel@gnu.org; Wed, 05 Mar 2008 18:52:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JX3Pf-0003LE-33 for emacs-devel@gnu.org; Wed, 05 Mar 2008 18:52:43 -0500 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JX3Pe-0000hx-7m for emacs-devel@gnu.org; Wed, 05 Mar 2008 18:52:42 -0500 Original-Received: (qmail 79971 invoked from network); 5 Mar 2008 23:52:35 -0000 Original-Received: from unknown (HELO kfs-lx.rd.rdm.cua.dk) (213.83.150.21) by 0 with SMTP; 5 Mar 2008 23:52:35 -0000 In-Reply-To: <87hcfkdhqk.fsf@stupidchicken.com> (Chong Yidong's message of "Wed\, 05 Mar 2008 15\:43\:31 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91440 Archived-At: Chong Yidong writes: >> - selection with Shift-arrow keys > > I think this would be a good default. If someone is willing to make a > patch that refactors this code from cua-mode into simple.el, it would > be worth considering. So you want just shift-arrows to start/expand the region. And transient-mark-mode on top of that... Sort of like cua-selection-mode, but not quite ... Then don't start from cua-mode! Or use cua-selection-mode - to get all the benefits it provides! cua-selection-mode will start/expand the region not just for the shift-arrow keys, but (in practice) any shifted movement key. If that is the objection to using cua-selection-mode, I could add a customize option to limit it to just the arrow keys. If not, please explain what else is wrong with cua-selection-mode. (oh yes, it also has delete-selection-mode on, but again, that's a feature which could be optional in cua-selection-mode). It also gives you the rectangle highlighting (which I think most users would agree is quite useful) combined with the ability to use the normal region kill, copy and yank keys also for rectangles. So there's no need to learn a different command set for rectangles! I don't see why it is really necessary to insist on refactoring cua-(selection-)mode for these features to be used by default. IMO, the time is better spent on writing/improving the documentation for the cua features! BTW, why is using a pre- or post- command hook so bad? Also, why is it necessary to refactor it into simple.el -- it's not that simple :-) -- Kim F. Storm http://www.cua.dk