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: comment-dwim does not do what I mean Date: Thu, 21 Oct 2010 16:35:31 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287693606 3078 80.91.229.12 (21 Oct 2010 20:40:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 20:40:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 21 22:40:05 2010 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 1P91vd-0006KK-KK for ged-emacs-devel@m.gmane.org; Thu, 21 Oct 2010 22:40:01 +0200 Original-Received: from localhost ([127.0.0.1]:49579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P91rR-00061Y-NB for ged-emacs-devel@m.gmane.org; Thu, 21 Oct 2010 16:35:41 -0400 Original-Received: from [140.186.70.92] (port=52019 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P91rL-000615-Cd for emacs-devel@gnu.org; Thu, 21 Oct 2010 16:35:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P91rK-0005mg-Du for emacs-devel@gnu.org; Thu, 21 Oct 2010 16:35:35 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:34832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P91rK-0005mW-73 for emacs-devel@gnu.org; Thu, 21 Oct 2010 16:35:34 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o9LKZVqc019400; Thu, 21 Oct 2010 16:35:31 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 5309FB461D; Thu, 21 Oct 2010 16:35:31 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 21 Oct 2010 21:58:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3655=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:131955 Archived-At: > I don't have transient-mark-mode switched on. > If I set the mark somewhere, and I then hit `M-;', then the region is no > longer commented out like it used to be. > Is this meant to work this way, or is it just a bug? M-; can't guess whether the mark you set was placed there because you intend to get back there at some point, or because you intend to operate on the region. So you need to tell M-; which it is, and you do that by controlling the "active"-ness of the region. So C-SPC C-SPC ... M-; should do, as will ... C-u C-x C-x M-; Stefan