*** empty log message ***
[ess.git] / lisp / essd-xls.el
blobe4100849d73e7c6794741c5875bdbc65024f41a8
1 ;;; essd-xls.el --- XLispStat customization for ESS.
3 ;; Copyright (C) 1997 A. J. Rossini
4 ;; Copyright (C) 1998--2004 A.J. Rossini, Rich M. Heiberger, Martin
5 ;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
7 ;; Original Author: A.J. Rossini <rossini@stat.sc.edu>
8 ;; Created: 12 Jun 1997
9 ;; Maintainers: ESS-core <ESS-core@stat.math.ethz.ch>
11 ;; Keywords: Statistics
13 ;; This file is part of ESS
15 ;; This file is free software; you can redistribute it and/or modify
16 ;; it under the terms of the GNU General Public License as published by
17 ;; the Free Software Foundation; either version 2, or (at your option)
18 ;; any later version.
20 ;; This file is distributed in the hope that it will be useful,
21 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;; GNU General Public License for more details.
25 ;; You should have received a copy of the GNU General Public License
26 ;; along with GNU Emacs; see the file COPYING. If not, write to
27 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
29 ;;; Commentary:
30 ;;; This file defines all the XLispStat customizations for ESS. See
31 ;;; essl-lsp for general Lisp modifications.
33 ;;; Requires and Autoloads:
35 (require 'essl-lsp)
37 (autoload 'inferior-ess "ess-inf" "Run an ESS process.")
39 ;;; Code:
41 (defvar ess-help-XLS-sec-keys-alist
42 '((?a . "Args:"))
43 "Sparse online XLS help.")
45 (defvar XLS-editing-alist Lisp-editing-alist)
47 (defvar XLS-customize-alist
48 '((ess-local-customize-alist . 'XLS-customize-alist)
49 (ess-language . "XLS" )
50 (ess-dialect . "XLS" )
51 (ess-mode-editing-alist . XLS-editing-alist )
52 (ess-loop-timeout . ess-XLS-loop-timeout)
53 (ess-object-name-db-file . "ess-xls-namedb.el" )
54 (ess-help-sec-regex . "^[A-Z. ---]+:$")
55 (ess-help-sec-keys-alist . ess-help-XLS-sec-keys-alist)
56 (ess-retr-lastvalue-command . "()\n" )
57 (ess-save-lastvalue-command . "()\n" )
58 (inferior-ess-primary-prompt . "> ?" )
59 (inferior-ess-secondary-prompt . "^" )
60 (comint-use-prompt-regexp-instead-of-fields . t) ;; emacs 21 and up
61 (inferior-ess-program . inferior-XLS-program-name)
62 (inferior-ess-help-command . "(help '%s)\n" )
63 (inferior-ess-objects-command . "(variables)\n" )
64 (inferior-ess-exit-command . "(exit)\n" )
65 ;;(inferior-ess-start-args . ""))
66 (inferior-ess-start-file . nil))
67 "Variables to customize for XLS.")
69 ;;; The functions of interest (mode, inferior mode)
71 (defun XLS-mode (&optional proc-name)
72 "Major mode for editing XLispStat source. NOT EVEN STARTED."
73 (interactive)
74 (setq ess-customize-alist XLS-customize-alist)
75 (ess-mode XLS-customize-alist proc-name)
76 (setq major-mode 'XLS-mode))
78 (fset 'xlispstat-mode 'XLS-mode)
80 (defun XLS ()
81 "Call 'XLispStat', the Lisp statistical system from Luke Tierney."
83 (interactive)
84 (setq ess-customize-alist XLS-customize-alist)
85 (ess-write-to-dribble-buffer
86 (format "(XLS): ess-dialect=%s , buf=%s\n"
87 ess-dialect (current-buffer)))
88 (inferior-ess))
90 (defun xls-transcript-mode ()
91 "Does the right thing."
92 (interactive)
93 (ess-transcript-mode XLS-customize-alist))
95 (fset 'XLS-transcript-mode 'xls-transcript-mode)
97 \f ; Provide package
99 (provide 'essd-xls)
101 \f ; Local variables section
103 ;;; This file is automatically placed in Outline minor mode.
104 ;;; The file is structured as follows:
105 ;;; Chapters: ^L ;
106 ;;; Sections: ;;*;;
107 ;;; Subsections: ;;;*;;;
108 ;;; Components: defuns, defvars, defconsts
109 ;;; Random code beginning with a ;;;;* comment
111 ;;; Local variables:
112 ;;; mode: emacs-lisp
113 ;;; outline-minor-mode: nil
114 ;;; mode: outline-minor
115 ;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
116 ;;; End:
118 ;;; essd-xls.el ends here