From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Re: fontify a buffer using JDEE's fontification without switching to jde-mode Date: 29 Jan 2003 16:41:12 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <8465s968wv.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1043887844 3799 80.91.224.249 (30 Jan 2003 00:50:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 00:50:44 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18e2uf-0000z5-00 for ; Thu, 30 Jan 2003 01:50:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18e2rm-0005Hs-04 for gnu-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2003 19:47:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1043887272 20784 127.0.0.1 (30 Jan 2003 00:41:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 30 Jan 2003 00:41:12 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109558 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6076 kai.grossjohann@uni-duisburg.de (Kai Großjohann wrote in message news:<8465s968wv.fsf@lucy.is.informatik.uni-duisburg.de>... > sandipchitale@yahoo.com (Sandip Chitale) writes: > > > How do I use jde font locking mechanism to fontify a buffer without > > switching to jde-mode ? > > It's difficult. Why do you want to do that? If the indentation is > wrong, you could just customize that until it's right... I am writing a JDEE add-in tool to display info about type at point using introspection. I did not want to force use of JDEE mode in the output buffer of my tool. The following three forms seem to do what I asked for. (set-syntax-table java-mode-syntax-table) (derived-mode-set-syntax-table 'jde-mode) (jde-setup-syntax-coloring)