Thank you @nobiot for your detailed reply. Let me answer the questions one by one.
1. How slow?
Now the start up time is about 38 seconds. Before is about 15-20 seconds.
The message is: (org-roam) files: 0, links: 0, tags: 0, titles: 0, refs: 0, deleted: 0
2. More messages for the echo area message
Loading cua-baseâŚdone
Loading d:/XXXX/config.el (source)âŚ
org-super-agenda-mode enabled.
Loading d:/XXXX/config.el (source)âŚdone
Loaded d:/XXXX/config.el
(org-roam) files: 0, links: 0, tags: 0, titles: 0, refs: 0, deleted: 0
Query timeout error: âQuery timed outâ, 30
2.0.1 The result of (let ((debug-on-error t)...
command.
This command is only sucessful at the first time I run it, the minibuffer retures:
(org-roam) files: 3, links: 1, tags: 0, titles: 3, refs: 0, deleted: 0
If I run it again, it returns
Debugger enteredâLisp error: (file-error âRemoving old nameâ âPermission deniedâ âd:XXX/org-roam.dbâ)
#(âd:XXX/org-roam.dbâ)
apply(# âd:XXX/org-roam.dbâ)
delete-file(âd:XXX/org-roam.dbâ)
(progn (delete-file (org-roam-dbâget)))
(if force (progn (delete-file (org-roam-dbâget))))
org-roam-db-build-cache(t)
(let ((debug-on-error t) (org-roam-list-files-commands nil)) (org-roam-db-build-cache t))
eval-buffer() ; Reading at buffer position 98
funcall-interactively(eval-buffer)
call-interactively(eval-buffer record nil)
command-execute(eval-buffer record)
#f(compiled-function (cmd) #<bytecode 0x1f1edb5>)(âeval-bufferâ)
ivy-call()
ivy-read("M-x " [rng-ipattern-after connection-failed ansi-color-apply-overlay-face epg-context-signers locals 0 rng-what-schema message-required-headers denied tls-format-message epgâstatus-VALIDSIG org-publishâstore-crossrefs bbdb-current-record 0 org-emphasis-regexp-components mml-secure-smime-sign-with-sender url-cookie-multiple-line url-scheme-registry gnus-agent-group-covered-p nnmail-fix-eudora-headers gujr mixal gnus-summary-recenter avl-treeâstack-storeâcmacro cl-printâpreprocess matched-string tls-success :examined -some? bibtex-SuppCollection 0 post-deadline clâstruct-epg-signature-p ! " f-directory? message-kill-actions nnheader-translate-file-chars scale ' nnoo-import-1 gnus-summary-catchup-from-here :contents rx-trans-forms request-list elfeed-search-date-face not-at-beginning-of-line helm expired message-send-mail-function âŚ] :predicate commandp :require-match t :history counsel-M-x-history :action #f(compiled-function (cmd) #<bytecode 0x1f1edb5>) :sort t :keymap (keymap (67108908 . counselâinfo-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
2.1 Do you see any more information around the timeout error message?
Yes. The result is as above in answer 2.
2.2 How big (in terms of kb or mb) of your database (via Explorer)?
36kb (36,864 bytes)
2.3 After the timeout error message, can you open org-roam-buffer
for one of your org file, and see the backlinks properly shown?
Yes, the backlinks properly shown.
2.4 Can you change the org file, and see the backlink properly updated
Yes, I can change the org file, and the backlink properly updated.
2.5 Can you run org-roam-db-build-cache
manually, and successfully?
The result is strange. The first time I run org-roam-db-build-cache
. The mini-buffer reture apply: Selecting deleted buffer
. And I run org-roam-db-build-cache
again. It build correctly and return: (org-roam) files: 0, links: 0, tags: 0, titles: 0, refs: 0, deleted: 0
And if I run org-roam-db-build-cache
again(third time), still: apply: Selecting deleted buffer
. The fourth time: (org-roam) files: 0, links: 0, tags: 0, titles: 0, refs: 0, deleted: 0
3 The C-x b
problem
For now I also think itâs a seperate problem. Now I bind it to counsel-ibffer
. It works.
3.1 Do you see the list of buffers when you do C-x b, or you just immediately get the let*: Symbol's function
message?
No, I didnât see the list of the buffer. It immediately get the message.
3.2 Is there any location in your configuration where you might have bound C-x b
to a command other than switch-to-buffer
?
No I have no config for bounding C-x b
to switch-to-buffer
. But when I M-x switch-to-buffer
, in the minibuffer It shown the key was binded and It works for me before.
Even if I bound C-x b
to switch-to-buffer
in the config. It still returns the error message. But the M-x switch-to-buffer
works ok.
4 New problems after enable the roam mode.
4.1 The scratch
buffer problem.
After I start the Emacs and switch to the scratch buffer. The major mode is âFumdamentalâ not âemacs lisp modeâ. And the whole buffer is empty. There were 2 lines of commented description at the top of the buffer. But now itâs gone.
4.2 The buffer list problem
Before if I opend 4 buffers, I could switch to them. The numbers of active buffers seems has no limit, even after restart the Emacs.
But now every time I restart Emacs, there will be only 2 active buffers in the buffer list.
Thank you again for your time.