From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Keep region active after command Date: Sat, 19 Feb 2011 16:19:10 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298150501 7032 80.91.229.12 (19 Feb 2011 21:21:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Feb 2011 21:21:41 +0000 (UTC) Cc: Emacs-Devel devel To: Fabian Ezequiel Gallina Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 19 22:21:37 2011 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.69) (envelope-from ) id 1PquFC-0008Qr-Bi for ged-emacs-devel@m.gmane.org; Sat, 19 Feb 2011 22:21:34 +0100 Original-Received: from localhost ([127.0.0.1]:42415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PquF6-000297-Ic for ged-emacs-devel@m.gmane.org; Sat, 19 Feb 2011 16:21:28 -0500 Original-Received: from [140.186.70.92] (port=41984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PquD4-0000qH-R6 for emacs-devel@gnu.org; Sat, 19 Feb 2011 16:19:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PquCt-0006nD-SZ for emacs-devel@gnu.org; Sat, 19 Feb 2011 16:19:12 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:56896 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PquCt-0006n5-P3 for emacs-devel@gnu.org; Sat, 19 Feb 2011 16:19:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJ7CX01MCqhK/2dsb2JhbACmOHSrS44IhV4EhQ2PUQ X-IronPort-AV: E=Sophos;i="4.62,192,1297054800"; d="scan'208";a="92327672" Original-Received: from 76-10-168-74.dsl.teksavvy.com (HELO pastel.home) ([76.10.168.74]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Feb 2011 16:19:11 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E708658B97; Sat, 19 Feb 2011 16:19:10 -0500 (EST) In-Reply-To: (Fabian Ezequiel Gallina's message of "Sat, 19 Feb 2011 15:12:54 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:136240 Archived-At: > 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