Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: spam.el: asking about removing spam-use-BBDB
Date: Fri, 11 Nov 2011 11:29:09 -0500	[thread overview]
Message-ID: <84sjlusjvu.fsf@davestoy.home> (raw)
In-Reply-To: <87fwhxwf67.fsf@lifelogs.com>


> On Thu, 03 Nov 2011 17:45:13 -0400 Ted Zlatanov <tzz@lifelogs.com> wrote: 

> I comitted a fix that removes the whole `bbdb-search*' issue.  It also
> avoids the BBDB autoloads.  Please test and let me know.

> Simplest test to verify it pick knownemail@knownhost.com out of BBDB,
> then:

> (spam-exists-in-BBDB-p "knownemail@knownhost.com")

> The fundamental issue is with the `bbdb-search' defmacro and
> compile-time detection of BBDB.  I'm not good enough with that part of
> Emacs to tell what's up, but I think I've taken the right (and faster)
> approach.

It works, but only if I compile spam.el with bbdb loaded.  spam.elc created by the Makefile doesn't pick it up.  I get this backtrace when trying the test:

Debugger entered--Lisp error: (invalid-function bbdb-gethash)
  bbdb-gethash("david.goldberg6@verizon.net")
  spam-exists-in-BBDB-p("david.goldberg6@verizon.net")
  eval((spam-exists-in-BBDB-p "david.goldberg6@verizon.net"))
  eval-expression((spam-exists-in-BBDB-p "david.goldberg6@verizon.net") nil)
  call-interactively(eval-expression nil nil)

When compiled in my running emacs with bbdb loaded, the test returns the bbdb entry for that address.

I have to wonder if this is because I do not have bbdb installed in a particular location that gets picked up by emacs -batch, which i understand does not load .emacs.  When I used to use xemacs (still do at work, but don't use spam.el there because all filtering is on the server) I installed bbdb in a local "package" directory tree in my home directory.  Is there an equivalent to that with GNU Emacs I should be using?

Thanks,
-- 
Dave Goldberg
david.goldberg6@verizon.net



      reply	other threads:[~2011-11-11 16:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 12:09 Ted Zlatanov
2011-10-12  0:42 ` Dave Goldberg
2011-10-22 18:50   ` Dave Goldberg
2011-10-23  2:18     ` Eric Abrahamsen
2011-10-24  2:22       ` Dave Goldberg
2011-10-24  9:21         ` Richard Riley
2011-10-24 13:24           ` Ted Zlatanov
2011-10-24 13:26       ` Ted Zlatanov
2011-10-25  2:08         ` Dave Goldberg
2011-11-02  1:14           ` Dave Goldberg
2011-11-03 21:45             ` Ted Zlatanov
2011-11-09 14:20               ` Ted Zlatanov
2011-11-11 16:29                 ` Dave Goldberg [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=84sjlusjvu.fsf@davestoy.home \
    --to=david.goldberg6@verizon.net \
    --cc=ding@gnus.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).