From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31615: 27.0; doc of `uncomment-region(-default)' Date: Sun, 27 May 2018 21:20:04 -0700 (PDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527481148 20327 195.159.176.226 (28 May 2018 04:19:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 04:19:08 +0000 (UTC) To: 31615@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 28 06:19:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN9cd-00058k-S3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 May 2018 06:19:04 +0200 Original-Received: from localhost ([::1]:54135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fN9ek-0003JJ-9Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 May 2018 00:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fN9eb-0003J1-JT for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fN9eY-0007kU-7X for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:21:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fN9eY-0007kQ-3Q for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fN9eX-0000YO-Tr for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 May 2018 04:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15274812202071 (code B ref -1); Mon, 28 May 2018 04:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 May 2018 04:20:20 +0000 Original-Received: from localhost ([127.0.0.1]:51465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN9ds-0000XL-Hl for submit@debbugs.gnu.org; Mon, 28 May 2018 00:20:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fN9dr-0000X5-Cf for submit@debbugs.gnu.org; Mon, 28 May 2018 00:20:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fN9dl-0007FQ-8u for submit@debbugs.gnu.org; Mon, 28 May 2018 00:20:14 -0400 Original-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 ) id 1fN9dl-0007FI-5m for submit@debbugs.gnu.org; Mon, 28 May 2018 00:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fN9dj-0003Bi-W6 for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fN9dg-0007DC-Qn for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:20:11 -0400 Original-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 ) id 1fN9dg-0007CV-F6 for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 00:20:08 -0400 Original-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 ; 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== Original-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 ; Mon, 28 May 2018 04:20:06 +0000 Original-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 ; Mon, 28 May 2018 04:20:05 GMT Original-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 ; Mon, 28 May 2018 04:20:05 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4690.0 (x86)] 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:146624 Archived-At: 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''