diff --git a/anki-editor.el b/anki-editor.el index e51a09a..609ad94 100644 --- a/anki-editor.el +++ b/anki-editor.el @@ -146,7 +146,7 @@ See https://apps.ankiweb.net/docs/manual.html#latex-conflicts.") anki-editor-anki-connect-listening-port) :type "POST" :parser 'json-read - :data (encode-coding-string request-body 'utf-8) + :data request-body :success (cl-function (lambda (&key data &allow-other-keys) (setq reply data))) :error (cl-function (lambda (&key _ &key error-thrown &allow-other-keys) @@ -171,7 +171,7 @@ See https://apps.ankiweb.net/docs/manual.html#latex-conflicts.") (defun anki-editor--anki-connect-invoke-multi (&rest actions) (-zip-with (lambda (result handler) - (when-let (((listp result)) + (when-let ((_ (listp result)) (err (alist-get 'error result))) (error err)) (and handler (funcall handler result))) @@ -674,7 +674,7 @@ of that heading." (message "[%d/%d] Processing notes in buffer \"%s\", wait a moment..." (cl-incf acc) total (buffer-name)) (anki-editor--clear-failure-reason) - (condition-case err + (condition-case-unless-debug err (anki-editor--push-note (anki-editor-note-at-point)) (error (cl-incf failed) (anki-editor--set-failure-reason (error-message-string err)))))