unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* highlighting large regions (comments) with font-lock keywords
@ 2011-09-27 20:17 Eric Schulte
  2011-09-28  1:30 ` Stefan Monnier
  2011-09-28 14:18 ` Djvu mode Camm Maguire
  0 siblings, 2 replies; 26+ messages in thread
From: Eric Schulte @ 2011-09-27 20:17 UTC (permalink / raw)
  To: emacs-devel

Hi,

I'm working on a major mode for a new language [1] which comments
regions between \* ... *\.  I've properly (I believe) instantiated
font-lock keywords, and I have added a function to the
`font-lock-extend-region-functions' list to ensure that both ends of a
comment are always considered at the same time but unfortunately comment
highlighting often does not work.

Specifically, when I first enter a buffer and right after calling
`shen-mode' all comments are properly highlighted, however as I edit and
navigate in the buffer larger comments often lose fontification.

Any thoughts as to the cause of or solution to this problem would be
greatly appreciated.

Thanks -- Eric

Footnotes: 
[1]  https://github.com/eschulte/shen-mode/blob/master/shen-mode.el

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



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

end of thread, other threads:[~2011-10-14 12:52 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 20:17 highlighting large regions (comments) with font-lock keywords Eric Schulte
2011-09-28  1:30 ` Stefan Monnier
2011-09-28 13:08   ` Eric Schulte
2011-09-28 14:18 ` Djvu mode Camm Maguire
2011-09-28 16:50   ` Sivaram Neelakantan
2011-09-29 16:07     ` gnu-emacs-sources down? [was: Djvu mode] Roland Winkler
2011-09-29 16:21       ` gnu-emacs-sources down? Glenn Morris
2011-09-29 17:39       ` gnu-emacs-sources down? [was: Djvu mode] Sivaram Neelakantan
     [not found]       ` <87r52zl29j.fsf_-_@maguirefamily.org>
     [not found]         ` <20100.46983.768447.889306@gargle.gargle.HOWL>
     [not found]           ` <87d3ejgmmz.fsf@maguirefamily.org>
     [not found]             ` <20103.17789.10053.53615@gargle.gargle.HOWL>
2011-10-02  4:22               ` Djvu mode Camm Maguire
2011-10-03 18:23                 ` Roland Winkler
2011-10-03 19:41                   ` Camm Maguire
2011-10-03 19:59                   ` Camm Maguire
2011-10-03 20:35                   ` Camm Maguire
2011-10-04  6:20                     ` Roland Winkler
2011-10-12 15:19                       ` Camm Maguire
2011-10-14 12:52                         ` Roland Winkler
2011-10-04 10:21                     ` Roland Winkler
2011-09-28 21:02   ` Stefan Monnier
2011-09-29  6:26   ` Roland Winkler
2011-09-29  9:08     ` joakim
2011-09-29 19:07       ` Roland Winkler
2011-09-29 20:06         ` Camm Maguire
2011-09-29 21:34         ` joakim
2011-10-01 17:01           ` Roland Winkler
2011-10-01 17:19             ` joakim
2011-10-01 18:04               ` Roland Winkler

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