[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Persistent emacs-w3m sessions
- From: Clemens Fischer <ino-qc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Apr 2004 12:57:05 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 06576
- References: <87ekzf9a6m.fsf@member.fsf.org>
* 2003-08-21 Jose A. Ortega Ruiz:
> any comments very welcome!!! please cc: me in your followups (i'm not
> (yet) subscribed to the list, sorry).
>
> ;;; w3m-session.el --- Persistent emacs-w3m sessions
>
> ;; Copyright (C) 2003 Jose A Ortega Ruiz
>
> ;; Author: Jose A Ortega Ruiz <jao AT member.fsf.org>
> ;; Version: 0.1
> ;; Keywords: hypermedia, w3m, WWW
i noticed two problems with w3m-session: in my setup i ``(require
'w3m-session)'' and set up the keymap afterwards like this:
(require 'w3m-session)
(add-hook 'w3m-load-hook
'(lambda nil
(define-key w3m-mode-map [up] 'previous-line)
(define-key w3m-mode-map [down] 'next-line)
(define-key w3m-mode-map [right] 'forward-char)
(define-key w3m-mode-map [left] 'backward-char)
(define-key w3m-mode-map [?p] 'w3m-view-previous-page)
(define-key w3m-mode-map [backspace] 'w3m-view-previous-page)
(define-key w3m-mode-map [tab] 'w3m-next-anchor)
(define-key w3m-mode-map [\S-tab] 'w3m-previous-anchor)
;(define-key w3m-mode-map "S" 'w3m-session-save)
;(define-key w3m-mode-map "L" 'w3m-session-load)
)
)
this works, but seems to mess up my own keymap entries, because they don't
work anymore. i do *not* require w3m itself at any time, it either gets
autoloaded or explicitely called up by "M-x w3m" anytime later.
the other one is not a bug, but to me it would be much simpler if you
renamed the variables w3m-session-load-always and w3m-session-save-always
to w3m-session-load-confirm and w3m-session-save-confirm and toggle their
logic.
regards,
clemens