From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.bugs Subject: bug#3417: c-mode uses font-lock-doc-face for /** Date: Fri, 29 May 2009 16:45:42 +0200 Message-ID: <6fa54e4e0905290745y30d14b79y7be9a0b8f429833d@mail.gmail.com> Reply-To: Antoine Levitt , 3417@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016363b845c84eb76046b0e2122 X-Trace: ger.gmane.org 1243609923 12529 80.91.229.12 (29 May 2009 15:12:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 15:12:03 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 29 17:11:59 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MA3kU-0004WD-HX for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 17:11:59 +0200 Original-Received: from localhost ([127.0.0.1]:42721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA3kT-0006oR-Rl for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 11:11:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA3WT-00014U-PQ for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:57:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA3WN-000123-Jh for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:57:28 -0400 Original-Received: from [199.232.76.173] (port=32810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA3WL-00011e-Mp for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:57:21 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48991) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MA3WK-000466-BY for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:57:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TEvHvB006816; Fri, 29 May 2009 07:57:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4TEo3RV005339; Fri, 29 May 2009 07:50:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Antoine Levitt Original-Sender: smeuuh@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 14:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3417 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12436083634888 (code B ref -1); Fri, 29 May 2009 14:50:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 May 2009 14:46:03 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TEjvxq004878 for ; Fri, 29 May 2009 07:45:58 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA3LH-0003D9-DU for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:45:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA3LA-0003BA-S8 for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:45:53 -0400 Original-Received: from [199.232.76.173] (port=33857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA3L7-0003Ah-8l for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:45:45 -0400 Original-Received: from mail-qy0-f116.google.com ([209.85.221.116]:63099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MA3L6-000116-Qg for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:45:44 -0400 Original-Received: by qyk14 with SMTP id 14so9447380qyk.14 for ; Fri, 29 May 2009 07:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=3sL+ueVTpPSfkAp7kPuGkS/bhALHJNKERD/NNGMSb3c=; b=vw8t7MMp63l6Mrqt/6AV0cHz895taV2oIhZtOOmb7nJIVd9ndJwSs9Xyimvl01OHtT srhjF0QpwcS5Dyeaa+ppkAhBln8sgkjOVWspD7quMPnnGvJL1jglvdKsFKfA6O1gQk0q pxDlPKFt3vjb4qf5zAD7uI4t2U7TWQ4TBZElw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=TUqqiRNsg5C9vlo621G+sIPIFmAaZgTqvKp31iFbDqcmydWQTlAjtEOcnqB0YEo9zP YQbaaVvKXezGKj08jQlxYjR+P+bbHgoYx6wOLGQ6JLFqYBkDmhLDJ8VNoG+zk6Rf8Z7B hCKHAIfu0eGJvOrJaANBi6Yfa+ojomWDGZNWw= Original-Received: by 10.229.99.130 with SMTP id u2mr1091114qcn.29.1243608342915; Fri, 29 May 2009 07:45:42 -0700 (PDT) X-Google-Sender-Auth: d12cace86ef2a384 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 29 May 2009 10:57:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28290 Archived-At: --0016363b845c84eb76046b0e2122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Compare : /** some file */ with /* some file */ In the first case, font-lock-doc-face is used, in the second font-lock-comment-face is. The first example fontifies with doc-face only if there is just "/**" : "/*", "/** " (with a space) or "/***", for instance, use the standard comment-face. This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C++ and obj-C aren't affected, and java also shows this behavior on "/***"" and "/** "/ This behavior is certainly unexpected : I expect all comments to be fontified with the same face. Am I right in thinking it's a bug ? Antoine --0016363b845c84eb76046b0e2122 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Compare :
/**
some file
*/
with
/*
some file
*/
In the first case, font-lock-doc-face is used, in the second font-lock-com= ment-face is.

The first example fontifies with doc-face only if ther= e is just "/**" : "/*", "/** " (with a space)= or "/***", for instance, use the standard comment-face.

This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C= ++ and obj-C aren't affected, and java also shows this behavior on &quo= t;/***"" and "/** "/

This behavior is certainly = unexpected : I expect all comments to be fontified with the same face. Am I right in thinking it's a bug ?
Antoine
--0016363b845c84eb76046b0e2122--