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

Home » Public Forums » archive » Re: I for Interactive Programming? (was: widget_control and group_leader)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: I for Interactive Programming? (was: widget_control and group_leader) [message #23089 is a reply to message #23087] Fri, 05 January 2001 07:54 Go to previous messageGo to previous message
Vapuser is currently offline  Vapuser
Messages: 63
Registered: November 1998
Member
JD Smith <jdsmith@astro.cornell.edu> writes:

<snip>

> Hear Hear! I've got something even better (from Carsten, of course).
> I'm not sure if this has been put into IDLWAVE yet as a more palatable
> form (I vote for it), but if you have version >4.7b (meaning when 4.8
> comes out, if you're leary of alpha's) you can simply use in your
> .emacs:
>
> (add-hook 'idlwave-shell-mode-hook
> (lambda ()
> (set (make-local-variable 'comint-input-ring-file-name)
> "~/.idlwhist")
> (comint-read-input-ring)))
>
> (add-hook 'idlwave-shell-sentinel-hook 'comint-write-input-ring)
>
> I.e. just set up a "comint input ring filename" to ~/.idlwhist (or
> whatever you like), and ensures it is read in when the shell starts (in
> the idlwave-shell-mode-hook), and written out after it exits (in the
> idlwave-shell-sentinel-hook).
>
> This way, you always get all of your input history (which is actually
> maintained by comint, not IDL), between sessions, etc. Now restarting
> IDL is not nearly so painful. The commands are still right there, at
> your fingertips.
>
> Never wonder where your command history went again. And for the really
> brave, try:
>
> (setq comint-input-ring-size 1024)
>
> outside of your idlwave-shell-mode-hook (since comint runs before
> idlwave-shell). Now you'll have the silly command you tried 3 weeks
> ago, somewhere in there. By the way, try [C-c C-l] to see your entire
> history in another buffer, with ability to scroll through it and click
> on the command you're after (or cut and paste between many such
> commands). .idlwhist is a plain file, which you can search through
> using grep or a pager or however you like, if you don't want to load
> IDL.
>
> Good luck,
>
> JD

Man! I have to put you on my Christmas Card list!

Thanks!

whd
--
William Daffer: 818-354-0161: William.Daffer@jpl.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: N-dimensional rotation
Next Topic: Re: I for Interactive Programming? (was: widget_control and group_leader)

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

Current Time: Wed Oct 08 20:14:25 PDT 2025

Total time taken to generate the page: 0.00440 seconds