From bug-octave-request at bevo dot che dot wisc dot edu Sun Sep 5 13:00:08 1999 Subject: using Emacs 20.4 to send line with TABS to inferior process From: Stephen Eglen To: bug-octave at bevo dot che dot wisc dot edu CC: Kurt dot Hornik at ci dot tuwien dot ac dot at Date: Sun, 5 Sep 1999 18:59:59 +0100 (BST) Hi, is anyone using octave-mode in GNU Emacs 20.4 to run octave? I've found a slight problem with it, and it would be nice if someone could verify/dismiss it. It seems the inferior octave process doesn't like receiving a line of Octave code that has a comment on the same line created using `M-;' (octave-indent-for-comment). e.g. take the following line: pwd; # print current directory. where after the semicolon there are just four TAB characters up to the #. If I do `C-c i l' (octave-send-line) on that line, I get the following in the inferior octave buffer: ---------------------------------------------------------------------- octave.bin> pwd; # print current directory. Display all 900 possibilities? (y or n) EDITOR int2str ... lots of possibilities deleted ... parse error: >>> pwd;print current directory. ^ octave.bin> ---------------------------------------------------------------------- So, it looks like the TABs before the comment are being interpreted as completion requests. For now, I have a workaround solution within octave-send-region which solves this problem (it just turns tabs into spaces before sending the string to the inferior process). If other people get this problem, I can send that fix. However, it may be a problem with other parts of Emacs, so I think this bug was just introduced in Emacs 20.4. (I think this problem didn't occur in Emacs 20.3). I'm running octave precompiled binary 2.0.13 if that makes any difference. Cheers, Stephen --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------