[ESS] REDO: iESS SAS--auto clear .log and .lst files before submitting code
Rodney Sparapani
rsparapa at mcw.edu
Mon Dec 15 17:59:53 CET 2008
Main, Regan wrote:
> I apologize for re-posting. I was just checking the archives and noticed my posting yesterday didn't submit quite right. It posted as a link that I had trouble accessing. I think it might have been caused by formatting in Outlook. Below is what I was trying to submit. Thanks for your patience.
>
> 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?
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.
Rodney
More information about the ESS-help
mailing list