From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Shift selection using interactive spec Date: Sun, 16 Mar 2008 15:37:21 +0100 Message-ID: <47DD30A1.1070400@gmail.com> References: <87k5k69p92.fsf@stupidchicken.com> <200803140408.m2E47hPU014494@sallyv1.ics.uci.edu> <87prtxpekk.fsf@kfs-lx.rd.rdm> <87abl11ilo.fsf@stupidchicken.com> <874pb9koyw.fsf@stupidchicken.com> <87od9gzqv9.fsf@stupidchicken.com> <87bq5gytbi.fsf@stupidchicken.com> <87abkzhpzm.fsf@stupidchicken.com> <47DC437B.1080100@emf.net> <87skyqrbze.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205678300 26764 80.91.229.12 (16 Mar 2008 14:38:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Mar 2008 14:38:20 +0000 (UTC) Cc: Thomas Lord , Dan Nicolaescu , emacs-devel@gnu.org, Stefan Monnier , "Kim F. Storm" To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 16 15:38:48 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 1Jau0d-0004g8-Vh for ged-emacs-devel@m.gmane.org; Sun, 16 Mar 2008 15:38:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jau04-0007UA-G6 for ged-emacs-devel@m.gmane.org; Sun, 16 Mar 2008 10:38:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jatzq-0007FF-7A for emacs-devel@gnu.org; Sun, 16 Mar 2008 10:37:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jatzp-0007DT-Ge for emacs-devel@gnu.org; Sun, 16 Mar 2008 10:37:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jatzp-0007DK-84 for emacs-devel@gnu.org; Sun, 16 Mar 2008 10:37:57 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jatzo-0001gr-KW for emacs-devel@gnu.org; Sun, 16 Mar 2008 10:37:56 -0400 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59657 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Jatzi-0006PJ-9R; Sun, 16 Mar 2008 15:37:51 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <87skyqrbze.fsf@stupidchicken.com> X-Antivirus: avast! (VPS 080316-0, 2008-03-16), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1Jatzi-0006PJ-9R. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Jatzi-0006PJ-9R 99822975e9625ee020dbfcc62009f779 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:92743 Archived-At: Chong Yidong wrote: > Thomas Lord writes: > >> It's a red herring to think in terms of movement commands. >> >> For example, if C-t invokes transpose-chars then, >> by default, S-C-t should also invoke transpose-chars >> but override the default and make the new default to >> preserve the transient mark. S-C-f S-C-f S-C-t S-C-f >> makes one modification to the buffer and leaves a >> transient region of three characters. (Hopefully >> transpose-chars is already coded so as to make >> its buffer changes under save-excursion.) > > It wouldn't be wise to make such a wide-ranging change in the behavior > of Emacs. Since certain existing modes bind keys to shift modifiers, > we should not make it a general rule that a shift-something keybinding > changes the selecion. > > The movement commands can be treated as a special case, for entirely > pragmatic reasons. It helps that the shift modified versions of the > keybindings are typically unbound. Perhaps it can be detected automatically if the command was a movement command (ie did not change the buffer)? The the change would be much less wide-ranging.