GNU bug report logs - #31615
let uncomment-region remove ALL comment+whitespace chars up to first non-comment char

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Mon, 28 May 2018 04:21:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'minor' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'let uncomment-region remove ALL comment+whitespace chars up to first non-comment char' from '27.0; doc of `uncomment-region(-default)'' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31615 <at> debbugs.gnu.org:


Received: (at 31615) by debbugs.gnu.org; 2 Jun 2018 14:14:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 10:14:21 2018
Received: from localhost ([127.0.0.1]:59455 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fP7IT-0006Py-8H
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2018 10:14:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51685)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fP7IR-0006Pj-8d
 for 31615 <at> debbugs.gnu.org; Sat, 02 Jun 2018 10:14:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fP7IJ-0005Y7-70
 for 31615 <at> debbugs.gnu.org; Sat, 02 Jun 2018 10:14:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46603)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fP7IJ-0005Xh-3n; Sat, 02 Jun 2018 10:14:11 -0400
Received: from [176.228.60.248] (port=2289 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fP7IH-0005Os-Vp; Sat, 02 Jun 2018 10:14:10 -0400
Date: Sat, 02 Jun 2018 17:14:14 +0300
Message-Id: <837enhe0nd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <4afe26ca-00d6-4f16-b5e2-6a7444ddcd13@default> (message from Drew
 Adams on Sat, 2 Jun 2018 13:47:38 +0000 (UTC))
Subject: Re: bug#31615: 27.0; doc of `uncomment-region(-default)'
References: <<f7e49ba0-f2bd-4da0-84bd-f6cda8167a0e@default>>
 <<83lgbxeac4.fsf@HIDDEN>> <4afe26ca-00d6-4f16-b5e2-6a7444ddcd13@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 31615
Cc: 31615 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> Date: Sat, 2 Jun 2018 13:47:38 +0000 (UTC)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 31615 <at> debbugs.gnu.org
> 
> > > 4. Enhancement request: Provide a way to remove ALL comment chars and
> > > all whitespace between them, up to the first non-comment char.
> > 
> > Not done.
> 
> Right.  Shall we leave this bug open for that enhancement
> request, or do you want a new report for just that?

I left it open.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31615; Package emacs. Full text available.

Message received at 31615 <at> debbugs.gnu.org:


Received: (at 31615) by debbugs.gnu.org; 2 Jun 2018 13:47:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 09:47:49 2018
Received: from localhost ([127.0.0.1]:58499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fP6sm-0005Qg-Nu
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2018 09:47:48 -0400
Received: from userp2130.oracle.com ([156.151.31.86]:39622)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1fP6sl-0005QO-1T
 for 31615 <at> debbugs.gnu.org; Sat, 02 Jun 2018 09:47:47 -0400
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w52DlfOb057379;
 Sat, 2 Jun 2018 13:47:41 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26;
 bh=JZF/1ALP4k9haSSG5XxtVrMEZBE1SnKfhHYVQ3BUh3w=;
 b=lq64TTl6Ebe9obykx+02pBGmRSMQTIWrxP1vScAZ7/IjY9xCojjKWRhL79o7+XfBwMvJ
 pLg7afg28VNFIJ7Sx7apvZl3Wjgegxd5nnfBW4bUweTOHEtSMLW9UXeUxzSJkNwaE9ll
 zfV9sui7jpSoEo7ttiFQMujh1dMehRp613T/7XeVe5r229rm2sRIWlXVUBxX04sC0gLY
 XeSlVWHdisC6kgQVtHzhwQ8bh+7+i3pLBLU0puyl57mzhXjseUF1UWWyWa3GC6UCVLmT
 tNqJaoSA6DuGkPy9g/wvxaK1FvNbIF6DqA4op+iDPGnHlKkiPfjsy7Wcl5tffk8AxJha Ew== 
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])
 by userp2130.oracle.com with ESMTP id 2jbjpa8krh-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 02 Jun 2018 13:47:40 +0000
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w52Dleli027971
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 2 Jun 2018 13:47:40 GMT
Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])
 by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w52DldJV019808;
 Sat, 2 Jun 2018 13:47:39 GMT
