[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with revert-buffer and overlays
From: |
Kim F. Storm |
Subject: |
Re: Problem with revert-buffer and overlays |
Date: |
Sun, 27 Nov 2005 22:02:39 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Richard M. Stallman" <address@hidden> writes:
> This seems to be a generic problem with revert-buffer, as other modes
> may also have overlays in the buffer which should be removed by
> revert-buffer. It seems like it should unconditionally delete all
> overlays in that buffer.
>
> This seems plausible to me. In general, one must expect those
> overlays to be relocated to garbage, so preserving them cannot work
> reliably.
>
> Would you like to do that?
I looked at the code, and it is not obvious to me where this should be done.
It could be done in one of: revert-buffer, after-find-file, normal-mode.
I think someone more familiar with revert-buffer should work on this.
BTW, I noticed that revert-buffer does not deactivate the mark.
In any case, I realized that I _can_ fix this in cua-mode by making the
local variable holding the overlays permanent-local. Perhaps that would
be safer this close to the release.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Two minor problems with CUA rectangles, martin rudalics, 2005/11/25
- Problem with revert-buffer and overlays [was: Two minor problems with CUA rectangles], Kim F. Storm, 2005/11/26
- Re: Problem with revert-buffer and overlays [was: Two minor problems with CUA rectangles], Richard M. Stallman, 2005/11/26
- Re: Problem with revert-buffer and overlays,
Kim F. Storm <=
- Re: Problem with revert-buffer and overlays, Richard M. Stallman, 2005/11/27
- Re: Problem with revert-buffer and overlays, martin rudalics, 2005/11/28
- Re: Problem with revert-buffer and overlays, Kim F. Storm, 2005/11/28
- Re: Problem with revert-buffer and overlays, Richard M. Stallman, 2005/11/28
- Re: Problem with revert-buffer and overlays, martin rudalics, 2005/11/29
- Re: Problem with revert-buffer and overlays, Richard M. Stallman, 2005/11/29
- Re: Problem with revert-buffer and overlays, martin rudalics, 2005/11/30