From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66410 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Fri, 29 Feb 2008 17:19:29 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8663w7fj0e.fsf@lifelogs.com> References: <861w9jeaw4.fsf@lifelogs.com> <86ve6avlnf.fsf@lifelogs.com> <86ir1u3g8b.fsf@lifelogs.com> <864pddzbdu.fsf@lifelogs.com> <86d4raats5.fsf@lifelogs.com> <86skzdnmh2.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 1204327135 21926 80.91.229.12 (29 Feb 2008 23:18:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 23:18:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14901@lists.math.uh.edu Sat Mar 01 00:19:21 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 1JVEVV-0007LR-0K for ding-account@gmane.org; Sat, 01 Mar 2008 00:19:13 +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 1JVEUQ-0003M8-Gt; Fri, 29 Feb 2008 17:18:06 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JVEUP-0003Lp-0M for ding@lists.math.uh.edu; Fri, 29 Feb 2008 17:18:05 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JVEUI-0000QA-UR for ding@lists.math.uh.edu; Fri, 29 Feb 2008 17:18:04 -0600 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JVEUO-0008OY-00 for ; Sat, 01 Mar 2008 00:18:04 +0100 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 6F1E03F8E83 for ; Fri, 29 Feb 2008 15:18:51 -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:080229:ding@gnus.org::HjJ/N2sC0BD8gOTu:00000Lts In-Reply-To: (Reiner Steib's message of "Thu, 28 Feb 2008 21:04:04 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66410 Archived-At: On Thu, 28 Feb 2008 21:04:04 +0100 Reiner Steib wrote: 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. I worked on the gnus-registry-marks format for a while, and what's there now is, I think, what we need. This is the static list of keys, from gnus-registry-install-shortcuts-and-menus: (gnus-define-keys (gnus-registry-mark-map "M" gnus-summary-mark-map) "i" gnus-registry-set-article-Important-mark "I" gnus-registry-remove-article-Important-mark "w" gnus-registry-set-article-Work-mark "W" gnus-registry-remove-article-Work-mark "l" gnus-registry-set-article-Later-mark "L" gnus-registry-remove-article-Later-mark "p" gnus-registry-set-article-Personal-mark "P" gnus-registry-remove-article-Personal-mark "t" gnus-registry-set-article-To-Do-mark "T" gnus-registry-remove-article-To-Do-mark)) (so `M M i' will set the Important mark for example) The functions are dynamically generated from the gnus-registry-marks list, but I couldn't figure out how to generate the gnus-define-keys call (as I mention in the comments). Also it seems that each call will reset previously defined shortcuts. If anyone knows, please tell me using function-name and shortcut. Where should the menu shortcuts live? I'll add the formatting functions next. Ted