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: Tue, 11 Mar 2008 23:38:53 +0100 Message-ID: <47D709FD.4020202@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> 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 1205275182 8691 80.91.229.12 (11 Mar 2008 22:39:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 22:39:42 +0000 (UTC) Cc: rms@gnu.org, cyd@stupidchicken.com, emacs-devel@gnu.org, juri@jurta.org, Stefan Monnier , "Kim F. Storm" , Miles Bader To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 11 23:40:06 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 1JZD8W-0002Xn-3o for ged-emacs-devel@m.gmane.org; Tue, 11 Mar 2008 23:39:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZD7x-0007v4-Nt for ged-emacs-devel@m.gmane.org; Tue, 11 Mar 2008 18:39:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZD7t-0007un-Ka for emacs-devel@gnu.org; Tue, 11 Mar 2008 18:39:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZD7r-0007ub-N3 for emacs-devel@gnu.org; Tue, 11 Mar 2008 18:39:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZD7r-0007uY-JG for emacs-devel@gnu.org; Tue, 11 Mar 2008 18:39:15 -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 1JZD7j-0000ad-D0; Tue, 11 Mar 2008 18:39:07 -0400 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59977 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JZD7b-0006T7-93; Tue, 11 Mar 2008 23:39: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: <20080311224232.GB4420@muc.de> 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 1JZD7b-0006T7-93. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JZD7b-0006T7-93 2c937a56759318253c7d921ab7e61263 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:92212 Archived-At: 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?