Fix khoj.el compilation warnings around unused variables

This commit is contained in:
Debanjum Singh Solanky 2023-04-27 20:43:43 +08:00
parent 8269adf849
commit ceae06ae9d

View file

@ -282,7 +282,7 @@ Auto invokes setup steps on calling main entrypoint."
:name khoj--server-name :name khoj--server-name
:buffer khoj--server-name :buffer khoj--server-name
:command (append (list khoj-server-command) server-args) :command (append (list khoj-server-command) server-args)
:sentinel (lambda (process event) :sentinel (lambda (_ event)
(message "khoj.el: khoj server stopped with: %s" event) (message "khoj.el: khoj server stopped with: %s" event)
(setq khoj--server-ready? nil)) (setq khoj--server-ready? nil))
:filter (lambda (process msg) :filter (lambda (process msg)
@ -304,7 +304,7 @@ Auto invokes setup steps on calling main entrypoint."
(string-match "main.py" msg) (string-match "main.py" msg)
(string-match "api.py" msg))) (string-match "api.py" msg)))
(dolist (line (split-string msg "\n")) (dolist (line (split-string msg "\n"))
(message "khoj.el: %s" (nth 1 (split-string msg " " t " *")))))) (message "khoj.el: %s" (nth 1 (split-string line " " t " *"))))))
;; call default process filter to write output to process buffer ;; 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) (set-process-query-on-exit-flag khoj--server-process nil)