emacs-devel
[Top][All Lists]
Advanced

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

Re: Moving handlers out of desktop.el


From: Lars Hansen
Subject: Re: Moving handlers out of desktop.el
Date: Wed, 21 Apr 2004 23:28:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk

I have now moved handlers out of desktop and into the modules where they belong.
That applies to dired, info, rmail and mh-e.

The idea is as follows: The desktop module handles buffers visiting a file. For buffers not visiting a file, desktop needs help from the major mode module. The major mode module must define a function to restore desktop buffers, and the function must be listed in `desktop-buffer-mode-handlers'. If the major mode needs to save auxiliary information in the desktop file, it must also define a function returning that information and assign the function to the buffer local variable `desktop-buffer-misc-data-function' in the mode function.





reply via email to

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