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

Home » Public Forums » archive » idlwave: spaces round = and other operators
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: spaces round = and other operators [message #58373] Tue, 29 January 2008 11:04 Go to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all (JD?),

I used to use Emacs 21 (on Windows) with idlwave (self-installed; not
sure about the version), and I had the lines

(setq idlwave-surround-by-blank t) ; Turn on padding ops =,<,>
(setq idlwave-pad-keyword nil) ; Remove spaces for keyword '='

in my .emacs. This worked fine, spaces got automatically padded around
my operators but not for keywords.

Now I am using Emacs 22 (EmacsW32) with whatever idlwave version comes
with it and I pretty much copied all idlwave-related lines into my new
.emacs (not that I really understand what they do). Now spaces don't get
padded any more, and when I type something like

a=

there is a beep and an error message "Wrong type argument: consp, nil".

Any clues?

Thanks,
Benjamin
Re: idlwave: spaces round = and other operators [message #58450 is a reply to message #58373] Thu, 31 January 2008 15:36 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
JD Smith wrote:
>> in my .emacs (of course with paths adjusted to my system), but it didn't
>> help. It did get rid of the "HTML help location not found: try setting
>> `idlwave-system-directory' and/or `idlwave-html-help-location'." error
>> message when starting IDLWAVE but didn't get rid of the "spaces around
>> operators" problem.
>
> Do you see the error message I mentioned?

I did see the message "HTML help location not found: try setting
>> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
That I could get rid of with the hints you mentioned (on the idlwave
website), but it didn't solve the original problem

> Try M-: (length idlwave-
> routines) [RET]. Should be around 2500.

0 (#o0, #x0)

What should I do about that?

Thanks,
Benjamin
Re: idlwave: spaces round = and other operators [message #58451 is a reply to message #58373] Thu, 31 January 2008 15:02 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
> in my .emacs (of course with paths adjusted to my system), but it didn't
> help. It did get rid of the "HTML help location not found: try setting
> `idlwave-system-directory' and/or `idlwave-html-help-location'." error
> message when starting IDLWAVE but didn't get rid of the "spaces around
> operators" problem.

Do you see the error message I mentioned? Try M-: (length idlwave-
routines) [RET]. Should be around 2500.

JD
Re: idlwave: spaces round = and other operators [message #58458 is a reply to message #58373] Thu, 31 January 2008 11:46 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
JD Smith wrote:
> I'm going to guess that the system routines aren't being located. Do
> you see an error like "Could not locate any system routine
> information." after loading IDLWAVE? This indicates that IDLWAVE
> can't find your IDL install (it usually consults the IDL_DIR
> environment variable, or asks the shell, but Window's has no IDL
> shell). If so, you need to set the system directory, ala:
>
> http://idlwave.org/idlwave.html#SEC66

Sorry, no luck. I tried both

;; The location of the IDL library directories, both standard, and your
own.
;; note that the initial "+" expands the path recursively
(setq idlwave-library-path
'("+c:/RSI/IDL55/lib/" "+c:/path/to/my/idllibs" ))

;; location of the IDL system directory (try "print,!DIR")
(setq idlwave-system-directory "c:/RSI/IDL62/")

in my .emacs (of course with paths adjusted to my system), but it didn't
help. It did get rid of the "HTML help location not found: try setting
`idlwave-system-directory' and/or `idlwave-html-help-location'." error
message when starting IDLWAVE but didn't get rid of the "spaces around
operators" problem.

Any more ideas?

Thanks,
Benjamin
Re: idlwave: spaces round = and other operators [message #58467 is a reply to message #58373] Thu, 31 January 2008 08:38 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
I'm going to guess that the system routines aren't being located. Do
you see an error like "Could not locate any system routine
information." after loading IDLWAVE? This indicates that IDLWAVE
can't find your IDL install (it usually consults the IDL_DIR
environment variable, or asks the shell, but Window's has no IDL
shell). If so, you need to set the system directory, ala:

http://idlwave.org/idlwave.html#SEC66

JD
Re: idlwave: spaces round = and other operators [message #58490 is a reply to message #58373] Wed, 30 January 2008 14:51 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
JD Smith wrote:
> On Jan 29, 2:04 pm, Benjamin Hornberger
> <hornb...@xray1.physics.sunysb.edu> wrote:
>> Hi all (JD?),
>>
>> I used to use Emacs 21 (on Windows) with idlwave (self-installed; not
>> sure about the version), and I had the lines
>>
>> (setq idlwave-surround-by-blank t) ; Turn on padding ops =,<,>
>> (setq idlwave-pad-keyword nil) ; Remove spaces for keyword '='
>>
>> in my .emacs. This worked fine, spaces got automatically padded around
>> my operators but not for keywords.
>>
>> Now I am using Emacs 22 (EmacsW32) with whatever idlwave version comes
>> with it and I pretty much copied all idlwave-related lines into my new
>> .emacs (not that I really understand what they do). Now spaces don't get
>> padded any more, and when I type something like
>>
>> a=
>>
>> there is a beep and an error message "Wrong type argument: consp, nil".
>>
>> Any clues?
>
> Works fine for me with the IDLWAVE included in Emacs 22 for Linux and
> OSX. I'd guess it's conflicting with another setting, the combination
> of which I haven't used. You can M-x toggle-debug-on-error, force it
> to occur again, and show the results?

Debugger entered--Lisp error: (wrong-type-argument consp nil)
idlwave-concatenate-rinfo-lists(nil run-hooks)
idlwave-update-routine-info()
idlwave-routines()
idlwave-where()
idlwave-expand-equal(-1 -1)
(lambda nil (interactive) (self-insert-command 1)
(idlwave-expand-equal -1 -1))()
call-interactively((lambda nil (interactive) (self-insert-command 1)
(idlwave-expand-equal -1 -1)))


> You might also try starting
> emacs without loading your .emacs (emacs -q does that), then turn on
> 'surround-by-blank' in the customization menu, and see if the error
> disappears.

Yes, it does disappear.

My .emacs is listed below, in case someone wants to look at it. Note
that I don't really understand much about it, a lot is just copied
together from different places or set by trial and error a few years
ago, the details long forgotten ... Also note that despite the Red Hat
comment I am actually running EmacsW32 on Windows XP.

Thanks,
Benjamin



-------------
;; Red Hat Linux default .emacs initialization file

;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key [C-home] 'beginning-of-buffer)
(global-set-key [C-end] 'end-of-buffer)
(global-font-lock-mode t)
(setq-default font-lock-maximum-size 200000)
(setq load-path (cons "~/lisp" load-path))

(autoload 'idlwave-mode "idlwave" "IDLWAVE Mode" t)
(autoload 'idlwave-shell "idlw-shell" "IDLWAVE Shell" t)
(setq auto-mode-alist (cons '("\\.pro\\'" . idlwave-mode) auto-mode-alist))
(setq idlwave-shell-activate-alt-keybindings t)
(setq idlwave-expand-generic-end t)
(setq idlwave-store-inquired-class t)
(setq idlwave-shell-automatic-start t)
(setq idlwave-main-block-indent 2)
(setq idlwave-max-extra-continuation-indent 30)
(setq idlwave-help-dir "~/lib/emacs/idlwave")
(setq idlwave-begin-line-comment "^;[^;]") ; Leave ";" but not ";;"
; anchored at start of line.
(setq idlwave-surround-by-blank t) ; Turn on padding ops =,<,>
(setq idlwave-pad-keyword nil) ; Remove spaces for keyword '='
(setq idlwave-expand-generic-end t) ; convert END to ENDIF etc...
(setq idlwave-reserved-word-upcase t) ; Make reserved words upper case
; (with abbrevs only)

(add-hook 'idlwave-mode-hook
(lambda ()
(local-set-key [f3] 'idlwave-function-menu)))

(autoload 'ispell "ispell" "Run ispell over buffer" t)
(autoload 'ispell-region "ispell" "Run ispell over region" t)
(autoload 'ispell-word "ispell" "Check word under cursor" t)
(define-key esc-map "$" 'ispell-word)

(global-set-key "\M-g" 'goto-line)
(global-set-key "\C-h" 'delete-backward-char)

;(custom-set-variables
; '(pc-selection-mode t nil (pc-select)))

;; Always end a file with a newline
(setq require-final-newline t)

;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)

(add-hook 'idlwave-mode-hook 'turn-on-font-lock)

(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)


;; new abbreviations for IDLWAVE
(add-hook 'idlwave-mode-hook
(lambda ()
(idlwave-define-abbrev "kw" "keyword_set("
(idlwave-keyword-abbrev 0))))

;;; Text mode and Auto Fill mode
; The next three lines put Emacs into Text mode
; and Auto Fill mode, and are for writers who
; want to start writing prose rather than code.

(setq default-major-mode 'text-mode)
(add-hook 'text-mode-hook 'text-mode-hook-identify)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
Re: idlwave: spaces round = and other operators [message #58494 is a reply to message #58373] Wed, 30 January 2008 13:48 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Jan 29, 2:04 pm, Benjamin Hornberger
<hornb...@xray1.physics.sunysb.edu> wrote:
> Hi all (JD?),
>
> I used to use Emacs 21 (on Windows) with idlwave (self-installed; not
> sure about the version), and I had the lines
>
> (setq idlwave-surround-by-blank t)      ; Turn on padding ops =,<,>
> (setq idlwave-pad-keyword nil)          ; Remove spaces for keyword '='
>
> in my .emacs. This worked fine, spaces got automatically padded around
> my operators but not for keywords.
>
> Now I am using Emacs 22 (EmacsW32) with whatever idlwave version comes
> with it and I pretty much copied all idlwave-related lines into my new
> .emacs (not that I really understand what they do). Now spaces don't get
> padded any more, and when I type something like
>
> a=
>
> there is a beep and an error message "Wrong type argument: consp, nil".
>
> Any clues?

Works fine for me with the IDLWAVE included in Emacs 22 for Linux and
OSX. I'd guess it's conflicting with another setting, the combination
of which I haven't used. You can M-x toggle-debug-on-error, force it
to occur again, and show the results? You might also try starting
emacs without loading your .emacs (emacs -q does that), then turn on
'surround-by-blank' in the customization menu, and see if the error
disappears.

JD
Re: idlwave: spaces round = and other operators [message #58527 is a reply to message #58373] Mon, 04 February 2008 11:27 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Benjamin Hornberger wrote:
> JD Smith wrote:
>> On Feb 1, 1:29 pm, Benjamin Hornberger
>> <hornb...@xray1.physics.sunysb.edu> wrote:
>>> JD Smith wrote:
>>>> On Jan 31, 6:36 pm, Benjamin Hornberger
>>>> <hornb...@xray1.physics.sunysb.edu> wrote:
>>>> > JD Smith wrote:
>>>> >>> in my .emacs (of course with paths adjusted to my system), but it
>>>> >>> didn't
>>>> >>> help. It did get rid of the "HTML help location not found: try
>>>> >>> setting
>>>> >>> `idlwave-system-directory' and/or `idlwave-html-help-location'."
>>>> >>> error
>>>> >>> message when startingIDLWAVEbut didn't get rid of the "spaces around
>>>> >>> operators" problem.
>>>> >> Do you see the error message I mentioned?
>>>> > I did see the message "HTML help location not found: try setting
>>>> > >> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
>>>> > That I could get rid of with the hints you mentioned (on theidlwave
>>>> > website), but it didn't solve the original problem
>>>> >> Try M-: (lengthidlwave-
>>>> >> routines) [RET]. Should be around 2500.
>>>> > 0 (#o0, #x0)
>>>> > What should I do about that?
>>>> You need to figure out why it's not finding and translating the
>>>> idl_catalog.xml file which is supposed to live in idl/help/
>>>> online_help.
>>>> Is this IDL 7? You didn't say. There's been some monkeying around
>>>> with the location of help files, and the entire help system which
>>>> IDLWAVEdoesn't know about; see this tech tip:
>>>> http://www.ittvis.com/services/techtip.asp?ttid=4323
>>>> If you are using IDL 7, and don't want to go that whole route, you
>>>> could try creating a link or copy of idl_catalog.xml in help/
>>>> online_help (the moved it just to help/). I may release a version
>>>> which at least looks for the catalog file there.
>>> Yes, this is IDL 7.0, but I believe I had the problem with 6.4 as well
>>> (after installing Emacs 22).
>>>
>>> I had seen the tech tip and did already copy the online_help directory
>>> (didn't help).
>>>
>>> Anyway, do you think not finding the help system is responsible for the
>>> problem with space around operators? Doesn't sound like it's related to
>>> me. I have to say I never used the IDL help within Emacs/IDLWAVE
>>> (probably would be a good thing to learn), I always have the IDL help
>>> browser open. At the moment I am mostly concerned about the "spaces
>>> around operators" problem.
>>
>> Yes, that's the problem, and it should be IDL7-specific. IDLWAVE
>> specifically checks to avoid adding space around the '=' in keywords,
>> and to do so it brings the routine info up to date. Without routine
>> info, lots of other things won't work well either. You can also turn
>> keyword padding back on to get around this, but you're better off
>> simply copying idl_catalog.xml over to the old location (idl/help/
>> online_help), and restarting emacs. This won't change anything about
>> the help system.
>>
>> JD
>
> I see. Unfortunately, still no luck. I did copy the entire directory
> C:\Program Files\ITT\IDL64\help\online_help (which includes
> idl_catalog.xml) to the corresponding IDL70 path (I have both installed)
> as described in the ITTVIS tech tip . I do have the following two
> entries in my .emacs:
>
> ;; The location of the IDL library directories, both standard, and your
> own.
> ;; note that the initial "+" expands the path recursively
> (setq idlwave-library-path
> '("+C:\Program Files\ITT\IDL70\lib" "+C:\path\to\more\idl_stuff"))
>
> ;; location of the IDL system directory (try "print,!DIR")
> (setq idlwave-system-directory "C:\Program Files\ITT\IDL70")
>
> It still doesn't work (still get the beep and "wrong type argument:
> consp, nil" when typing "a="). I replaced IDL70 in both cases with
> IDL64, and it still doesn't work.
>
> IDLWAVE reports "cannot locate IDL assistant, enabling default browser"
> when loading a .pro file in Emacs (in both cases, with IDL70 and IDL64
> in the .emacs).
>

I just realized that I have installed IDL (6.4 and 7.0) in a path with
spaces (c:\Program Files\...) now, and my previous installation might
have been in a path without spaces. Is it possible that Emacs/idlwave
choke on that when looking for the IDL assistant?

I didn't use to install command-line stuff and stuff coming from the
Unix world in a path with spaces, because I had a lot of trouble in the
past (MiKTeX, for example). This time it looks like I didn't bother with
IDL, maybe thinking that those petty problems might be overcome in the
21st century.

So before going through the hazzle of reinstalling IDL, I figured I'd
ask if someone can confirm this might be a problem, or how to overcome it.

Again, the two possibly affected entries in my .emacs are

;; The location of the IDL library directories, both standard, and your
own.
;; note that the initial "+" expands the path recursively
(setq idlwave-library-path
'("+C:\Program Files\ITT\IDL64\lib" "+C:\path\to\more\idl_stuff"))

;; location of the IDL system directory (try "print,!DIR")
(setq idlwave-system-directory "C:\Program Files\ITT\IDL64")

Cheers,
Benjamin
Re: idlwave: spaces round = and other operators [message #58553 is a reply to message #58373] Fri, 01 February 2008 15:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jean H writes:

> I know some colleagues that purposely make their code hard to understand
> (poor comments etc), so they can charge for support!

I presume ((((you))) are speaking of the (((((lisp)))))
programmers here. But, no, that's just how it is
((((done))))).

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: idlwave: spaces round = and other operators [message #58554 is a reply to message #58373] Fri, 01 February 2008 15:20 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> I thought this whole open source thing means I don't have to pay (not
> only free as in freedom, but also free as in beer :-).

Ahhhhhh, heresy!!!

Open source means providing a code for free and charging high price for
support!... how would developers live otherwise???

.. you might have a good community to provide free support, but if it
gets tricky or if you don't want to spend the time to learn, you often
have to pay!.. (I am speaking in general terms of course, which may or
may not be your case)

I know some colleagues that purposely make their code hard to understand
(poor comments etc), so they can charge for support!

Jean
Re: idlwave: spaces round = and other operators [message #58555 is a reply to message #58373] Fri, 01 February 2008 14:58 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
David Fanning wrote:
> Benjamin Hornberger writes:
>
>> IDLWAVE reports "cannot locate IDL assistant, enabling default browser"
>> when loading a .pro file in Emacs (in both cases, with IDL70 and IDL64
>> in the .emacs).
>>
>> Sorry ... any further clues?
>
> Our records indicate your support fee ran out several weeks
> ago. Please forward your credit card details ASAP.
>
> Cheers,
>
> David
>
> P.S. Talk about your support nightmares... ;-)
>

I thought this whole open source thing means I don't have to pay (not
only free as in freedom, but also free as in beer :-).

Which of course doesn't mean I wouldn't buy JD or the other helpful
folks around the newsgroup a beer if we happened to run into each other
:-).

Cheers (as in beer),
Benjamin
Re: idlwave: spaces round = and other operators [message #58556 is a reply to message #58373] Fri, 01 February 2008 14:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> IDLWAVE reports "cannot locate IDL assistant, enabling default browser"
> when loading a .pro file in Emacs (in both cases, with IDL70 and IDL64
> in the .emacs).
>
> Sorry ... any further clues?

Our records indicate your support fee ran out several weeks
ago. Please forward your credit card details ASAP.

Cheers,

David

P.S. Talk about your support nightmares... ;-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: idlwave: spaces round = and other operators [message #58558 is a reply to message #58373] Fri, 01 February 2008 13:18 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
JD Smith wrote:
> On Feb 1, 1:29 pm, Benjamin Hornberger
> <hornb...@xray1.physics.sunysb.edu> wrote:
>> JD Smith wrote:
>>> On Jan 31, 6:36 pm, Benjamin Hornberger
>>> <hornb...@xray1.physics.sunysb.edu> wrote:
>>>> JD Smith wrote:
>>>> >> in my .emacs (of course with paths adjusted to my system), but it didn't
>>>> >> help. It did get rid of the "HTML help location not found: try setting
>>>> >> `idlwave-system-directory' and/or `idlwave-html-help-location'." error
>>>> >> message when startingIDLWAVEbut didn't get rid of the "spaces around
>>>> >> operators" problem.
>>>> > Do you see the error message I mentioned?
>>>> I did see the message "HTML help location not found: try setting
>>>> >> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
>>>> That I could get rid of with the hints you mentioned (on theidlwave
>>>> website), but it didn't solve the original problem
>>>> > Try M-: (lengthidlwave-
>>>> > routines) [RET]. Should be around 2500.
>>>> 0 (#o0, #x0)
>>>> What should I do about that?
>>> You need to figure out why it's not finding and translating the
>>> idl_catalog.xml file which is supposed to live in idl/help/
>>> online_help.
>>> Is this IDL 7? You didn't say. There's been some monkeying around
>>> with the location of help files, and the entire help system which
>>> IDLWAVEdoesn't know about; see this tech tip:
>>> http://www.ittvis.com/services/techtip.asp?ttid=4323
>>> If you are using IDL 7, and don't want to go that whole route, you
>>> could try creating a link or copy of idl_catalog.xml in help/
>>> online_help (the moved it just to help/). I may release a version
>>> which at least looks for the catalog file there.
>> Yes, this is IDL 7.0, but I believe I had the problem with 6.4 as well
>> (after installing Emacs 22).
>>
>> I had seen the tech tip and did already copy the online_help directory
>> (didn't help).
>>
>> Anyway, do you think not finding the help system is responsible for the
>> problem with space around operators? Doesn't sound like it's related to
>> me. I have to say I never used the IDL help within Emacs/IDLWAVE
>> (probably would be a good thing to learn), I always have the IDL help
>> browser open. At the moment I am mostly concerned about the "spaces
>> around operators" problem.
>
> Yes, that's the problem, and it should be IDL7-specific. IDLWAVE
> specifically checks to avoid adding space around the '=' in keywords,
> and to do so it brings the routine info up to date. Without routine
> info, lots of other things won't work well either. You can also turn
> keyword padding back on to get around this, but you're better off
> simply copying idl_catalog.xml over to the old location (idl/help/
> online_help), and restarting emacs. This won't change anything about
> the help system.
>
> JD

I see. Unfortunately, still no luck. I did copy the entire directory
C:\Program Files\ITT\IDL64\help\online_help (which includes
idl_catalog.xml) to the corresponding IDL70 path (I have both installed)
as described in the ITTVIS tech tip . I do have the following two
entries in my .emacs:

;; The location of the IDL library directories, both standard, and your
own.
;; note that the initial "+" expands the path recursively
(setq idlwave-library-path
'("+C:\Program Files\ITT\IDL70\lib" "+C:\path\to\more\idl_stuff"))

;; location of the IDL system directory (try "print,!DIR")
(setq idlwave-system-directory "C:\Program Files\ITT\IDL70")

It still doesn't work (still get the beep and "wrong type argument:
consp, nil" when typing "a="). I replaced IDL70 in both cases with
IDL64, and it still doesn't work.

IDLWAVE reports "cannot locate IDL assistant, enabling default browser"
when loading a .pro file in Emacs (in both cases, with IDL70 and IDL64
in the .emacs).

Sorry ... any further clues?

Thanks,
Benjamin
Re: idlwave: spaces round = and other operators [message #58560 is a reply to message #58373] Fri, 01 February 2008 12:52 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Feb 1, 1:29 pm, Benjamin Hornberger
<hornb...@xray1.physics.sunysb.edu> wrote:
> JD Smith wrote:
>> On Jan 31, 6:36 pm, Benjamin Hornberger
>> <hornb...@xray1.physics.sunysb.edu> wrote:
>>> JD Smith wrote:
>>>> > in my .emacs (of course with paths adjusted to my system), but it didn't
>>>> > help. It did get rid of the "HTML help location not found: try setting
>>>> > `idlwave-system-directory' and/or `idlwave-html-help-location'." error
>>>> > message when startingIDLWAVEbut didn't get rid of the "spaces around
>>>> > operators" problem.
>>>> Do you see the error message I mentioned?  
>>> I did see the message "HTML help location not found: try setting
>>>  >> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
>>> That I could get rid of with the hints you mentioned (on theidlwave
>>> website), but it didn't solve the original problem
>
>>>> Try M-: (lengthidlwave-
>>>> routines) [RET].  Should be around 2500.
>>> 0 (#o0, #x0)
>
>>> What should I do about that?
>
>> You need to figure out why it's not finding and translating the
>> idl_catalog.xml file which is supposed to live in idl/help/
>> online_help.
>
>> Is this IDL 7?  You didn't say.  There's been some monkeying around
>> with the location of help files, and the entire help system which
>> IDLWAVEdoesn't know about; see this tech tip:
>
>> http://www.ittvis.com/services/techtip.asp?ttid=4323
>
>> If you are using IDL 7, and don't want to go that whole route, you
>> could try creating a link or copy of idl_catalog.xml in help/
>> online_help (the moved it just to help/).  I may release a version
>> which at least looks for the catalog file there.
>
> Yes, this is IDL 7.0, but I believe I had the problem with 6.4 as well
> (after installing Emacs 22).
>
> I had seen the tech tip and did already copy the online_help directory
> (didn't help).
>
> Anyway, do you think not finding the help system is responsible for the
> problem with space around operators? Doesn't sound like it's related to
> me. I have to say I never used the IDL help within Emacs/IDLWAVE
> (probably would be a good thing to learn), I always have the IDL help
> browser open. At the moment I am mostly concerned about the "spaces
> around operators" problem.

Yes, that's the problem, and it should be IDL7-specific. IDLWAVE
specifically checks to avoid adding space around the '=' in keywords,
and to do so it brings the routine info up to date. Without routine
info, lots of other things won't work well either. You can also turn
keyword padding back on to get around this, but you're better off
simply copying idl_catalog.xml over to the old location (idl/help/
online_help), and restarting emacs. This won't change anything about
the help system.

JD
Re: idlwave: spaces round = and other operators [message #58567 is a reply to message #58373] Fri, 01 February 2008 10:29 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
JD Smith wrote:
> On Jan 31, 6:36 pm, Benjamin Hornberger
> <hornb...@xray1.physics.sunysb.edu> wrote:
>> JD Smith wrote:
>>>> in my .emacs (of course with paths adjusted to my system), but it didn't
>>>> help. It did get rid of the "HTML help location not found: try setting
>>>> `idlwave-system-directory' and/or `idlwave-html-help-location'." error
>>>> message when starting IDLWAVE but didn't get rid of the "spaces around
>>>> operators" problem.
>>> Do you see the error message I mentioned?
>> I did see the message "HTML help location not found: try setting
>>>> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
>> That I could get rid of with the hints you mentioned (on the idlwave
>> website), but it didn't solve the original problem
>>
>>> Try M-: (length idlwave-
>>> routines) [RET]. Should be around 2500.
>> 0 (#o0, #x0)
>>
>> What should I do about that?
>
>
> You need to figure out why it's not finding and translating the
> idl_catalog.xml file which is supposed to live in idl/help/
> online_help.
>
> Is this IDL 7? You didn't say. There's been some monkeying around
> with the location of help files, and the entire help system which
> IDLWAVE doesn't know about; see this tech tip:
>
> http://www.ittvis.com/services/techtip.asp?ttid=4323
>
> If you are using IDL 7, and don't want to go that whole route, you
> could try creating a link or copy of idl_catalog.xml in help/
> online_help (the moved it just to help/). I may release a version
> which at least looks for the catalog file there.
>

Yes, this is IDL 7.0, but I believe I had the problem with 6.4 as well
(after installing Emacs 22).

I had seen the tech tip and did already copy the online_help directory
(didn't help).

Anyway, do you think not finding the help system is responsible for the
problem with space around operators? Doesn't sound like it's related to
me. I have to say I never used the IDL help within Emacs/IDLWAVE
(probably would be a good thing to learn), I always have the IDL help
browser open. At the moment I am mostly concerned about the "spaces
around operators" problem.

Thanks,
Benjamin
Re: idlwave: spaces round = and other operators [message #58570 is a reply to message #58450] Fri, 01 February 2008 10:15 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Jan 31, 6:36 pm, Benjamin Hornberger
<hornb...@xray1.physics.sunysb.edu> wrote:
> JD Smith wrote:
>>> in my .emacs (of course with paths adjusted to my system), but it didn't
>>> help. It did get rid of the "HTML help location not found: try setting
>>> `idlwave-system-directory' and/or `idlwave-html-help-location'." error
>>> message when starting IDLWAVE but didn't get rid of the "spaces around
>>> operators" problem.
>
>> Do you see the error message I mentioned?  
>
> I did see the message "HTML help location not found: try setting
>  >> `idlwave-system-directory' and/or `idlwave-html-help-location'.".
> That I could get rid of with the hints you mentioned (on the idlwave
> website), but it didn't solve the original problem
>
>> Try M-: (length idlwave-
>> routines) [RET].  Should be around 2500.
>
> 0 (#o0, #x0)
>
> What should I do about that?


You need to figure out why it's not finding and translating the
idl_catalog.xml file which is supposed to live in idl/help/
online_help.

Is this IDL 7? You didn't say. There's been some monkeying around
with the location of help files, and the entire help system which
IDLWAVE doesn't know about; see this tech tip:

http://www.ittvis.com/services/techtip.asp?ttid=4323

If you are using IDL 7, and don't want to go that whole route, you
could try creating a link or copy of idl_catalog.xml in help/
online_help (the moved it just to help/). I may release a version
which at least looks for the catalog file there.

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Interesting Workbench Experience
Next Topic: Re: Working with color, cursor, and png to extract information

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

Current Time: Wed Oct 08 15:11:10 PDT 2025

Total time taken to generate the page: 0.00927 seconds