私はEmacs(24.3)とZsh(5.0.2)の最新の安定版を持っています。
端末(ITerm2など)で問題なくZshを実行できますが、端末で実行しようとするとM-x ansi-term
エラーが発生します。
Emacs ansi-term with zsh: error in process filter. Invalid face: unspecified
M-x ansi-term
起動bash
後に切り替えようとしても同じですzsh
。
これはすべてMac OS Xで発生します。この問題の原因とそれを克服する方法についてのアイデアはありますか?
ベストアンサー1
WSLでも同じ問題があります。
@Gillesさんのコメントに基づいてemacs -q
テストしたところ、問題がないことがわかりました。その後、custom-set-variables
Emacsが自動的に保存したsexpを探してunspecified
みましょうansi-term-color-vector
。
私はsexpansi-term-color-vector
を完全に削除し、完全な設定でEmacsを再起動しました。以前に問題があったアプリケーションは、emacs端末で正常に実行されます。
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default bold shadow italic underline bold bold-italic bold])
'(ansi-term-color-vector
[unspecified "#272822" "#f92672" "#a6e22e" "#f4bf75" "#66d9ef" "#ae81ff" "#66d9ef" "#f8f8f2"] t))