ESS and XEmacs\emacs

Rodney Sparapani rsparapa at post.its.mcw.edu
Tue Apr 24 15:59:24 CEST 2001


Shawn:

I don't use R, but your XEmacs problem can be fixed if you place the following 
in .emacs before (load "d:/emacs/ess-5.1.18/lisp/ess-site"):


(if (fboundp 'w32-shell-dos-semantics) nil

(defvar w32-system-shells '("cmd" "cmd.exe" "command" "command.com"
			    "4nt" "4nt.exe" "4dos" "4dos.exe"
			    "ndos" "ndos.exe")
  "List of strings recognized as Windows NT/9X system shells.")

(defun w32-using-nt ()
  "Return t if literally running on Windows NT (i.e., not Windows 9X)."
  (and (eq system-type 'windows-nt) (getenv "SystemRoot")))

(defun w32-shell-name ()
  "Return the name of the shell being used."
  (or (and (boundp 'explicit-shell-file-name) explicit-shell-file-name)
      (getenv "ESHELL")
      (getenv "SHELL")
      (and (w32-using-nt) "cmd.exe")
      "command.com"))

(defun w32-system-shell-p (shell-name)
  (and shell-name
       (member (downcase (file-name-nondirectory shell-name)) 
	       w32-system-shells)))

(defun w32-shell-dos-semantics ()
  "Return t if the interactive shell being used expects msdos shell semantics."
  (or (w32-system-shell-p (w32-shell-name))
      (and (member (downcase (file-name-nondirectory (w32-shell-name)))
		   '("cmdproxy" "cmdproxy.exe"))
	   (w32-system-shell-p (getenv "COMSPEC")))))
)


Rodney Sparapani              Medical College of Wisconsin
Sr. Biostatistician           Patient Care & Outcomes Research (PCOR)
rsparapa at mcw.edu              8701 Watertown Plank Rd., Rm. H2775
(414) 456-8786 (FAX: 6689)    PO Box 26509, Milwaukee, WI  53226-0509


>From: Shawn Way <sway at tanox.com>
>To: "'ess-help at stat.math.ethz.ch'" <ess-help at stat.math.ethz.ch>
>Subject: ESS and XEmacs\emacs
>Date: Tue, 24 Apr 2001 08:52:19 -0500
>MIME-Version: 1.0
>
>For the las couple of days I've tried to install ESS on both XEmacs and
>emacs.
>I'm using XEmacs 21.1 and emacs 20.7.1 on a Windows 2000 Machine.  The path
>to the R bin directory is set in the path.
>
>On XEmacs, when I start the application, I get a void:
>w32-shell-dos-semantics error.
>my .emacs file has the following:
>(load "d:/emacs/ess-5.1.18/lisp/ess-site")
>
>I then dired to the d:/emacs/ess-5.1.18/lisp/ess-site and typed M-x R but
>XEmacs cannot find the Rterm.  I've tried assigning the inferior R but the
>process will not keep running.
>
>On emacs, my .emacs file has the following:
>(load "d:/emacs/ess-5.1.18/lisp/ess-site")
>I then dired to the d:/emacs/ess-5.1.18/lisp/ess-site and typed M-x R but
>all I get is a completion selection, R does not start.
>
>AARRRRGGGHHH!!!!!!
>
>Any tips?
>
>Shawn Way	Tanox, Inc.
>Process Engineer	10301 Stella Link
>sway at tanox.com	Houston, TX 77025
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>ess-help mailing list -- To (un)subscribe, send
>subscribe	or	unsubscribe
>(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list