Skip to content

Commit

Permalink
Resolved the warning outputted by Melpazoid.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoka committed May 24, 2023
1 parent 52a41fe commit 54bad5a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions emacs/sumibi.el
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ DEFERRED-FUNC2: 非同期呼び出し時のコールバック関数(2).
(lambda (json-str)
(let* ((json-obj (json-parse-string json-str))
(lst (sumibi-analyze-openai-json-obj json-obj arg-n)))
(when (not (null lst))
(when lst
(save-excursion
(goto-char (marker-position saved-marker))
(insert (car lst))
Expand Down Expand Up @@ -522,7 +522,7 @@ DEFERRED-FUNC2: 非同期呼び出し時のコールバック関数(2).
(lambda (json-str)
(let* ((json-obj (json-parse-string json-str))
(lst (split-string (car (sumibi-analyze-openai-json-obj json-obj 1)))))
(if (not (null lst))
(if lst
(save-excursion
(goto-char (marker-position saved-marker))
(insert (car lst))
Expand Down Expand Up @@ -556,7 +556,7 @@ DEFERRED-FUNC2: 非同期呼び出し時のコールバック関数(2).
(lambda (json-str)
(let* ((json-obj (json-parse-string json-str))
(lst (split-string (car (sumibi-analyze-openai-json-obj json-obj 1)))))
(if (not (null lst))
(if lst
(save-excursion
(goto-char (marker-position saved-marker))
(insert (car lst))
Expand Down Expand Up @@ -591,7 +591,7 @@ DEFERRED-FUNC2: 非同期呼び出し時のコールバック関数(2).
(lambda (json-str)
(let* ((json-obj (json-parse-string json-str))
(lst (sumibi-analyze-openai-json-obj json-obj arg-n)))
(if (not (null lst))
(if lst
(save-excursion
(goto-char (marker-position saved-marker))
(insert (car lst))
Expand Down Expand Up @@ -881,7 +881,7 @@ Argument SELECT-MODE:選択状態"
(start (point-marker)))
(progn
(insert insert-word)
(message (format "[%s] candidate (%d/%d)" insert-word (+ sumibi-cand-cur 1) sumibi-cand-len))
(message "[%s] candidate (%d/%d)" insert-word (+ sumibi-cand-cur 1) sumibi-cand-len)
(let* ((end (point-marker))
(ov (make-overlay start end)))

Expand Down Expand Up @@ -1351,7 +1351,7 @@ _ARG: (未使用)"
(backward-paragraph)
(when (< 1 (point))
(forward-line 1))
(goto-char (point-at-bol))
(beginning-of-line)
(let (
(start-point (point)))
(setq limit-point
Expand All @@ -1372,7 +1372,7 @@ _ARG: (未使用)"
;; auto-fill-modeが無効の時
(progn
(save-excursion
(goto-char (point-at-bol))
(beginning-of-line)
(let (
(start-point (point)))
(setq limit-point
Expand Down Expand Up @@ -1458,6 +1458,7 @@ point から行頭方向に同種の文字列が続く間を漢字変換しま
(make-local-variable 'sumibi-mode))
(if global
(progn
(setq default-input-method "japanese-sumibi")
(setq-default sumibi-mode (if (null arg) (not sumibi-mode)
(> (prefix-numeric-value arg) 0)))
(sumibi-kill-sumibi-mode))
Expand Down Expand Up @@ -1507,7 +1508,7 @@ point から行頭方向に同種の文字列が続く間を漢字変換しま

;; input-method として登録する。
(set-language-info "Japanese" 'input-method "japanese-sumibi")
(setq default-input-method "japanese-sumibi")


(defconst sumibi-version
"1.6.1" ;;SUMIBI-VERSION
Expand Down

0 comments on commit 54bad5a

Please sign in to comment.