[Top][All Lists]

[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: Thu, 08 Apr 2004 12:43:48 +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'.
> 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.
> What do you think about this?

This is somehow related to what is discussed on address@hidden:
if `Info-mode' was able to set a literally visited Info file to Info mode,
then no handler would be needed in desktop.el, because just calling
`Info-mode' from `desktop-buffer-file' on a restored Info file would do
exactly what `desktop-buffer-info' currently does.

If all other special modes would do the same then no new variable like
`desktop-buffer-mode-handlers' will be needed.

Juri Linkov

reply via email to

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