;;; ess-omg-d.el --- Omega customization12;; Copyright (C) 1999 A. J. Rossini3;; Copyright (C) 2000--2004 A.J. Rossini, Richard M. Heiberger, Martin4;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.56;; Author: A.J. Rossini <[email protected]>7;; Created: 15 August 19998;; Maintainer: ESS-core <[email protected]>910;; Keywords: languages1112;; This file is part of ESS.1314;; This file is free software; you can redistribute it and/or modify15;; it under the terms of the GNU General Public License as published by16;; the Free Software Foundation; either version 2, or (at your option)17;; any later version.1819;; This file is distributed in the hope that it will be useful,20;; but WITHOUT ANY WARRANTY; without even the implied warranty of21;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the22;; GNU General Public License for more details.2324;; A copy of the GNU General Public License is available at25;; http://www.r-project.org/Licenses/2627;;; Commentary:2829;; This file defines all the S-PLUS 3.x customizations for ess-mode.3031;;; Code:3233;;; Requires and Autoloads:3435(require 'ess-omg-l)3637(autoload 'inferior-ess "ess-inf" "Run an ESS process.")38(autoload 'ess-mode "ess-mode" "Edit an ESS process.")3940(defvar OMG-dialect-name "OMG"41"Name of 'dialect' for Omega.") ;easily changeable in a user's .emacs4243(defvar OMG-customize-alist44'((ess-local-customize-alist . 'OMG-customize-alist)45(ess-language . "OMG")46(ess-dialect . "omegahat")47(ess-suffix . "omg")48(ess-loop-timeout . 5000)49(ess-dump-filename-template . (ess-replace-regexp-in-string50"S$" ess-suffix ; in the one from custom:51ess-dump-filename-template-proto))52(ess-mode-editing-alist . OMG-editing-alist)53(ess-mode-syntax-table . OMG-syntax-table)54(ess-change-sp-regexp . "");fixme (if omegahat ever ..)55(ess-help-sec-regex . ess-help-S+-sec-regex)56(ess-help-sec-keys-alist . ess-help-S+sec-keys-alist)57(ess-object-name-db-file . "ess-omg-namedb.el" )58(inferior-ess-program . inferior-OMG-program-name)59(inferior-ess-objects-command . "objects(%d)\n")60(inferior-ess-help-command . "help(\"%s\",pager=\"cat\",window=F)\n")61(inferior-ess-exit-command . "q()\n")62(inferior-ess-primary-prompt . "\\[[0-9]*\\]")63(inferior-ess-secondary-prompt . ".. ?")64(comint-use-prompt-regexp . t)65(inferior-ess-start-file . nil) ;"~/.ess-omg")66(inferior-ess-start-args . ""))67"Variables to customize for OMG (Omegahat)")686970(defun OMG (&optional start-args) ; proc-name)71"Call Omegahat, from the Omega Group for Statistical Computing."72(interactive "P")73(setq ess-customize-alist OMG-customize-alist)74(ess-write-to-dribble-buffer75(format "\n(OMG): ess-dialect=%s, buf=%s\n"76ess-dialect77(current-buffer)))78(let ((omg-start-args79(concat inferior-ess-start-args80(if start-args (read-string81"Starting Args [possibly -CORBA] ? ")82nil))))83(inferior-ess omg-start-args)))84858687(fset 'omegahat 'OMG)8889(defun OMG-mode (&optional proc-name)90"Major mode for editing Omegahat source. NOT EVEN STARTED."91(interactive)92(setq ess-customize-alist OMG-customize-alist)93(ess-mode OMG-customize-alist proc-name)94;;(java-mode)95(setq major-mode 'OMG-mode))9697(fset 'omegahat-mode 'OMG-mode)9899(defun OMG-transcript-mode ()100"Omegahat transcript mode."101(interactive)102(ess-transcript-mode OMG-customize-alist))103104; Provide package105106(provide 'ess-omg-d)107108; Local variables section109110;;; This file is automatically placed in Outline minor mode.111;;; The file is structured as follows:112;;; Chapters: ^L ;113;;; Sections: ;;*;;114;;; Subsections: ;;;*;;;115;;; Components: defuns, defvars, defconsts116;;; Random code beginning with a ;;;;* comment117118;;; Local variables:119;;; mode: emacs-lisp120;;; outline-minor-mode: nil121;;; mode: outline-minor122;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"123;;; End:124125;;; ess-omg-d.el ends here126127128