aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-10-04 23:11:13 +0800
committerLeo Liu2013-10-04 23:11:13 +0800
commit939fb29cd9b7d77cd334daa6b67e20a28d75393c (patch)
treed6128e7c8d277c891b29b3d9d12278d8108460ff
parent63bd7f352faa51c6da920d0e41d0e4afc4768f77 (diff)
downloademacs-939fb29cd9b7d77cd334daa6b67e20a28d75393c.tar.gz
emacs-939fb29cd9b7d77cd334daa6b67e20a28d75393c.zip
* progmodes/octave.el (inferior-octave-mode): Call
compilation-forget-errors.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/octave.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ecf943eac56..bfa36ffe441 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-10-04 Leo Liu <sdl.web@gmail.com>
2
3 * progmodes/octave.el (inferior-octave-mode): Call
4 compilation-forget-errors.
5
12013-10-04 Xue Fuqiao <xfq.free@gmail.com> 62013-10-04 Xue Fuqiao <xfq.free@gmail.com>
2 7
3 * emacs-lisp/syntax.el (syntax-ppss): Doc fix. 8 * emacs-lisp/syntax.el (syntax-ppss): Doc fix.
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index ec48f75dd68..7b6228e9e16 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -694,6 +694,8 @@ in the Inferior Octave buffer.")
694(defvar compilation-error-regexp-alist) 694(defvar compilation-error-regexp-alist)
695(defvar compilation-mode-font-lock-keywords) 695(defvar compilation-mode-font-lock-keywords)
696 696
697(declare-function compilation-forget-errors "compile" ())
698
697(define-derived-mode inferior-octave-mode comint-mode "Inferior Octave" 699(define-derived-mode inferior-octave-mode comint-mode "Inferior Octave"
698 "Major mode for interacting with an inferior Octave process." 700 "Major mode for interacting with an inferior Octave process."
699 :abbrev-table octave-abbrev-table 701 :abbrev-table octave-abbrev-table
@@ -713,19 +715,20 @@ in the Inferior Octave buffer.")
713 (setq comint-input-ring-file-name 715 (setq comint-input-ring-file-name
714 (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist") 716 (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist")
715 comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024)) 717 comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024))
718 (comint-read-input-ring t)
716 (setq-local comint-dynamic-complete-functions 719 (setq-local comint-dynamic-complete-functions
717 inferior-octave-dynamic-complete-functions) 720 inferior-octave-dynamic-complete-functions)
718 (setq-local comint-prompt-read-only inferior-octave-prompt-read-only) 721 (setq-local comint-prompt-read-only inferior-octave-prompt-read-only)
719 (add-hook 'comint-input-filter-functions 722 (add-hook 'comint-input-filter-functions
720 'inferior-octave-directory-tracker nil t) 723 'inferior-octave-directory-tracker nil t)
721 (comint-read-input-ring t)
722 ;; http://thread.gmane.org/gmane.comp.gnu.octave.general/48572 724 ;; http://thread.gmane.org/gmane.comp.gnu.octave.general/48572
723 (add-hook 'window-configuration-change-hook 725 (add-hook 'window-configuration-change-hook
724 'inferior-octave-track-window-width-change nil t) 726 'inferior-octave-track-window-width-change nil t)
725 (setq-local compilation-error-regexp-alist inferior-octave-error-regexp-alist) 727 (setq-local compilation-error-regexp-alist inferior-octave-error-regexp-alist)
726 (setq-local compilation-mode-font-lock-keywords 728 (setq-local compilation-mode-font-lock-keywords
727 inferior-octave-compilation-font-lock-keywords) 729 inferior-octave-compilation-font-lock-keywords)
728 (compilation-shell-minor-mode 1)) 730 (compilation-shell-minor-mode 1)
731 (compilation-forget-errors))
729 732
730;;;###autoload 733;;;###autoload
731(defun inferior-octave (&optional arg) 734(defun inferior-octave (&optional arg)