Closed AddyLaddy closed 1 year ago
Great thanks for the quick fix! I still see one function you didn't change
(defun mind-wave-chat-continue ()
(interactive)
(mind-wave-chat-ask-with-message "继续"))
I also had to patch it further with
diff --git a/mind-wave.el b/mind-wave.el
index 64001f4..f49d075 100644
--- a/mind-wave.el
+++ b/mind-wave.el
@@ -88,12 +88,15 @@
:type 'boolean
:group 'mind-wave)
+(defun file-name-concat (&rest parts)
+ (reduce (lambda (a b) (expand-file-name b a)) parts))
+
(defcustom mind-wave-api-key-path (expand-file-name (file-name-concat user-emacs-directory "mind-wave" "chatgpt_api_key.txt"))
"The path to store OpenAI API Key."
:type 'boolean
:group 'mind-wave)
-(defvar mind-wave-lang (car (string-split (getenv "LANG") "\\.")))
+(defvar mind-wave-lang (car (split-string (getenv "LANG") "\\.")))
(defvar mind-wave-server nil
"The Mind-Wave Server.")
Done, thanks for patch.
It is recommended to modify the "reduce" function to "cl-reduce" from the "cl-lib" library in order to avoid encountering the error message, "Symbol's function definition is void: reduce".
Done
Maybe that's deliberate, but as someone who one speaks one language it's not very useful.
I eventually hacked the lisp and python files to get it back to English.