mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Restrict server messages show in echo area to main server files
This commit is contained in:
parent
ae535a06eb
commit
8a9055f918
1 changed files with 5 additions and 3 deletions
|
@ -274,12 +274,14 @@ for example), set this to the full interpreter path."
|
|||
(progn
|
||||
(setq khoj--server-ready? t)
|
||||
(khoj--server-configure)))
|
||||
((not khoj--server-ready?)
|
||||
((and (not khoj--server-ready?)
|
||||
(or (string-match "configure.py" msg)
|
||||
(string-match "main.py" msg)
|
||||
(string-match "api.py" msg)))
|
||||
(dolist (line (split-string msg "\n"))
|
||||
(message "khoj.el: %s" (nth 1 (split-string msg " " t " *"))))))
|
||||
;; call default process filter to write output to process buffer
|
||||
(internal-default-process-filter process msg))
|
||||
))
|
||||
(internal-default-process-filter process msg))))
|
||||
(set-process-query-on-exit-flag khoj--server-process nil)
|
||||
(when (not khoj--server-process)
|
||||
(message "khoj.el: Failed to start Khoj server. Please start it manually by running `khoj' on terminal.\n%s" (buffer-string)))))
|
||||
|
|
Loading…
Reference in a new issue