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