Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Paul Bibbings <paul.bibbings@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: gnus registry menu problem in emacs 23.1
Date: Thu, 11 Feb 2010 08:12:23 +0000	[thread overview]
Message-ID: <87vde4b388.fsf@gmail.com> (raw)
In-Reply-To: <87k4v0ojkf.fsf@lifelogs.com>

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Sat, 16 Jan 2010 17:35:33 +0000 Paul Bibbings <paul.bibbings@gmail.com> 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

      parent reply	other threads:[~2010-02-11  8:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-16 17:35 Paul Bibbings
2010-01-29 18:24 ` Ted Zlatanov
2010-02-01 15:55   ` Ted Zlatanov
2010-03-20 17:53     ` Ted Zlatanov
2010-03-21 20:58       ` Paul Bibbings
2010-02-11  8:12   ` Paul Bibbings [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vde4b388.fsf@gmail.com \
    --to=paul.bibbings@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).