diff options
Diffstat (limited to 'lisp/progmodes/octave-inf.el')
-rw-r--r-- | lisp/progmodes/octave-inf.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el index db1d4d4d570..2c9051df4a5 100644 --- a/lisp/progmodes/octave-inf.el +++ b/lisp/progmodes/octave-inf.el @@ -178,8 +178,7 @@ startup file, `~/.emacs-octave'." (get-buffer-create buffer) (if (comint-check-proc buffer) () - (save-excursion - (set-buffer buffer) + (with-current-buffer buffer (comint-mode) (inferior-octave-startup) (inferior-octave-mode))) |