From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13597 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus registry menu problem in emacs 23.1 Date: Fri, 29 Jan 2010 12:24:48 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87k4v0ojkf.fsf@lifelogs.com> References: <87zl4egdga.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264790449 839 80.91.229.12 (29 Jan 2010 18:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2010 18:40:49 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Jan 29 19:40:46 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Navls-0000Y0-IX for gegu-info-gnus-english@m.gmane.org; Fri, 29 Jan 2010 19:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:50075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Navlq-0000e4-H7 for gegu-info-gnus-english@m.gmane.org; Fri, 29 Jan 2010 13:40:42 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 39 Original-X-Trace: news.albasani.net yNoS2PpF/mMYBPK7YW2iLApvkSEbCBxTO5ipo9O8HiOmSxw9J7zSiyd9B5pN36nDXhTt6eCJJHcTtbAc5SE9odtucSUmHw/fQPk+iP06HEJQ/jdlB8cE/L/hQdjYxOYM Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 29 Jan 2010 18:25:21 +0000 (UTC) X-User-ID: xFe22FGceI14XV14IMO12BZxr7TKwn8OotV42E4K6mM= 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" Cancel-Lock: sha1:/sdiovBk0dLFPXTYzH7mEfeqFkU= sha1:5bcRpYbY+qap37fxyx4bCbvofDo= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux) X-NNTP-Posting-Host: 4jnGm88brL7N/5FRg3OkkD4gUE7Zf26LM20Ts1EYlPQ= Original-Xref: news.stanford.edu gnu.emacs.gnus:83980 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13597 Archived-At: On Sat, 16 Jan 2010 17:35:33 +0000 Paul Bibbings wrote: PB> However, with the same article selected as in 2. (above) clicking on the PB> menu item: PB> Gnus | Registry Mark | Important PB> fails with: PB> "Symbol's function definition is void: PB> gnus-registry-set-article-Important-mark" PB> Is anybody able to help me understand what the problem might be here? PB> I'm at a loss, being quite new to Emacs and Gnus (though loving it, I PB> have to say). The menu item seems to be hooked into the correct function PB> call, but it is somehow believing that it is undefined, whereas the PB> other tests (above) show that it clearly is, and operates properly. Try using this in gnus-sum.el around line 2640: ("Registry Mark" ["Important" (lambda () (interactive) (gnus-registry-set-article-Important-mark)) t] ["Not Important" (lambda () (interactive) (gnus-registry-remove-article-Important-mark)) t] ["Personal" (lambda () (interactive) (gnus-registry-set-article-Personal-mark)) t] ["Not Personal" (lambda () (interactive) (gnus-registry-remove-article-Personal-mark)) t] ["Later" (lambda () (interactive) (gnus-registry-set-article-Later-mark)) t] ["Not Later" (lambda () (interactive) (gnus-registry-remove-article-Later-mark)) t] ["Work" (lambda () (interactive) (gnus-registry-set-article-Work-mark)) t] ["Not Work" (lambda () (interactive) (gnus-registry-remove-article-Work-mark)) t] ["To Do" (lambda () (interactive) (gnus-registry-set-article-To-Do-mark)) t] ["Not To Do" (lambda () (interactive) (gnus-registry-remove-article-To-Do-mark)) t]) instead of the version that just calls those functions. I think it's happening because the function is not defined when the menu is made, but I don't know the exact failure mode. If the above doesn't work, I may have to use `intern'. Does anyone have a better idea? I don't want gnus-sum.el to load the registry because not everyone wants it, but once this menu is built it's hard to update it again. Ted