[Pkg-octave-devel] Bug#416048: octave2.9-emacsen: interface change
in pwd => error message in octave-mod
Rafael Laboissiere
rafael at debian.org
Tue Mar 27 20:31:40 CET 2007
package octave2.9-emacsen
tags 416048 confirmed pending
thanks
* Pascal A. Dupuis <Pascal.Dupuis at worldonline.be> [2007-03-24 12:05]:
> Package: octave2.9-emacsen
> Severity: normal
> Tags: patch
>
> Hello,
>
> I introduced in 2005 the following patch to octave-mod:
> --- octave-inf.el.orig 2005-08-22 11:34:57.000000000 +0200
> +++ octave-inf.el 2005-08-22 11:38:05.000000000 +0200
> @@ -234,7 +234,10 @@
>
> ;; And finally, everything is back to normal.
> (set-process-filter proc 'inferior-octave-output-filter)
> - (run-hooks 'inferior-octave-startup-hook)))
> + (run-hooks 'inferior-octave-startup-hook)
> + ;; just in case, to be sure a cd in the startup file
> + ;; won't have detrimental effects
> + (inferior-octave-resync-dirs)))
>
> ^L
> (defun inferior-octave-complete ()
>
>
> The purpose is to made the idea of inferior-octave process and emacs
> buffer about dirs the same in case the initialisation file '.octaverc'
> contains a 'cd' command.
>
> It started failing some times ago about unknown "CDPATH". The reason is
> that pwd now returns 'ans = /home/user', and cding to 'ans = /home/user'
> is not possible. The workaround is to use disp(pwd) instead:
> --- octave-inf.el.orig 2007-03-23 17:16:19.000000000 +0100
> +++ octave-inf.el 2007-03-23 17:16:35.000000000 +0100
> @@ -386,7 +386,7 @@
> This command queries the inferior Octave process about its current
> directory and makes this the current buffer's default directory."
> (interactive)
> - (inferior-octave-send-list-and-digest '("pwd\n"))
> + (inferior-octave-send-list-and-digest '("disp(pwd)\n"))
> (cd (car inferior-octave-output-list)))
Thanks for the bug report and the patch. This problem is already fixed
upstream [1] and appears in verison 2.9.10 released today. I already
started packaging this version for Debian, which will hopefully be uploaded
soon to unstable.
[1] http://velveeta.che.wisc.edu/cgi-bin/cvsweb.cgi/octave/emacs/octave-inf.el.diff?r1=1.16;r2=1.17
--
Rafael
More information about the Pkg-octave-devel
mailing list