From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: C-h i can't find the Info directory node Date: Sat, 22 Feb 1997 22:17:01 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 37 Message-ID: <330FE0DD.765@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp103.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp David May wrote: > > There is an environment variable called INFOPATH that you can set to a > list of directories where .info or .inf files are stored. I believe there > is a setting in the djgpp.env file, but if you use any other editors (like > JED) that let you read info files, they may not know about DJGPP's unique > environment provisions. Set INFOPATH like this under DOS: > > set INFOPATH=c:/djgpp/info;c:/djgpp/gnu/emacs/info;... > > These should be all the directories where you have info files you want > found by info, emacs, JED, etc. Any DJGPP-compiled executable will automatically look at the 'djgpp.env' file for a section that starts with the name of the executable (argv[0]), and load any variable settings from that section into its environment. Thus, if you add an [emacs] section to 'djgpp.env', you can define the INFOPATH variable there and not have to worry about doing it in DOS. The 'djgpp.env' from DJGPP v2.01 comes with a preset [emacs] section. It is possible to disable this environment loading in your DJGPP programs by including and defining a null version of the __crt0_load_environment_file() function. This can reduce the size of your compiled code by a few kilobytes, but will prevent it from having access to the enhanced DJGPP environment. Of course, for non-DJGPP programs, you'll need to set the INFOPATH explicitly. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------