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

Home » Public Forums » archive » Re: idlwave and emacs "empty input ring"
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: idlwave and emacs "empty input ring" [message #54098 is a reply to message #54094] Tue, 22 May 2007 13:56 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 21 May 2007 15:39:00 -0700, Rob wrote:

>
> If I close my emacs window w/o closing the IDL shell via "exit" then I
> lose the comint history for that session. If I first exit the IDL
> shell, then C-x C-s, when I restart emacs and C-c C-s a new IDL shell,
> the history from the last session is available. Is there anyway to
> have the IDL history autosave in case of a crash?

Hmmm, if you can't remember to quit directly (I use C-d), you might add
this to your idlwave-shell-mode-hook:

(add-hook 'kill-emacs-hook
(lambda ()
(let ((buf (idlwave-shell-buffer)))
(when (get-buffer buf)
(set-buffer buf)
(if (and idlwave-shell-save-command-history
(stringp idlwave-shell-command-history-file))
(condition-case nil
(comint-write-input-ring)
(error nil)))))))

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: redout of "name", "type" and "value" tags into a string
Next Topic: Re: 2D interpolation with sparse data

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

Current Time: Wed Oct 08 15:21:15 PDT 2025

Total time taken to generate the page: 0.00450 seconds