From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#10056: 24.0.91; `copy-to-register' does not deactivate the mark Date: Wed, 1 Aug 2012 21:17:45 +0000 Message-ID: <20120801211745.GA4203@acm.acm> References: <87aa7qm1gv.fsf@gnu.org> <87boizuq60.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1343856161 22174 80.91.229.3 (1 Aug 2012 21:22:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 21:22:41 +0000 (UTC) Cc: 10056@debbugs.gnu.org, Chong Yidong To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 23:22:40 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 1SwgNM-0008UI-Cb for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 23:22:40 +0200 Original-Received: from localhost ([::1]:49612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwgNL-0000Nl-Dv for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 17:22:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwgNJ-0000Ng-06 for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 17:22:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwgNH-0008Ob-VA for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 17:22:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwgNH-0008OX-Qh for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 17:22:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SwgUU-0005aj-4m for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 17:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Aug 2012 21:30:02 +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.134385654821407 (code B ref 10056); Wed, 01 Aug 2012 21:30:02 +0000 Original-Received: (at 10056) by debbugs.gnu.org; 1 Aug 2012 21:29:08 +0000 Original-Received: from localhost ([127.0.0.1]:55420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwgTc-0005ZE-2n for submit@debbugs.gnu.org; Wed, 01 Aug 2012 17:29:08 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:45678 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwgTY-0005Z4-KX for 10056@debbugs.gnu.org; Wed, 01 Aug 2012 17:29:06 -0400 Original-Received: (qmail 4459 invoked by uid 3782); 1 Aug 2012 21:21:36 -0000 Original-Received: from acm.muc.de (pD9556BB3.dip.t-dialin.net [217.85.107.179]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 01 Aug 2012 23:21:34 +0200 Original-Received: (qmail 4747 invoked by uid 1000); 1 Aug 2012 21:17:45 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:62729 Archived-At: Hi, Dani. On Sun, Jul 29, 2012 at 12:01:51PM +0200, Dani Moncayo wrote: > >> and I've found a couple more: > >> narrow-to-region > >> c-indent-line-or-region (when the region is already well indented) > > I'm not sure about narrow-to-region. It's probably wrong for it to > > unconditionally deactivate the mark, because it is commonly called as a > > Lisp function. Maybe it should only deactivate the mark when called > > interactively. > I will be happy if the deactivation is limited to the interactive > call. But at least in this case should be deactivated, because it is > annoying to have to do the deactivation manually with C-g. > > As for c-indent-line-or-region, I have no opinion on that at all. > (I'm CC-ing Alan. Hopefully he has an opinion) This is the current > behavior I observe: > * If the command has to adjust the indentation of some line(s) in the > region, the mark is deactivated at the end of the command. > * Else, the mark is not deactivated. > 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. I don't actually use transient-mark-mode myself, so this hasn't annoyed me one way or the other. Is the distinction there for a reason, or did it just get there by accident? The defun is only several (as opposed to many) years old, so the evidence should still be available in the bzr repo. > -- > Dani Moncayo -- Alan Mackenzie (Nuremberg, Germany).