Re: C++ Prefs file has an error?

New Message Reply Date view Thread view Subject view Author view

From: Alin Pilkington (AlinP@AOL.COM)
Date: 19 Feb 98, 16:35 EST


From: Alin Pilkington <AlinP@AOL.COM>
Subject: Re: C++ Prefs file has an error?

Hi Vince!

Thanks for your quick response. I downloaded your latest 7.0p4 from your
site and installed it but it seemed to give me the same problem as
before.  I found the message from Johan that you refered to in your
response and made the change he suggested but then it seemed like the
file alphaHooks.tcl did not load. I think this because I saw the message
in the lower left hand corner of the screen saying "loading
alphHooks.tcl" but it never advanced beyond that point. Here is the exact
change I made to alphaHooks.tcl and then saved and restarted.:

from

     if {[catch {uplevel \#0 [list source [file join "$PREFS
${mode}Prefs.tcl"]]}]} {

to

     if {[catch {uplevel \#0 [list source [file join "$PREFS"
"${mode}Prefs.tcl"]]}]} {

the only change was adding the quotes where Johan said to.  I don't
really understand why this line needs to have the quotes at all when the
line above it which is:

     if {($mode != "") && [file exists [file join $PREFS
${mode}Prefs.tcl]]} {

doesn't have any quotes at all and it seems to work OK.  I did try to
debug this one myself by trying out the various commands in each line on
a standalone basis in the Alpha shell and it all seemed to work there
(whereas the previous code clearly did not work) but, as I said, when I
saved the file alphaHooks.tcl with the changes and restarted, it hung.

Any ideas?

Thanks!

Alin  Pilkington


Received from darley@fas.harvard.edu

>I uploaded p4 briefly, then removed it since I'd left that bug in (and
>another).  You must've grabbed it in the short time it was there.
>
>Either download again, or look at Johan's previous message on the list for
>a fix of your bug,
>
>sorry,
>
>-- Vince.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:50 EST