help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save file hide-region state


From: Joe Bloggs
Subject: Re: save file hide-region state
Date: Sat, 26 Jul 2008 13:48:12 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Joe Bloggs <address@hidden> writes:

> Peter Dyballa <address@hidden> writes:
>
>> Am 25.07.2008 um 15:59 schrieb Joe Bloggs:
>>
>>> Does anyone know if there is anyway to save the state of hidden
>>> regions
>>> so that when I revisit a file, the hidden regions are still hidden?
>>
>> Could be session.el does what you want.
>>
>> --
>> Greetings
>>
>>   Pete
>>
>> When you meet a master swordsman,
>> show him your sword.
>> When you meet a man who is not a poet,
>> do not show him your poem.
>>              – Rinzai, ninth century Zen master
>
> Thanks, that's a useful package. However I can't get it to work with 
> hide-region-hide
> I added the hide-region-overlays variable from hide-region to the 
> session-globals-include 
> variable in session, but no joy. I have set the Max size to 20, and tried 
> with both
> possible states for Alist. Anyone?

After further investigation I have come to realize that making this work would 
involve
adding new functionality to session.el. It would require a variable to save the 
hide regions
 between sessions, and a function to add to find-file-hook to hide the saved 
hide regions when 
a buffer is opened.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]