[ESS] REDO: iESS SAS--auto clear .log and .lst files before submitting code

Main, Regan rmain at rand.org
Mon Dec 15 18:27:32 CET 2008


>Main, Regan wrote:
>> Hi all--
>>
>> I am a new Emacs user running interactive SAS.  I have made some
>customizations, but have a couple of issues that continue to stymie me.
>>
>> 1.  If possible, I would like to find/modify lisp code to set up a
single
>keyboard macro similar to C-c C-r that:  1. Goes to *SAS.log* and
clears
>contents;  2. Goes to *SAS.lst* and clears contents;  3. Returns to
.sas
>and submits a selected block of code.
>> --If this request is too complicated, a lesser but still useful idea
I
>had would be to set up one keyboard macro that opens and clears both
the
>.log and .lst files and returns to the .sas buffer.  I could then
submit
>code the regular way with C-c C-r.
>
>>
>> 2. I have only been able to set up function keys to toggle between
saved
>.lst and .log buffers but not unsaved buffers.  For example, I can
toggle
>between foo.sas, foo.lst, and foo.log.  I can't open up foo.sas, run a
>block of code, and toggle between the unsaved *SAS.lst* and *SAS.log*
>buffers.
>>
>> If any of you have comments, suggestions, and/or lisp code that might
>address either of these issues, I would very much appreciate it.
>>
>> Thank you,
>> -Regan


>Hi Regan:
>
>Just to be clear.
>
>1) is this proposal similar to ...
>dm 'clear log';
>dm 'clear listing';
>and then execute?

I was not familiar with dm in interactive SAS, but I just tried it and I
think that is it exactly.  I have my F12 key defined in PC SAS with:
	output;clear;log;clear; gsubmit buffer=default

>2) I guess this would require changing the names of the buffers.  I
need
>to think about this carefully, but it sounds possible and plausible
>suggestion.

Great--thanks for considering this one!

>Rodney

If I can clarify anything else, please let me know.
-Regan


__________________________________________________________________________

This email message is for the sole use of the intended r...{{dropped:6}}




More information about the ESS-help mailing list