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

Home » Public Forums » archive » IDLWAVE EMACS QUESTION
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
IDLWAVE EMACS QUESTION [message #34872] Tue, 29 April 2003 11:04 Go to next message
Karthikayan Balakrish[1] is currently offline  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 Go to previous messageGo to next message
JD Smith is currently offline  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 Go to previous messageGo to next message
btt is currently offline  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 #34964 is a reply to message #34872] Tue, 29 April 2003 20:10 Go to previous messageGo to next message
jdsmith is currently offline  jdsmith
Messages: 2
Registered: April 2003
Junior Member
Sigh... tags-tables are silly little scans of relevant locations in a
file, and are useless for IDLWAVE. What this means that ESC-Tab doesn't
receive the `idlwave-complete' binding it should, but instead has the old
`complete-symbol'. Any reason you're not using M-Tab? I recall someone
reporting a few issues binding M-Tab under MacOSX.

JD
Re: IDLWAVE EMACS QUESTION [message #43291 is a reply to message #34872] Fri, 25 March 2005 14:59 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 25 Mar 2005 11:49:13 -0800, Ch. Konig wrote:

> So I had the problem too that my Carbon Emacs (I'm on Mac OS X) would
> not see my IDL_PATH definition in my .cshrc file. Starting from the
> shell remedies the situation, while adding my path definition to
> ~/.MacOSX/environment.plist does not seem to change anything.
>
> Might the "~/.MacOSX/environment.plist" route be a feature of the past
> (pre-10.3 or so)?
> Or is there something to be tweaked in my Mac?
> How else could I make Emacs.app see my .cshrc or the IDL_PATH setting
> at least? Is there a way to 'source' a file or define paths in .emacs?
>
> No urgency to those questions, starting from the shell works fine. More
> a remark to the IDLWAVE FAQ author.

Well, the .plist file is not a regular file like .cshrc, but needs to be
created in an XML type language. This describes how:

http://developer.apple.com/qa/qa2001/qa1067.html

Can you give that a try and let us know how it goes? You could also
define an IDL_PATH in your .emacs, something like

(setenv "IDL_PATH" "<IDL_DEFAULT>:/path/to/something:+/otherpath/to/something/else ")

Any luck with that?

JD
Re: IDLWAVE EMACS QUESTION [message #43329 is a reply to message #43291] Thu, 31 March 2005 13:23 Go to previous message
Chris Konig is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: MISSING_VALUE
Next Topic: Re: IDLWAVE Manuals: Your Support Needed

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

Current Time: Wed Oct 08 14:01:14 PDT 2025

Total time taken to generate the page: 0.00752 seconds