From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66383 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Thu, 28 Feb 2008 09:12:57 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86skzdnmh2.fsf@lifelogs.com> References: <861w9jeaw4.fsf@lifelogs.com> <86ve6avlnf.fsf@lifelogs.com> <86ir1u3g8b.fsf@lifelogs.com> <864pddzbdu.fsf@lifelogs.com> <86d4raats5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204211548 19340 80.91.229.12 (28 Feb 2008 15:12:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 15:12:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14874@lists.math.uh.edu Thu Feb 28 16:12:53 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUkRC-000247-JV for ding-account@gmane.org; Thu, 28 Feb 2008 16:12:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JUkQ1-00086S-3X; Thu, 28 Feb 2008 09:11:33 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JUkPz-00086B-OT for ding@lists.math.uh.edu; Thu, 28 Feb 2008 09:11:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JUkPt-0005kL-4v for ding@lists.math.uh.edu; Thu, 28 Feb 2008 09:11:31 -0600 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JUkPy-0005Cn-00 for ; Thu, 28 Feb 2008 16:11:30 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id D0F973E8081 for ; Thu, 28 Feb 2008 07:12:06 -0800 (PST) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:080228:ding@gnus.org::vX8VZHrIuZs/unIB:0000DATG In-Reply-To: (Reiner Steib's message of "Sat, 16 Feb 2008 21:26:36 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66383 Archived-At: On Sat, 16 Feb 2008 21:26:36 +0100 Reiner Steib wrote: RS> On Wed, Feb 06 2008, Ted Zlatanov wrote: >> Also a formatting function that shows them in the modeline would be >> nice, but since there can be many flags and little space I'm not >> sure what's the best way to display them. RS> I'd expected them to show up in the summary buffer just like ticked, RS> answered, etc. We could display a string or a small image (I never RS> tried): RS> '(("Important" "I" "summary_important") RS> ("Work" "W" "summary_work") RS> ("Personal" "P" "summary_personal") RS> ("To do" "T" "summary_todo") RS> ("Later" "L" "summary_later")) RS> "Alist of regular expressions and summary line indicators." RS> ("summary_*": images corresponding to the labels.) RS> Can we have multiple registry marks for a single article? If not, we RS> may either display all strings/images or add a plus sign. Yes, multiples are allowed. That's what makes it tricky to display them, so I haven't done it yet :) Maybe reserve 4 characters, and if more than 4 labels are set, show the first 3 and then '+'. In the modeline or in the article buffer with a post-processing function we can show them all. I don't know much about this area of Gnus, especially image display, sorry. RS> Maybe use `M m' or `M M' as prefix command? (e.g. `M M t' for "To RS> do", ...) Sounds OK to me. The keys can come from the alist of summary line indicators above, so they'll make sense in conjunction to the user. >> If no one has objections, I'll set up the interactive query for registry >> first-time use in gnus.el. There will be three values for >> gnus-registry-enabled: RS> I'd prefer an interface like `message-use-idna': RS> :type '(choice (const :tag "Ask" ask) RS> (const :tag "Never" nil) RS> (const :tag "Always" t)) RS> nil and t are clear, I think. When `ask', prompt the user to enable RS> the registry when trying to set a mark (cf. the safe-local-variables RS> interface). When the user allows, store gnus-registry-enabled = t in RS> via customize. Works for me. I'll do it when I get a chance. Ted