comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ascii templates & also IDL from emacs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ascii templates & also IDL from emacs [message #15797] Sun, 13 June 1999 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <37613B83.D976FEA6@dfanning.com> Dick Jackson
<djackson@dfanning.com> writes:

> noymer@my-deja.com wrote:
[...]
>> Also: Has anyone had success calling IDL for Windows as a sub-process
>> of NT-Emacs?

> If you mean the way that you can run idlwave-shell (formerly
> idl-shell) in an Emacs buffer with Unix-Emacs, I'm afraid not. Some
> time back, IDL for Windows *did* work as a command-line program, but
> alas, this has been lost with the advent of IDLDE. I have requested
> from RSI that this be reinstated if possible, but to no effect as yet.

> Of course you can still use Emacs as your editor, then ask IDLDE to
> reload it after each save you do from Emacs. But it *sure* would be
> nice to have idlwave-shell...

It looks like running IDL as an RPC server isn't possible for
non-unix platforms, but Callable IDL should be ok, no?

What I normally do is to run a slightly modified version of the
idl/external/rpc/example.c program as a command line input loop,
passing all input on to the idlrpc process. For most practical
purposes (other than interrupting operation with Ctrl-C, and
using multi-line commands) it looks as if I'm running the
normal, tty input IDL under idlwave-shell).

Now, it shouldn't be too difficult to make a Callable IDL
version of this setup, simply writing a main program that
initializes IDL, and sends all input to the IDL_ExecuteStr
(instead of IDL_RPCExecuteStr). Voila, and you've created your
own tty-input version of IDL.... I think.

Regards,

Stein Vidar
Re: ascii templates & also IDL from emacs [message #15804 is a reply to message #15797] Fri, 11 June 1999 00:00 Go to previous message
Vapuser is currently offline  Vapuser
Messages: 63
Registered: November 1998
Member
noymer@my-deja.com writes:

> Thanks to those who responded to my previous query; this seems like a
> friendly group.
>
> I am wondering about the gooey routine ascii_template, as in:
> myTemplate = ASCII_TEMPLATE(myfile)
>
> Is there a way to specify a template by hand, in a template file,
> without going through the darn gooey? For one thing, it doesn't seem
> to save the template, so each session I have to redo it. Maybe that's
> because I have the student version?
>

I haven't used ascii_template that much. It returns a structure,
which you than pass to read_ascii via the 'template=' keyword, right?
If you're reading files that have the same structure, you can just
save the template to a save set (using save,variable,file=filename)
which you restore when required. If you're talking about creating the
template on demand, either you go through the Gui, or you prize apart
how the structure works and fill the fields by hand. Then return to
the previous step.


> Also: Has anyone had success calling IDL for Windows as a sub-process
> of NT-Emacs?
>

Don't know.


> Thanks,
> Andrew.
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

--
William Daffer: 818-354-0161: vapuser@catspaw.jpl.nasa.gov
Re: ascii templates & also IDL from emacs [message #15807 is a reply to message #15804] Fri, 11 June 1999 00:00 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
noymer@my-deja.com wrote:
>
> Thanks to those who responded to my previous query; this seems like a
> friendly group.

We try to be nice. :-)

> Also: Has anyone had success calling IDL for Windows as a sub-process
> of NT-Emacs?

If you mean the way that you can run idlwave-shell (formerly
idl-shell) in an Emacs buffer with Unix-Emacs, I'm afraid not. Some
time back, IDL for Windows *did* work as a command-line program, but
alas, this has been lost with the advent of IDLDE. I have requested
from RSI that this be reinstated if possible, but to no effect as yet.

Of course you can still use Emacs as your editor, then ask IDLDE to
reload it after each save you do from Emacs. But it *sure* would be
nice to have idlwave-shell...

Cheers,
--
-Dick

Dick Jackson Fanning Software Consulting, Canadian Office
djackson@dfanning.com Calgary, Alberta Voice/Fax: (403) 242-7398
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with non-modal children of modal dialogs
Next Topic: SGI 6.5 and CALL_EXT Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 22:30:27 PDT 2025

Total time taken to generate the page: 0.23709 seconds