I'm trying to learn to use =org-contact=, and wanted to have 2 files,
one for personal usage and another for work contact-list.

*Expected behavior* : when I do `M-x org-contacts`, I expect to see
all the contacts, and choose whichever I want to choose, and jump to
its position regardless if it's in work or personal file.

*Problem*: When I do `M-x org-contacts`, I see all the contacts.
- I can only jump to contacts inside the first file in
`org-contacts-files`.
- Choosing others entries (from 2nd file), shows warning `Cannot find
location`.

*Minimal Setup to re-produce*:

#+begin_src emacs-lisp
(setq package-archives
      '(("melpa"   . "https://melpa.org/packages/";     )
        ("elpa"    . "https://elpa.gnu.org/packages/";  )
        ("nongnu"  . "https://elpa.nongnu.org/nongnu/"; )))

(package-initialize)
(setq use-package-always-ensure t)

(use-package org-contacts
  :ensure t)

(setq org-contacts-files
        '("/tmp/contacts-work.org"             ;; ben & jon
          "/tmp/contacts-personal.org"))       ;; mom & dad

(org-contacts)
#+end_src

Contact file 1: =/tmp/contacts-work.org=
#+begin_src org
,* Ben
:PROPERTIES:
:EMAIL: t...@email.com
:END:

,* Jon
:PROPERTIES:
:EMAIL: j...@email.com
:END:
#+end_src

Contact file 2: =/tmp/contacts-personal.org=

#+begin_src org
,* Dad
:PROPERTIES:
:EMAIL: d...@email.com
:END:

,* Mom
:PROPERTIES:
:EMAIL: m...@email.com
:END:
#+end_src


I forgot to mention:
- org-contacs: 20241203.1941


Emacs  : GNU Emacs 30.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.24.48, cairo version 1.18.2)
Package: Org mode version 9.7.11 (release_9.7.11 @
/usr/share/emacs/30.1/lisp/org/)

If I made some mistakes somewhere (for example understood the package
wrongly) I'm sorry for taking your time.
Thanks,

Garid

Reply via email to