From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toon Claes Newsgroups: gmane.emacs.bugs Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode Date: Thu, 05 Jul 2012 13:46:42 +0200 Message-ID: <5a95c7556a411b5988bc46867dbb99fd@tonotdo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_01a275b37794df7c84d4c1669125eca8" X-Trace: dough.gmane.org 1341488845 17855 80.91.229.3 (5 Jul 2012 11:47:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 11:47:25 +0000 (UTC) Cc: toon@tonotdo.com To: 11865@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 13:47:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SmkWp-0006Db-7O for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2012 13:47:23 +0200 Original-Received: from localhost ([::1]:58947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWo-0004ff-52 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2012 07:47:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWk-0004fR-C5 for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:47:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmkWd-0001Tv-Nr for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:47:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmkWd-0001Tq-KL for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:47:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SmkbK-0004Ns-EC for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2012 07:52:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.134148911916841 (code B ref -1); Thu, 05 Jul 2012 11:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jul 2012 11:51:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61608 Archived-At: --=_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--