diff src/help.cc @ 8861:31f864877246

doc and lookfor fixes
author John W. Eaton <jwe@octave.org>
date Tue, 24 Feb 2009 15:08:39 -0500
parents 7d48766c21a5
children 34a821854961
line wrap: on
line diff
--- a/src/help.cc	Tue Feb 24 14:13:32 2009 -0500
+++ b/src/help.cc	Tue Feb 24 15:08:39 2009 -0500
@@ -72,6 +72,10 @@
 #include "version.h"
 #include "quit.h"
 
+// Name of the doc cache file specified on the command line.
+// (--doc-cache-file file)
+std::string Vdoc_cache_file;
+
 // Name of the info file specified on command line.
 // (--info-file file)
 std::string Vinfo_file;
@@ -990,6 +994,18 @@
   return retval;
 }
 
+DEFUN (doc_cache_file, args, nargout,
+  "-*- texinfo -*-\n\
+@deftypefn {Built-in Function} {@var{val} =} doc_cache_file ()\n\
+@deftypefnx {Built-in Function} {@var{old_val} =} doc_cache_file (@var{new_val})\n\
+Query or set the internal variable that specifies the name of the\n\
+Octave DOC file.  The default value is @code{\"@var{octetcdir}/DOC\"}.\n\
+@seealso{info_program, doc, help, makeinfo_program}\n\
+@end deftypefn")
+{
+  return SET_NONEMPTY_INTERNAL_STRING_VARIABLE (doc_cache_file);
+}
+
 DEFUN (info_file, args, nargout,
   "-*- texinfo -*-\n\
 @deftypefn {Built-in Function} {@var{val} =} info_file ()\n\