From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: one key-press to comment out lines of code? Date: Thu, 01 May 2014 17:03:23 +0200 Organization: Aioe.org NNTP Server Message-ID: <87ha59h77o.fsf@nl106-137-194.student.uu.se> References: <87fvku94ms.fsf@skimble.plus.com> <874n1ak5b9.fsf@nl106-137-194.student.uu.se> <87ha59ioyw.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398956941 21961 80.91.229.3 (1 May 2014 15:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 15:09:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 01 17:08:56 2014 Return-path: Envelope-to: geh-help-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 1WfsbW-0005ng-Fm for geh-help-gnu-emacs@m.gmane.org; Thu, 01 May 2014 17:08:54 +0200 Original-Received: from localhost ([::1]:40098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfsbV-0000YE-U7 for geh-help-gnu-emacs@m.gmane.org; Thu, 01 May 2014 11:08:53 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: VVbyYd/iFZoeWNmD9i++cQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:GvY4YX1VJIXEEwm7gsibaMuJ+Xs= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:205255 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97521 Archived-At: Drew Adams writes: > I already pointed out that M-; will nest. And that > it will unnest, but only if the region contains only > commented lines. OK, you mean uncomment-region will uncomment this, while M-; will comment it additionally? ;; code code Then, one has to wonder why the second line is included in the region to begin with? I guess, if you use this on big chunks of code with comments and code interleaved, it might be useful. >> > A DWIM command is often limited this way; it is a >> > compromise. >> >> It doesn't have to be. > > It has to be. It is a guess wrt what any given user > wants at any given time. Yes, but from the users' perspective they know what state gives what behaviour, so it is just an alternative way (a better, often) to tell the computer what to do. Or not having to do anything to still tell the computer that, if the state is already ripe for executing the command with a certain behaviour in mind. And if the DWIM command is good, that should happen more often than not. -- underground experts united: http://user.it.uu.se/~embe8573