mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
Teach inferior-octave-startup to handle Octave > 3.7
This commit is contained in:
parent
5e80b74f7a
commit
f6f87d33da
@ -1,7 +1,7 @@
|
||||
2013-05-18 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
|
||||
instead.
|
||||
instead. Include "--no-gui" to prevent hangs for Octave > 3.7.
|
||||
(octave-source-directories): Don't check process.
|
||||
(octave-source-directories, octave-find-definition): Doc fix.
|
||||
|
||||
|
@ -707,6 +707,11 @@ startup file, `~/.emacs-octave'."
|
||||
inferior-octave-buffer
|
||||
inferior-octave-program
|
||||
(append (list "-i" "--no-line-editing")
|
||||
;; --no-gui is introduced in Octave > 3.7
|
||||
(when (zerop (process-file inferior-octave-program
|
||||
nil nil nil
|
||||
"--no-gui" "--help"))
|
||||
(list "--no-gui"))
|
||||
inferior-octave-startup-args))))
|
||||
(set-process-filter proc 'inferior-octave-output-digest)
|
||||
(setq inferior-octave-process proc
|
||||
|
Loading…
Reference in New Issue
Block a user