WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
Ok, I tried that -- and I don't get any memory leak.
But in my usual setup, not loading preview has definitely fixed the memory leak I was seeing in Emacs 23 (though, again, I still have problems with 24).
So I'm guessing preview in combination with something else causes the leak for me. But what the something else is isn't clear to me. I thought it might be flyspell, but I tried only loading auctex, preview and flyspell, and I still didn't get a leak.
> 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
> 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
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)?
(add-to-list 'load-path "path/to/auctex/")
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t))