From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.bugs Subject: Trouble fontifying /** ... */ Date: Sun, 25 Jan 2009 01:01:50 -0800 (PST) Organization: http://groups.google.com Message-ID: <51e6423b-fc9d-4570-9611-bd2154eb0fbb@d36g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232876430 29395 80.91.229.12 (25 Jan 2009 09:40:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 09:40:30 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 10:41:41 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 1LR1Up-0001zd-UM for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 10:41:40 +0100 Original-Received: from localhost ([127.0.0.1]:49706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR1TX-0002GC-T1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 04:40:20 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d36g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.sources,gnu.emacs.bug Original-Lines: 20 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1232874110 13667 127.0.0.1 (25 Jan 2009 09:01:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 25 Jan 2009 09:01:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d36g2000prf.googlegroups.com; posting-host=60.234.132.53; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.sources:12812 gnu.emacs.bug:52222 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:24492 Archived-At: I sent the following email to gnu.emacs.help but received no helpful reply. I have invented a new (free GPL) programming language called SJS, short for Simplified Java Syntax which provides a stepping stone for learning Java, which makes it easier to learn Java than by learning Java from scratch. While writing the major mode sjs-mode, I ran into a problem highlighting /** ... */ in font-lock-doc-face. Click below for my Elisp code: http://h1.ripway.com/davin/sjs.el To get the desired fontification online, I considered inheriting sjs- mode from java-mode, but when you uncomment the line that says (java- mode) it does fontify /** ... */ in font-lock-doc-face but it also erroneously fontifies the "end" keyword in font-lock-type-face. This behaviour is erroneous and I don't want for this to happen. I read the documentation for font-lock-add-keywords but nothing I tried eliminated the fontification of "end".