From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>,
Fabian Ezequiel Gallina <galli.87@gmail.com>
Subject: Re: Keep region active after command
Date: Sat, 19 Feb 2011 22:48:47 +0100 [thread overview]
Message-ID: <AANLkTinuDPPXwVcDNoH__atx3whfxj2C3keco+d4W5LN@mail.gmail.com> (raw)
In-Reply-To: <jwvmxlrg1vk.fsf-monnier+emacs@gnu.org>
On Sat, Feb 19, 2011 at 10:19 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> 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.
Wouldn't it be good to have a general command like
dont-deactivate-mark-after-next-command?
next prev parent reply other threads:[~2011-02-19 21:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-19 18:12 Keep region active after command Fabian Ezequiel Gallina
2011-02-19 21:19 ` Stefan Monnier
2011-02-19 21:48 ` Lennart Borgman [this message]
2011-02-19 22:26 ` Chong Yidong
2011-02-19 22:36 ` Lennart Borgman
2011-02-20 1:16 ` Miles Bader
2011-02-20 1:29 ` Lennart Borgman
2011-02-20 3:59 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinuDPPXwVcDNoH__atx3whfxj2C3keco+d4W5LN@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=galli.87@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).