From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10056: 24.0.91; `copy-to-register' does not deactivate the mark Date: Sat, 08 Sep 2012 16:21:37 -0400 Message-ID: References: <87aa7qm1gv.fsf@gnu.org> <87boizuq60.fsf@gnu.org> <20120801211745.GA4203@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347135766 31833 80.91.229.3 (8 Sep 2012 20:22:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 20:22:46 +0000 (UTC) Cc: 10056@debbugs.gnu.org, Chong Yidong To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 22:22:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TARYB-0000Vu-S2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 22:22:43 +0200 Original-Received: from localhost ([::1]:57535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TARY8-00055V-DK for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 16:22:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TARY6-00055F-2Y for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 16:22:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TARY5-0005Do-6W for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 16:22:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TARY5-0005Dk-3C for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 16:22:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TARYT-0003vv-Ve for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Sep 2012 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10056-submit@debbugs.gnu.org id=B10056.134713572515055 (code B ref 10056); Sat, 08 Sep 2012 20:23:01 +0000 Original-Received: (at 10056) by debbugs.gnu.org; 8 Sep 2012 20:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:49093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TARXZ-0003um-I9 for submit@debbugs.gnu.org; Sat, 08 Sep 2012 16:22:05 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:39782) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TARXX-0003uf-Te for 10056@debbugs.gnu.org; Sat, 08 Sep 2012 16:22:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09Ld+Y//2dsb2JhbABEsEiDSYEIghUBAQQBViMQCw4mEhQYDSSIHAWpTJA9kEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="197862136" Original-Received: from 75-119-230-63.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.63]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Sep 2012 16:21:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B0D7E58FC1; Sat, 8 Sep 2012 16:21:37 -0400 (EDT) In-Reply-To: <20120801211745.GA4203@acm.acm> (Alan Mackenzie's message of "Wed, 1 Aug 2012 21:17:45 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63974 Archived-At: >> This behavior is definitely annoying for me: when I mark some fragment >> of code and type TAB, what I want is that Emacs revise the indentation >> of code, and correct it if necessary, but in any case, I don't want >> the mark to remain active. > Have you looked at the code for c-i-l-o-region? At a quick glance, I > can't see where the distinction is made between indentation adjusted and > not adjusted. The way mark deactivation works is that the mark gets deactivated after any command that modified the buffer (that's the basic heuristic used to avoid having to change umpteen commands to explicitly deactivate-mark). In the case of commands like indent-region which sometimes modify the buffer and sometimes not, it's often necessary to explicitly call deactivate-mark to avoid the kind of inconsistencies described above. Stefan