diff options
| author | Leo Liu | 2013-11-22 22:17:48 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-11-22 22:17:48 +0800 |
| commit | 965bb23acf061c4d02b4dc0685d71955f8f2b6e3 (patch) | |
| tree | bbdb1d7078864895ff3ffd43961b538e63a79afa | |
| parent | 15ba21820624cf06441af02c48f9319024dff9d6 (diff) | |
| download | emacs-965bb23acf061c4d02b4dc0685d71955f8f2b6e3.tar.gz emacs-965bb23acf061c4d02b4dc0685d71955f8f2b6e3.zip | |
* progmodes/octave.el (inferior-octave-startup): Spit out error
message.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 87a7050eb35..f9b6f6ee356 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-11-22 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * progmodes/octave.el (inferior-octave-startup): Spit out error | ||
| 4 | message. | ||
| 5 | |||
| 1 | 2013-11-22 Bozhidar Batsov <bozhidar@batsov.com> | 6 | 2013-11-22 Bozhidar Batsov <bozhidar@batsov.com> |
| 2 | 7 | ||
| 3 | * progmodes/ruby-mode.el (ruby-custom-encoding-magic-comment-template): | 8 | * progmodes/ruby-mode.el (ruby-custom-encoding-magic-comment-template): |
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 475f4d8d316..5e79e6627d8 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el | |||
| @@ -786,8 +786,13 @@ startup file, `~/.emacs-octave'." | |||
| 786 | ;; output may be mixed up). Hence, we need to digest the Octave | 786 | ;; output may be mixed up). Hence, we need to digest the Octave |
| 787 | ;; output to see when it issues a prompt. | 787 | ;; output to see when it issues a prompt. |
| 788 | (while inferior-octave-receive-in-progress | 788 | (while inferior-octave-receive-in-progress |
| 789 | (or (inferior-octave-process-live-p) | 789 | (unless (inferior-octave-process-live-p) |
| 790 | (error "Process `%s' died" inferior-octave-process)) | 790 | ;; Spit out the error messages. |
| 791 | (when inferior-octave-output-list | ||
| 792 | (princ (concat (mapconcat 'identity inferior-octave-output-list "\n") | ||
| 793 | "\n") | ||
| 794 | (process-mark inferior-octave-process))) | ||
| 795 | (error "Process `%s' died" inferior-octave-process)) | ||
| 791 | (accept-process-output inferior-octave-process)) | 796 | (accept-process-output inferior-octave-process)) |
| 792 | (goto-char (point-max)) | 797 | (goto-char (point-max)) |
| 793 | (set-marker (process-mark proc) (point)) | 798 | (set-marker (process-mark proc) (point)) |