From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: Re: bug in comment-region Date: Thu, 10 Jun 2004 02:11:20 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040609.160802.116374946.wl@gnu.org> <20040609210920.GA12578@fencepost> <20040610.010621.18288090.wl@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086858703 5148 80.91.224.253 (10 Jun 2004 09:11:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2004 09:11:43 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 10 11:11:35 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYLaw-00052o-00 for ; Thu, 10 Jun 2004 11:11:34 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYLaw-0000SR-00 for ; Thu, 10 Jun 2004 11:11:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYLbc-0000Es-OM for emacs-devel@quimby.gnus.org; Thu, 10 Jun 2004 05:12:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYLba-0000Eb-A1 for emacs-devel@gnu.org; Thu, 10 Jun 2004 05:12:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYLbZ-0000EI-JG for emacs-devel@gnu.org; Thu, 10 Jun 2004 05:12:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYLbZ-0000EF-GN for emacs-devel@gnu.org; Thu, 10 Jun 2004 05:12:13 -0400 Original-Received: from [128.32.47.228] (helo=hkn.eecs.berkeley.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BYLam-0007kV-Hm; Thu, 10 Jun 2004 05:11:24 -0400 Original-Received: from quarl by hkn.eecs.berkeley.edu with local id 1BYLai-00044D-00; Thu, 10 Jun 2004 02:11:20 -0700 Original-To: Werner LEMBERG X-Quack-Archive: 1 X-Payment: hashcash 1.2 0:040610:wl@gnu.org:35f8679b3157be1f6f2d1d5f X-Hashcash: 0:040610:wl@gnu.org:35f8679b3157be1f6f2d1d5f X-Payment: hashcash 1.2 0:040610:miles@gnu.org:86750081a521103323e15e2a X-Hashcash: 0:040610:miles@gnu.org:86750081a521103323e15e2a X-Payment: hashcash 1.2 0:040610:emacs-devel@gnu.org:a1f141903add2a44cd208af6 X-Hashcash: 0:040610:emacs-devel@gnu.org:a1f141903add2a44cd208af6 In-Reply-To: <20040610.010621.18288090.wl@gnu.org> (Werner LEMBERG's message of "Thu, 10 Jun 2004 01:06:21 +0200 (CEST)") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24798 I use C-u comment-region / comment-dwim all the time. Perhaps that functionality could be moved to M-- (negative-argument) instead of C-u though. (BTW: I actually use my own function `comment-line-or-region' which is much more useful when transient-mark-mode is on) >>> "Werner" == Werner LEMBERG writes: Werner> >> Thanks. Anyway, my suggestion w.r.t. C-u still holds -- >> IMHO it is quite inconvenient to control the behaviour of >> such a versatile function with a global variable. >> >> `comment-region' and `comment-dwim' already have a (much >> more useful) meaning for C-u (in fact, comment-region has >> several). Werner> Werner> I haven't yet used comment-dwim, so I won't say Werner> something about this function. But IMHO it is a Werner> strange idea to have `C-u something' do exactly the Werner> opposite of `something'. Until now I've considered Werner> the C-u prefix as a means to get an extended or Werner> slightly modified functionality of a function. Werner> Werner> Are there other commands which do the opposite if Werner> prefixed with C-u? Werner> Werner> And I don't agree with your conclusion that the Werner> several meanings of C-u for `comment-region' are `much Werner> more useful'. For me, they are useful for Werner> `uncomment-region' only. Werner> Werner> Werner> Werner Werner> -- Karl 2004-06-10 02:07