mode-infoで[emacs-info]へのリンクに飛べない問題
mode-info をいれて日本語の emacs や elisp の info を先日導入した。
結果、`describe-function' で search-forward 等の関数を検索すると日本語 info へのリンクが表示されるようになった。
クリックすると日本語の該当する info ノードに飛べるので便利だ。
リンクは [info], [emacs-info] の二種類あって、[info] が elisp info 用で、[emacs-info] が emacs info 用となっている。
俺の環境(Leopard,Carbon Emacs)では、これまで[emacs-info]の方をクリックすると
"mode-info-goto-info-entry: Wrong type argument: stringp,search-forward"
とエラーがでて飛べず、困っていた。
調査したところ、mode-info.el を一行変更して取りあえず飛べるようになった。
--- mode-info.el.org 2009-11-19 12:08:25.000000000 +0900 +++ mode-info.el 2009-11-19 12:22:39.000000000 +0900 @@ -450,7 +450,7 @@ (Info-goto-node (nth 1 entry)) (goto-char (point-min)) (if (= (nth 2 entry) 0) - (search-forward (nth 0 entry) nil t) + (search-forward (symbol-name (nth 0 entry)) nil t) (forward-line (nth 2 entry)))) (setq Info-index-alternatives (let ((node (cdr entry)) (alt))