Subject: mailing-list for TeXmacs Users
List archive
From : Joris van der Hoeven <address@hidden>- To: address@hidden
- Cc: Lionel Elie Mamane <address@hidden>
- Subject: Re: [TeXmacs] Forcing refresh of rendering of a document fragment
- Date: Sun, 29 Oct 2006 21:30:47 +0100
On Tue, Oct 24, 2006 at 02:40:35PM +0200, Lionel Elie Mamane wrote:
> Short version: How does one force refreshing the rendering of a
> document fragment from Scheme code, short of doing an edit action at
> that point or near?
You can assign the tree with itself, although this is not perfect
(since the history will keep track of that). In the C++ code,
we also have a routine
void edit_typeset_rep::typeset_invalidate (path p)
We might want to export this to the Scheme level.
> the end result I'm aiming at is rather simple: before a certain point
> in the document, all prompts are one colour and after that point all
> prompts are another colour. If you see a better way to do it, I'm open
> to suggestions. That point is transient, depending on the state of the
> Coq process and should _not_ be saved with the document. It is
> currently in a Scheme variable (as a position).
Yes, extern seems a reasonable thing to use, especially if you
don't want to keep anything like the colour in the document.
Notice however that this is not necessarily what you want
in all circumstances: don't forget the case that someone without Coq
wants to open a Coq document in the same state that you left it,
without wanting to (re)do any computations.
Best wishes, Joris
- Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/24/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/24/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/25/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Henri Lesourd, 10/25/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/26/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Joris van der Hoeven, 10/29/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/30/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Joris van der Hoeven, 10/30/2006
- Prompt colours in tmEgg [was: Forcing refresh of rendering of a document fragment], Lionel Elie Mamane, 10/30/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Joris van der Hoeven, 10/30/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/30/2006
- Re: [TeXmacs] Forcing refresh of rendering of a document fragment, Lionel Elie Mamane, 10/24/2006
Archive powered by MHonArc 2.6.19.