unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fontify a buffer using JDEE's fontification without switching to jde-mode
@ 2003-01-28  0:24 Sandip Chitale
  2003-01-28  7:16 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Sandip Chitale @ 2003-01-28  0:24 UTC (permalink / raw)


How do I use jde font locking mechanism to fontify a buffer without
switching to jde-mode ?

Any tips ?

thanks,
sandip

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontify a buffer using JDEE's fontification without switching to jde-mode
  2003-01-28  0:24 fontify a buffer using JDEE's fontification without switching to jde-mode Sandip Chitale
@ 2003-01-28  7:16 ` Kai Großjohann
  2003-01-30  0:41   ` Sandip Chitale
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2003-01-28  7:16 UTC (permalink / raw)


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...

-- 
Ambibibentists unite!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontify a buffer using JDEE's fontification without switching to jde-mode
  2003-01-28  7:16 ` Kai Großjohann
@ 2003-01-30  0:41   ` Sandip Chitale
  2003-01-30 15:33     ` Stefan Monnier <foo@acm.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Sandip Chitale @ 2003-01-30  0:41 UTC (permalink / raw)


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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontify a buffer using JDEE's fontification without switching to jde-mode
  2003-01-30  0:41   ` Sandip Chitale
@ 2003-01-30 15:33     ` Stefan Monnier <foo@acm.com>
  2003-01-30 22:03       ` Sandip Chitale
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2003-01-30 15:33 UTC (permalink / raw)


> (set-syntax-table java-mode-syntax-table)
> (derived-mode-set-syntax-table 'jde-mode)
> (jde-setup-syntax-coloring)

`derived-mode-set-syntax-table' is an internal function which should hence
not be used by packages other than derived.el.  As a matter of fact,
it is now obsolete in Emacs-21 and is only kept around for backward
compatibility with code byte-compiled with Emacs-20.

What do you need it for ?


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fontify a buffer using JDEE's fontification without switching to jde-mode
  2003-01-30 15:33     ` Stefan Monnier <foo@acm.com>
@ 2003-01-30 22:03       ` Sandip Chitale
  0 siblings, 0 replies; 5+ messages in thread
From: Sandip Chitale @ 2003-01-30 22:03 UTC (permalink / raw)


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.

"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message news:<5lel6u7iuf.fsf@rum.cs.yale.edu>...
> > (set-syntax-table java-mode-syntax-table)
> > (derived-mode-set-syntax-table 'jde-mode)
> > (jde-setup-syntax-coloring)
> 
> `derived-mode-set-syntax-table' is an internal function which should hence
> not be used by packages other than derived.el.  As a matter of fact,
> it is now obsolete in Emacs-21 and is only kept around for backward
> compatibility with code byte-compiled with Emacs-20.
> 
> What do you need it for ?
> 
> 
>         Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-30 22:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28  0:24 fontify a buffer using JDEE's fontification without switching to jde-mode Sandip Chitale
2003-01-28  7:16 ` Kai Großjohann
2003-01-30  0:41   ` Sandip Chitale
2003-01-30 15:33     ` Stefan Monnier <foo@acm.com>
2003-01-30 22:03       ` Sandip Chitale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).