Re: Problem creating record

2017-06-21 Thread Roland Winkler
On Wed Jun 21 2017 Greg Bognar wrote:
> There is an EmacsWiki page for an earlier attempt to integrate WL
> and BBDB3: BBDBV3-Wl at https://www.emacswiki.org/emacs/BBDBV3-Wl.
> However, the link to the project seems to be dead.

While the links to the project seem to be dead, the page says that
the code tried to re-implement for BBDB3 what BBDB-Wl did for BBDB2.

What is BBDB-Wl?  BBDB3 supports a number of MUAs I don't know
either.  But I simply took the code from BBDB2 as a guidance to
re-implement the interface.  So I could take a look at BBDB-Wl to
see whether it allows a similar thing.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Problem creating record

2017-06-21 Thread Roland Winkler
On Wed Jun 21 2017 Greg Bognar wrote:
> > To activate BBDB you should not require bbdb but bbdb-loaddefs.el,
> > see README.  Does this solve your problem?
> 
> No, it does not.  It makes no difference.
> 
> I have read the README several times.  I have some understanding
> of Elisp, but it is no help.  I have also asked around on the WL
> list, and the only people for whom this works properly use BBDB2.
> 
> It would be very helpful to provide a sample configuration in the
> README that is known to work.

I myself do not know anything about WL.  I got the code that BBDB
uses to interact with WL from David Maus, whom I include in this
message.

However, if I set up BBDB using the following code with my-mua bound to
gnus or vm, BBDB will query to auto-update the database whenever I
read a message, where the sender is not yet known to BBDB.

(require 'bbdb-loaddefs "/path/to/bbdb/lisp/bbdb-loaddefs.el")
(setq my-mua 'gnus)
(bbdb-initialize my-mua)
(bbdb-mua-auto-update-init my-mua)
(setq bbdb-mua-update-interactive-p '(query . create)
  bbdb-update-records-p 'query
  bbdb-mua-auto-update-p 'query)

Can you reproduce that this works for you as expected with Gnus?

If the BBDB interface with WL does not work as it should, could
someone look into this who is actually using WL and knows more about
it than me?

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Problem creating record

2017-06-21 Thread Roland Winkler
On Tue Jun 20 2017 Greg Bognar wrote:
> The relevant parts of my init.el:
> 
> (require 'bbdb)

To activate BBDB you should not require bbdb but bbdb-loaddefs.el,
see README.  Does this solve your problem?

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Problem creating record

2017-06-21 Thread Roland Winkler
On Tue Jun 20 2017 Angel de Vicente wrote:
> In my .emacs file I have:
> ,
> | (require 'bbdb)
> | (bbdb-initialize 'gnus 'message)
> | (bbdb-mua-auto-update-init)
> `

The function bbdb-mua-auto-update-init is called like
bbdb-initialize: you need to specify the MUAs it should hook into.
(Maybe you want that it watches only incomming or only outgoing
messages...)

> I would be happy to do this interactively, but I don't see any command
> to close the BBDB buffer? (Do I just have to define my own?)

What do you mean by "closing the BBDB buffer"?  As in similar modes,
BBDB binds "q" to quit-window.

> OK, changing it to (query . query) now BBDB offers me to add a record to
> the database.
> ,
> | bbdb-mua-update-interactive-p is a variable defined in ‘bbdb.el’.
> | Its value is (query . query)
> | Original value was (search . query)
> `

The idea is that the action specified by the cdr can be more
"aggressive" than the action specified by the car.  So if you call
the command with C-u (because you know what you want), you get the
more "aggressive" action.  (Of course, if "query" is all you always
want, you need not worry about the cdr.  Or you make the cdr a less
aggressive action.  The choices are yours.)


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/