From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: /* */ style comments in C++ sources Date: Thu, 15 Jun 2017 21:10:07 +0000 Message-ID: <20170615211006.GB6625@acm.fritz.box> References: <83shjvmmeq.fsf@gnu.org> <20170523203144.GB10407@acm.fritz.box> <83k257m1jp.fsf@gnu.org> <20170524205316.GA6009@acm.fritz.box> <83wp95ll7z.fsf@gnu.org> <20170525154841.GA5313@acm.fritz.box> <20170526091626.GA4643@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1497561189 20677 195.159.176.226 (15 Jun 2017 21:13:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 21:13:09 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: Dani Moncayo , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 15 23:13:05 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dLc4e-000567-Ul for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 23:13:05 +0200 Original-Received: from localhost ([::1]:55813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLc4k-0007rA-7p for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 17:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLc2y-0006qs-BZ for emacs-devel@gnu.org; Thu, 15 Jun 2017 17:11:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLc2t-0000tV-A7 for emacs-devel@gnu.org; Thu, 15 Jun 2017 17:11:20 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:31654 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dLc2s-0000rn-UU for emacs-devel@gnu.org; Thu, 15 Jun 2017 17:11:15 -0400 Original-Received: (qmail 57960 invoked by uid 3782); 15 Jun 2017 21:11:12 -0000 Original-Received: from acm.muc.de (p548C6F72.dip0.t-ipconnect.de [84.140.111.114]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 15 Jun 2017 23:11:11 +0200 Original-Received: (qmail 21101 invoked by uid 1000); 15 Jun 2017 21:10:07 -0000 Content-Disposition: inline In-Reply-To: <20170526091626.GA4643@acm.fritz.box> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215657 Archived-At: Hello, Eli. On Fri, May 26, 2017 at 09:16:26 +0000, Alan Mackenzie wrote: > On Thu, May 25, 2017 at 15:48:41 +0000, Alan Mackenzie wrote: > Sorry, I made a mistake in yesterday's post. Instead of > > Basically, in a CC Mode buffer, C-c C-k will toggle the comment style. > > Set `c-block-comment-flag' to nil or t in, e.g., a mode hook to do the > > obvious. > , the second sentence of that paragraph should have read > Call `c-toggle-comment-style' with a numeric argument in, e.g., a mode > hook to do the obvious. More precisely, put (c-toggle-comment-style 1) into your c++-mode-hook. > Merely setting `c-block-comment-flag' is insufficient to set Emacs's > comment variables. There was no response to Stephan's suggestion (that the mechanism for toggling comment style should somehow be shared by CC Mode, Pascal Mode, Haskell Mode ....). So I've just committed the amendment to master. -- Alan Mackenzie (Nuremberg, Germany).