emacs-devel
[Top][All Lists]
Advanced

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

Re: Keep region active after command


From: Stefan Monnier
Subject: Re: Keep region active after command
Date: Sat, 19 Feb 2011 16:19:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> What would be the best way to keep the region active after a command?
> What I'm willing to do is to keep the region active after
> python-indent-shift-left and python-indent-shift-right are called.

The region is deactivated if `deactivate-mark' is non-nil at the end of
the command and this variable is set by buffer-modifying functions, so
let-binding deactivate-mark around those functions (or around the whole
command's body) is usually the way to do it.


        Stefan



reply via email to

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