comparison scripts/help/lookfor.m @ 8940:6994961bf1f4

use doc-cache instead of DOC for doc cache file name
author John W. Eaton <jwe@octave.org>
date Mon, 09 Mar 2009 14:31:10 -0400
parents 2c8b2399247b
children b8ed0262b11e
comparison
equal deleted inserted replaced
8939:4e1fed5d847b 8940:6994961bf1f4
73 new_path = setdiff (new_path, orig_path); 73 new_path = setdiff (new_path, orig_path);
74 endif 74 endif
75 75
76 for n = 1:numel (new_path) 76 for n = 1:numel (new_path)
77 elt = new_path{n}; 77 elt = new_path{n};
78 cache_file = fullfile (elt, "DOC"); 78 cache_file = fullfile (elt, "doc-cache");
79 if (exist (cache_file, "file")) 79 if (exist (cache_file, "file"))
80 ## We have a cache in the directory, then read it and search it! 80 ## We have a cache in the directory, then read it and search it!
81 [funs, hts] = search_cache (str, cache_file, search_type); 81 [funs, hts] = search_cache (str, cache_file, search_type);
82 fun (end+1:end+length (funs)) = funs; 82 fun (end+1:end+length (funs)) = funs;
83 help_text (end+1:end+length (hts)) = hts; 83 help_text (end+1:end+length (hts)) = hts;