Initial Commit
[packages] / xemacs-packages / ess / lisp / essd-vst.el
1 ;;; essd-vst.el --- ViSta customization
2
3 ;; Copyright (C) 1997 A. J. Rossini
4 ;; Copyright (C) 1997--2004 A.J. Rossini, Rich M. Heiberger, Martin
5 ;;      Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
6
7 ;; Original Author: A.J. Rossini <rossini@u.washington.edu>
8 ;; Created: 26 Aug 1997
9 ;; Maintainers: ESS-core <ESS-core@stat.math.ethz.ch>
10
11 ;; Keywords: start up, configuration.
12
13 ;; This file is part of ESS
14
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.
19
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.
24
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.
28
29 ;;; Commentary:
30 ;;; This file extends the XLispStat configuration for ViSta.
31
32
33 ;;; Requires and Autoloads:
34
35 (require 'essl-lsp)
36
37 (autoload 'inferior-ess "ess-inf" "Run an ESS process.")
38
39 ;;; Code:
40
41 (defvar VST-customize-alist
42   '((ess-customize-alist           .  VST-customize-alist )
43     (ess-language                  .  "XLS"               )
44     (ess-dialect                   .  "ViSta"             )
45     (ess-loop-timeout              .  ess-XLS-loop-timeout)
46     (ess-object-name-db-file       .  "ess-xls-namedb.el" )
47     (ess-help-sec-regex            .  " ")
48     (ess-help-sec-keys-alist       .  " ")
49     (inferior-ess-primary-prompt   .  "> ?"               )
50     (comint-use-prompt-regexp-instead-of-fields . t) ;; emacs 21 and up
51     (inferior-ess-program          .  inferior-VST-program-name)
52     (inferior-ess-help-command     .  "(help '%s)\n"      )
53     (inferior-ess-objects-command  .  "(variables)\n"     )
54     (inferior-ess-exit-command     .  "(exit)\n"          )
55     (inferior-ess-start-file       . nil) ;"~/.ess-VST")
56     ;;(inferior-ess-start-args       . nil)
57     )
58   "Variables to customize for XLS.")
59
60
61 (defun VST-mode (&optional proc-name)
62   "Major mode for editing ViSta source.  NOT EVEN STARTED."
63   (interactive)
64   (setq ess-customize-alist VST-customize-alist)
65   (lisp-mode))
66
67
68 (defun ViSta ()
69   "Call 'ViSta', the extend XLispStat statistical system, from Forrest Young."
70
71   (interactive)
72   (setq ess-customize-alist VST-customize-alist)
73   (ess-write-to-dribble-buffer
74    (format "(ViSta): ess-dialect=%s , buf=%s\n"
75            ess-dialect (current-buffer)))
76   (inferior-ess))
77
78 \f ; Provide package
79
80 (provide 'essd-vst)
81
82 \f ; Local variables section
83
84 ;;; This file is automatically placed in Outline minor mode.
85 ;;; The file is structured as follows:
86 ;;; Chapters:     ^L ;
87 ;;; Sections:    ;;*;;
88 ;;; Subsections: ;;;*;;;
89 ;;; Components:  defuns, defvars, defconsts
90 ;;;              Random code beginning with a ;;;;* comment
91
92 ;;; Local variables:
93 ;;; mode: emacs-lisp
94 ;;; outline-minor-mode: nil
95 ;;; mode: outline-minor
96 ;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
97 ;;; End:
98
99 ;;; ess-site.el ends here