girzel / ebdb

An EIEIO port of BBDB, Emacs' contact-management package
67 stars 11 forks source link

[Help] EBDB cannot load records from source. #108

Closed barddust closed 1 year ago

barddust commented 1 year ago

Hi, I have troubles using EBDB.

[QUESTION]

I've just test add one record and save it into EBDB.

2022-11-26_20-47-41

image

Then I shut down Emacs and restart it. After entering the command ebdb-open, I got nothing in *EBDB* buffer.

image

[Configuration]

I've git clone the repository to local directory, and added it to load-path. Here is my configuration.

image

I've try (use-package ebdb), but i could not find ebdb-open command. Then I check the source code of EBDB, I just found it in ebdb-com.el, in which ebdb has been required.

Any suggestions?

girzel commented 1 year ago

As the docstring of ebdb-open says, it only opens a buffer, it doesn't do anything else: this isn't the main entry-point to EBDB. Typically an *EBDB* buffer will only show you what you've searched for, and ebdb-open doesn't initiate search. Either use ebdb as the main entry-point or, once you're already in a *EBDB* buffer, use the search commands (on the "/' prefix) or display all records (on "C-x n w", as analogous to widen).

If that answers your question, please go ahead and close this issue!

barddust commented 1 year ago

Oh, I see. It does work.

I had read the manual, but did not found I have to search to the records. BBDB works like that?

BTW, is that more reasonable to reqire ebdb-com.el inside ebdb.el?

Anyway, thanks for replying ;)

girzel commented 1 year ago

Yes, that's how BBDB works -- the bbdb command initiates search.

ebdb.el is meant to be standalone -- it shouldn't need to know anything about ebdb-com.el. All the commands in ebdb-com.el are autoloaded, so that library will get loaded as needed.