From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sat, 24 Nov 2007 12:47:34 -0800 Subject: [sup-talk] [PATCH] label-list-mode with no unread messages In-Reply-To: <1195673904-sup-7215@spooky> References: <1195673904-sup-7215@spooky> Message-ID: <1195936974-sup-3449@south> Excerpts from Grant Hollingworth's message of Wed Nov 21 11:53:34 -0800 2007: > This patch sets the status to "No labels with unread messages" for > label-list-mode when unread_only is toggled on and there are, well, no > labels with unread messages. I thought the blank buffer looked a > little odd. > > It would be nicer if label-list-mode wasn't modal. I keep hitting 'b' > and 'x' and 'q' with no effect, and then hitting C-g. I've committed the following changes to SVN: 1. LabelListMode is no longer modal (it was bugging me too) 2. Hitting tab now cycles the cursor between labels with unread messages, just like in ThreadIndexMode. 3. Hitting 'u' does the toggle that tab used to. (Sorry to everyone who has to retrain their fingers---maybe this is motivation to submit a configurable keybinding patch!) > It would be more work to keep the counts up to date, but that could > use some work anyway. If I read all the new mail in one label and then > activate label-list-mode, the unread count will be wrong... unless I > kill the label buffer or sync it first. Shouldn't be too hard to do this if you use catch the appropriate events from UpdateManager. -- William