Benjamin Slade <[email protected]> writes:

Hi Benjamin,

> After turning on and off various things in my .emacs, I finally
> "fixed" the leak, by disabling "preview"
>
> (Specifically by commenting out:
> ; (require 'preview-latex)
> ; (load "preview-latex.el" nil t t)
> )

Why did you require it and then load it again?  But anyway, simply
loading preview but not using it shouldn't have a major effect on
memory.

> I don't use preview anyway, so this is a fine solution for me.  I'm
> not quite sure why preview is causing the leak, though I suspect
> perhaps there's something idiosyncratic (and wrong) about my .emacs
> setup.

Hm, I usually don't use preview, too.  But I've just tested it on some
document including at least some math formulas and some images, and it
works fine.  When I do M-x preview-document, the preview images are
generated into somy my-doc.prv/ subfolder and inserted into the document
buffer.  At that point, the memory usage increases a bit.  But shortly
after I do M-x preview-clearout-buffer and all preview images are
removed, memory seems to be returned back and the emacs process consumes
about the same as before...

> Also, this also plugged the leak under GNU Emacs 23. I tried the
> snapshot of Emacs 24, and I still have a leak there (though I don't
> think it's AUCTeX-related).

Could you try to reproduce the leak starting with "emacs -Q", adding
this to *scratch* and evaling it (C-x C-e after the closing paren)?

--8<---------------cut here---------------start------------->8---
(progn
  (add-to-list 'load-path "path/to/auctex/")
  (load "auctex.el" nil t t)
  (load "preview-latex.el" nil t t))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to