Drew Poulin <poulin@transcomjapan.com> writes:
I'm trying to get ndtpd and lookup to allow me to Japanese electronic book (EB) dictionaries. ndtpd seems to be working fine. I can connect to my CD-ROM drive via telnet and list out the contents of the CD without problems. But when I type 'M-x lookup' in xemacs, I get the following error message:
Unknown host "ndtpd"
I've simply pasted into my .emacs file the elisp code suggested in the lookup documentation:
(setq lookup-search-agents '((ndtp "ndtpd") (ndspell)))
(custom-set-variables '(line-number-mode t) '(font-lock-mode t nil (font-lock))) (custom-set-faces)
Actually, the documentation indicates that "ndtpd" above should be all upper case, but that doesn't work either. I suspect the problem lies there, but I'm not sure what else to specify besides ndtpd.
Has anyone tried this successfully? If so, can you tell me what I'm doing wrong?
I have not yet tried ndtpd, but the lookup documentation seems to say that you need to add the host name of the NDTP server where you wrote "ndtpd". Probably your machine running the NDTP server isn't called "ndtpd". If you are running the NDTP server on the same machine as XEmacs, try (setq lookup-search-agents '((ndtp "localhost"))) This seems to be the relevant paragraph from the lookup documentation: info> File: lookup.info, Node: ndtp setup, Next: ndtp dictionary, Prev: ndtp prepare, info> Up: ndtp info> info> ndtp の設定 info> ----------- info> info> ndtp は、次のように設定します。 info> info> (ndtp SERVER) info> info> SERVER には NDTP サーバのホスト名を指定します。 info> info> 次のエージェント・オプションが利用できます。 info> info> `:service' info> NDTP のサービス名。 info> `:port' info> NDTP のポート番号。サービス名とポート番号の両方を省略した場合は、サー info> ビス名として "ndtp" が利用されます。 info> `:account' info> サーバへのアカウント。これはログに残るという以上の意味はない。デフォ info> ルトは "<user>@<host>")。 info> `:coding' info> サーバに対する process-coding-system。デフォルトは `euc-jp'。 info> info> 例えば次のようになります。 info> info> (setq lookup-search-agents info> '((ndtp "dserver" :port 2010 :account "kei@bamboo"))) -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。