history of command prompt [message #54510] |
Tue, 19 June 2007 06:33  |
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  |
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  |
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  |
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  |
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.
|
|
|
|