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

Home » Public Forums » archive » history of command prompt
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
history of command prompt [message #54510] Tue, 19 June 2007 06:33 Go to next message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi there,

a question that bothers me for quite some time: is there a way in IDL to
have a history that exceeds the 32 entries that I currently have with
the default? Something like 500 would be nice :)

Should it matter: IDL 6.1 running on SuSE linux, using Emacs as an editor.

Best regards,
Ingo
--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
Re: history of command prompt [message #54608 is a reply to message #54510] Wed, 20 June 2007 16:51 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jun 20, 1:31 am, Ingo von Borstel <newsgro...@planetmaker.de>
wrote:
> Is it something introduced after version 6.1?

Sorry, I didn't think of that. Yes, this was introduced in IDL 6.2.

Mike
--
www.michaelgalloy.com
Re: history of command prompt [message #54610 is a reply to message #54510] Wed, 20 June 2007 14:32 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 20 Jun 2007 09:36:41 +0200, Ingo von Borstel wrote:

> Hi,
>
>> [quoted text muted]
>
> Thanks for your advice. But it's the same as with Mark's one: Seems like
> my idlwave / emacs-combination doesn't know that particular
> configuration option. Upon your hint (being not very familiar with the
> zillions of emacs configuration options), I found the IDLwave group in
> the configuration menue and checked every single one within that
> category and its subcategories, but without success. There doesn't seem
> to be an option relating to the command history :(

This config variable is a generic option for setting the history length
for any "comint" mode, including shell, idlwave, and many others. That's
why you didn't find it under the IDLWave group (all those variables will
start with "idlwave-"). Since by default the history save length is much
greater than 32 lines, I assume you are running IDL outside of Emacs?

Note that IDLWAVE's callback history is completely separate from IDL's.
For a long time, it was the only way to have "persistent" command history
between sessions (but I guess IDL 6.4 fixed that ?). It wasn't at all
clear if you are using the IDLWAVE shell (i.e. an *idl* buffer will be
present in your Emacs session), or just using Emacs + IDLWAVE to edit your
".pro" files.

JD
Re: history of command prompt [message #54621 is a reply to message #54510] Wed, 20 June 2007 08:07 Go to previous message
Matt[2] is currently offline  Matt[2]
Messages: 69
Registered: March 2007
Member
On Jun 20, 1:36 am, Ingo von Borstel <newsgro...@planetmaker.de>
wrote:
> Hi,
>
>> Also, if you are using emacs with idlwave then you can change the size
>> of the history by changing the variable 'comint-input-ring-size' - see
>> "Idlwave Shell Command History File" in Customize->Idlwave Shell
>> Command Setup.

> I'm starting to think there's something weired, but all is basically the
> defaults, both IDL and emacs. :(
>

Sorry, I didn't see that you were using emacs. I belive JD has
answered this before, but why don't you try.
customizing you comint-input-ring-size variable in emacs. This is
what I use for idlwave.

(setq comint-input-ring-size 1024)

This is what I use.

--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
Re: history of command prompt [message #54631 is a reply to message #54510] Wed, 20 June 2007 04:04 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jun 20, 3:45 am, Ingo von Borstel <newsgro...@planetmaker.de>
wrote:
> Hi,> Go on "FILE > PREFERENCES..."
>> In "COMMAND RECALL BUFFER" you can change it.
>
> While this changes the buffer size in the IDLDE, it doesn't change it
> for command line usage. Unfortunately that's what I'd rather have...

In older versions of IDL, one changed the command line recall buffer
by setting the !EDIT_INPUT system variable in the startup file, e.g.
place

!EDIT_INPUT = 600

in your startup file to get a recall buffer of 600 lines.
Re: history of command prompt [message #54634 is a reply to message #54510] Wed, 20 June 2007 00:31 Go to previous message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hi,
>
> IDL> print, pref_get('IDL_RBUF_SIZE')

Hm,... looks like my IDL doesn't know any function like pref_get()

Is it something introduced after version 6.1?

Best regards,
Ingo


--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: main or procedure
Next Topic: Re: segmentation fault error in IDL

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

Current Time: Wed Oct 08 15:17:32 PDT 2025

Total time taken to generate the page: 0.00754 seconds