Hi Liu,
I gave Info-additional-directory-list a try, but that allowed the
built-in manuals to override the CEDET from bzr manuals, and it still
couldn't find new CEDET manuals.
I suspect you best bet is to put (require 'Info), or executing
info-initialize as the light directly before loading the CEDET loader.
That way the snippet that inits the info directory list can modify your
created list.
Eric
On 09/07/2012 11:23 AM, Liu Binsheng wrote:
> I have environment variable INFOPATH set, but emacs fails recognizing
> it.
>
> I found cedet set Info-directory-list in cedet-devel-load.el:
>
> (setq Info-directory-list
> (cons (expand-file-name "doc/info" CEDETDIR)
> Info-default-directory-list))
>
> Emacs uses INFOPATH to initialize Info-directory-list if it's nil.
>
> Code from emacs info.el:
>
> (defun info-initialize ()
> "Initialize `Info-directory-list', if that hasn't been done yet."
> (unless Info-directory-list
> (let ((path (getenv "INFOPATH"))
> (sep (regexp-quote path-separator)))
> (setq Info-directory-list
> (prune-directory-list
> (if path
> (if (string-match-p (concat sep "\\'") path)
> (append (split-string (substring path 0 -1) sep)
> (Info-default-dirs))
> (split-string path sep))
> (Info-default-dirs)))))))
>
> But cedet sets Info-directory-list earlier, so emacs doesn't
> initialize it using INFOPATH. Maybe Info-additional-directory-list is
> a better choice. Hope this could be fixed.
|