GNU bug report logs -
#21163
adapting octave-inf.el to Octave 4
Previous Next
Reported by: Francesco Potortì <pot <at> gnu.org>
Date: Thu, 30 Jul 2015 17:27:01 UTC
Severity: minor
Merged with 21150,
21162
Found in version 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
The following patch does two things:
1) it removes the --no-line-editing option when calling the Octave
process, for reasons that I explained in my previous bug report about
octave-inf.el
2) it adds the --no-gui option when calling Octave if its version is
different from 3: this is needed because the last (and future,
probably) Octave versions launch a GUI by default
--- /dev/fd/63 2015-07-30 19:21:16.227231663 +0200
+++ octave-inf.el 2015-07-30 19:13:13.678557317 +0200
@@ -193,12 +193,16 @@
(defun inferior-octave-startup ()
"Start an inferior Octave process."
- (let ((proc (comint-exec-1
- (substring inferior-octave-buffer 1 -1)
- inferior-octave-buffer
- inferior-octave-program
- (append (list "-i" "--no-line-editing")
- inferior-octave-startup-args))))
+ (let* ((octave-version-string (shell-command-to-string
+ (concat inferior-octave-program " --version")))
+ (octave-gui (not (string-match "version 3" octave-version-string)))
+ (proc (comint-exec-1
+ (substring inferior-octave-buffer 1 -1)
+ inferior-octave-buffer
+ inferior-octave-program
+ (append (list "-i")
+ (when octave-gui (list "--no-gui"))
+ inferior-octave-startup-args))))
(set-process-filter proc 'inferior-octave-output-digest)
(setq comint-ptyp process-connection-type
inferior-octave-process proc
This bug report was last modified 4 years and 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.