zshを使用したEmacs ansi-term:プロセスフィルタにエラーがあります。無効な顔:指定されていません

zshを使用したEmacs ansi-term:プロセスフィルタにエラーがあります。無効な顔:指定されていません

私は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-variablesEmacsが自動的に保存した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))

おすすめ記事