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-movement selection Date: Wed, 12 Mar 2008 00:46:54 +0100 Message-ID: <47D719EE.4070209@gmail.com> References: <871w6ounk0.fsf@kfs-lx.rd.rdm> <87ablacdxt.fsf@catnip.gol.com> <87skyzzeng.fsf@catnip.gol.com> <87fxuyobxt.fsf@kfs-lx.rd.rdm> <20080311224232.GB4420@muc.de> <47D709FD.4020202@gmail.com> <85tzjcg7mi.fsf@lola.goethe.zz> 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 1205279258 20744 80.91.229.12 (11 Mar 2008 23:47:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 23:47:38 +0000 (UTC) Cc: rms@gnu.org, cyd@stupidchicken.com, emacs-devel@gnu.org, juri@jurta.org, Stefan Monnier , "Kim F. Storm" , Alan Mackenzie , Miles Bader To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 00:48:05 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 1JZECQ-0003Dh-5a for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 00:48:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZEBr-0001on-QL for ged-emacs-devel@m.gmane.org; Tue, 11 Mar 2008 19:47:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZEBn-0001o2-Sa for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:47:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZEBm-0001nA-KK for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:47:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZEBm-0001n5-8P for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:47:22 -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 1JZEBU-0003nF-8B; Tue, 11 Mar 2008 19:47:05 -0400 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:60629 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JZEBQ-0001q0-6a; Wed, 12 Mar 2008 00:47:00 +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: <85tzjcg7mi.fsf@lola.goethe.zz> X-Antivirus: avast! (VPS 080311-0, 2008-03-11), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1JZEBQ-0001q0-6a. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JZEBQ-0001q0-6a 53a5854acd08de0a8341380a4f19be94 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:92219 Archived-At: David Kastrup wrote: > "Lennart Borgman (gmail)" writes: > >> Alan Mackenzie wrote: >>> Why not introduce an after-move-hook, somewhat akin to after-change-hook? >>> Possibly as a normal hook, possibly one where each function takes a >>> single parameter, the old value of point. >> This is rather similar to what I proposed in anohter message (the >> post-post-command hook), but I would prefer a more general hook. BTW >> is there a way to check if the last command was indeed a move in the >> current buffer? >> >> And, for the turn on of the region a pre-pre-command hook could be used. >> >>> Assuming Emacs knows whether the shift key is currently depressed (it >>> does, doesn't it, by looking at the key sequence?) the after-move-hook >>> could be ideal place to deal with "shift"-movement actions. >> Is not that too late? > > I have not properly followed the discussion. Has anybody proposed or > rejected adding some letter to the interactive string to mark > shift-sensitive movement commands? It would be reasonably easy to > interpret this in C-h k and its ilk. Not sure, but that is what I think Stefan did.