[Conkeror] [PATCH] Session management: restore saved buffers from a JSON file.
Vyazovoi Pavel
vyazovoi at gmail.com
Thu Sep 4 08:02:03 PDT 2008
At Thu, 4 Sep 2008 13:55:59 +0100,
David House wrote:
Good job! Thanks, but...
After patching latest git revision - conkeror don't start without any errors.
>
> This is the first round of session management support. It's not
> feature-complete, and it's not bug free, but it's just about useful, so I
> thought it was about time to ship some code. To restore the buffers at startup
> that were open last time (in the correct windows), add the following line to
> your RC file:
>
> restore_session();
>
> You can also use M-x restore-session at any time to load the stored buffers
> (this does nothing to your currently-open buffers). At the moment, the following
> restrictions are in place:
>
> 1. You must use conkeror -batch to start conkeror, otherwise you will get an
> additional window containing the homepage.
> 2. By virtue of the above, opening conkeror via a remoting function (i.e.
> clicking on a link in some other application to start conkeror) will open
> your saved buffers and the new buffer in different windows.
> 3. You must quit conkeror using C-x C-c, rather than through your window
> manager, if you want the session to be saved.
>
> Work to be done:
>
> 1. Refactor the new modules/json.js to use modules/io.js.
> 2. Get rid of the code duplication in modules/buffers.js by making
> modules/window.js aware of which windows aren't fully initialised.
> 3. Resolve the above restrictions
> 4. Add additional features: at a minimum I think we should also save buffer
> history (so that `go-back' will work on restored buffers) and minibuffer
> history.
> ---
> components/application.js | 2 +
> defaults/preferences/default-modules.js | 2 +
> modules/buffer.js | 40 +++++++++++++++
> modules/json.js | 66 +++++++++++++++++++++++++
> modules/session.js | 81 +++++++++++++++++++++++++++++++
> modules/window.js | 25 +++++----
> 6 files changed, 205 insertions(+), 11 deletions(-)
> create mode 100644 modules/json.js
> create mode 100644 modules/session.js
>
> diff --git a/components/application.js b/components/application.js
> ...
More information about the Conkeror
mailing list