ESS and Different Versions of SAS

Rodney Sparapani rsparapa at
Thu May 22 16:11:07 CEST 2003


There is no provision for choosing different versions of SAS with M-x SAS.  
Probably an oversite, but few are using SAS interactively.  However, there is an 
experimental procedure that might work called ess-sas-interactive
You set your version of SAS by altering ess-sas-submit-command which is 
buffer-local.  However, there is a bug in XEmacs versions 21.4.9-21.4.12 
preventing you from using the Local Variables trick.  I'm attaching the patch 
that fixes that.  ESS 5.1.24 has not been thoroughly tested with early versions 
of XEmacs so I'm guessing it will not work with them.  20.0 is especially 
problematic.  So, your best bet is 21.4.12 with the applied patch.

Good luck, Rodney

>Sorry, good question - interactively.  I recognize that this isn't
>ideal, but this isn't for me - it's for someone else in my group who
>wants to do this.  Is it possible to do this?  Thanks.  (By the way, I
>realize that there's an error in my original message; it should say
>"... as M-x SAS resets this to ....".)

Rodney Sparapani              Medical College of Wisconsin
Sr. Biostatistician           Patient Care & Outcomes Research
rsparapa at    
Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
-------------- next part --------------
--- lisp/files.el~	2003-01-07 20:49:22.000000000 -0800
+++ lisp/files.el	2003-05-06 17:46:56.000000000 -0700
@@ -2724,7 +2724,14 @@
 		    ;; The resultant buffer is identical, alter
 		    ;; modtime, update mods and exit
-		    (after-find-file nil nil t t t))
+		    (after-find-file nil nil t t t)
+		    ;; We preserved modes above so fixup the local
+		    ;; variables manually
+		    (condition-case err
+			(hack-local-variables)
+		      (error (lwarn 'local-variables 'warning
+			       "File local-variables error: %s"
+			       (error-message-string err)))))
 		   (t t))

More information about the ESS-help mailing list