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: Juri Linkov
Subject: Re: Moving handlers out of desktop.el
Date: Tue, 13 Apr 2004 14:48:19 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Lars Hansen <address@hidden> writes:
> How about this change:
> 1. Move the functions above to their respective modules and give each
>    an autoload cookie.
>     Also move the two in `desktop-buffer-misc-functions'.

I think moving the desktop functions AS IS to respective packages is
not good, because these packages shouldn't depend on the desktop package.
Making general functions (with an autoload cookie) from them would be
good.  Such functions could have general arguments and be useful
for other purposes as well.  Otherwise, if such generalization is not
possible, the current desktop implementation is good enough.

> 2. Add in desktop.el a new variable `desktop-buffer-mode-handlers'
>    with a default value like
>     (('dired-mode . 'desktop-buffer-dired)
>      ('rmail-mode . 'desktop-buffer-rmail)
>      ('mh-folder-mode 'desktop-buffer-mh)
>      ('Info-mode . 'desktop-buffer-info))
> 3. Replace in `desktop-buffer-handlers' the four functions above with
>    a function `desktop-buffer-special-mode' looking in the alist above
>    for a handler.

This could be done independently from the first item.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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