Bug#416046: [Pkg-octave-devel] Bug#416046: octave2.9: pathdef doesn't include dir with info-emacs-info and info-emacs-octave-help

depuis pascal.dupuis at worldonline.be
Wed Mar 28 08:41:26 CET 2007


---------- Initial header -----------

>From      : "Rafael Laboissiere" rafael at debian.org
To          : "Pascal A. Dupuis"
Pascal.Dupuis at worldonline.be,416046 at bugs.debian.org
CC          : control at bugs.debian.org
Date      : Tue, 27 Mar 2007 20:37:55 +0200
Subject : Re: [Pkg-octave-devel] Bug#416046: octave2.9: pathdef doesn't
include dir with info-emacs-info and info-emacs-octave-help

> package octave2.9
> tags 416046 moreinfo
> thanks
> 
> * Pascal A. Dupuis <Pascal.Dupuis at worldonline.be> [2007-03-24 11:55]:
> 
> > Package: octave2.9
> > Severity: normal
> > 
> > Hello,
> > while trying to understand why the info mode didn't work as expected in 
> > octave2.9 running under emacs, I found that the required "programs" 
> > (shell scripts calling gnudoit), info-emacs-info  & info-emacs-octave-help, 
> > are placed under 
> > /usr/lib/octave/2.9.9/exec/i486-pc-linux-gnu
> > 
> > This dir does not appear in pathdef, so both functions are unknown. 
> > Could you please solve it ?
> 
> I am puzzled by this bug report.  The path returned by pathdef() is used
> only for finding *.m and *.oct files and not the executables in
> /usr/lib/octave/<version>/exec/<arch>.  BTW, the following works perfectly
> for me:
> 
> $ sudo apt-get install emacs21 gnuserv octave2.9 octave2.9-info
> $ emacs -eval "(gnuserv-start)" &
> $ octave2.9
> octave2.9:1> info_program ("info-emacs-info")
> octave2.9:2> doc
> 
> I see then the info directory in my emacs frame.  Does this work for you?
> 
> I may have misunderstood your problem.  At any rate, I am tagging this bug
> report "moreinfo", meaning that if we do not receive further informations in
> a reasonable time frame I will close this bug report.
> 
> -- 
> Rafael
> 

OK. Understood.
Under octave2.1, the equivalent was:
INFO_PROGRAM = "info-emacs-info";

It thus changed from a variable to a function.
 
Now, there are some discrenpancies into the documentation:
octave2.9-info states:
`--info-program PROGRAM'
     Specify the name of the info program to use.  The value of PROGRAM
     specified on the command line will override any value of
     `OCTAVE_INFO_PROGRAM' found in the environment, but not any
     commands in the system or user startup files that set the built-in
     variable `INFO_PROGRAM'.
and
`INFO_PROGRAM'
     *Note Getting Help::.

     Default value:
     `"OCTAVE-HOME/libexec/octave/VERSION/exec/ARCH/info"'.
in E.4 Using the Emacs Info Reader for Octave
  You can use either `plain' Emacs Info or the function `octave-help'
as your Octave info reader (for `help -i').  In the former case, set
the Octave variable `INFO_PROGRAM' to `"info-emacs-info"'.  The latter
is perhaps more attractive because it allows to look up keys in the
indices of _several_ info files related to Octave (provided that the
Emacs variable `octave-help-files' is set correctly).  In this case,
set `INFO_PROGRAM' to `"info-emacs-octave-help"'.

It seems that some documented variables don't exist anymore (octave2.9.9,
debian testing) : DEFAULT_LOADPATH, INFO_FILE, INFO_PROGRAM, LOADPATH ? OTOH,
things like 'EDITOR' and 'PS1' are now listed as 'built-in functions' ? 

Best regards

Pascal Dupuis
-- 

---
Scarlet ADSL Unlimited - Only 24,95 euro per month.
Max download Speed up to 6 Mbps, download volume of 30 GB. Order now...





More information about the Pkg-octave-devel mailing list