From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Toon Claes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jul 2012 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11865@debbugs.gnu.org Cc: toon@tonotdo.com X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.134148911916841 (code B ref -1); Thu, 05 Jul 2012 11:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Jul 2012 11:51:59 +0000 Received: from localhost ([127.0.0.1]:49845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmkbG-0004Na-OQ for submit@debbugs.gnu.org; Thu, 05 Jul 2012 07:51:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44073) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmkbD-0004NS-So for submit@debbugs.gnu.org; Thu, 05 Jul 2012 07:51:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmkWO-0001Rw-Si for submit@debbugs.gnu.org; Thu, 05 Jul 2012 07:47:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:40281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWO-0001Rr-Ot for submit@debbugs.gnu.org; Thu, 05 Jul 2012 07:46:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWI-0004ZW-3t for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmkWF-0001Q1-Js for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:46:49 -0400 Received: from web1.futureweb.be ([77.243.237.194]:43522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWF-0001OJ-8r for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:46:47 -0400 Received: from localhost ([127.0.0.1] helo=tonotdo.com) by web1.futureweb.be with esmtpa (Exim 4.80) (envelope-from ) id 1SmkWA-0004eE-DI; Thu, 05 Jul 2012 13:46:42 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_01a275b37794df7c84d4c1669125eca8" Date: Thu, 05 Jul 2012 13:46:42 +0200 From: Toon Claes Message-ID: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> X-Sender: toon@tonotdo.com User-Agent: Roundcube Webmail/0.7.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) --=_01a275b37794df7c84d4c1669125eca8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 I am using doxygen.org to comment code (and generate documentation from it). This requires a dedicated commenting style, e.g.: /** * This is a doxygen comment * @param par this is a parameter for this function * @return this is what is returned by the function */ bool my_function(int par); When this snippet is viewed with major mode 'c-mode', the @-keywords are highlighted. When you set the major mode to 'c++-mode', this is not the case. So for some reason this additional highlighting is not enabled for c++. I am not sure if this is a bug, or disabled on purpose. Anyhow, using doxygen for c++ is valid. Also it seems the doxygen highlighting does not work when you type comments on the same line as the '/**', e.g. like this: /** This comment is not doxygen-highlighted */ Regards, Toon In GNU Emacs 24.1.50.1 (i686-suse-linux-gnu, X toolkit) of 2012-06-20 on suse12-tcl Bzr revision: 108664 eggert@cs.ucla.edu-20120619185739-mile4zpnjrqz5e8e Windowing system distributor `The X.Org Foundation', version 11.0.11004000 Configured using: `configure '--without-toolkit-scroll-bars'' Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x C-f / t o k s 2 T o C o m O b O b S m S S r C-s r e b o o t C-a C-n C-n C-n M-x c + + m - m o d e M-x f u M-x r e p o r t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. user-error: Beginning of history; no preceding item Making completion list... Note: file is write protected Loading cc-langs...done Mark saved where search started completing-read-default: Command attempted to use minibuffer while in minibuffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils multi-isearch cc-langs cl macroexp cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode easymenu view time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) --=_01a275b37794df7c84d4c1669125eca8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

I am using doxygen.org to comment code (and generate documentation
= from it). This requires a dedicated commenting style, e.g.:

&nbs= p;   /**
     * This is a doxygen commen= t
     * @param par this is a parameter for this f= unction
     * @return this is what is returned by= the function
     */
    bool= my_function(int par);

When this snippet is viewed with major mo= de 'c-mode', the @-keywords are
highlighted. When you set the major mo= de to 'c++-mode', this is not the
case.

So for some reason = this additional highlighting is not enabled for
c++. I am not sure if = this is a bug, or disabled on purpose. Anyhow,
using doxygen for c++ i= s valid.

Also it seems the doxygen highlighting does not work wh= en you type
comments on the same line as the '/**', e.g. like this:    /** This comment is not doxygen-highlighted
&nbs= p;    */


Regards,
Toon



In GNU Emacs 24.1.50.1 (i686-suse-linux-gnu, X toolkit)
 = of 2012-06-20 on suse12-tcl
Bzr revision: 108664 eggert@cs.ucla.edu-20= 120619185739-mile4zpnjrqz5e8e
Windowing system distributor `The X.Org = Foundation', version 11.0.11004000
Configured using:
 `confi= gure '--without-toolkit-scroll-bars''

Important settings:
&= nbsp; value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF= -8
  value of $XMODIFIERS: @im=3Dlocal
  locale-coding-= system: utf-8-unix
  default enable-multibyte-characters: t
=
Major mode: C++/l

Minor modes in effect:
  toolt= ip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  = global-font-lock-mode: t
  font-lock-mode: t
  blink-cu= rsor-mode: t
  auto-composition-mode: t
  auto-encrypti= on-mode: t
  auto-compression-mode: t
  line-number-mod= e: t
  transient-mark-mode: t
  abbrev-mode: t
Recent input:
C-x C-f <up> / t o k <tab> s <tab> = 2 <tab> T o <tab>
C o m <tab> O b <tab> O b &= lt;tab> S <tab> m <tab> S <tab>
S r <backspac= e> <tab> <return> C-s r e b o o t C-a
C-n C-n C-n M-x = c + + m <backspace> - m o d e <return>
M-x f u <backsp= ace> <backspace> <help-echo> M-x r e
p o r t - <tab= > <return>

Recent messages:
For information about = GNU Emacs and the GNU system, type C-h C-a.
user-error: Beginning of h= istory; no preceding item
Making completion list...
Note: file is= write protected
Loading cc-langs...done
Mark saved where search = started
completing-read-default: Command attempted to use minibuffer w= hile in minibuffer

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message cl-macs = format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-pars= e rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 iet= f-drums
mm-util mail-prsvr mail-utils multi-isearch cc-langs cl macroe= xp cl-lib
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-alig= n cc-engine
cc-vars cc-defs help-mode easymenu view time-date tooltip = ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fo= ntset image
regexp-opt fringe tabulated-list newcomment lisp-mode regi= ster page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock = font-lock
syntax facemenu font-core frame cham georgian utf-8-lang mis= c-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew gre= ek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs<= br />button faces cus-face files text-properties overlay sha1 md5 base64format env code-pages mule custom widget hashtable-print-readable
b= ackquote make-network-process dbusbind dynamic-setting
system-font-set= ting font-render-setting x-toolkit x multi-tty emacs)

 
--=_01a275b37794df7c84d4c1669125eca8-- From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> In-Reply-To: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> Resent-From: Toon Claes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 06 Jul 2012 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: <11865@debbugs.gnu.org> Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.134158352122998 (code B ref 11865); Fri, 06 Jul 2012 14:06:01 +0000 Received: (at 11865) by debbugs.gnu.org; 6 Jul 2012 14:05:21 +0000 Received: from localhost ([127.0.0.1]:52849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sn99s-0005ys-Pr for submit@debbugs.gnu.org; Fri, 06 Jul 2012 10:05:21 -0400 Received: from web1.futureweb.be ([77.243.237.194]:60030) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sn99p-0005yg-EJ for 11865@debbugs.gnu.org; Fri, 06 Jul 2012 10:05:19 -0400 Received: from localhost ([127.0.0.1] helo=tonotdo.com) by web1.futureweb.be with esmtpa (Exim 4.80) (envelope-from ) id 1Sn950-0001zz-16 for 11865@debbugs.gnu.org; Fri, 06 Jul 2012 16:00:18 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_9548d4f8a0de92fe9a4faefdd9317040" Date: Fri, 06 Jul 2012 16:00:17 +0200 From: Toon Claes Message-ID: X-Sender: toon@tonotdo.com User-Agent: Roundcube Webmail/0.7.2 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) --=_9548d4f8a0de92fe9a4faefdd9317040 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 I think I've found the solution. Please consider this patch: === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-07-06 13:50:37 +0000 +++ lisp/ChangeLog 2012-07-06 07:08:10 +0000 @@ -1,11 +1,3 @@ -2012-07-06 Toon Claes - - * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): - Less restrictive checking for gtkdoc. - - * progmodes/cc-vars.el: For c++-mode set gtkdoc the default - c-doc-comment-style. - 2012-07-06 Glenn Morris * Makefile.in (compile-one-process): Rename from "recompile". === modified file 'lisp/progmodes/cc-fonts.el' --- lisp/progmodes/cc-fonts.el 2012-07-06 13:50:37 +0000 +++ lisp/progmodes/cc-fonts.el 2012-01-19 07:21:25 +0000 @@ -2572,7 +2572,7 @@ (defconst gtkdoc-font-lock-keywords `((,(lambda (limit) - (c-font-lock-doc-comments "/\*\*\([^\*/].*\)?$" limit + (c-font-lock-doc-comments "/\*\*$" limit gtkdoc-font-lock-doc-comments) (c-font-lock-doc-comments "/\*< " limit gtkdoc-font-lock-doc-protection) === modified file 'lisp/progmodes/cc-vars.el' --- lisp/progmodes/cc-vars.el 2012-07-06 13:50:37 +0000 +++ lisp/progmodes/cc-vars.el 2012-02-11 22:13:29 +0000 @@ -552,8 +552,7 @@ (defcustom-c-stylevar c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc) - (c-mode . gtkdoc) - (c++-mode . gtkdoc)) + (c-mode . gtkdoc)) "*Specifies documentation comment style(s) to recognize. This is primarily used to fontify doc comments and the markup within them, e.g. Javadoc comments. @@ -563,7 +562,7 @@ javadoc -- Javadoc style for "/** ... */" comments (default in Java mode). autodoc -- Pike autodoc style for "//! ..." comments (default in Pike mode). - gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C/C++ mode). + gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C mode). The value may also be a list of doc comment styles, in which case all of them are recognized simultaneously (presumably with markup cues --=_9548d4f8a0de92fe9a4faefdd9317040 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

I think I've found the solution. Please consider this patch:

=3D=3D=3D modified file 'lisp/ChangeLog'
--- lisp/ChangeLog &n= bsp;  2012-07-06 13:50:37 +0000
+++ lisp/ChangeLog   &n= bsp;2012-07-06 07:08:10 +0000
@@ -1,11 +1,3 @@
-2012-07-06  = Toon Claes  <toon@tonotdo.com>
-
-    *= progmodes/cc-fonts.el (gtkdoc-font-lock-keywords):
-   &nbs= p;Less restrictive checking for gtkdoc.
-
-    * p= rogmodes/cc-vars.el: For c++-mode set gtkdoc the default
-  =  c-doc-comment-style.
-
 2012-07-06  Glenn Morris=   <rgm@gnu.org>
 
     * Make= file.in (compile-one-process): Rename from "recompile".

=3D=3D= =3D modified file 'lisp/progmodes/cc-fonts.el'
--- lisp/progmodes/cc-f= onts.el    2012-07-06 13:50:37 +0000
+++ lisp/progmodes= /cc-fonts.el    2012-01-19 07:21:25 +0000
@@ -2572,7 +2= 572,7 @@
 
 (defconst gtkdoc-font-lock-keywords
&n= bsp;  `((,(lambda (limit)
-    (c-font-lock-doc-co= mments "/\\*\\*\\([^\\*/].*\\)?$" limit
+    (c-font-lo= ck-doc-comments "/\\*\\*$" limit
       gtkdo= c-font-lock-doc-comments)
     (c-font-lock-doc-co= mments "/\\*< " limit
       gtkdoc-font-l= ock-doc-protection)

=3D=3D=3D modified file 'lisp/progmodes/cc-v= ars.el'
--- lisp/progmodes/cc-vars.el    2012-07-06 13:= 50:37 +0000
+++ lisp/progmodes/cc-vars.el    2012-02-11= 22:13:29 +0000
@@ -552,8 +552,7 @@
 (defcustom-c-stylevar c= -doc-comment-style
   '((java-mode . javadoc)
 &nb= sp;   (pike-mode . autodoc)
-    (c-mode = ;   . gtkdoc)
-    (c++-mode  . gtkdoc))=
+    (c-mode    . gtkdoc))
 &= nbsp; "*Specifies documentation comment style(s) to recognize.
 T= his is primarily used to fontify doc comments and the markup within
&n= bsp;them, e.g. Javadoc comments.
@@ -563,7 +562,7 @@
 
=   javadoc -- Javadoc style for \"/** ... */\" comments (default in Jav= a mode).
  autodoc -- Pike autodoc style for \"//! ...\" comments= (default in Pike mode).
- gtkdoc  -- GtkDoc style for \"/** ..= =2E **/\" comments (default in C/C++ mode).
+ gtkdoc  -- GtkDoc s= tyle for \"/** ... **/\" comments (default in C mode).
 
&nb= sp;The value may also be a list of doc comment styles, in which case all of them are recognized simultaneously (presumably with markup cues=


 
--=_9548d4f8a0de92fe9a4faefdd9317040-- From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Toon Claes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 10 Jul 2012 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: <11865@debbugs.gnu.org> Cc: toon@tonotdo.com Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.134190389111538 (code B ref 11865); Tue, 10 Jul 2012 07:05:02 +0000 Received: (at 11865) by debbugs.gnu.org; 10 Jul 2012 07:04:51 +0000 Received: from localhost ([127.0.0.1]:59110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoUV7-000301-G5 for submit@debbugs.gnu.org; Tue, 10 Jul 2012 03:04:51 -0400 Received: from web1.futureweb.be ([77.243.237.194]:60528) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoUV3-0002zs-Kn for 11865@debbugs.gnu.org; Tue, 10 Jul 2012 03:04:47 -0400 Received: from localhost ([127.0.0.1] helo=tonotdo.com) by web1.futureweb.be with esmtpa (Exim 4.80) (envelope-from ) id 1SoUPs-0001yD-I1; Tue, 10 Jul 2012 08:59:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Jul 2012 08:59:24 +0200 From: Toon Claes In-Reply-To: References: Message-ID: <81f18f30cc17d41a72b8c0e6e77a1ee7@tonotdo.com> X-Sender: toon@tonotdo.com User-Agent: Roundcube Webmail/0.7.2 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Excuse me, previous patch was incorrect. This one should be better --- === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-07-06 07:08:10 +0000 +++ lisp/ChangeLog 2012-07-06 13:48:51 +0000 @@ -1,3 +1,11 @@ +2012-07-06 Toon Claes + + * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): + Less restrictive checking for gtkdoc. + + * progmodes/cc-vars.el: For c++-mode set gtkdoc the default + c-doc-comment-style. + 2012-07-06 Glenn Morris * Makefile.in (compile-one-process): Rename from "recompile". === modified file 'lisp/progmodes/cc-fonts.el' --- lisp/progmodes/cc-fonts.el 2012-01-19 07:21:25 +0000 +++ lisp/progmodes/cc-fonts.el 2012-07-06 13:49:00 +0000 @@ -2572,7 +2572,7 @@ (defconst gtkdoc-font-lock-keywords `((,(lambda (limit) - (c-font-lock-doc-comments "/\*\*$" limit + (c-font-lock-doc-comments "/\*\*\([^\*/].*\)?$" limit gtkdoc-font-lock-doc-comments) (c-font-lock-doc-comments "/\*< " limit gtkdoc-font-lock-doc-protection) === modified file 'lisp/progmodes/cc-vars.el' --- lisp/progmodes/cc-vars.el 2012-02-11 22:13:29 +0000 +++ lisp/progmodes/cc-vars.el 2012-07-06 13:48:46 +0000 @@ -552,7 +552,8 @@ (defcustom-c-stylevar c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc) - (c-mode . gtkdoc)) + (c-mode . gtkdoc) + (c++-mode . gtkdoc)) "*Specifies documentation comment style(s) to recognize. This is primarily used to fontify doc comments and the markup within them, e.g. Javadoc comments. @@ -562,7 +563,7 @@ javadoc -- Javadoc style for "/** ... */" comments (default in Java mode). autodoc -- Pike autodoc style for "//! ..." comments (default in Pike mode). - gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C mode). + gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C/C++ mode). The value may also be a list of doc comment styles, in which case all of them are recognized simultaneously (presumably with markup cues From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> In-Reply-To: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> Resent-From: Toon Claes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 05 Jun 2013 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: <11865@debbugs.gnu.org> Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.13704208314899 (code B ref 11865); Wed, 05 Jun 2013 08:28:01 +0000 Received: (at 11865) by debbugs.gnu.org; 5 Jun 2013 08:27:11 +0000 Received: from localhost ([127.0.0.1]:51619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uk93k-0001Gd-Cv for submit@debbugs.gnu.org; Wed, 05 Jun 2013 04:27:10 -0400 Received: from web1.futureweb.be ([77.243.237.194]:52660) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uk93g-0001FB-PJ for 11865@debbugs.gnu.org; Wed, 05 Jun 2013 04:27:06 -0400 Received: from localhost ([127.0.0.1] helo=tonotdo.com) by web1.futureweb.be with esmtpa (Exim 4.80.1) (envelope-from ) id 1Uk91c-00069J-Ae for 11865@debbugs.gnu.org; Wed, 05 Jun 2013 10:24:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 05 Jun 2013 10:24:56 +0200 From: Toon Claes Message-ID: <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> X-Sender: toon@tonotdo.com User-Agent: Roundcube Webmail/0.8.6 X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Tags: patch Resubmitting my patch (with correct "Tags: patch" this time) in hope it finally gets merged. --- === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-07-06 07:08:10 +0000 +++ lisp/ChangeLog 2012-07-06 13:48:51 +0000 @@ -1,3 +1,11 @@ +2012-07-06 Toon Claes + + * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Better gtkdoc + parsing. + + * progmodes/cc-vars.el (c-doc-comment-style): Use gtkdoc as default + for C++. + 2012-07-06 Glenn Morris * Makefile.in (compile-one-process): Rename from "recompile". === modified file 'lisp/progmodes/cc-fonts.el' --- lisp/progmodes/cc-fonts.el 2012-01-19 07:21:25 +0000 +++ lisp/progmodes/cc-fonts.el 2012-07-06 13:49:00 +0000 @@ -2572,7 +2572,7 @@ (defconst gtkdoc-font-lock-keywords `((,(lambda (limit) - (c-font-lock-doc-comments "/**$" limit + (c-font-lock-doc-comments "/**([^*/].*)?$" limit gtkdoc-font-lock-doc-comments) (c-font-lock-doc-comments "/*< " limit gtkdoc-font-lock-doc-protection) === modified file 'lisp/progmodes/cc-vars.el' --- lisp/progmodes/cc-vars.el 2012-02-11 22:13:29 +0000 +++ lisp/progmodes/cc-vars.el 2012-07-06 13:48:46 +0000 @@ -552,7 +552,8 @@ (defcustom-c-stylevar c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc) - (c-mode . gtkdoc)) + (c-mode . gtkdoc) + (c++-mode . gtkdoc)) "*Specifies documentation comment style(s) to recognize. This is primarily used to fontify doc comments and the markup within them, e.g. Javadoc comments. @@ -562,7 +563,7 @@ javadoc -- Javadoc style for "/** ... */" comments (default in Java mode). autodoc -- Pike autodoc style for "//! ..." comments (default in Pike mode). - gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C mode). + gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C/C++ mode). The value may also be a list of doc comment styles, in which case all of them are recognized simultaneously (presumably with markup cues From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 05 05:18:39 2013 Received: (at control) by debbugs.gnu.org; 5 Jun 2013 09:18:40 +0000 Received: from localhost ([127.0.0.1]:51706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uk9rb-0004l5-05 for submit@debbugs.gnu.org; Wed, 05 Jun 2013 05:18:39 -0400 Received: from web1.futureweb.be ([77.243.237.194]:41102) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uk9rY-0004ke-87 for control@debbugs.gnu.org; Wed, 05 Jun 2013 05:18:36 -0400 Received: from localhost ([127.0.0.1] helo=tonotdo.com) by web1.futureweb.be with esmtpa (Exim 4.80.1) (envelope-from ) id 1Uk9pT-0008Ng-Lh for control@debbugs.gnu.org; Wed, 05 Jun 2013 11:16:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 05 Jun 2013 11:16:27 +0200 From: Toon Claes To: Subject: Bug #11865 contains a patch Message-ID: X-Sender: toon@tonotdo.com User-Agent: Roundcube Webmail/0.8.6 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) tags 11865 patch From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 24 Feb 2016 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Toon Claes Cc: 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.14562954037982 (code B ref 11865); Wed, 24 Feb 2016 06:31:01 +0000 Received: (at 11865) by debbugs.gnu.org; 24 Feb 2016 06:30:03 +0000 Received: from localhost ([127.0.0.1]:42344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSxW-00024U-IY for submit@debbugs.gnu.org; Wed, 24 Feb 2016 01:30:03 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:42121) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSxU-00023k-Cg for 11865@debbugs.gnu.org; Wed, 24 Feb 2016 01:30:00 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYSx6-0003H4-K2; Wed, 24 Feb 2016 07:29:37 +0100 From: Lars Ingebrigtsen References: <81f18f30cc17d41a72b8c0e6e77a1ee7@tonotdo.com> Date: Wed, 24 Feb 2016 17:29:32 +1100 In-Reply-To: <81f18f30cc17d41a72b8c0e6e77a1ee7@tonotdo.com> (Toon Claes's message of "Tue, 10 Jul 2012 08:59:24 +0200") Message-ID: <871t82d3jn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aYSx6-0003H4-K2 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456900177.79524@hdIixpCTcZwFLNlLCR8SKQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Toon Claes writes: > +2012-07-06 Toon Claes > + > + * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): > + Less restrictive checking for gtkdoc. > + > + * progmodes/cc-vars.el: For c++-mode set gtkdoc the default > + c-doc-comment-style. > + [...] I am completely unfamiliar with the gtkdoc format, so I can't really judge whether this makes sense or not. Anybody? > === modified file 'lisp/progmodes/cc-fonts.el' > --- lisp/progmodes/cc-fonts.el 2012-01-19 07:21:25 +0000 > +++ lisp/progmodes/cc-fonts.el 2012-07-06 13:49:00 +0000 > @@ -2572,7 +2572,7 @@ > > (defconst gtkdoc-font-lock-keywords > `((,(lambda (limit) > - (c-font-lock-doc-comments "/\*\*$" limit > + (c-font-lock-doc-comments "/\*\*\([^\*/].*\)?$" limit > gtkdoc-font-lock-doc-comments) > (c-font-lock-doc-comments "/\*< " limit > gtkdoc-font-lock-doc-protection) > > === modified file 'lisp/progmodes/cc-vars.el' > --- lisp/progmodes/cc-vars.el 2012-02-11 22:13:29 +0000 > +++ lisp/progmodes/cc-vars.el 2012-07-06 13:48:46 +0000 > @@ -552,7 +552,8 @@ > (defcustom-c-stylevar c-doc-comment-style > '((java-mode . javadoc) > (pike-mode . autodoc) > - (c-mode . gtkdoc)) > + (c-mode . gtkdoc) > + (c++-mode . gtkdoc)) > "*Specifies documentation comment style(s) to recognize. > This is primarily used to fontify doc comments and the markup within > them, e.g. Javadoc comments. > @@ -562,7 +563,7 @@ > > javadoc -- Javadoc style for "/** ... */" comments (default in Java > mode). > autodoc -- Pike autodoc style for "//! ..." comments (default in Pike > mode). > - gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C > mode). > + gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C/C++ > mode). > > The value may also be a list of doc comment styles, in which case all > of them are recognized simultaneously (presumably with markup cues > > > > -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> In-Reply-To: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 25 Feb 2016 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: 11865@debbugs.gnu.org, Lars Ingebrigtsen Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.145638012132080 (code B ref 11865); Thu, 25 Feb 2016 06:02:01 +0000 Received: (at 11865) by debbugs.gnu.org; 25 Feb 2016 06:02:01 +0000 Received: from localhost ([127.0.0.1]:44578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYozw-0008LC-LY for submit@debbugs.gnu.org; Thu, 25 Feb 2016 01:02:00 -0500 Received: from mail-vk0-f41.google.com ([209.85.213.41]:34479) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYozv-0008Gf-Qc for 11865@debbugs.gnu.org; Thu, 25 Feb 2016 01:02:00 -0500 Received: by mail-vk0-f41.google.com with SMTP id e185so38527091vkb.1 for <11865@debbugs.gnu.org>; Wed, 24 Feb 2016 22:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kf0PkTnCvyDnCLwzXkdR4M7NOBkGkKpJOnllEBPgJ9c=; b=Z1OFmubkqsl04RyNgc8pQADiBXlThDCmAtSLZl3B4WvRnc1XUwGMqysygzLQgbj+fA QvOyjDdrxhEDL+nw8NtjPrRifp+abQJwkaRX1LidCqThoCP8oH6bhS/LR+Din9PSS08x mLT/9UWyQbH8jRAHwVHnkjhhUFPx5/nz07MdAKCCm3Vo+4q169lae2mXt9kioZv9aNfg 9YO8MFcDJVaaDHH6dTedTpLF4oiN+oLL6ZXNs/AzdMl3G7hyoP4nKKWpEer4l6d87xJC S2Vl0sCYyrpxdvS2iwF4sE6K1tnVUOnQI7zZT2Pk7U1QqFc88arctqbicTwM1ZTghgg8 2a2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=kf0PkTnCvyDnCLwzXkdR4M7NOBkGkKpJOnllEBPgJ9c=; b=L6hdcNfku+9ibEWVVZrffa2jEQd3pj4wkBYG0Km/ExMsUlSOwn1ow7V3FQpjnfD2LZ oO5oEI7FKCKLXp4F6OHPQUt3jRsomDg8X6jRFhCFDypKqHY55B5sop1mz3xArwIL+MkH RzGhhWVVBj1LLNrl0JGOr/dfxbPsxy0N7Tkjab+5P91wGFdw/rUlBkWIHkxIc1Zsb1uO jsGWxLb4Irqj1tk13JPp1E5X5HIIHulsn/57VC5xmFwntu9+jkzeg7YOI8Kg+UE1ep8G 51rL6hm0nqmAiKZx+EJadTpVgLQs9wXBgMYDCZ22oEn+5sCANdSMLi70i6Qk77gPamKy yPNg== X-Gm-Message-State: AG10YORoKueSYluY4XTN/+n8YjgW8r7FOcRwY8UCg5gS+iJAtq7z9g03NXbdB3masUeVBm8ddZQd4+1MJERvFg== MIME-Version: 1.0 X-Received: by 10.31.10.199 with SMTP id 190mr36191253vkk.51.1456380114173; Wed, 24 Feb 2016 22:01:54 -0800 (PST) Received: by 10.31.214.131 with HTTP; Wed, 24 Feb 2016 22:01:54 -0800 (PST) Date: Thu, 25 Feb 2016 07:01:54 +0100 Message-ID: From: Anders Lindgren Content-Type: multipart/alternative; boundary=001a114401765d0700052c91eb0a X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a114401765d0700052c91eb0a Content-Type: text/plain; charset=UTF-8 The changes looks OK. However, the "gtk" format is only a subset of the Doxygen format. For example, doxygen can use "\command" as well as "@command". Also, "//!" or "/*!" can start a doxygen comment. (As I side note, I have a back burner project implementing highlighting for doxygen comments. However, it's been stalled due to problems with installing custom c-doc packages.) -- Anders --001a114401765d0700052c91eb0a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The changes looks OK. However, the "gtk" fo= rmat is only a subset of the Doxygen format.

For e= xample, doxygen can use "\command" as well as "@command"= ;. Also, "//!" or "/*!" can start a doxygen comment.

(As I side note, I have a back burner project implem= enting highlighting for doxygen comments. However, it's been stalled du= e to problems with installing custom c-doc packages.)

<= div>=C2=A0 =C2=A0 -- Anders

--001a114401765d0700052c91eb0a-- From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 26 Feb 2016 03:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Toon Claes Cc: 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.145645785830263 (code B ref 11865); Fri, 26 Feb 2016 03:38:02 +0000 Received: (at 11865) by debbugs.gnu.org; 26 Feb 2016 03:37:38 +0000 Received: from localhost ([127.0.0.1]:46564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ9Dm-0007s3-6W for submit@debbugs.gnu.org; Thu, 25 Feb 2016 22:37:38 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:38167) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ9Dk-0007ru-5e for 11865@debbugs.gnu.org; Thu, 25 Feb 2016 22:37:36 -0500 Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZ9DL-0001k1-Ho; Fri, 26 Feb 2016 04:37:12 +0100 From: Lars Ingebrigtsen References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> Date: Fri, 26 Feb 2016 14:07:05 +1030 In-Reply-To: <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> (Toon Claes's message of "Wed, 05 Jun 2013 10:24:56 +0200") Message-ID: <87y4a8m9b2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aZ9DL-0001k1-Ho X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457062633.51149@AvkgJe/ECOWqNMA6tjSdoQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Toon Claes writes: > (defconst gtkdoc-font-lock-keywords > `((,(lambda (limit) > - (c-font-lock-doc-comments "/**$" limit > + (c-font-lock-doc-comments "/**([^*/].*)?$" limit Can this be correct, though? It would mean that /** foo / **/ wouldn't be a comment... and anyway, the /** is invalid as a regexp, anyway. The current code looks like (defconst gtkdoc-font-lock-keywords `((,(lambda (limit) (c-font-lock-doc-comments "/\\*\\*$" limit gtkdoc-font-lock-doc-comments) (c-font-lock-doc-comments "/\\*< " limit gtkdoc-font-lock-doc-protection) )))) Which looks more correct anyway. So I think this has already been fixed in a different manner, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 25 22:37:49 2016 Received: (at control) by debbugs.gnu.org; 26 Feb 2016 03:37:49 +0000 Received: from localhost ([127.0.0.1]:46567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ9Dx-0007sS-Ce for submit@debbugs.gnu.org; Thu, 25 Feb 2016 22:37:49 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:38173) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZ9Dv-0007sK-Q5 for control@debbugs.gnu.org; Thu, 25 Feb 2016 22:37:48 -0500 Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZ9DW-0001kB-Qp for control@debbugs.gnu.org; Fri, 26 Feb 2016 04:37:23 +0100 Date: Fri, 26 Feb 2016 14:07:18 +1030 Message-Id: <87wppsm9ap.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11865 X-MailScanner-ID: 1aZ9DW-0001kB-Qp X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457062645.62038@8qsDXiEzeqaBpCyXFf0Bhw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 11865 fixed close 11865 From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 26 Feb 2016 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: fixed patch To: Lars Ingebrigtsen Cc: Toon Claes , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.145648222715710 (code B ref 11865); Fri, 26 Feb 2016 10:24:02 +0000 Received: (at 11865) by debbugs.gnu.org; 26 Feb 2016 10:23:47 +0000 Received: from localhost ([127.0.0.1]:46935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZFYl-00045H-N2 for submit@debbugs.gnu.org; Fri, 26 Feb 2016 05:23:47 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52996) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZDNC-0000hn-5r for 11865@debbugs.gnu.org; Fri, 26 Feb 2016 03:03:41 -0500 Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 55EFCC5A84; Fri, 26 Feb 2016 09:03:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id f6wLzZ_6aK8q; Fri, 26 Feb 2016 09:03:34 +0100 (CET) X-Originating-IP: 84.196.71.131 Received: from [192.168.1.60] (d54c44783.access.telenet.be [84.196.71.131]) (Authenticated sender: toon@iotcl.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 1669EC5A86; Fri, 26 Feb 2016 09:03:33 +0100 (CET) Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B87938EA-9A2C-4292-8470-7D2F9F35D1D0"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Toon Claes In-Reply-To: <87y4a8m9b2.fsf@gnus.org> Date: Fri, 26 Feb 2016 09:03:27 +0100 Message-Id: <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> X-Mailer: Apple Mail (2.3112) X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Fri, 26 Feb 2016 05:23:42 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_B87938EA-9A2C-4292-8470-7D2F9F35D1D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I do not really agree. Let me explain in detail. Only comment blocks like the following were recognized as gtkdoc: /** * This is the gtkdoc comment */ I wanted also gtkdoc styling to be applied to: /** This should be gtkdoc comment too */ I admit, the regexp I wrote back in the day was not correctly escaped. But I was trying to achieve comments with 3 or more asterisks would not = get styled like gtkdoc comments. Gr, Toon > On 26 Feb 2016, at 04:37, Lars Ingebrigtsen wrote: >=20 > Toon Claes writes: >=20 >> (defconst gtkdoc-font-lock-keywords >> `((,(lambda (limit) >> - (c-font-lock-doc-comments "/**$" limit >> + (c-font-lock-doc-comments "/**([^*/].*)?$" limit >=20 > Can this be correct, though? It would mean that /** foo / **/ = wouldn't > be a comment... and anyway, the /** is invalid as a regexp, anyway. >=20 > The current code looks like >=20 > (defconst gtkdoc-font-lock-keywords > `((,(lambda (limit) > (c-font-lock-doc-comments "/\\*\\*$" limit > gtkdoc-font-lock-doc-comments) > (c-font-lock-doc-comments "/\\*< " limit > gtkdoc-font-lock-doc-protection) > )))) >=20 > Which looks more correct anyway. So I think this has already been = fixed > in a different manner, and I'm closing this bug report. >=20 > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no --Apple-Mail=_B87938EA-9A2C-4292-8470-7D2F9F35D1D0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW0AbVAAoJEDEUOoLTKziXmIwP/j/eT6IkzHizdIptDdzl2UXB GeJRlWVtIHTWGiIjS/YIv7PISdN7lUePUbTSau2n3iAgm0NQlcjmLHaxBav7EN2X 7Y1ldaf+P5C9IkxylczCDuI+aUnpsL/ZdHIyQLOCweh1YS5Qv7P3V3atDvn0A9oH N4RlwkaSIo9DrZdRqwAAVEXUpN8mUopQ68NxwJEHxnKkOozVBr5KmkVe0bC3JcRF NXoNC4sdc1XcQfKd53fXwEgo48BMjmg2xCskmb38xm7vWnovimGT7UbLWq06oDHH 4qQyGmGS9ujmiNVXn0nNkjQoqiQcNIiUB4Zs48s+lIxpNpSdTOwSsbSM2/hkyAl3 TomU642MYUEffTwmvTVPoh3bTUBfakCgHORnRwzX5PZoiyry00MZUJU0RozgziSV JN5wuLECppkKIj0zItQYyfSQAD/XPFv8eaj+73l5K8YSsB3sMqazHIHygfycmA5z rHrfzDvDTZf4qkGzWN7uMqL0pRVsJAEz7Mbn2M2JSa/5iZocrL4ok8Q6F9cQ/MJn ujOvNlzCt89K58TWf4cI4UnO5B0W55ZPy9z3TwJTzmLmRvEA5jlzyifk+Fzx9vuM WgxpCf7fuK3iNhFVrQJzHJ8AJOwuLFSFO7KiXzW/pfhg0E/KldVze4spLEJPMgFK 1+iB9XZ/cNpGPW+QMhbe =6pDW -----END PGP SIGNATURE----- --Apple-Mail=_B87938EA-9A2C-4292-8470-7D2F9F35D1D0-- From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 27 Feb 2016 04:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: fixed patch To: Toon Claes Cc: Toon Claes , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.14565459031863 (code B ref 11865); Sat, 27 Feb 2016 04:06:01 +0000 Received: (at 11865) by debbugs.gnu.org; 27 Feb 2016 04:05:03 +0000 Received: from localhost ([127.0.0.1]:48078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW7r-0000Tz-0a for submit@debbugs.gnu.org; Fri, 26 Feb 2016 23:05:03 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:51467) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW7o-0000TP-Ki for 11865@debbugs.gnu.org; Fri, 26 Feb 2016 23:05:01 -0500 Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZW7O-0001nZ-8p; Sat, 27 Feb 2016 05:04:35 +0100 From: Lars Ingebrigtsen References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> Date: Sat, 27 Feb 2016 14:34:29 +1030 In-Reply-To: <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> (Toon Claes's message of "Fri, 26 Feb 2016 09:03:27 +0100") Message-ID: <87d1rilrxu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aZW7O-0001nZ-8p X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457150675.17902@/MsUZsdR3kmli/XyoFEMgw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Toon Claes writes: > I do not really agree. > > Let me explain in detail. > Only comment blocks like the following were recognized as gtkdoc: > /** > * This is the gtkdoc comment > */ > > I wanted also gtkdoc styling to be applied to: > /** This should be gtkdoc comment too */ > > I admit, the regexp I wrote back in the day was not correctly escaped. > But I was trying to achieve comments with 3 or more asterisks would > not get styled like gtkdoc comments. Can you supply a patch that will give the correct styling? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 23:05:35 2016 Received: (at control) by debbugs.gnu.org; 27 Feb 2016 04:05:35 +0000 Received: from localhost ([127.0.0.1]:48084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW8N-0000Uv-IG for submit@debbugs.gnu.org; Fri, 26 Feb 2016 23:05:35 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:51482) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW8L-0000Un-Mx for control@debbugs.gnu.org; Fri, 26 Feb 2016 23:05:34 -0500 Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZW7x-0001od-7T for control@debbugs.gnu.org; Sat, 27 Feb 2016 05:05:09 +0100 Date: Sat, 27 Feb 2016 14:35:05 +1030 Message-Id: <87a8mmlrwu.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11865 X-MailScanner-ID: 1aZW7x-0001od-7T X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457150711.24548@FCSpq4i70dK9vmYD7Niejw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 11865 - patch From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 10 Mar 2016 16:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: Toon Claes , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.145762762717900 (code B ref 11865); Thu, 10 Mar 2016 16:34:03 +0000 Received: (at 11865) by debbugs.gnu.org; 10 Mar 2016 16:33:47 +0000 Received: from localhost ([127.0.0.1]:44015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1ae3Wx-0004ea-O4 for submit@debbugs.gnu.org; Thu, 10 Mar 2016 11:33:47 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:33685) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adwQz-0006nd-3M for 11865@debbugs.gnu.org; Thu, 10 Mar 2016 03:59:08 -0500 Received: from mfilter30-d.gandi.net (mfilter30-d.gandi.net [217.70.178.161]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 1816E1720B8; Thu, 10 Mar 2016 09:59:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter30-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter30-d.gandi.net (mfilter30-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 1OgAOhEN9Trd; Thu, 10 Mar 2016 09:59:02 +0100 (CET) X-Originating-IP: 84.196.71.131 Received: from [192.168.1.60] (d54C44783.access.telenet.be [84.196.71.131]) (Authenticated sender: toon@iotcl.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D2DCA1720B2; Thu, 10 Mar 2016 09:59:01 +0100 (CET) Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9E346CDA-0E47-406D-A33E-38A321E07EC4"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Toon Claes In-Reply-To: <87d1rilrxu.fsf@gnus.org> Date: Thu, 10 Mar 2016 09:58:56 +0100 Message-Id: <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> X-Mailer: Apple Mail (2.3112) X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Thu, 10 Mar 2016 11:33:42 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Apple-Mail=_9E346CDA-0E47-406D-A33E-38A321E07EC4 Content-Type: multipart/mixed; boundary="Apple-Mail=_DC3BF0C6-FACC-433B-AB3C-F1BD90915B81" --Apple-Mail=_DC3BF0C6-FACC-433B-AB3C-F1BD90915B81 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hi Lars, Find the patch attached. The regexp is written to match: /** gtkdoc */ /** * gtkdoc */ And to not match: /*******/ Kind regards, Toon --Apple-Mail=_DC3BF0C6-FACC-433B-AB3C-F1BD90915B81 Content-Disposition: attachment; filename=0001-Fix-Bug-11865.patch Content-Type: application/octet-stream; name="0001-Fix-Bug-11865.patch" Content-Transfer-Encoding: quoted-printable =46rom=2094c9c1c92f326de5e813780f8230f1ae3d4a6e96=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Toon=20Claes=20=0ADate:=20Thu,=20= 10=20Mar=202016=2009:38:11=20+0100=0ASubject:=20[PATCH]=20Fix=20= Bug#11865=0A=0A*=20progmodes/cc-vars.el=20(c-doc-comment-style):=20Set=20= gtkdoc=20the=0Adefault=20for=20c++-mode.=0A*=20progmodes/cc-fonts.el=20= (gtkdoc-font-lock-keywords):=20Text=20inside=0AGtkDoc=20comment=20can=20= be=20on=20the=20same=20line=20as=20the=20comment=20start=20"/**".=0A---=0A= =20ChangeLog.2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=209=20= +++++++++=0A=20lisp/progmodes/cc-fonts.el=20|=202=20+-=0A=20= lisp/progmodes/cc-vars.el=20=20|=205=20+++--=0A=203=20files=20changed,=20= 13=20insertions(+),=203=20deletions(-)=0A=0Adiff=20--git=20a/ChangeLog.2=20= b/ChangeLog.2=0Aindex=205253a92..7ba1872=20100644=0A---=20a/ChangeLog.2=0A= +++=20b/ChangeLog.2=0A@@=20-1,3=20+1,12=20@@=0A+2016-03-10=20=20Toon=20= Claes=20=0A+=0A+=09Fix=20Bug#11865=0A+=0A+=09*=20= progmodes/cc-vars.el=20(c-doc-comment-style):=20Set=20gtkdoc=20the=0A+=09= default=20for=20c++-mode.=0A+=09*=20progmodes/cc-fonts.el=20= (gtkdoc-font-lock-keywords):=20Text=20inside=0A+=09GtkDoc=20comment=20= can=20be=20on=20the=20same=20line=20as=20the=20comment=20start=20"/**".=0A= +=0A=202016-03-04=20=20Michael=20Albinus=20=20=0A= =20=0A=20=09Fix=20Bug#22859=0Adiff=20--git=20= a/lisp/progmodes/cc-fonts.el=20b/lisp/progmodes/cc-fonts.el=0Aindex=20= a7097b9..6bbb8f4=20100644=0A---=20a/lisp/progmodes/cc-fonts.el=0A+++=20= b/lisp/progmodes/cc-fonts.el=0A@@=20-2515,7=20+2515,7=20@@=20need=20for=20= `pike-font-lock-extra-types'.")=0A=20=0A=20(defconst=20= gtkdoc-font-lock-keywords=0A=20=20=20`((,(lambda=20(limit)=0A-=09= (c-font-lock-doc-comments=20"/\\*\\*$"=20limit=0A+=09= (c-font-lock-doc-comments=20"/\\*\\*\\([^\\*].*\\)?$"=20limit=0A=20=09=20= =20gtkdoc-font-lock-doc-comments)=0A=20=09(c-font-lock-doc-comments=20= "/\\*<=20"=20limit=0A=20=09=20=20gtkdoc-font-lock-doc-protection)=0Adiff=20= --git=20a/lisp/progmodes/cc-vars.el=20b/lisp/progmodes/cc-vars.el=0A= index=20a695718..9783516=20100644=0A---=20a/lisp/progmodes/cc-vars.el=0A= +++=20b/lisp/progmodes/cc-vars.el=0A@@=20-550,7=20+550,8=20@@=20variable=20= in=20a=20mode=20hook."=0A=20(defcustom-c-stylevar=20c-doc-comment-style=0A= =20=20=20'((java-mode=20.=20javadoc)=0A=20=20=20=20=20(pike-mode=20.=20= autodoc)=0A-=20=20=20=20(c-mode=20=20=20=20.=20gtkdoc))=0A+=20=20=20=20= (c-mode=20=20=20=20.=20gtkdoc)=0A+=20=20=20=20(c++-mode=20=20.=20= gtkdoc))=0A=20=20=20"*Specifies=20documentation=20comment=20style(s)=20= to=20recognize.=0A=20This=20is=20primarily=20used=20to=20fontify=20doc=20= comments=20and=20the=20markup=20within=0A=20them,=20e.g.=20Javadoc=20= comments.=0A@@=20-560,7=20+561,7=20@@=20comment=20styles:=0A=20=0A=20=20= javadoc=20--=20Javadoc=20style=20for=20\"/**=20...=20*/\"=20comments=20= (default=20in=20Java=20mode).=0A=20=20autodoc=20--=20Pike=20autodoc=20= style=20for=20\"//!=20...\"=20comments=20(default=20in=20Pike=20mode).=0A= -=20gtkdoc=20=20--=20GtkDoc=20style=20for=20\"/**=20...=20**/\"=20= comments=20(default=20in=20C=20mode).=0A+=20gtkdoc=20=20--=20GtkDoc=20= style=20for=20\"/**=20...=20**/\"=20comments=20(default=20in=20C/C++=20= mode).=0A=20=0A=20The=20value=20may=20also=20be=20a=20list=20of=20doc=20= comment=20styles,=20in=20which=20case=20all=0A=20of=20them=20are=20= recognized=20simultaneously=20(presumably=20with=20markup=20cues=0A--=20=0A= 2.7.1=0A=0A= --Apple-Mail=_DC3BF0C6-FACC-433B-AB3C-F1BD90915B81 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 27 Feb 2016, at 05:04, Lars Ingebrigtsen wrote: > > Toon Claes writes: > >> I do not really agree. >> >> Let me explain in detail. >> Only comment blocks like the following were recognized as gtkdoc: >> /** >> * This is the gtkdoc comment >> */ >> >> I wanted also gtkdoc styling to be applied to: >> /** This should be gtkdoc comment too */ >> >> I admit, the regexp I wrote back in the day was not correctly escaped. >> But I was trying to achieve comments with 3 or more asterisks would >> not get styled like gtkdoc comments. > > Can you supply a patch that will give the correct styling? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no --Apple-Mail=_DC3BF0C6-FACC-433B-AB3C-F1BD90915B81-- --Apple-Mail=_9E346CDA-0E47-406D-A33E-38A321E07EC4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW4TdVAAoJEDEUOoLTKziXRQsP/0KiB8UHbnHSsSPKnZehQify 1HCt+0OB9dtSFX5KApbPLTR+5qy9nhjGAKoCA19Yq/C5fGi4stGkZVTTb84oH4Kr x+H0GDdYBSjG4kQyFENtjmmv7dZyfXJPPjn38A9rEeLZAL2LV04hX5XJNWYcLuJ8 XQ+Gz7l2leHfUdsLLtoRyEjBkZ6rKD+3YzlJXYXscDpXJTCU/iqnANyVE4raZF87 9NlfH4V2YPvVYs2vEAziqIqwOlvMOQ2Sv1nyTvsxsaM9bOjr7uA1D2j8jgGfuZHL /oxbJu9tPBz3aZBVV+c4DbWL/cb7orw61h1p9XEPvRunrEvPrzKXz2Vbxd1OsEUQ ASFJc6TFMJOhqvxfGkWzUruupZgv6MOIocFN1LNgbrX0rZV2yBLFYrNYQhUimYmY R8HOD2w3YKh/t8Cz6Vx/q4uJscFdJsSGThAfIhlsO/WDM1CAW292FKoSyX+wPoMD 0YRA7Jf0NGUTOBgHVJeLX9zluKf440SVG8VjNGyk8dMAbX/2HyXHFwgrcZ20OBq9 cUG7AH1LAKI9Nl8u9di/X0lQCqY8DdTyLnr1bhTGbrLOZCG3BA+RXIQVoRHl9ipx yJrL+raXIy7SLLtINVKpjwaSBLxwV/BOwPW5Af1C5/w+zNLoN1oYO8i7jar194E6 bVya56D7skd2hP+IHB6Y =h8ts -----END PGP SIGNATURE----- --Apple-Mail=_9E346CDA-0E47-406D-A33E-38A321E07EC4-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 23 16:20:59 2016 Received: (at control) by debbugs.gnu.org; 23 Mar 2016 20:20:59 +0000 Received: from localhost ([127.0.0.1]:34803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aipH1-0004N5-3Y for submit@debbugs.gnu.org; Wed, 23 Mar 2016 16:20:59 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:47907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aipGz-0004Mv-FL for control@debbugs.gnu.org; Wed, 23 Mar 2016 16:20:57 -0400 Received: from mfilter19-d.gandi.net (mfilter19-d.gandi.net [217.70.178.147]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 7C2B1C5A51 for ; Wed, 23 Mar 2016 21:20:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter19-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter19-d.gandi.net (mfilter19-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id IpDUHZ1znZj6 for ; Wed, 23 Mar 2016 21:20:54 +0100 (CET) X-Originating-IP: 81.83.192.51 Received: from [192.168.1.100] (d5153c033.access.telenet.be [81.83.192.51]) (Authenticated sender: toon@iotcl.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 7BE46C5A4F for ; Wed, 23 Mar 2016 21:20:54 +0100 (CET) From: Toon Claes X-Pgp-Agent: GPGMail 2.6b2 Content-Type: multipart/signed; boundary="Apple-Mail=_B8F2272A-67E9-4AAD-B2C0-CA9EFF61260D"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: bug#11865 Date: Wed, 23 Mar 2016 21:20:47 +0100 Message-Id: <2A0DB2FF-3BDC-4131-B5F5-E8C75D656600@iotcl.com> To: control@debbugs.gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-Mailer: Apple Mail (2.3112) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_B8F2272A-67E9-4AAD-B2C0-CA9EFF61260D Content-Type: multipart/alternative; boundary="Apple-Mail=_B69F07E2-6DA9-4A2C-9FAF-5D5933CDE11A" --Apple-Mail=_B69F07E2-6DA9-4A2C-9FAF-5D5933CDE11A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii tags 11865 = patch Toon Claes toon@iotcl.com PGP key fingerprint = AA9A A457 F944 B972 83D4 A177 3114 3A82 D32B 3897 --Apple-Mail=_B69F07E2-6DA9-4A2C-9FAF-5D5933CDE11A Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
tags 11865 = patch


Toon Claes
toon@iotcl.com
PGP key fingerprint = AA9A A457 F944 B972 83D4  A177 3114 3A82 D32B 3897

--Apple-Mail=_B69F07E2-6DA9-4A2C-9FAF-5D5933CDE11A-- --Apple-Mail=_B8F2272A-67E9-4AAD-B2C0-CA9EFF61260D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW8vqlAAoJEDEUOoLTKziXisYP/3nB4WlMK8Z42NuPKqv7ZHAT MXS+mG9XPGl+yuo3WeaNVPBmeb4Tbn7gVmfbOOC+pHpUSsfthKhncBgcOiGA5MDw yhyGqLaq7EQrdGIMc/sSxEh+qQ02KHJQ63V614I1nZmetU5hpXlJFzb5wCDkt2lq QAMyepdOPfnW58xxh2HIVB2ij5fCinwJEmerT6ViwWDWzsrZw3TCwf658HvHNhuM SKv3mYCiMucS2DY29wtpDJjq1HjF1aLRSBsMBBFv9F72Boi07wOPo9zB1EeoL3Bh NI6Pn+MN0gDmOFVWAAbSYIK0Pjme/GbrUMbwZm4NvpHEuhz0PUGZFCNsFdPRqUC7 1fR7VIfmIAdIbZyYp5JdaXv7fUEZt3XU3U62i5c9UJ2JQ7jGVta4Gxwz1GCHHL6L TQMMy70o/1GuwJyk5SjjY/8I+KkZPSZq30SfxSiXlI7VaiZ+5jj/QKRmjTBtFfdR QhBitIEiS3RNLvLUzddfDY4pzL/heVr8kExym/GD0NGDgFArG6ocCbuXSSvtyV82 tSZtBxXIFFfviB5iq6OzLTr/+C7OiVYWXnQExP+LMDzNDIPx9gcj6muCwlyEQEnP k+oa/2Uti3WPwjzKNc81iN+AyBzihZHpH6I21Vmr868hjDJaxwB22/L1n4GKMeOv q+UBjex7sS/GzYTMkStZ =LIEO -----END PGP SIGNATURE----- --Apple-Mail=_B8F2272A-67E9-4AAD-B2C0-CA9EFF61260D-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 28 21:34:22 2017 Received: (at control) by debbugs.gnu.org; 29 Jun 2017 01:34:22 +0000 Received: from localhost ([127.0.0.1]:43204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQOLd-0005UP-S4 for submit@debbugs.gnu.org; Wed, 28 Jun 2017 21:34:22 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:34463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQOLb-0005UB-2l for control@debbugs.gnu.org; Wed, 28 Jun 2017 21:34:19 -0400 Received: by mail-io0-f176.google.com with SMTP id r36so45725111ioi.1 for ; Wed, 28 Jun 2017 18:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=mkycgwUZCji8X3Bhq+pN+UUajR6V16yqh/kMtBRkNFo=; b=ae4DS21rBt4SZdCWvUGP99fLapJpz8CYzVjg/gUwpb7ZIAuHNx0PjLPe9btQfOs8Pd mhEHSxe28mYPPq26dINKYBIqIs1MCij7U151qWc+aPciz2iDVJ6RoasON2f+vDcuJtKw iIp7qJ6FPHpv7z/Uf7JNF5QA8FlvRFgrlOf2K+x4g/JcgFTk1U12w041oiA5DalnJz5X yCbWIUzfSYgfgoTKHb85oAm4k7OPLIVqg5oYqRfPDu5u7+pLPwMaL/tYkFZV1w6x39Ex Glagn1C/Gsly70PRm0FF+en4mavNdSKsammWeAdI7fETdEF49TV7kxX+bTtFhTpEwjZK jWzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=mkycgwUZCji8X3Bhq+pN+UUajR6V16yqh/kMtBRkNFo=; b=AhC61JpjHqTLlXNzcHK5Rw8rGTyeRyoz/MlA13NbnhVvaTw1qR937/SsvRvDpspK6s 7seJ6gMn+IiC5SBDGn2i10LWdMuLMao5ac+dmG8ohi8UCmgtYn/BIRiwiDoERVpW1DHn C/5SWspGZLKMSiYPNwGOdFCfKAW3Lcq8d4XQy9q2xaTsGEhSBYPNFMWHNSWQfGHEOS70 P4HhlfaQH3X506B9o8nXXuHk7U3AxtB7svc2zE8qy97DHtuHAqKimVj7BVyMx4gityzC xq8lM9o06D2ZnoX3CVShiURlK38dGBxaIaXHJhcWem5K+pa6iAc++8AmduOvGzCfw3QS 7SNg== X-Gm-Message-State: AKS2vOy2a6h5lSg3sl0jxdUkjuatq8GB6JddoqMgBl+T8M/1nqEiG19t QvnG4oMQzSyGg8WK X-Received: by 10.107.16.214 with SMTP id 83mr14698814ioq.88.1498700053427; Wed, 28 Jun 2017 18:34:13 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id s135sm3939202ita.2.2017.06.28.18.34.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2017 18:34:12 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #11865 Date: Wed, 28 Jun 2017 21:35:48 -0400 Message-ID: <87fuejmv7v.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) retitle 11865 doxygen syntax not enabled in c++-mode & /** single line comments */ severity 11865 minor found 11865 25.2 quit From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 27 Jun 2019 15:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Alan Mackenzie Cc: Toon Claes , Toon Claes , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.156164821530951 (code B ref 11865); Thu, 27 Jun 2019 15:11:01 +0000 Received: (at 11865) by debbugs.gnu.org; 27 Jun 2019 15:10:15 +0000 Received: from localhost ([127.0.0.1]:39233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgW2O-000835-Pg for submit@debbugs.gnu.org; Thu, 27 Jun 2019 11:10:14 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgW2M-00082s-5V for 11865@debbugs.gnu.org; Thu, 27 Jun 2019 11:10:11 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgW2H-0006tu-IC; Thu, 27 Jun 2019 17:10:08 +0200 From: Lars Ingebrigtsen References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> Date: Thu, 27 Jun 2019 17:10:05 +0200 In-Reply-To: <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> (Toon Claes's message of "Thu, 10 Mar 2016 09:58:56 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Toon Claes writes: > Hi Lars, > > Find the patch attached. > The regexp is written to match: > /** gtkdoc */ > /** > * gtkdoc > */ > > And to not match: > /*******/ Alan, can you comment on this patch? It's about not recognising gtkdoc comments in c++-mode: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Toon Claes writes: > Hi Lars, > > Find the patch attached. > The regexp is written to match: > /** gtkdoc */ > /** > * gtkdoc > */ > > And to not match: > /*******/ Alan, can you comment on this patch? It's about not recognising gtkdoc comments in c++-mode: > * progmodes/cc-vars.el (c-doc-comment-style): Set gtkdoc the > default for c++-mode. > * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Text inside > GtkDoc comment can be on the same line as the comment start "/**". > --- > ChangeLog.2 | 9 +++++++++ > lisp/progmodes/cc-fonts.el | 2 +- > lisp/progmodes/cc-vars.el | 5 +++-- > 3 files changed, 13 insertions(+), 3 deletions(-) > > diff --git a/ChangeLog.2 b/ChangeLog.2 > index 5253a92..7ba1872 100644 > --- a/ChangeLog.2 > +++ b/ChangeLog.2 > @@ -1,3 +1,12 @@ > +2016-03-10 Toon Claes > + > + Fix Bug#11865 > + > + * progmodes/cc-vars.el (c-doc-comment-style): Set gtkdoc the > + default for c++-mode. > + * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Text inside > + GtkDoc comment can be on the same line as the comment start "/**". > + > 2016-03-04 Michael Albinus > > Fix Bug#22859 > diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el > index a7097b9..6bbb8f4 100644 > --- a/lisp/progmodes/cc-fonts.el > +++ b/lisp/progmodes/cc-fonts.el > @@ -2515,7 +2515,7 @@ need for `pike-font-lock-extra-types'.") > > (defconst gtkdoc-font-lock-keywords > `((,(lambda (limit) > - (c-font-lock-doc-comments "/\\*\\*$" limit > + (c-font-lock-doc-comments "/\\*\\*\\([^\\*].*\\)?$" limit > gtkdoc-font-lock-doc-comments) > (c-font-lock-doc-comments "/\\*< " limit > gtkdoc-font-lock-doc-protection) > diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el > index a695718..9783516 100644 > --- a/lisp/progmodes/cc-vars.el > +++ b/lisp/progmodes/cc-vars.el > @@ -550,7 +550,8 @@ variable in a mode hook." > (defcustom-c-stylevar c-doc-comment-style > '((java-mode . javadoc) > (pike-mode . autodoc) > - (c-mode . gtkdoc)) > + (c-mode . gtkdoc) > + (c++-mode . gtkdoc)) > "*Specifies documentation comment style(s) to recognize. > This is primarily used to fontify doc comments and the markup within > them, e.g. Javadoc comments. > @@ -560,7 +561,7 @@ comment styles: > > javadoc -- Javadoc style for \"/** ... */\" comments (default in Java mode). > autodoc -- Pike autodoc style for \"//! ...\" comments (default in Pike mode). > - gtkdoc -- GtkDoc style for \"/** ... **/\" comments (default in C mode). > + gtkdoc -- GtkDoc style for \"/** ... **/\" comments (default in C/C++ mode). > > The value may also be a list of doc comment styles, in which case all > of them are recognized simultaneously (presumably with markup cues -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 28 Jun 2019 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Toon Claes , Toon Claes , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.156171360928320 (code B ref 11865); Fri, 28 Jun 2019 09:21:02 +0000 Received: (at 11865) by debbugs.gnu.org; 28 Jun 2019 09:20:09 +0000 Received: from localhost ([127.0.0.1]:40389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgn3B-0007Mi-GF for submit@debbugs.gnu.org; Fri, 28 Jun 2019 05:20:09 -0400 Received: from colin.muc.de ([193.149.48.1]:14683 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hgn37-0007MV-3p for 11865@debbugs.gnu.org; Fri, 28 Jun 2019 05:20:08 -0400 Received: (qmail 5230 invoked by uid 3782); 28 Jun 2019 09:19:57 -0000 Received: from acm.muc.de (p4FE15EEA.dip0.t-ipconnect.de [79.225.94.234]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 28 Jun 2019 11:19:55 +0200 Received: (qmail 6024 invoked by uid 1000); 28 Jun 2019 09:19:55 -0000 Date: Fri, 28 Jun 2019 09:19:55 +0000 Message-ID: <20190628091955.GA6002@ACM> References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Lars. On Thu, Jun 27, 2019 at 17:10:05 +0200, Lars Ingebrigtsen wrote: > Toon Claes writes: > > Hi Lars, > > Find the patch attached. > > The regexp is written to match: > > /** gtkdoc */ > > /** > > * gtkdoc > > */ > > And to not match: > > /*******/ > Alan, can you comment on this patch? It's about not recognising gtkdoc > comments in c++-mode: Thanks for the reminder. I'm a bit busy in RL at the moment, but I should be able to look at it sometime in the next week or two. [ .... ] > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 30 Jun 2019 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen , Toon Claes , Toon Claes Cc: 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.156190762322276 (code B ref 11865); Sun, 30 Jun 2019 15:14:02 +0000 Received: (at 11865) by debbugs.gnu.org; 30 Jun 2019 15:13:43 +0000 Received: from localhost ([127.0.0.1]:47120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhbWQ-0005nE-LX for submit@debbugs.gnu.org; Sun, 30 Jun 2019 11:13:42 -0400 Received: from colin.muc.de ([193.149.48.1]:44080 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hhbWO-0005n4-9K for 11865@debbugs.gnu.org; Sun, 30 Jun 2019 11:13:41 -0400 Received: (qmail 21840 invoked by uid 3782); 30 Jun 2019 15:13:33 -0000 Received: from acm.muc.de (p2E5D5B10.dip0.t-ipconnect.de [46.93.91.16]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 30 Jun 2019 17:13:31 +0200 Received: (qmail 23386 invoked by uid 1000); 30 Jun 2019 15:13:31 -0000 Date: Sun, 30 Jun 2019 15:13:31 +0000 Message-ID: <20190630151331.GA5775@ACM> References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Toon and Lars. On Thu, Jun 27, 2019 at 17:10:05 +0200, Lars Ingebrigtsen wrote: > Toon Claes writes: > > Hi Lars, > > Find the patch attached. > > The regexp is written to match: > > /** gtkdoc */ > > /** > > * gtkdoc > > */ > > And to not match: > > /*******/ > Alan, can you comment on this patch? It's about not recognising gtkdoc > comments in c++-mode: I've just had a close look at this, and it's the least controversial patch I've seen in years. There is simply nothing in it which raises the slightest question as to it's being a good thing. So I've committed the change. If I don't hear anything back within a few days, I'll assume the change successful and close the bug. > > * progmodes/cc-vars.el (c-doc-comment-style): Set gtkdoc the > > default for c++-mode. > > * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Text inside > > GtkDoc comment can be on the same line as the comment start "/**". > > --- > > ChangeLog.2 | 9 +++++++++ > > lisp/progmodes/cc-fonts.el | 2 +- > > lisp/progmodes/cc-vars.el | 5 +++-- > > 3 files changed, 13 insertions(+), 3 deletions(-) > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Aug 16 21:23:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 01 Jul 2019 07:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Alan Mackenzie Cc: Toon Claes , Lars Ingebrigtsen , 11865@debbugs.gnu.org Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.15619674009341 (code B ref 11865); Mon, 01 Jul 2019 07:50:02 +0000 Received: (at 11865) by debbugs.gnu.org; 1 Jul 2019 07:50:00 +0000 Received: from localhost ([127.0.0.1]:47610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhr4Z-0002Qb-NH for submit@debbugs.gnu.org; Mon, 01 Jul 2019 03:49:59 -0400 Received: from smtp.soverin.net ([159.69.232.142]:36647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhr4W-0002QI-VH for 11865@debbugs.gnu.org; Mon, 01 Jul 2019 03:49:58 -0400 Received: from soverin.net by soverin.net From: Toon Claes References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> <20190630151331.GA5775@ACM> Date: Mon, 01 Jul 2019 09:49:40 +0200 In-Reply-To: <20190630151331.GA5775@ACM> (Alan Mackenzie's message of "Sun, 30 Jun 2019 15:13:31 +0000") Message-ID: <87tvc6yz1n.fsf@iotcl.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.100.3 at c03mi01 X-Virus-Status: Clean Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable close 11865 thanks Alan Mackenzie writes: > So I've committed the change. If I don't hear anything back within a few > days, I'll assume the change successful and close the bug. Thanks. I'm no longer typing C++, but I think there still will people be happy with this. =2D-=20 Toon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEqpqkV/lEuXKD1KF3MRQ6gtMrOJcFAl0ZuxQACgkQMRQ6gtMr OJdVyRAAqirY3rOIXMLV1EJhILX50kk1BORNg1aiBU9Mb1HoQ9rpe1TzKL7WwWfK VSdkO5wGG0A8D9FnGUzlvPukcY+XRjYYqHs/cKuqINbMXfQMEYXZB7gCwsstKjga FowCzS5dljAcqNDJ10yNFEnc+DOL1xqBGXy59bJ/aRMW/GimziazkEe/R8r1PxhQ fyelCuuZ/+hBggvYYp1o6Y7Ri5v2YvXEQo/kf4oEUJw1IFXiIAKZvSN7om9pUDjm 1QFNjEepacGhgfKorqEdNwgaztqXiLE3Cn8DSpCgCd+8ziKwm4RTnzA3I5h67Pm1 WWlbX04DZKE/FSP64pAZx9EBurTw5sN6ACROoy62p29dAEv3TjQq9G47lH1emIk2 PoJe/U1AZ4cw5ynSYLLNQul+m2xyY45a9Q+FNHGPzx3N8qYMkDsz25qdN4D6czXB Xp2nj1pw6JaksQEc1pJTLV6gVPWKyyfsYMWB1207PPCxJhEmq+JqxozVilSI31xs 7oMc6obfwUUAmMc74GsGesr3uTpYi5Jhq921gPJcfm9chdafAlYJLi5t7RhowV/y z13m7/skR5xqOMzQJG/GMQFAMGeHK4/qMd6LPiC3TFKSk83xxpuGORtSo6JYWwhV +Yaobw5CS0oP/PQO5xN8WlTrw9ihtmZ53U02ClWwqehNwJKzROY= =xEZr -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 22:36:49 2019 Received: (at control) by debbugs.gnu.org; 3 Jul 2019 02:36:49 +0000 Received: from localhost ([127.0.0.1]:48236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiV8b-0002Eq-Fn for submit@debbugs.gnu.org; Tue, 02 Jul 2019 22:36:49 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiV8W-0002EU-FX for control@debbugs.gnu.org; Tue, 02 Jul 2019 22:36:47 -0400 Received: by mail-ed1-f68.google.com with SMTP id w20so504554edd.2 for ; Tue, 02 Jul 2019 19:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ElBxgvMI5xf/3DVP3p7e8fEoAv6l6wxM8/xm6EVIx/U=; b=RUtKrPmH8QRCuoxEfHXh17rPRSu3Nsyb1sSNFMg8B+TP+j4VLrACCgs+LFb7LFWHql aZQtmRQAJlxwpEyhhVsHweghwSvA9JJzgydVSHkx7Wya2h9k1zaViVfcEUN0dRE7t6DA aqVxWof/hd86lvH+A2nWzJzd1BDmC//z97FcyckvSDoRZMXZELbOyrd1G9O30zbaIQWL tCMZRKWHgBrwd4pXH5dIzNJfaydi3NNoAAZ9ZM4tEEeYQd9ZS3lwsof26UxmV9dhMZ3/ 8u/wtiQ8pNHEi2+EkS++5lr7KB1BUuP7fqM9YCU+pKsdbfH2ipZNFUAwPJJv0w9+qYuj 7vwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ElBxgvMI5xf/3DVP3p7e8fEoAv6l6wxM8/xm6EVIx/U=; b=TgA/V6W/C2UAHnN+1jKYctmR99NYj5SXt4Jmi0vK9GLDCrTrqpNVA6s1CezULKTAlm EfqSPFV4ibxk1gSG467plL4IhTH5ibZxa67C3k+wpTp/wH5M8DoMWi3KnaHCuYKH8xt0 QFX4Xd9MK4T23hjJc7dHlF/eOnL42SH/aODPORVoyFXfj/32/EyB6khIih6+zs+f6ilv VY614UzSCSvci+jQRpE8hqwYCY4MzaVMx0hug/IkPb+kNhkUHsd8y54NVu9DmjaIxPZ+ Mza1keQFarsn0MEfszlIuCvz0c1zRzraseLzfBfSHHs3mL11H4081hYhlGKmwxZ7+NAX f9GQ== X-Gm-Message-State: APjAAAXjWj/A0vVCi15FmqdcRFMC52c2EGJz2hnh1vwTgJkuHq4MRpu2 /IitoYwbyZHxNxHU6Q/FJYYnJQ== X-Google-Smtp-Source: APXvYqz/UwipQk0rGGQrwIo8YHEAwhFx4LdKkkRUAh3TZCIGK7px+TWe0nmp7kmaSnw2ojjSy++wdQ== X-Received: by 2002:a17:906:c404:: with SMTP id u4mr32336569ejz.123.1562121398715; Tue, 02 Jul 2019 19:36:38 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id x21sm257291edb.0.2019.07.02.19.36.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 19:36:38 -0700 (PDT) From: "Basil L. Contovounesios" To: Toon Claes Subject: Re: bug#11865: Fwd: Re: 24.1.50; doxygen comments not highlighted in c++-mode References: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> <16d1f96d86592f9e5511b61a678e2f81@tonotdo.com> <87y4a8m9b2.fsf@gnus.org> <0C474D0B-86AF-4030-B4B4-87E8CBEC4A67@iotcl.com> <87d1rilrxu.fsf@gnus.org> <9D6D35E4-B589-4E47-8939-7D682F93AE74@iotcl.com> <20190630151331.GA5775@ACM> <87tvc6yz1n.fsf@iotcl.com> Date: Wed, 03 Jul 2019 03:36:36 +0100 In-Reply-To: <87tvc6yz1n.fsf@iotcl.com> (Toon Claes's message of "Mon, 01 Jul 2019 09:49:40 +0200") Message-ID: <87pnmrzvwr.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Toon Claes , Alan Mackenzie , Lars Ingebrigtsen , 11865-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 11865 fixed close 11865 27.1 quit Toon Claes writes: > close 11865 > thanks This didn't seem to close the bug (perhaps you forgot to Bcc control@debbugs.gnu.org), so I'm doing that now. Thanks, -- Basil