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

Rafael Laboissiere rafael at debian.org
Sun Sep 3 14:46:48 UTC 2006


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 at 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
-------------- next part --------------
An embedded message was scrubbed...
From: Bernardo Dal Seno <dibbex at gmail.com>
Subject: [Pkg-octave-devel] Bug#368843: octave2.9: info-emacs-info doesn't work
Date: Thu, 25 May 2006 12:48:48 +0200
Size: 6915
Url: http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20060903/2d4145e3/attachment.mht


More information about the Pkg-octave-devel mailing list