IDLWAVE EMACS QUESTION [message #34872] |
Tue, 29 April 2003 11:04  |
Karthikayan Balakrish[1]
Messages: 5 Registered: April 2003
|
Junior Member |
|
|
Hello All,
I tried the structure completion in IdlWAVE by adding
(add-hook 'idlwave-load-hook
(lambda () (require 'idlw-complete-structtag)))
in my .emacs file and then proceeded to add the
idlw-complete-structtag.el file to /usr/local/share/emacs/site-lisp/
where the rest of the idl*.el files are. Yet when I load up Emacs
I get the following error:
File mode specification error: (file-error "Cannot open load file"
"idlw-complete-structtag")
OS: Linux Redhat 8.0
Emacs Version: GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2002-08-28 on astest
IDL Version : 5.5
Any suggestions? Thanks,
Karthik.
|
|
|
Re: IDLWAVE EMACS QUESTION [message #34939 is a reply to message #34872] |
Thu, 01 May 2003 15:17   |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Thu, 01 May 2003 07:56:07 -0700, Ben Tupper wrote:
> JD Smith wrote:
>> On Tue, 29 Apr 2003 13:39:30 -0700, Ben Tupper wrote:
>>
>>
>>> JD Smith wrote:
>>>
>>>> On Tue, 29 Apr 2003 11:04:08 -0700, Karthikayan Balakrishnan wrote:
>>>>
>>>>
>>>>
>>>> >Hello All,
>>>> > I tried the structure completion in IdlWAVE by adding
>>>>
>>>> >(add-hook 'idlwave-load-hook
>>>> > (lambda () (require 'idlw-complete-structtag)))
>>>> >
>>>> >in my .emacs file and then proceeded to add the
>>>> >idlw-complete-structtag.el file to /usr/local/share/emacs/site-lisp/
>>>> >where the rest of the idl*.el files are. Yet when I load up Emacs I
>>>> >get the following error:
>>>> >File mode specification error: (file-error "Cannot open load file"
>>>> >"idlw-complete-structtag")
>>>> >
>>>> >OS: Linux Redhat 8.0
>>>> >Emacs Version: GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d
>>>> >scroll bars) of 2002-08-28 on astest
>>>> >IDL Version : 5.5
>>>> >
>>>> > Any suggestions? Thanks,
>>>> >Karthik.
>>>>
>>>> It's likely that you're accidentally using the Emacs-bundled version
>>>> of IDLWAVE, v4.7. You can see by "C-h v idlwave-mode-version". If
>>>> so, this means the stuff in /usr/local/share/... isn't being used at
>>>> all. Many linux systems, for some reason, come with Emacs configured
>>>> *not* to look in /usr/local/share/... for lisp files. You need to
>>>> configure your load-path in .emacs to include this directory:
>>>>
>>>> (setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
>>>>
>>>> You can view your load-path with "C-h v load-path". Now
>>>> complete-structtag should work, and you'll be using the newest IDLWAVE
>>>> version too.
>>>>
>>>> JD
>>>
>>> Hello,
>>>
>>> I guess along the same topic but a slightly different question; how do
>>> I get the IDL shell to pick up the modifications in my .tcshrc file
>>> that I made to IDL's !PATH variable. I can't manage to get the shell
>>> to pick up my modifications although it's there when I start IDL from
>>> the command line or IDLDE.
>>>
>>> IDL 5.6 on MacOSX
>>>
>>>
>>>
>> This just came up last week. You can either start Emacs/IDLWAVE from
>> the shell, or add your path setting stuff to
>> ~/.MacOSX/environment.plist. The issue is that, when started as an Aqua
>> Application, a program never consults the shell for its environment.
>> Hence the environment.plist route.
>>
>> JD
>>
>>
> Hi JD,
>
> Thanks. I seem to have missed the earlier topic thread on this.
>
No worries... it came up off-list. I've added it to the FAQ (to be
available with the upcoming IDLWAVE release... any... day.... now).
JD
|
|
|
Re: IDLWAVE EMACS QUESTION [message #34944 is a reply to message #34872] |
Thu, 01 May 2003 07:56   |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
JD Smith wrote:
> On Tue, 29 Apr 2003 13:39:30 -0700, Ben Tupper wrote:
>
>
>> JD Smith wrote:
>>
>>> On Tue, 29 Apr 2003 11:04:08 -0700, Karthikayan Balakrishnan wrote:
>>>
>>>
>>>
>>>> Hello All,
>>>> I tried the structure completion in IdlWAVE by adding
>>>
>>>> (add-hook 'idlwave-load-hook
>>>> (lambda () (require 'idlw-complete-structtag)))
>>>>
>>>> in my .emacs file and then proceeded to add the
>>>> idlw-complete-structtag.el file to /usr/local/share/emacs/site-lisp/
>>>> where the rest of the idl*.el files are. Yet when I load up Emacs I get
>>>> the following error:
>>>> File mode specification error: (file-error "Cannot open load file"
>>>> "idlw-complete-structtag")
>>>>
>>>> OS: Linux Redhat 8.0
>>>> Emacs Version: GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d
>>>> scroll bars) of 2002-08-28 on astest
>>>> IDL Version : 5.5
>>>>
>>>> Any suggestions? Thanks,
>>>> Karthik.
>>>
>>> It's likely that you're accidentally using the Emacs-bundled version
>>> of IDLWAVE, v4.7. You can see by "C-h v idlwave-mode-version". If so,
>>> this means the stuff in /usr/local/share/... isn't being used at all.
>>> Many linux systems, for some reason, come with Emacs configured *not*
>>> to look in /usr/local/share/... for lisp files. You need to configure
>>> your load-path in .emacs to include this directory:
>>>
>>> (setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
>>>
>>> You can view your load-path with "C-h v load-path". Now
>>> complete-structtag should work, and you'll be using the newest IDLWAVE
>>> version too.
>>>
>>> JD
>>
>> Hello,
>>
>> I guess along the same topic but a slightly different question; how do I
>> get the IDL shell to pick up the modifications in my .tcshrc file that I
>> made to IDL's !PATH variable. I can't manage to get the shell to pick
>> up my modifications although it's there when I start IDL from the
>> command line or IDLDE.
>>
>> IDL 5.6 on MacOSX
>>
>
>
> This just came up last week. You can either start Emacs/IDLWAVE from the
> shell, or add your path setting stuff to ~/.MacOSX/environment.plist.
> The issue is that, when started as an Aqua Application, a program never
> consults the shell for its environment. Hence the environment.plist
> route.
>
> JD
>
Hi JD,
Thanks. I seem to have missed the earlier topic thread on this.
Cheers,
Ben
|
|
|
|
|
Re: IDLWAVE EMACS QUESTION [message #43329 is a reply to message #43291] |
Thu, 31 March 2005 13:23  |
Chris Konig
Messages: 5 Registered: March 2005
|
Junior Member |
|
|
Thanks for the XML-hint, I embarrassingly was totally oblivious to that
and treated it as a shell script (a la .cshrc).
So I used 'Property List Editor' but all the combinations I could think
of did not change anything. Emacs.app would never see my 'IDL_PATH'. I
tried with and without quotation marks, with '+' signs or avoiding them,
with '<IDL_DEFAULT>' or without, etc. the IDL shell in Emacs.app would
always only see the default path. I might do some other stupid mistake?
Your other hint (setenv in .emacs) works excellently though, so I am
sticking to that.
Thanks a lot for the help!
Chris
|
|
|