[emacs] auto-complete.elをインストールした
"(s" のように 括弧の直後に文字を入力すると下記のエラーが発生していた。
debug(error (scan-error "Unbalanced parentheses" 1154 1176)) scan-sexps(1154 1) forward-sexp(1) hs-forward-sexp((1154 1155 #<buffer *scratch*>) 1) hs-find-block-beginning() hs-show-block() goto-line(40) eval((goto-line 40)) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp() call-interactively(eval-print-last-sexp) recursive-edit() debug(error (wrong-type-argument arrayp nil)) aref(nil 1) ac-menu-line-overlay(nil 1) (let ((overlay ...)) (overlay-put overlay (quote real-string) string) (funcall (overlay-get overlay ...) overlay string face)) ac-menu-set-line-string(nil 1 nil ac-selection-face) ac-select-candidate(1) (if ac-candidates (ac-select-candidate (let ... ...))) ac-next() call-interactively(ac-next)
どうやら、hideshowvis.elで設定した
; goto-lineで hideの個所に飛んだときは、showにする (defadvice goto-line (after expand-after-goto-line activate compile) "hideshow-expand affected block when using goto-line in a collapsed buffer" (save-excursion (hs-show-block)))
が干渉しているらしい。
ほとんどhide状態にすることはないので、サクッと削除。
auto-complete.el スゴく面白いです。matsuyamaさんに感謝。