From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50840: 28.0.50; Support GNU style of multiline comments in C source code Date: Mon, 27 Sep 2021 21:51:45 +0300 Message-ID: <83ee99lum6.fsf@gnu.org> References: <837df2moym.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13403"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, monnier@iro.umontreal.ca, 50840@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 20:52:24 2021 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 1mUvjk-0003ID-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 20:52:24 +0200 Original-Received: from localhost ([::1]:42322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUvjj-0003hE-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 14:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUvjP-0003fr-CE for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 14:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUvjP-0001zo-4p for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 14:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUvjP-0001EO-3I for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 14:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 18:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50840 X-GNU-PR-Package: emacs Original-Received: via spool by 50840-submit@debbugs.gnu.org id=B50840.16327687114696 (code B ref 50840); Mon, 27 Sep 2021 18:52:03 +0000 Original-Received: (at 50840) by debbugs.gnu.org; 27 Sep 2021 18:51:51 +0000 Original-Received: from localhost ([127.0.0.1]:42862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvjD-0001Dg-5k for submit@debbugs.gnu.org; Mon, 27 Sep 2021 14:51:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvjB-0001DT-I3 for 50840@debbugs.gnu.org; Mon, 27 Sep 2021 14:51:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38964) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUvj5-0001jd-4Q; Mon, 27 Sep 2021 14:51:43 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4797 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUvj3-0000LX-EA; Mon, 27 Sep 2021 14:51:43 -0400 In-Reply-To: (message from Alan Mackenzie on Mon, 27 Sep 2021 18:35:50 +0000) 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:215699 Archived-At: > Date: Mon, 27 Sep 2021 18:35:50 +0000 > Cc: 50840@debbugs.gnu.org, Stefan Monnier , > acm@muc.de > From: Alan Mackenzie > > > Is this true? If so, a feature request: add a style to support that. > > If such a style already exists, please clarify the documentation so that > > users could understand which style does that. > > > And one more nit: Can the 'comment-end' inserted after the end of a > > comment please keep _two_ spaces after the period that ends the last > > line of a comment? Or at least heed the setting of > > 'sentence-end-double-space'? > > Are we talking about C-c C-c (aka M-x comment-region) here? Yes, my use case, and the context in which I filed the bug report, was "C-c C-c". Not only for the 2 spaces issue, but also for the comment style. > This command currently inserts comment-end (in C Mode, " */") at the > end of each line being commented, which will leave a single space > between what was the last "." on the line and the "*/". > > We could surely check for an end of sentence character at EOL here, and > if we've got one, check that at least two spaces are left. This again > would be something for lisp/newcomment.el. Probably. That''s why Stefan was CC'ed as well.