Re: Changes to preview-latex

Masayuki Ataka <[email protected]> Tue, 15 Mar 2005 11:39:18 +0900 (JST)
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
From: David Kastrup <[email protected]>
Subject: Changes to preview-latex
Date: Mon, 14 Mar 2005 21:40:39 +0100

> 
> Hi, I just noticed that
> 
> 2005-03-14  Masayuki Ataka  <[email protected]>
> 
> 	* tex-fold.el (TeX-fold-prioritize): Cater for preview-latex.
> 
> included changes to preview.el.  Having been away, I might not have
> properly taken notice of the respective discussion on the list.
> 
> Please: changes to the preview-latex system should
> 
> a) be mentioned in preview/ChangeLog
> 
> b) not tie preview-latex into a particular AUCTeX release at the
> current point of time.

As regarding tex-fold.el (in this time), I think this change
and ChangeLog are proper, since we have checked in the similar
changes with RefTeX.  For example,

1998-03-29  Carsten Dominik  <[email protected]>

       * latex.el (LaTeX-section-section): When RefTeX is available,
       notify it about the new section.

> It is well possible that I'll want to release a preview-latex 0.9.1
> package with fixes to the build system and some other fixes,
> independently from AUCTeX.  It is also possible that we'll provide
> separate preview-latex releases for a bit of a time (to work with some
> prepackages AUCTeX releases like the XEmacs stuff).
 
I believe this change to tex-fold.el would not prevent
preview-latex from releasing v.0.9.1, or prevent AUCTeX from
releasing v.11.56.

But I agree that the changes to preview.el is not good.
With this change, we cannot provide separate preview-latex release.
(Sorry for not noticing that)

However, preview-latex needs to calculate the priorities for
collaborating tex-fold, especially for the case that
preview-latex is called before tex-fold.

> I have not yet made a decision about that.  And I think it very
> unfortunate if preview.el requires tex-fold.el to be loaded.  If we

I agree.

> need to place overlay priorities for some reason, I think we should
> try to figure out a system where preview.el can place its respective
> priorities without consulting with tex-fold.el.
> 
> Can we figure out some proper scheme for that?  I don't know the
> details of the problem that we need to solve here.

How about copying neccessary code from tex-fold.el into
preview.el?  AFAICS, only the variable TeX-fold-priority-step
and the function TeX-fold-prioritize are required for the
calculation of priorities.

Of courese, we should maintain the one code in two files.

I think we can move the prioritizing code into tex.el or a
separate file (ex. tex-overlay.el), once preview-latex is
integrated into AUCTeX.

regards,
---
email: [email protected]
Name:: Masayuki Ataka // (Japan)