[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#368843: Broken info-emacs-info



You will find attached below a bug report filed against the Debian package
octave2.9 regarding the info-emacs-info script.  The followups to this bug
reported can be seen at:

    http://bugs.debian.org/368843

The info-emacs script seems to be still broken in CVS.  As the reporter
writes, the order of the options in the invocation of INFO_PROGRAM
changed (--directory comes before --file now) and the old info-emacs-info
script gets confused.

Here is a patch that fixes the problem.  Notice that I replaced the call to
the deprecated gnudoit by a call to gnuclient.


--- info-emacs-info-orig	2006-09-03 16:35:07.466100032 +0200
+++ info-emacs-info	2006-09-03 16:35:23.113721232 +0200
@@ -3,12 +3,12 @@
 # Written by Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> on 1996/07/01
 # Make Octave's `help -i' use Emacs info.
 # Requires a running Emacs and gnuserv.
-cmd="(Info-find-node \"$2\" \"Top\")"
-if [ $3 = "--directory" ];
+cmd="(Info-find-node \"$4\" \"Top\")"
+if [ $1 = "--directory" ];
 then
-	cmd="(add-to-list 'Info-directory-list \"$4\") $cmd"
+	cmd="(add-to-list 'Info-directory-list \"$2\") $cmd"
 	shift 2
 fi
 cmd="(require 'info) $cmd"
 [ $4 ] && cmd="$cmd (Info-index \"$4\")"
-gnudoit -q $cmd
+gnuclient -q -eval "$cmd"


-- 
Rafael
--- Begin Message ---
Package: octave2.9
Version: 2.9.5-7
Severity: normal

Using `info-emacs-info' (within Emacs) makes the command `doc' fail with 
the error message:

 error in process filter: byte-code: Info file /usr/share/info does not exist
 error in process filter: Info file /usr/share/info does not exist


I think the problem lies in the order of the arguments passed to the 
info program, which is different from what `info-emacs-info' expects.

Issuing

 doc "whos"

in an Octave terminal outside Emacs launches the program (as shown by 
"ps x"):

 info --directory /usr/share/info --file /usr/share/info/octave2.9.info --index-search whos

while the first line of `info-emacs-info' is

 cmd="(Info-find-node \"$2\" \"Top\")"


A simple experiment from a bash confirmed this: when `--file' is the 
first option passed to the info program, `info-emacs-info' works.


Regards,
Bernardo

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-20050908_01
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages octave2.9 depends on:
ii  atlas3-base [liblapack.s 3.6.0-20        Automatically Tuned Linear Algebra
ii  fftw3                    3.0.1-14        library for computing Fast Fourier
ii  lapack3 [liblapack.so.3] 3.0.20000531a-6 library of linear algebra routines
ii  libc6                    2.3.6-7         GNU C Library: Shared libraries
ii  libgcc1                  1:4.1.0-1       GCC support library
ii  libgfortran0             4.0.3-2         Runtime library for GNU Fortran ap
ii  libglpk0                 4.9-1           linear programming kit (shared lib
ii  libhdf5-serial-1.6.5-0 [ 1.6.5-2         Hierarchical Data Format 5 (HDF5) 
ii  libncurses5              5.5-2           Shared libraries for terminal hand
ii  libpcre3                 6.4-1.1         Perl 5 Compatible Regular Expressi
ii  libreadline5             5.1-7           GNU readline and history libraries
ii  libstdc++6               4.1.0-1         The GNU Standard C++ Library v3
ii  libufsparse              1.2-5           collection of libraries for comput
ii  refblas3 [libblas.so.3]  1.2-8           Basic Linear Algebra Subroutines 3
ii  texinfo                  4.8-8           Documentation system for on-line i
ii  zlib1g                   1:1.2.3-11      compression library - runtime

octave2.9 recommends no packages.

-- no debconf information


_______________________________________________
Pkg-octave-devel mailing list
Pkg-octave-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-octave-devel


--- End Message ---

Reply to: