emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift-movement selection


From: Lennart Borgman (gmail)
Subject: Re: Shift-movement selection
Date: Tue, 11 Mar 2008 23:38:53 +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

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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]