[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
Re: Seeking advice on writing a "line-based" major mode, Tom Tromey, 2015/06/08
Re: Seeking advice on writing a "line-based" major mode, Emanuel Berg, 2015/06/07
- Re: Seeking advice on writing a "line-based" major mode, Marcin Borkowski, 2015/06/07
- Message not available
- computer and wheel time (was: Re: Seeking advice on writing a "line-based" major mode), Emanuel Berg, 2015/06/08
- Re: computer and wheel time, Dan Espen, 2015/06/08
- Re: computer and wheel time, Emanuel Berg, 2015/06/08
- Re: computer and wheel time, Daniel Corbe, 2015/06/09
- Message not available
- Re: computer and wheel time, Emanuel Berg, 2015/06/09
- Re: computer and wheel time, Emanuel Berg, 2015/06/09
Message not availableRe: computer and wheel time, Dan Espen, 2015/06/09