bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#19226: eww.el desktop support fixes: autoload eww-mode, use inhibit-


From: Stefan Monnier
Subject: bug#19226: eww.el desktop support fixes: autoload eww-mode, use inhibit-read-only
Date: Sun, 07 Dec 2014 21:54:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>       The problem here is that desktop.el should explicitly be pointed
>       to the function to do all the special handling for the mode,
>       which is (conventionally) done like:

> (add-to-list 'desktop-buffer-mode-handlers
>              '(eww-mode . eww-restore-desktop))

>       The problem is: to get /that/ evaluated, desktop.el needs to
>       first load eww.el, leading to a chicken and egg problem.

I see.  Maybe the problem then is that desktop.el should be changed so
that it records `eww-restore-desktop' as the handler function for this
buffer in the desktop file.  I.e. those desktop-buffer-mode-handlers
should be looked up while *saving* the desktop file rather than while
reading them.


        Stefan





reply via email to

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