emacs-devel
[Top][All Lists]
Advanced

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

Re: saving buffer with text properties


From: Chong Yidong
Subject: Re: saving buffer with text properties
Date: Sun, 03 Jun 2007 13:05:50 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

>> >>    Is there any plan to enable users to save text
>> >>    with all of its properties?
>> >>
>> >> "all" is a big word!
>>
>> I think the way to do this is to build hooks into the desktop.el
>> system, so that external packages can specify a list of text
>> properties to re-apply to each file when it is re-opened.  This
>> information would be saved in .emacs.d, and the cache can be cleared
>> out for files that have not been re-opened for N days.
>
> But the per-file information about applied text properties needs to be saved
> with the file, no?

That would interfere with third-party programs, such as other text
editors, that want to edit the file.

> Or did you mean that desktop would save a list of files and their text
> properties (including property values and locations)?

Basically.  Desktop should provide hooks that other packages (such as
major modes) can use, i.e. a major mode should be able to tell desktop
"save the following data when closing this file, then run this
function with that data when the file is reopened".




reply via email to

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