skk-dev / ddskk

Daredevil SKK (Simple Kana to Kanji conversion program)
GNU General Public License v3.0
195 stars 42 forks source link

Don't fail skk-cursor-off-1 on startup #171

Closed tats closed 3 years ago

tats commented 3 years ago

I've noticed that the function skk-cursor-off-1 causes the error "wrong-type-argument stringp nil" on startup with the following init file.

(require 'skk-setup nil 'noerror)
(require 'skk-autoloads nil 'noerror)
(set-input-method "japanese-skk")
(inactivate-input-method)

Because ccc-default-cursor-color is not yet set before evaluating ccc-setup.

Adding check for ccc-default-cursor-color prevents this problem.

cf. https://github.com/skk-dev/ddskk/pull/88

tkita commented 3 years ago

ありがとうございます。