|
From: Jay B. <bel...@us...> - 2001-11-08 22:25:24
|
Update of /cvsroot/maxima/maxima-pre59/emacs
In directory usw-pr-cvs1:/tmp/cvs-serv11785
Added Files:
maxima.el
Log Message:
Initial commit of maxima mode for Emacs.
--- NEW FILE: maxima.el ---
;;; maxima.el --- Major modes for writing Maxima code
;; Copyright (C) 1998,1999 William F. Schelter
;; Copyright (C) 2001 Jay Belanger
;; Author: William F. Schelter
;; Jay Belanger
;; Maintainer: Jay Belanger <bel...@tr...>
;; $Name: $
;; $Revision: 1.1 $
;; $Date: 2001/11/08 22:25:21 $
;; Keywords: maxima
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2 of
;; the License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be
[...2622 lines suppressed...]
(setq maxima-debug-filter-accumulator nil)
(if running-xemacs
(add-to-list 'comint-output-filter-functions 'maxima-check-level)
(if inferior-maxima-use-debug
(add-to-list 'comint-preoutput-filter-functions 'inferior-maxima-filter)
(add-to-list 'comint-output-filter-functions 'maxima-check-level)))
(set-process-sentinel inferior-maxima-process 'inferior-maxima-sentinel)
(run-hooks 'maxima-mode-hook))
;;;; Running Maxima
(defun maxima ()
"Run Maxima interactively inside a buffer."
(interactive)
(maxima-start)
(switch-to-buffer (process-buffer inferior-maxima-process)))
(provide 'maxima)
;;; maxima.el ends here
|