From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#41952: CC Mode and js-mode: Erroneous values for comment-start-skip Date: 4 Jul 2020 13:03:34 -0000 Organization: muc.de e.V. Message-ID: <20200704130334.58444.qmail@mail.muc.de> References: <20200619194011.GA2655@ACM> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1022"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/11.3-RELEASE-p9 (amd64)) Cc: 41952-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 04 15:04:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrhpy-000092-Tb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jul 2020 15:04:10 +0200 Original-Received: from localhost ([::1]:43150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrhpx-0007ve-GI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jul 2020 09:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrhpq-0007vP-Pz for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2020 09:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrhpq-0006y5-GF for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2020 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jrhpq-0002SY-CW for bug-gnu-emacs@gnu.org; Sat, 04 Jul 2020 09:04:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jul 2020 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41952 X-GNU-PR-Package: emacs Mail-Followup-To: 41952@debbugs.gnu.org, acm@muc.de, acm@muc.de Original-Received: via spool by 41952-done@debbugs.gnu.org id=D41952.15938678239421 (code D ref 41952); Sat, 04 Jul 2020 13:04:02 +0000 Original-Received: (at 41952-done) by debbugs.gnu.org; 4 Jul 2020 13:03:43 +0000 Original-Received: from localhost ([127.0.0.1]:58263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrhpW-0002Rt-No for submit@debbugs.gnu.org; Sat, 04 Jul 2020 09:03:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:42579 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1jrhpU-0002RZ-R4 for 41952-done@debbugs.gnu.org; Sat, 04 Jul 2020 09:03:41 -0400 Original-Received: (qmail 58445 invoked by uid 3782); 4 Jul 2020 13:03:34 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182691 Archived-At: In article you wrote: > Hello, Emacs. > In CC Mode modes, a typical value for comment-start-skip is: > "\\(//+\\|/\\*+\\)\\s *" > . This is erroneous, since it includes regexp grouping parentheses, yet > the comment being matched doesn't start at (match-end 1), contravening > the definition of comment-start-skip. > This mistake is likely to lead to errors in filling, etc. > The same bug is present in js-mode. Fixed in master. -- Alan Mackenzie (Nuremberg, Germany).