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: Shift-movement selection Date: Wed, 12 Mar 2008 11:06:03 +0100 Message-ID: <87myp4p88k.fsf@kfs-lx.rd.rdm> References: <200803050637.m256bXL3008361@sallyv1.ics.uci.edu> <87hcfkdhqk.fsf@stupidchicken.com> <87d4q8sq9c.fsf@jurta.org> <8763w0n393.fsf@catnip.gol.com> <871w6ounk0.fsf@kfs-lx.rd.rdm> <87ablacdxt.fsf@catnip.gol.com> <87skyzzeng.fsf@catnip.gol.com> <87fxuyobxt.fsf@kfs-lx.rd.rdm> <47D56474.9000300@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205316804 15898 80.91.229.12 (12 Mar 2008 10:13:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 10:13:24 +0000 (UTC) Cc: cyd@stupidchicken.com, lennart.borgman@gmail.com, emacs-devel@gnu.org, juri@jurta.org, Stefan Monnier , miles@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 11:13:51 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 1JZNxz-0007z0-WF for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 11:13:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZNxR-0006ky-8u for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 06:13:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZNqb-0003wf-LM for emacs-devel@gnu.org; Wed, 12 Mar 2008 06:06:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZNqZ-0003uQ-EF for emacs-devel@gnu.org; Wed, 12 Mar 2008 06:06:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZNqY-0003tb-8b for emacs-devel@gnu.org; Wed, 12 Mar 2008 06:06:06 -0400 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JZNqX-0005qh-IB for emacs-devel@gnu.org; Wed, 12 Mar 2008 06:06:05 -0400 Original-Received: (qmail 29691 invoked from network); 12 Mar 2008 10:06:04 -0000 Original-Received: from unknown (HELO kfs-lx.rd.rdm.cua.dk) (213.83.150.21) by 0 with SMTP; 12 Mar 2008 10:06:04 -0000 In-Reply-To: (Richard Stallman's message of "Tue\, 11 Mar 2008 20\:19\:41 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (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:92259 Archived-At: Richard Stallman writes: > If this applis to all motion commands, then it is hard to do by > binding all the keys, there being so many, and some rebound in major > modes, too. So it would need to be implemented by some special > feature that checks for shift. But I think that is an unclean way to > do things. > I strongly disagree that doing things consistently for the user is unclean. > Therefore, this is one reason not to make this apply to > all motion commands. That is what CUA mode does now - and it works _very_ well. E.g. to mark a word, line, or sexp, just do S-M-f, S-C-n, or S-C-M-f. Why force people to use the arrow-keys etc. when we have the perfect emacs bindings already. You may argue that some implementations to achieve this are not clean (such as using the generic pre-command-hook), but using a shifted-key-hook and 'shift property on movement commands I've suggested is clean enough for me -- and it has proven to work well in CUA. -- Kim F. Storm http://www.cua.dk