]> code.delx.au - gnu-emacs/commitdiff
* progmodes/octave.el (inferior-octave-startup): Spit out error
authorLeo Liu <sdl.web@gmail.com>
Fri, 22 Nov 2013 14:17:48 +0000 (22:17 +0800)
committerLeo Liu <sdl.web@gmail.com>
Fri, 22 Nov 2013 14:17:48 +0000 (22:17 +0800)
message.

lisp/ChangeLog
lisp/progmodes/octave.el

index 87a7050eb35bcd921c277f7d2b627000b84bb956..f9b6f6ee356987c49dd6d9c4d627f709525d7068 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-22  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/octave.el (inferior-octave-startup): Spit out error
+       message.
+
 2013-11-22  Bozhidar Batsov  <bozhidar@batsov.com>
 
        * progmodes/ruby-mode.el (ruby-custom-encoding-magic-comment-template):
index 475f4d8d316febd68d0f6a63b592ec0600660b89..5e79e6627d8b6582bbae98b78acdbce335f46d18 100644 (file)
@@ -786,8 +786,13 @@ startup file, `~/.emacs-octave'."
     ;; output may be mixed up).  Hence, we need to digest the Octave
     ;; output to see when it issues a prompt.
     (while inferior-octave-receive-in-progress
-      (or (inferior-octave-process-live-p)
-          (error "Process `%s' died" inferior-octave-process))
+      (unless (inferior-octave-process-live-p)
+        ;; Spit out the error messages.
+        (when inferior-octave-output-list
+          (princ (concat (mapconcat 'identity inferior-octave-output-list "\n")
+                         "\n")
+                 (process-mark inferior-octave-process)))
+        (error "Process `%s' died" inferior-octave-process))
       (accept-process-output inferior-octave-process))
     (goto-char (point-max))
     (set-marker (process-mark proc) (point))