[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a save-outline-visibility excursion or so?
From: |
Thorsten Jolitz |
Subject: |
Re: Is there a save-outline-visibility excursion or so? |
Date: |
Wed, 22 May 2013 15:41:03 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Jambunathan K <kjambunathan@gmail.com> writes:
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Jambunathan K <kjambunathan@gmail.com> writes:
> ----------------------------------------------------------------
>
> You may find it easier to work with `make-indirect-buffer' and
> `clone-indirect-buffer' (See Elisp manual).
>
> (I think) In the first case, the indirect buffer starts with no
> overlays. In the second case, the indirect buffer starts with same
> *overlay values* as the first one.
>
> You can see that any visibility operation on the indirect buffer doesn't
> affect the visibility of the original buffer.
>
> ----------------------------------------------------------------
Thanks for the tip, indirect buffers are exactly what I needed for
editing partly folded outshine buffers without changing visibility or
point-position. I reimplemented the relevant outshine function and now
it works as expected.
--
cheers,
Thorsten