unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Small changes to java font-lock
@ 2002-02-27 23:25 Nic Ferrier
  2002-03-01  1:11 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Nic Ferrier @ 2002-02-27 23:25 UTC (permalink / raw)



The current font-lock is not quite right for java.

The problem is illustrated by the well used java class:

    java.net.URL

When the classname is used unqualified it is not fontified.


The patch below fixes the problem.


*** lisp/font-lock.el	Mon Dec 31 20:16:46 2001
--- lisp/font-lock.el	Wed Feb 27 23:20:59 2002
***************
*** 2206,2212 ****
    :group 'font-lock-extra-types)
  
  (defcustom java-font-lock-extra-types
!   '("[A-Z\300-\326\330-\337]\\sw*[a-z]\\sw*")
    "*List of extra types to fontify in Java mode.
  Each list item should be a regexp not containing word-delimiters.
  For example, a value of (\"[A-Z\300-\326\330-\337]\\\\sw*[a-z]\\\\sw*\") means capitalised
--- 2206,2212 ----
    :group 'font-lock-extra-types)
  
  (defcustom java-font-lock-extra-types
!   '("[A-Z\300-\326\330-\337]\\sw*[a-zA-Z]\\sw*")
    "*List of extra types to fontify in Java mode.
  Each list item should be a regexp not containing word-delimiters.
  For example, a value of (\"[A-Z\300-\326\330-\337]\\\\sw*[a-z]\\\\sw*\") means capitalised


Nic Ferrier

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

* Re: Small changes to java font-lock
  2002-02-27 23:25 Small changes to java font-lock Nic Ferrier
@ 2002-03-01  1:11 ` Richard Stallman
  2002-03-01  1:40   ` Nic Ferrier
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2002-03-01  1:11 UTC (permalink / raw)
  Cc: emacs-devel

Thanks.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

* Re: Small changes to java font-lock
  2002-03-01  1:11 ` Richard Stallman
@ 2002-03-01  1:40   ` Nic Ferrier
  2002-03-02 19:50     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Nic Ferrier @ 2002-03-01  1:40 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Thanks. 

Simon Marshall has pointed out that my patch is no good. Please don't
include it yet... I'll send a proper CVS diff of a patch based on his
suggestion (which is better than what I provided).


Nic

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

* Re: Small changes to java font-lock
  2002-03-01  1:40   ` Nic Ferrier
@ 2002-03-02 19:50     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2002-03-02 19:50 UTC (permalink / raw)
  Cc: emacs-devel

    Simon Marshall has pointed out that my patch is no good. Please don't
    include it yet...

It is too late, I installed it before I thanked you.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

end of thread, other threads:[~2002-03-02 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-27 23:25 Small changes to java font-lock Nic Ferrier
2002-03-01  1:11 ` Richard Stallman
2002-03-01  1:40   ` Nic Ferrier
2002-03-02 19:50     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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