MIME-Version: 1.0
Message-ID: <4afe26ca-00d6-4f16-b5e2-6a7444ddcd13@default>
Date: Sat, 2 Jun 2018 13:47:38 +0000 (UTC)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#31615: 27.0; doc of `uncomment-region(-default)'
References: <<f7e49ba0-f2bd-4da0-84bd-f6cda8167a0e@default>>
 <<83lgbxeac4.fsf@HIDDEN>>
In-Reply-To: <<83lgbxeac4.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4690.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8911
 signatures=668702
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0
 malwarescore=0
 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=755
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1805220000 definitions=main-1806020163
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 31615
Cc: 31615 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Done.

Thx.

> > 2. The doc strings should be much more specific about the behavior, in
> > particular wrt ARG.  Apparently the functions do nothing at all if ARG
> > is larger than the first sequence of comment chars in the region.
> >
> > E.g. for a comment such as this one:
> >   ;; foo bar
> > (uncomment-region (line-beginning-position) (line-end-position) 3)
> > does nothing.  That's not obvious from the doc.
>=20
> I'm not sure this was the intent of the code.  I'd expect it to remove
> the maximum number of comment delimiters it can, not just punt
> silently.

I too think that should be the behavior, but who knows what
the intention was.  If the behavior gets fixed to do that
then great.  In any case (fixed behavior, intended but not
yet fixed behavior, or current behavior), I think the
behavior should be documented.

> It means "comment delimiters"; fixed.

Thx.

> > 4. Enhancement request: Provide a way to remove ALL comment chars and
> > all whitespace between them, up to the first non-comment char.
>=20
> Not done.

Right.  Shall we leave this bug open for that enhancement
request, or do you want a new report for just that?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31615; Package emacs. Full text available.

Message received at 31615 <at> debbugs.gnu.org:


Received: (at 31615) by debbugs.gnu.org; 2 Jun 2018 10:45:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 06:45:08 2018
Received: from localhost ([127.0.0.1]:58405 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fP41y-0007GF-LI
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2018 06:45:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39508)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fP41w-0007FU-TM
 for 31615 <at> debbugs.gnu.org; Sat, 02 Jun 2018 06:45:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fP41o-0007eW-P0
 for 31615 <at> debbugs.gnu.org; Sat, 02 Jun 2018 06:44:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44039)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fP41o-0007eL-LF; Sat, 02 Jun 2018 06:44:56 -0400
Received: from [176.228.60.248] (port=2120 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fP41o-0005C2-36; Sat, 02 Jun 2018 06:44:56 -0400
Date: Sat, 02 Jun 2018 13:44:59 +0300
Message-Id: <83lgbxeac4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <f7e49ba0-f2bd-4da0-84bd-f6cda8167a0e@default> (message from Drew
 Adams on Sun, 27 May 2018 21:20:04 -0700 (PDT))
Subject: Re: bug#31615: 27.0; doc of `uncomment-region(-default)'
References: <f7e49ba0-f2bd-4da0-84bd-f6cda8167a0e@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 31615
Cc: 31615 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> Date: Sun, 27 May 2018 21:20:04 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> 
> 1. These two functions should not have the same doc string.  Function
> `*-default' should say what is - the default value of
> `uncomment-region-function'.

Done.

> 2. The doc strings should be much more specific about the behavior, in
> particular wrt ARG.  Apparently the functions do nothing at all if ARG
> is larger than the first sequence of comment chars in the region.
> 
> E.g. for a comment such as this one:
> 
>   ;; foo bar
> 
> (uncomment-region (line-beginning-position) (line-end-position) 3)
> 
> does nothing.  That's not obvious from the doc.

I'm not sure this was the intent of the code.  I'd expect it to remove
the maximum number of comment delimiters it can, not just punt
silently.

> 3. The doc string talks about "comment markers".  What's that?

It means "comment delimiters"; fixed.

> 4. Enhancement request: Provide a way to remove ALL comment chars and
> all whitespace between them, up to the first non-comment char.

Not done.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31615; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 May 2018 04:20:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 28 00:20:20 2018
Received: from localhost ([127.0.0.1]:51465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fN9ds-0000XL-Hl
	for submit <at> debbugs.gnu.org; Mon, 28 May 2018 00:20:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48585)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1fN9dr-0000X5-Cf
 for submit <at> debbugs.gnu.org; Mon, 28 May 2018 00:20:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1fN9dl-0007FQ-8u
 for submit <at> debbugs.gnu.org; Mon, 28 May 2018 00:20:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:43664)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <drew.adams@HIDDEN>)
 id 1fN9dl-0007FI-5m
 for submit <at> debbugs.gnu.org; Mon, 28 May 2018 00:20:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39555)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1fN9dj-0003Bi-W6
 for bug-gnu-emacs@HIDDEN; Mon, 28 May 2018 00:20:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1fN9dg-0007DC-Qn
 for bug-gnu-emacs@HIDDEN; Mon, 28 May 2018 00:20:11 -0400
