From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Shift-movement selection Date: Wed, 12 Mar 2008 00:31:49 +0100 Message-ID: <85tzjcg7mi.fsf@lola.goethe.zz> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205278336 18415 80.91.229.12 (11 Mar 2008 23:32:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 23:32:16 +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: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 00:32:42 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 1JZDxZ-0006L9-H3 for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 00:32:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZDx0-0007Oa-QC for ged-emacs-devel@m.gmane.org; Tue, 11 Mar 2008 19:32:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZDwu-0007NE-8v for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:32:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZDws-0007MV-1I for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:31:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZDwr-0007MM-Ub for emacs-devel@gnu.org; Tue, 11 Mar 2008 19:31:57 -0400 Original-Received: from mail-in-07.arcor-online.net ([151.189.21.47]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JZDwk-0000lw-OS; Tue, 11 Mar 2008 19:31:51 -0400 Original-Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id B368B24ADC4; Wed, 12 Mar 2008 00:31:48 +0100 (CET) Original-Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id A4790114372; Wed, 12 Mar 2008 00:31:48 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-046-230.pools.arcor-ip.net [84.61.46.230]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 7ACF01BF3D1; Wed, 12 Mar 2008 00:31:48 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 5896B1C4CE26; Wed, 12 Mar 2008 00:31:49 +0100 (CET) In-Reply-To: <47D709FD.4020202@gmail.com> (Lennart Borgman's message of "Tue, 11 Mar 2008 23:38:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/6204/Tue Mar 11 21:43:31 2008 on mail-in-04.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:92217 Archived-At: "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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum