bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: inferior octave mode for emacs is unable to detect octave completion


From: Kurt Hornik
Subject: Re: inferior octave mode for emacs is unable to detect octave completion capabilities
Date: Wed, 24 Aug 2005 09:30:18 +0200

>>>>> Anselm Helbig writes:

> affected: octave-inf.el as shipped with octave-2.1.71
> on line 232-233:

>     (setq inferior-octave-complete-impossible 
>           (not (string-match "5$" (car inferior-octave-output-list))))

> should read

>     (setq inferior-octave-complete-impossible 
>           (not (string-match "5$" (cadr inferior-octave-output-list))))
>                                      ^
> because the car of inferior-octave-output-list is the command sent,
> not the result which is to be tested, which is in the cdr. 

> as a result there were problems when sending a region that contained
> tabs from an octave file to the inferior octave.

Are you sure?  I seem to get

ELISP> (inferior-octave-send-list-and-digest
     (list "exist \"completion_matches\"\n"))
nil
ELISP> (car inferior-octave-output-list)
"ans = 5"
ELISP> (cadr inferior-octave-output-list)
nil

Best
-k




reply via email to

[Prev in Thread] Current Thread [Next in Thread]