all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Fabian Ezequiel Gallina <galli.87@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Keep region active after command
Date: Sat, 19 Feb 2011 16:19:10 -0500	[thread overview]
Message-ID: <jwvmxlrg1vk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AANLkTimrGChhsZSVDniRekZJdxUyFq=EU=VKKAA8AZct@mail.gmail.com> (Fabian Ezequiel Gallina's message of "Sat, 19 Feb 2011 15:12:54 -0300")

> 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	other threads:[~2011-02-19 21:19 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 [this message]
2011-02-19 21:48   ` Lennart Borgman
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmxlrg1vk.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=galli.87@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.