ESS[SAS]: somebody forgot about the SUM statement (probably me)
[ess.git] / lisp / essd-xls.el
blob7a07f6126e625ac4613b1290e95e4a694d0267ee
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 (inferior-ess-primary-prompt . "> ?" )
57 (inferior-ess-secondary-prompt . "^" )
58 (comint-use-prompt-regexp-instead-of-fields . t) ;; emacs 21 and up
59 (inferior-ess-program . inferior-XLS-program-name)
60 (inferior-ess-help-command . "(help '%s)\n" )
61 (inferior-ess-objects-command . "(variables)\n" )
62 (inferior-ess-exit-command . "(exit)\n" )
63 ;;(inferior-ess-start-args . ""))
64 (inferior-ess-start-file . nil))
65 "Variables to customize for XLS.")
67 ;;; The functions of interest (mode, inferior mode)
69 (defun XLS-mode (&optional proc-name)
70 "Major mode for editing XLispStat source. NOT EVEN STARTED."
71 (interactive)
72 (setq ess-customize-alist XLS-customize-alist)
73 (ess-mode XLS-customize-alist proc-name)
74 (setq major-mode 'XLS-mode))
76 (fset 'xlispstat-mode 'XLS-mode)
78 (defun XLS ()
79 "Call 'XLispStat', the Lisp statistical system from Luke Tierney."
81 (interactive)
82 (setq ess-customize-alist XLS-customize-alist)
83 (ess-write-to-dribble-buffer
84 (format "(XLS): ess-dialect=%s , buf=%s\n"
85 ess-dialect (current-buffer)))
86 (inferior-ess))
88 (defun xls-transcript-mode ()
89 "Does the right thing."
90 (interactive)
91 (ess-transcript-mode XLS-customize-alist))
93 (fset 'XLS-transcript-mode 'xls-transcript-mode)
95 \f ; Provide package
97 (provide 'essd-xls)
99 \f ; Local variables section
101 ;;; This file is automatically placed in Outline minor mode.
102 ;;; The file is structured as follows:
103 ;;; Chapters: ^L ;
104 ;;; Sections: ;;*;;
105 ;;; Subsections: ;;;*;;;
106 ;;; Components: defuns, defvars, defconsts
107 ;;; Random code beginning with a ;;;;* comment
109 ;;; Local variables:
110 ;;; mode: emacs-lisp
111 ;;; outline-minor-mode: nil
112 ;;; mode: outline-minor
113 ;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
114 ;;; End:
116 ;;; essd-xls.el ends here