Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata and Emacs interactively


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: Stata and Emacs interactively
Date   Wed, 20 Oct 2010 13:38:28 +0200

Am Mittwoch, den 20.10.2010, 11:15 +0000 schrieb Neil Shephard:
> On Wed, Oct 20, 2010 at 11:07 AM, Ulrich Kohler <[email protected]> wrote:
> > Unfortunately Bill's adomode have the feature of sending commands to
> > Stata "only" for Windows and the Mac. If you find a solution for Linux
> > this would be great.
> 
> May depend on your Desktop Environment, but under X11 you should be
> able to highlight a section of code in Emacs (or any other text
> editor).  This will copy it to a buffer ring, then switch to your
> running xstata (either Alt-Tab or switch desktop if its on a separate
> desk-top) and use the left-right mouse simultaneous click to paste the
> code into the Command dialog box of Stata and hit Return.
> 
> The only disadvantage to this that I've come across is that code
> commented out within a command won't be run properly, for example...
> 
> logistic a b c /* d e f */, level(99)
> 
> ...won't work if pasted.
> 
> Whole lines of commented code are not a problem though, Stata will
> simply say that '/' is an invalid command and move onto the next line
> (it also ignores lines that have been commented out with a '*' at the
> first line).

Yes, but in Bill Rising's Ado mode I can run a command like this

graph twoway ///
  || scatter this that /// 
     , with options here and there
  || lowess this that ///
     , even some more options
  || if exp ///
  , and finally the tw-options


directly by just putting the cursor on the command and hit M-Return.
However this works only in Windows and Mac. As a Linux-User I would love
to have this too. 






*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index