forked from emacs-ess/ESS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ess-sp3-d.el
105 lines (78 loc) · 3.28 KB
/
ess-sp3-d.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
;;; ess-sp3-d.el --- S-PLUS 3.x customization
;; Copyright (C) 1997--2004 A.J. Rossini, Richard M. Heiberger, Martin
;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
;; Author: A.J. Rossini <[email protected]>
;; Created: 12 Jun 1997
;; Maintainer: ESS-core <[email protected]>
;; Keywords: languages
;; This file is part of ESS.
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; A copy of the GNU General Public License is available at
;; http://www.r-project.org/Licenses/
;;; Commentary:
;; This file defines all the S-PLUS 3.x customizations for ess-mode.
;;; Code:
(autoload 'inferior-ess "ess-inf" "Run an ESS process.")
(autoload 'ess-mode "ess-mode" "Edit an ESS process.")
(require 'ess-s-l)
(defvar S+3-dialect-name "S+3"
"Name of 'dialect' for S-PLUS 3.x.");easily changeable in a user's .emacs
(defvar S+3-customize-alist
(append
'((ess-local-customize-alist . 'S+3-customize-alist)
(ess-dialect . S+3-dialect-name)
(ess-loop-timeout . ess-S-loop-timeout);fixme: dialect spec.
(ess-object-name-db-file . "ess-s+3-namedb.el" )
(inferior-ess-program . inferior-S+3-program-name)
(inferior-ess-help-command . "help(\"%s\", pager=\"cat\", window=FALSE)\n")
(inferior-ess-help-filetype . nil)
(inferior-ess-search-list-command . "search()\n")
(inferior-ess-start-file . nil) ;"~/.ess-S+3")
(inferior-ess-start-args . "")
(ess-STERM . "iESS")
)
S+common-cust-alist)
"Variables to customize for S+3.")
(defun S+3 (&optional proc-name)
"Call 'S-PLUS 3.x', the 'Real Thing' from StatSci."
(interactive)
(setq ess-customize-alist S+3-customize-alist)
(ess-write-to-dribble-buffer
(format "\n(S+3): ess-dialect=%s, buf=%s\n" ess-dialect (current-buffer)))
(inferior-ess)
(if inferior-ess-language-start
(ess-eval-linewise inferior-ess-language-start)))
(defun S+3-mode (&optional proc-name)
"Major mode for editing S+3 source. See `ess-mode' for more help."
(interactive)
(setq ess-customize-alist S+3-customize-alist)
(ess-mode S+3-customize-alist proc-name)
(if ess-imenu-use-S (ess-imenu-S)))
(defun S+3-transcript-mode ()
"S-PLUS 3.x transcript mode."
(interactive)
(ess-transcript-mode S+3-customize-alist))
; Provide package
(provide 'ess-sp3-d)
; Local variables section
;;; This file is automatically placed in Outline minor mode.
;;; The file is structured as follows:
;;; Chapters: ^L ;
;;; Sections: ;;*;;
;;; Subsections: ;;;*;;;
;;; Components: defuns, defvars, defconsts
;;; Random code beginning with a ;;;;* comment
;;; Local variables:
;;; mode: emacs-lisp
;;; outline-minor-mode: nil
;;; mode: outline-minor
;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
;;; End:
;;; ess-sp3-d.el ends here