[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QUESTION] I have problem on my org-contacts capf function source co
From: |
Stefan Monnier |
Subject: |
Re: [QUESTION] I have problem on my org-contacts capf function source code |
Date: |
Mon, 15 Nov 2021 08:50:20 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> (add-hook 'completion-at-point-functions 'org-contacts-org-complete-function
> nil 'local)
I assume you're careful to run this `add-hook` in the appropriate buffer
(otherwise, of course it won't do anything useful ;-)
> When I evaluated upper code, and test by typing in "@Chri", I have not seen
> org-contacts related
> complete popup candidates.
Try `M-x trace-function RET org-contacts-org-complete-function RET`.
Also you may prefer to first just try
M-: (org-contacts-org-complete-function) RET
and make sure that what it returns makes sense.
Then
M-: (all-completions "Chr" (nth 2 (org-contacts-org-complete-function))) RET
Maybe try also
M-: (all-completions "@Chr" (nth 2 (org-contacts-org-complete-function)))
RET
then check whether the BEG..END area returned by
`org-contacts-org-complete-function` contains "@Chr" or "Chr".
Stefan