Initial Commit
[packages] / xemacs-packages / ess / lisp / essd-s3.el
1 ;;; essd-s3.el ---  S 3 (AT&T version) customization
2
3 ;; Copyright (C) 1997 A. J. Rossini
4 ;; Copyright (C) 1998--2005 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: 12 Jun 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 defines all the S 3 customizations for ess-mode.
31
32 ;;; Requires and Autoloads:
33
34 (require 'essl-s)
35
36 (autoload 'inferior-ess "ess-inf" "Run an ESS process.")
37
38 ;;; Code:
39
40 (defvar S3-customize-alist
41   (append
42   '((ess-local-customize-alist     . 'S3-customize-alist)
43     (ess-dialect                   . "S3")
44      (ess-loop-timeout                  . ess-S-loop-timeout);fixme: dialect spec.
45      (ess-change-sp-regexp              . ess-S-change-sp-regexp)
46      (ess-help-sec-keys-alist           . ess-help-S3-sec-keys-alist)
47     (ess-object-name-db-file       . "ess-s3-namedb.el" )
48     (inferior-ess-program          . inferior-S3-program-name) ;        "S")
49     (inferior-ess-help-command     . "help(\"%s\")\n")
50      (inferior-ess-search-list-command  . "search()\n")
51     (inferior-ess-objects-command  . "objects(%d)\n")
52     (inferior-ess-start-file       . nil) ;"~/.ess-S3")
53     (inferior-ess-start-args       . "")
54     (ess-STERM  . "iESS")
55     )
56    S+common-cust-alist); use S+ ones here; partly overwritten above!!
57
58   "Variables to customize for S3")
59
60 (defun S3 (&optional proc-name)
61   "Call 'S 3.x', the version from AT&T."
62   (interactive)
63   (setq ess-customize-alist S3-customize-alist)
64   (ess-write-to-dribble-buffer
65    (format "\n(S3): ess-dialect=%s, buf=%s\n" ess-dialect (current-buffer)))
66   (inferior-ess)
67   (if inferior-ess-language-start
68       (ess-eval-linewise inferior-ess-language-start)))
69
70
71 (defun S3-mode (&optional proc-name)
72   "Major mode for editing S3 source.  See `ess-mode' for more help."
73   (interactive)
74   (setq ess-customize-alist S3-customize-alist)
75   (ess-mode S3-customize-alist proc-name)
76   (if ess-imenu-use-S (ess-imenu-R)))
77
78
79 \f ; Provide package
80
81 (provide 'essd-s3)
82
83 \f ; Local variables section
84
85 ;;; This file is automatically placed in Outline minor mode.
86 ;;; The file is structured as follows:
87 ;;; Chapters:     ^L ;
88 ;;; Sections:    ;;*;;
89 ;;; Subsections: ;;;*;;;
90 ;;; Components:  defuns, defvars, defconsts
91 ;;;              Random code beginning with a ;;;;* comment
92
93 ;;; Local variables:
94 ;;; mode: emacs-lisp
95 ;;; outline-minor-mode: nil
96 ;;; mode: outline-minor
97 ;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
98 ;;; End:
99
100 ;;; essd-s3.el ends here