tmp buf fix (Re: Undumpable object type : buffer, extent)
"Ilya N. Golubev" <[email protected]>
| Newsgroups | gmane.emacs.xemacs.design |
|---|---|
| Message-ID | <[email protected]> |
> I take it that it's some kind of internal garbage problem and not > an issue with my use of temporary buffers. It is. The patch restores cc-mode portable dumpability. Stephen J. Turnbull wrote in <[email protected]>: > I would guess that what happens with unexec is that these structures > are unexec'd into the executable file, constituting a memory leak that > occurs before execution :-). No leak in XEmacs was found. However, the bug being fixed below may occur in other packages. Perhaps an item should be added to "(lispref)Style Tips" to avoid this. * cc-vars.el (c-emacs-features): Call `buffer-disable-undo' on temporary buffer, so that it does not stay referenced by internal undo variable(s) after getting killed, gagging portable dumper. --- cc-vars.el 3 Oct 2003 17:26:12 -0000 1.1 +++ cc-vars.el 16 Oct 2003 17:51:29 -0000 1.2 @@ -1579,6 +1579,7 @@ parse-sexp-lookup-properties parse-sexp-ignore-comments lookup-syntax-properties) + (buffer-disable-undo buf) (save-excursion (set-buffer buf) (set-syntax-table (make-syntax-table))