(ess-r-args-get): Do not use zap-to-char within defun,
[ess.git] / lisp / essd-sp3.el
blobba5194147f4419f58b27e4c39164801e80a9cd9c
1 ;;; essd-sp3.el --- S-PLUS 3.x customization
3 ;; Copyright (C) 1997--2004 A.J. Rossini, Rich M. Heiberger, Martin
4 ;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
6 ;; Original Author: A.J. Rossini <rossini@u.washington.edu>
7 ;; Created: 12 Jun 1997
8 ;; Maintainers: ESS-core <ESS-core@stat.math.ethz.ch>
10 ;; Keywords: start up, configuration.
12 ;; This file is part of ESS.
14 ;; This file is free software; you can redistribute it and/or modify
15 ;; it under the terms of the GNU General Public License as published by
16 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; any later version.
19 ;; This file is distributed in the hope that it will be useful,
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;; GNU General Public License for more details.
24 ;; You should have received a copy of the GNU General Public License
25 ;; along with GNU Emacs; see the file COPYING. If not, write to
26 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
28 ;;; Commentary:
29 ;;; This file defines all the S-PLUS 3.x customizations for ess-mode.
31 ;;; Requires and Autoloads:
33 (require 'essl-s)
35 (autoload 'inferior-ess "ess-inf" "Run an ESS process.")
36 (autoload 'ess-mode "ess-mode" "Edit an ESS process.")
38 ;;; Code:
40 (defvar S+3-dialect-name "S+3"
41 "Name of 'dialect' for S-PLUS 3.x.");easily changeable in a user's .emacs
43 (defvar S+3-customize-alist
44 (append
45 '((ess-local-customize-alist . 'S+3-customize-alist)
46 (ess-dialect . S+3-dialect-name)
47 (ess-loop-timeout . ess-S-loop-timeout);fixme: dialect spec.
48 (ess-object-name-db-file . "ess-s+3-namedb.el" )
49 (inferior-ess-program . inferior-S+3-program-name)
50 (inferior-ess-help-command . "help(\"%s\",pager=\"cat\",window=F)\n")
51 (inferior-ess-help-filetype . nil)
52 (inferior-ess-search-list-command . "search()\n")
53 (inferior-ess-start-file . nil) ;"~/.ess-S+3")
54 (inferior-ess-start-args . "")
55 (ess-STERM . "iESS")
57 S+common-cust-alist)
59 "Variables to customize for S+3.")
62 (defun S+3 (&optional proc-name)
63 "Call 'S-PLUS 3.x', the 'Real Thing' from StatSci."
64 (interactive)
65 (setq ess-customize-alist S+3-customize-alist)
66 (ess-write-to-dribble-buffer
67 (format "\n(S+3): ess-dialect=%s, buf=%s\n" ess-dialect (current-buffer)))
68 (inferior-ess)
69 (if inferior-ess-language-start
70 (ess-eval-linewise inferior-ess-language-start)))
72 (defun S+3-mode (&optional proc-name)
73 "Major mode for editing S+3 source. See `ess-mode' for more help."
74 (interactive)
75 (setq ess-customize-alist S+3-customize-alist)
76 (ess-mode S+3-customize-alist proc-name)
77 (if ess-imenu-use-S (ess-imenu-S)))
79 (defun S+3-transcript-mode ()
80 "S-PLUS 3.x transcript mode."
81 (interactive)
82 (ess-transcript-mode S+3-customize-alist))
86 \f ; Provide package
88 (provide 'essd-sp3)
90 \f ; Local variables section
92 ;;; This file is automatically placed in Outline minor mode.
93 ;;; The file is structured as follows:
94 ;;; Chapters: ^L ;
95 ;;; Sections: ;;*;;
96 ;;; Subsections: ;;;*;;;
97 ;;; Components: defuns, defvars, defconsts
98 ;;; Random code beginning with a ;;;;* comment
100 ;;; Local variables:
101 ;;; mode: emacs-lisp
102 ;;; outline-minor-mode: nil
103 ;;; mode: outline-minor
104 ;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
105 ;;; End:
107 ;;; essd-sp3.el ends here