Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set notdeft-xapian-program to nil has not effect according to notdeft-xapian.el docstring #11

Closed
snowman opened this issue Jan 28, 2020 · 1 comment

Comments

@snowman
Copy link

snowman commented Jan 28, 2020

(defcustom notdeft-xapian-program nil
"Xapian backend's executable program path.
Specified as an absolute path.
When nil, incremental search is limited to files
in the current `notdeft-directory' (if any)."
:type '(choice (const :tag "None" nil)
(file :tag "Path"))
:safe 'string-or-null-p
:group 'notdeft)

HERE:

 When nil, incremental search is limited to files 
 in the current `notdeft-directory' (if any)." 

Steps to reproduce:

## org-notes content
$ find ~/org-notes -type f -name '*.org' | xargs -I% bash -c "echo -e '\nFILE: %'; cat %"

FILE: /home/delta/org-notes/banana/kernel.org
hello, I'm Mr banana kernel.

FILE: /home/delta/org-notes/apple/juice.org
This is an apple juice.
$ cat ~/test.el
(add-to-list 'load-path "~/notdeft")
(load "notdeft-example")

(setq notdeft-xapian-program nil)  ;; test point

(setq notdeft-directories '("~/org-notes/apple" "~/org-notes/banana"))

(setq notdeft-directory "~/org-notes/apple")

(notdeft)

$ emacs -nw -Q ~/test.el
M-x eval-buffer RET

1580218456

If the docstring is correct(though not my wish), it should display This is an apple juice. item alone instead of two items. so I guess the docstring is outdated, needs to be update.

@hasu hasu closed this as completed in c44a6ba Jan 29, 2020
@hasu
Copy link
Owner

hasu commented Jan 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants