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

Re: Instant IMAP folder opening, and cache format



At Fri, 29 Jun 2012 23:57:23 +0100,
Francesco Mazzoli wrote:
> This made things a lot better already. I'd still like it a lot more if
> it didn't connect via IMAP each time I open a folder.
> 
> I took a look at `wl-folder-jump-to-current-entity', which seems to be
> the function that "opens" the summary from the folder view, and it
> looks like it shouldn't connect if `arg' is not provided, but that
> does not seem to be the case - but my ELisp is weak and I looked at it
> briefly.

In the end, I've solved this in a fairly brutal way, which works
beautifully:

    (define-key wl-folder-mode-map " "
      (lambda (&optional arg)
        (interactive "P")
        (let ((was-plugged wl-plugged))
          (when was-plugged (wl-toggle-plugged 'off))
          (wl-folder-jump-to-current-entity arg)
          (when was-plugged (wl-toggle-plugged 'on)))))

I'm still looking for a cleaner solution, but this is a good temporary
fix.

--
Francesco * Often in error, never in doubt