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: position on changing defaults? Date: Sat, 08 Mar 2008 01:40:54 +0100 Message-ID: <47D1E096.7040809@gmail.com> 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> 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 1204936895 29840 80.91.229.12 (8 Mar 2008 00:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 00:41:35 +0000 (UTC) Cc: juri@jurta.org, cyd@stupidchicken.com, "Kim F. Storm" , rms@gnu.org, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 01:42:01 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 1JXn8R-0005Hv-Me for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 01:42:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXn7t-0007or-VB for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 19:41:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXn7m-0007iE-6k for emacs-devel@gnu.org; Fri, 07 Mar 2008 19:41:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXn7k-0007fN-Fs for emacs-devel@gnu.org; Fri, 07 Mar 2008 19:41:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXn7k-0007f3-5S for emacs-devel@gnu.org; Fri, 07 Mar 2008 19:41:16 -0500 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 1JXn7c-0001vn-Qz; Fri, 07 Mar 2008 19:41:09 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:62339 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JXn7a-0005Hn-8Y; Sat, 08 Mar 2008 01:41:07 +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: <87ablacdxt.fsf@catnip.gol.com> X-Antivirus: avast! (VPS 080307-0, 2008-03-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JXn7a-0005Hn-8Y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JXn7a-0005Hn-8Y 03f5aa2b8f541324f4360422fb81625d 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:91681 Archived-At: Miles Bader wrote: > Richard Stallman writes: >> You also need to handle the case where you have use shifted arrow >> to mark the region, and then use an unshifted arrow ... which should >> deactivate the mark. >> >> It seems like a simpler solution would be to have special events >> like etc.... >> >> Why not just bind the shifted and unshifted arrow keys to new commands? >> We only need 8 of them. > > Actually in usual practice, this feature is used with many other > movement commands too, not just the arrow keys -- for instance, S-C-home > will highlight to the beginning of the buffer in typical MS-type apps > (so in emacs, that should work, and so should S-M-<), and S-M-right will > highlight the next word (so in emacs S-M-f should do so as well). > > Emacs could just exhaustively bind the shifted versions of all common > movement commands, but of course this is a bit brittle (user rebindings > won't be automatically handled). Maybe a much more radical surgery would be easier. How about having the convention that whenever a movement is bound to a shifted key then this should activate the region? If the movement is bound to a non-shifted key then it should deactivate the region. Could not something like this be handled in the command loop? Of course such a radical change would need a defcustom to remove it. And some cases would have to be exceptions. > There's also the "_non_-shifted movement should _deactivate_ the region" > issue which Kim mentioned earlier; it occurs to me that perhaps that > could be handled simply by having "shift activation" (activating the > region by using a shifted movement command) add a _temporary_ > post-command hook, which would take care of deactivating the mark > appropriately, and would then remove itself from the post-command-hook > list. While it would still be using post-command-hook, I think this > would be much better than the current cua mechanism, because it limits > the use of post-command-hook to only those periods when this feature is > actually actively in use. > > [This "temporary post-command-hook" method should work with the > "modifier bindings" method (i.e., allowing bindings of modifier keys > which would match all otherwise-unbound events having those modifiers) I > suggested earlier as well.] > > -Miles >