[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reachable killed buffers
From: |
martin rudalics |
Subject: |
Re: Reachable killed buffers |
Date: |
Fri, 14 Sep 2012 15:38:22 +0200 |
> Since our discussion shows that there is no solid and bullet-proof
> solution for killed buffers problem (IMHO), I would like to propose
> an alternate (less effective, but safe) solution:
The current solution is safe.
> when the window
> dies, it's prev_buffers and next_buffers are set to nil, but both
> buffer lists are saved in struct saved_window just for the sake of
> possible resurrection.
The same window can appear in different saved_window structures
simultaneously. Would each of them store these values?
> Martin said that the most of window-configuration
> objects are created with 'save-window-excursion' and so they're
> short-lived objects which tends to not survive next GC. So, if
> deleted window isn't recorded in window-configuration object or
> such an object dies quickly, we're lucky; otherwise, the only thing
> we can do is to hope that recorded window will be resurrected and
> Lisp code from window.el will take care about the contents of
> it's buffer lists.
I can't see any problem with the present solution. So I'd rather leave
it alone.
martin
- Re: Reachable killed buffers, (continued)
- Re: Reachable killed buffers, Stefan Monnier, 2012/09/13
- Re: Reachable killed buffers, martin rudalics, 2012/09/13
- Re: Reachable killed buffers, Paul Eggert, 2012/09/13
- Re: Reachable killed buffers, martin rudalics, 2012/09/13
- Re: Reachable killed buffers, Dmitry Antipov, 2012/09/14
- Re: Reachable killed buffers, Stefan Monnier, 2012/09/14
- Re: Reachable killed buffers,
martin rudalics <=
- Re: Reachable killed buffers, Dmitry Antipov, 2012/09/13
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109890: Do not mark objects from deleted buffers, windows and frames., martin rudalics, 2012/09/06