Xemacs/ESS on Mac OS X

Rodney Sparapani rsparapa at post.its.mcw.edu
Wed Jan 30 15:52:47 CET 2002


Christof:

You can't use xemacs with R on Mac OS since xemacs does not support AppleScript. 
Currently, only Emacs supports it.  Emacs 21.1 is available for OS X.1, but you 
have to patch it.  See http://mac-emacs.sourceforge.net/
You will also need the attached AppleScript patches.  Also, note that R on Mac 
only supports batch processing via AppleScript at this time.

Rodney

>
>Hi all,
>
>I'm new to the Xemacs/ESS world. I recently installed XEmacs 21.4 on my 
>Mac (OS X), which looks fine in X11. Since I want to run R with ESS 
>5.1.19, I installed this package, too, without changing anything in the 
>'ess-site.el' file.
>After starting up XEmacs, I get the following error (besides of some 
>keymapping/warnings):
>
>> (1) (initialization/error) An error has occurred while loading 
>> /Users/christof/.xemacs/init.el:
>>
>> Invalid byte code: "variable reference to constant symbol :group"
>> ...
>
>The content of the init.el file is:
>
>> (load "/sw/lib/xemacs/site-lisp/ess-5.1.19/lisp/ess-site")
>
>which is the path to the ess-site.el file.
>
>The content of the .emacs file is:
>
>> ;;; XEmacs backwards compatibility file
>> (setq user-init-file
>>       (expand-file-name "init.el"
>>                         (expand-file-name ".xemacs" "~")))
>> (setq custom-file
>>       (expand-file-name "custom.el"
>>                         (expand-file-name ".xemacs" "~")))
>>
>> (setq ess-ask-for-ess-directory)
>>
>> (load-file user-init-file)
>> (load-file custom-file)
>
>
>Furthermore, when I try to start R with M-x R, I get only into the 
>Rd-mode without R starting up.
>
>How can I check what went wrong?
>
>Thanks,
>Christof
>
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>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
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

Rodney Sparapani              Medical College of Wisconsin
Sr. Biostatistician           Patient Care & Outcomes Research (PCOR)
rsparapa at mcw.edu              http://www.mcw.edu/pcor
Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
-------------- next part --------------
*** open/emacs/emacs-21.1/src/mac.c	Thu Dec 27 11:12:26 2001
--- ./mac.c	Thu Dec 27 10:37:09 2001
***************
*** 2508,2513 ****
--- 2508,2521 ----
  }
  
  
+ DEFUN ("initialize-applescript", Finitialize_applescript, Sinitialize_applescript, 0, 0, 0,
+     "Initialize AppleScript.\n")
+      ()
+ {
+   initialize_applescript ();
+ }
+ 
+ 
  DEFUN ("do-applescript", Fdo_applescript, Sdo_applescript, 1, 1, 0,
      "Compile and execute AppleScript SCRIPT and retrieve and return the\n\
  result.  If compilation and execution are successful, the resulting script\n\
***************
*** 2755,2758 ****
--- 2763,2767 ----
    defsubr (&Sdo_applescript);
    defsubr (&Smac_file_name_to_posix);
    defsubr (&Sposix_file_name_to_mac);
+   defsubr (&Sinitialize_applescript);
  }
-------------- next part --------------
*** open/emacs/emacs-21.1/src/macterm.c	Thu Dec 27 11:12:27 2001
--- ./macterm.c	Thu Dec 27 10:37:36 2001
***************
*** 12342,12347 ****
--- 12342,12351 ----
  	if (er.modifiers
  	    & (NILP (Vmac_command_key_is_meta) ? optionKey : cmdKey))
  	  the_modifiers |= meta_modifier;
+ 
+ 	if (NILP (Vmac_command_key_is_meta) && (er.modifiers & cmdKey))
+ 	  the_modifiers |= alt_modifier;
+ 
  	bufp->modifiers	= the_modifiers;
  				
  	{
***************
*** 12854,12859 ****
--- 12858,12864 ----
  #endif
  
    mac_initialize_display_info ();
+   initialize_applescript ();
  }
  
  


More information about the ESS-help mailing list