From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13642 Path: news.gmane.org!not-for-mail From: Paul Bibbings Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus registry menu problem in emacs 23.1 Date: Thu, 11 Feb 2010 08:12:23 +0000 Organization: A noiseless patient Spider Message-ID: <87vde4b388.fsf@gmail.com> References: <87zl4egdga.fsf@gmail.com> <87k4v0ojkf.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 1265877924 25568 80.91.229.12 (11 Feb 2010 08:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 08:45:24 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Feb 11 09:45:21 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 1NfUfl-0003ZZ-Vr for gegu-info-gnus-english@m.gmane.org; Thu, 11 Feb 2010 09:45:18 +0100 Original-Received: from localhost ([127.0.0.1]:57087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfUfl-0008VL-JV for gegu-info-gnus-english@m.gmane.org; Thu, 11 Feb 2010 03:45:17 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!newsfeed.freenet.ag!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 55 Injection-Date: Thu, 11 Feb 2010 08:12:28 +0000 (UTC) Injection-Info: news.motzarella.org; posting-host="KttXfWB5nPLC4Jafz+PGUg"; logging-data="9913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xU9D30d5zzQyYixHHFelCPY07RQ13jHk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 100210-0, 10/02/2010), Outbound message Cancel-Lock: sha1:uq5H3i80uhuG3mxeQJCKyljKIjU= sha1:LsBIGmvbDseiurkHcxdeBRjwvuk= Original-Xref: news.stanford.edu gnu.emacs.gnus:84025 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:13642 Archived-At: Ted Zlatanov writes: > 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. Hello Ted Thank you for your response, and apologies for not replying to you sooner. I can confirm that I have made the modifications that you suggest above, re-compiled to gnus-sum.elc and reloaded everything and it *doesn't*, unfortunately correct the problem. I do believe that the problem is something to do with the functions not being defined when the menu is made, as you say. When you say "I don't know the exact failure mode," is there any more information that I could provide? Having said that, I'm not immediately clear how to debug this one since the functions in question are created "on the fly," so to speak. Regards Paul Bibbings