help-octave
[Top][All Lists]
Advanced

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

octave exits on error


From: Francesco Potorti`
Subject: octave exits on error
Date: Thu, 17 Apr 97 10:25 MET

I use the appended Emacs function to run octave in a buffer on a
remote machine.  What it does is to call octave remotely through remsh
with the -i option.  It works perfectly, only problem is that a parse
error makes it abort, like this:
---------------------------------------------------------------
Octave, version 2.0.5 (alpha-dec-osf3.2).
Copyright (C) 1996 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.

address@hidden:~/math> read zzz
parse error:

>>> read zzz
           ^
Process octave finished
---------------------------------------------------------------

Is there any way to avoid this behaviour?  Is this a bug?

;; octave
(defun octave (rawprefix)
  "Switch to buffer octave, or generate one calling octave on sable.
With prefix arg, generate a new buffer even if another already exists."
  (interactive "P")
  (if (and (get-buffer "octave") (null rawprefix))
      (switch-to-buffer "octave")
    (let ((comint-process-echoes nil)
          (rlogin-program "remsh")
          (rlogin-explicit-args nil)
          (rlogin-directory-tracking-mode t)
          (rlogin-mode-hook nil))
      (rlogin "sable -l pot bin/octave -i" (generate-new-buffer-name "octave"))
      (cd "/sable:math"))))

-- 
Francesco Potorti` (researcher)        Voice:    +39-50-593203
Computer Network Division              Operator: +39-50-593211
CNUCE-CNR, Via Santa Maria 36          Fax:      +39-50-904052
56126 Pisa - Italy                     Email:    address@hidden


reply via email to

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