From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: position on changing defaults? Date: Sat, 08 Mar 2008 08:27:42 +0900 Message-ID: <87ablacdxt.fsf@catnip.gol.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> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204932490 17877 80.91.229.12 (7 Mar 2008 23:28:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 23:28:10 +0000 (UTC) Cc: juri@jurta.org, cyd@stupidchicken.com, emacs-devel@gnu.org, "Kim F. Storm" To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 00:28:36 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 1JXlzP-00008V-O2 for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 00:28:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXlys-00088O-00 for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 18:28:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXlyn-00087w-Nq for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:27:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXlym-00087Q-1Y for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:27:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXlyl-00087N-W2 for emacs-devel@gnu.org; Fri, 07 Mar 2008 18:27:56 -0500 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXlye-0003EG-EE; Fri, 07 Mar 2008 18:27:48 -0500 Original-Received: from 203-216-96-086.dsl.gol.ne.jp ([203.216.96.86] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1JXlya-00062Q-W1; Sat, 08 Mar 2008 08:27:45 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 2DA152FF7; Sat, 8 Mar 2008 08:27:42 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Richard Stallman's message of "Fri, 07 Mar 2008 18:14:20 -0500") Original-Lines: 42 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:91676 Archived-At: 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). 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 -- Sabbath, n. A weekly festival having its origin in the fact that God made the world in six days and was arrested on the seventh.