emacs-devel
[Top][All Lists]
Advanced

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

Re: Display performance degradation


From: Lennart Borgman
Subject: Re: Display performance degradation
Date: Mon, 21 Dec 2009 04:54:31 +0100

On Mon, Dec 21, 2009 at 4:44 AM, Miles Bader <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>> Ah, yes. But I tend to use that frustration to for example add some
>> capability to desktop or similar. A kind of "ok, I take this way
>> then".
>
> Is there a general api for doing that... that modes can use?
>
> e.g.:
>
>    (add-desktop-save-restore-functions 'major-mode 'save-fun 'restore-fun 
> "file-to-load-for-restore-fun.el")
>
> or something...?


There are hooks, desktop-save-hook (which should be named
desktop-before-save-hook) and desktop-after-read-hook. (But I have not
used these now.)




reply via email to

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