[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small bug in wl-summary.el?
- To: wl-en <wl-en@lists.airs.net>
- Subject: Small bug in wl-summary.el?
- From: Erik Hetzner <ehetzner@gmail.com>
- Date: Sat, 16 Oct 2010 17:50:17 -0700
- Delivered-to: wl-en@lists.airs.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:user-agent:mime-version:content-type :content-transfer-encoding; bh=xOPjbFduc0O5LODZ5XJidyYurrA+pV0a9ji6iL6t4fw=; b=Y4oAY0NIh/64cXv6g4K5iYF8qdlZ374d4ngekBSjn4EBllF2k7GBWtDGc9pURPr/eP zSzZwI2mQzC15USfbdXTjtjaPOyjHf9XT79xbzJqSYJ0adzRQ7SqarTt9OhsSjKPiq5h /6/gtsOHP9vcREKO9MxB+A/gm95vGPflazCgs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:user-agent:mime-version :content-type:content-transfer-encoding; b=mr2vQWodZr/PZw045CMk842CuEYi69mGDrjmcJxfQWTnjJjJldhv8+6Dg8J7FWdDtW kclnTpZqp+PKzq1AQRasItXc6bGTRiLv0Xk3dCdKUHGHufiK20279PT37OgHpl5hPiiF fB83zmoz0lCAUcIp5YPWttVuL5X68XBc8PhjU=
- List-help: <mailto:wl-en-ctl@lists.airs.net?body=help>
- List-id: wl-en.lists.airs.net
- List-owner: <mailto:wl-en-admin@lists.airs.net>
- List-post: <mailto:wl-en@lists.airs.net>
- List-software: fml [fml stable 20011102.2100]
- List-unsubscribe: <mailto:wl-en-ctl@lists.airs.net?body=unsubscribe>
- Reply-to: wl-en@lists.airs.net
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
Hi,
I noticed that when opening folders WL sometimes spends a bit of time
“Re-scanning...” Looking at the code, this didn’t seem to be right. I
noticed that the function wl-summary-view-old-p sometimes returns true
when perhaps it shouldn’t.
It seems that the variable wl-summary-buffer-number-list is sometimes
set (at least in my buffers) to '(nil) (not plain old nil). (Perhaps
this is because I sometimes interrupt opening a folder with C-g.) When
the Summary buffer is empty and the value of
wl-summary-buffer-number-list is '(nil), wl-summary-view-old-p will
return t, necessitating a rescan when opening a buffer. Here is a
modified version of wl-summary-view-old-p which checks for this
situation.
Am I wrong to make this change? Any thoughts? Thank you!
best, Erik
(defun wl-summary-view-old-p ()
"Return non-nil when summary view cache has old format."
(if (equal wl-summary-buffer-number-list '(nil))
(setq wl-summary-buffer-number-list nil))
(save-excursion
(goto-char (point-min))
(and wl-summary-buffer-number-list
(not (re-search-forward "\r-?[0-9]+" (point-at-eol) t)))))
Attachment:
pgpqth9qZ0Afy.pgp
Description: PGP signature