Received: from aserp2120.oracle.com ([141.146.126.78]:39682)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <drew.adams@HIDDEN>)
 id 1fN9dg-0007CV-F6
 for bug-gnu-emacs@HIDDEN; Mon, 28 May 2018 00:20:08 -0400
Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1])
 by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4S4GskX043404
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 May 2018 04:20:06 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : subject : content-type :
 content-transfer-encoding; s=corp-2017-10-26;
 bh=tanl307Cp84T6vEfNa9yQ78Ig26T9IU4g1PgFlY+UZQ=;
 b=D53vxMoYrIi9/2lnd0wCS5gVCZRn69i26x/Vg1lbc3hqGebQiQkoi/UTfCLe0Yi3ejCp
 cpyByEkZw4dp8OiALocf5fOOliyflJV+wXSDsLiM1ilA/kkJdN2ULkRNwANIJpYAf4XZ
 1C0CgutUhUqd7ruRB42LSvq74HkfsJPOriEgzLCBRNSlr5GkthC4aEjPwEBoVl2ctLFa
 lZxO429pKij6VPBR/3hVg4/2/Fc9OJASw0bfqmvzmRxeUkWhMwi0w1AqUt719l8ea8Jh
 el6X7bDrsKpSatH7+A3qrIXECB54i3UV1sOXfgiHkBweYX3iQbbLxJaK/3A0HvpSWZjg 0A== 
Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234])
 by aserp2120.oracle.com with ESMTP id 2j6yjbbxrc-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 May 2018 04:20:06 +0000
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4S4K594003676
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 May 2018 04:20:05 GMT
Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11])
 by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4S4K5q2001583
 for <bug-gnu-emacs@HIDDEN>; Mon, 28 May 2018 04:20:05 GMT
MIME-Version: 1.0
Message-ID: <f7e49ba0-f2bd-4da0-84bd-f6cda8167a0e@default>
Date: Sun, 27 May 2018 21:20:04 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0; doc of `uncomment-region(-default)'
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4690.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8906
 signatures=668702
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1
 malwarescore=0
 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=966
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1711220000 definitions=main-1805280051
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

1. These two functions should not have the same doc string.  Function
`*-default' should say what is - the default value of
`uncomment-region-function'.

2. The doc strings should be much more specific about the behavior, in
particular wrt ARG.  Apparently the functions do nothing at all if ARG
is larger than the first sequence of comment chars in the region.

E.g. for a comment such as this one:

  ;; foo bar

(uncomment-region (line-beginning-position) (line-end-position) 3)

does nothing.  That's not obvious from the doc.  From the doc I'd get
the impression that I could be sure to remove all contiguous comment
chars from the beginning using `most-positive-fixnum' for ARG.

3. The doc string talks about "comment markers".  What's that?

4. Enhancement request: Provide a way to remove ALL comment chars and
all whitespace between them, up to the first non-comment char.  So each
of these lines, for example:

  ;; ;;; ; foo bar

  ; ; ; ; foo bar

  ;; ;; foo bar

  ;; foo bar

would be uncommented to this line:

  foo bar

That could be done, for example, by providing `all' as the value of ARG.


In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32)
 of 2018-03-21
Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --host=3Dx86_64-w64-mingw32
 --without-compress-install -C 'CFLAGS=3D-O2 -static -g3''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31615; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.