help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeking advice on writing a "line-based" major mode


From: Stefan Monnier
Subject: Re: Seeking advice on writing a "line-based" major mode
Date: Wed, 17 Jun 2015 21:50:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> correctly that I can just safely (setq my-ewoc (ewoc-create ...)),
> knowing that the old one will be GC'ed automatically?

You don't need to re-create the ewoc, but you can instead clear it
(e.g. with ewoc-filter) and then re-fill it.

> Also, I'd like to color various entries in my ewoc, using different
> faces.  Do I get it correctly that I should assign them faces right
> after `insert'ing them in my pretty-printing function?

Sounds fine, yes.  Sometimes it's more convenient to assign the face to
the strings before you insert them, but either way work fine.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]