baptiste auguie | 1 Jul 2009 10:09

Re: unicode character in aquamacs

This is getting silly, I have now upgraded aquamacs to the latest version,
and also installed emacs from Vincent Goulet's website, added preferences
such as,

(setq default-file-name-coding-system   'utf-8)
(setq file-name-coding-system           'utf-8)  ;; set in term/mac-win.el
(setq default-buffer-file-coding-system 'utf-8)
(set-default-coding-systems             'utf-8)
(prefer-coding-system                   'utf-8)
(set-language-environment "UTF-8")       ; unicode

but it still returns an error,

 plot(1, main=expression("\u03B3"))
Error: invalid \uxxxx sequence (line 1)

for both aquamacs and emacs.

Oh well, I'll have to live without unicode I guess. On a side note, opening
a r file in emacs, and hitting C-c M-b yields a "Starting evaluation..."
that never seems to finish (and I'm not sure how to kill it!). Is this
because I should start a R process first?

Many thanks for bearing with me,

Best,

baptiste

	[[alternative HTML version deleted]]
(Continue reading)

baptiste auguie | 1 Jul 2009 12:47

Re: unicode character in aquamacs

2009/7/1 Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>

> What does R say when you type the following:
>
> > Sys.getenv('LANG')
>          LANG
> "en_GB.UTF-8"
>

Interestingly, it says something different in the terminal or in emacs.
That's probably it then. In the terminal,

Sys.getenv('LANG')
         LANG
"en_GB.UTF-8"

while from emacs,

Sys.getenv('LANG')
LANG
  ""

and this is irrespective of whether I use ESS or run R from a buffer in bash
mode. Indeed, bash within emacs says,

bash-3.2$locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
(Continue reading)

Rodney Sparapani | 1 Jul 2009 16:06
Picon
Gravatar

Re: unicode character in aquamacs

baptiste auguie wrote:
> 2009/7/1 Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
> 
> 
>> What does R say when you type the following:
>>
>>> Sys.getenv('LANG')
>>          LANG
>> "en_GB.UTF-8"
>>
> 
> Interestingly, it says something different in the terminal or in emacs.
> That's probably it then. In the terminal,
> 
> Sys.getenv('LANG')
>          LANG
> "en_GB.UTF-8"
> 
> while from emacs,
> 
> Sys.getenv('LANG')
> LANG
>   ""
> 
> and this is irrespective of whether I use ESS or run R from a buffer in bash
> mode. Indeed, bash within emacs says,
> 
> bash-3.2$locale
> LANG=
> LC_COLLATE="C"
(Continue reading)

Kevin W | 1 Jul 2009 21:20
Picon

ess-help-mode fontification

Is ess-help mode fontified by default?  Mine is not, so I poked around in
ess-help.el but didn't see anything there.

I added this to .emacs

(add-hook 'ess-help-mode-hook
   (lambda ()
     (set (make-local-variable 'font-lock-defaults)
          '(ess-R-mode-font-lock-keywords t))))

That did some fontification, but not strings and comments.  How do I get
those too?

Kevin Wright

	[[alternative HTML version deleted]]

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Peter Kharchenko | 1 Jul 2009 23:35
Picon
Favicon

[Fwd: Re: how to stop ESS from switching to R window on its own?]

Just forwarding (for the archives) an answer I've received to my 
question. Works great now. Thanks Stephen!
-peter.
Picon Picon Favicon
From: Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
Subject: Re: [ESS] how to stop ESS from switching to R window on its own?
Date: 2009-05-28 19:45:04 GMT
>  I typically have two windows (as in window manager windows), with one
> having source code, another running R. When some R code is executing,
> and I am editing the source while that's happening, whenever I type an
> opening paren ESS either splits the source screen and shows the R
> process in there. If the source screen is already split, it shows R
> session in one of the existing panes. I imagine this is some kind of
> an autocomplete attempt. The problem is that the source panes are
> typically there exactly the way I want it, and I don't want ESS
> switching any views.

can you put this in your .emacs and see if it helps (before ess is
loaded)

(setq ess-r-args-electric-paren nil)

(Continue reading)

Kevin W | 2 Jul 2009 15:30
Picon

ess-help-mode fontification

Is ess-help mode fontified by default?  Mine is not, so I poked around in
ess-help.el but didn't see anything there.

I added this to .emacs

(add-hook 'ess-help-mode-hook
   (lambda ()
     (set (make-local-variable 'font-lock-defaults)
          '(ess-R-mode-font-lock-keywords t))))

That did some fontification, but not strings and comments.  How do I get
those too?

Kevin Wright

	[[alternative HTML version deleted]]

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

baptiste auguie | 2 Jul 2009 18:41

Re: unicode character in aquamacs

2009/7/1 Rodney Sparapani <rsparapa <at> mcw.edu>
>
>
>
> This is really not an ESS question.  I believe this has to do with
> how you create a default "environment" under OS X.  I'm not going to
> say more on this list, but the attachment might give you some ideas
> how to fix it.
>
> Rodney
>

You're right, the problem is now identified as my incompetence to set up
emacs properly on Mac OSX. I'll probably try the aquamacs list (that is, if
I can resist much longer the temptation to revert to a more intuitive text
editor).

Thanks again everyone for the ideas,

baptiste

	[[alternative HTML version deleted]]

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Kasper Daniel Hansen | 2 Jul 2009 20:43
Picon

Re: unicode character in aquamacs

This is not that hard to fix. THe problem is that GUI applications on  
OS X don't care at all what settings you have  
in .bashrc/.profile/.bash_login. There are two solutions
   1) Figure out how to set it in Emacs (which may be hard)
   2) set up an "environment.plist" which is a file that essentially  
functions as .bashrc for GUIs.
Google environment.plist or see the links in the previous email.

Note that I am sure that the settings in the *shell* in Emacs can be  
different from the settings for other buffers.

Kasper

On Jul 2, 2009, at 9:41 , baptiste auguie wrote:

> 2009/7/1 Rodney Sparapani <rsparapa <at> mcw.edu>
>>
>>
>>
>> This is really not an ESS question.  I believe this has to do with
>> how you create a default "environment" under OS X.  I'm not going to
>> say more on this list, but the attachment might give you some ideas
>> how to fix it.
>>
>> Rodney
>>
>
>
> You're right, the problem is now identified as my incompetence to  
> set up
(Continue reading)

baptiste auguie | 2 Jul 2009 20:55

Re: unicode character in aquamacs

Excellent! That's a relief, and a good thing to know.

defaults write ~/.MacOSX/environment LANG en_GB.UTF-8
defaults write ~/.MacOSX/environment LC_ALL en_GB.UTF-8

did the trick (not sure both were needed, one needs to log out / log in
again to see the effect).

Thank you all,

baptiste

2009/7/2 Kasper Daniel Hansen <khansen <at> stat.berkeley.edu>

> This is not that hard to fix. THe problem is that GUI applications on OS X
> don't care at all what settings you have in .bashrc/.profile/.bash_login.
> There are two solutions
>  1) Figure out how to set it in Emacs (which may be hard)
>  2) set up an "environment.plist" which is a file that essentially
> functions as .bashrc for GUIs.
> Google environment.plist or see the links in the previous email.
>
> Note that I am sure that the settings in the *shell* in Emacs can be
> different from the settings for other buffers.
>
> Kasper
>
>
>
> On Jul 2, 2009, at 9:41 , baptiste auguie wrote:
(Continue reading)

Daniel Muenz | 10 Jul 2009 20:37
Picon

How to kill a SAS batch job


Hi all, I have two questions related to killing SAS batch jobs which were
submitted with ESS.

1.  Is there an ESS command or some easy way within Emacs to kill a SAS
batch job?  Say a program I submitted with ESS has been running longer than
I think it should and I just want to kill it, what's the easiest way to do
this?  Just as I have F3 bound to submitting the code, it would be great if
I could have some other key bound to killing it.

2.  When I exit Emacs, is there a way to automatically kill all running SAS
jobs which were submitted through ESS?  If I have another copy of Emacs
open with its own submitted SAS jobs, I don't want those to be affected,
and similarly if I've got an xterm window open with SAS jobs running.

Thanks very much for all your help -- this list has been a great resource,
Daniel

______________________________________________
ESS-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Gmane