TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: `David N. Heydon`
date: 2003-02-14 19:37:00
subject: [TSEPro] Re: Weird problem loading LFN`s with extensions

From: "David N. Heydon" 
@Date: Fri, 14 Feb 2003 09:07:01 -0000
@Sender: semware-owner{at}sawasdi.apana.org.au




>make sure you are not autoloading any macros.  You can do
>this by renaming the tseload.dat file, or commenting out the
>call to LoadStartupMacros() in your WhenLoaded().

I'd already done this.

>make sure you are not loading a tsestart.mac.  You can do
>this by renaming tsestart.mac, or commenting out the call to
>LoadStartupMacros() in your WhenLoaded().

and this.


>If so, add CurrFilename() to the Warn(), and see if the
>correct filename is displayed.

and this.

>Have you commented out all of the calls to Hook() in your
>WhenLoaded()?

But not this :-( I'd commented out everything I thought had been overriden,
i.e. ON_CHANGING_FILES and ON_FIRST_EDIT. On closer inspection I found
another uncommented change in my AFTER_UPDATE_STATUSLINE hook. It was
calling a function called mShortenFilename(). I'm not sure where this
function came from but I'm sure I never wrote it! It attempts to chop down a
long pathname to "x:\...\filename.ext", so it fits nicely on the status
line. Unfortunately it obviously predated LFN's because it contained a while
loop which went something like:-
   
 While (Length(pathname) > (maxdisplaysize))
        start = Pos("\", pathname)
        pathname = SubStr(pathname, (start + 1), (Length(pathname) - start))
 EndWhile

After I added a break if the Pos() call returned 0 it works as expected!

>If none of the above finds anything, send me your .uifile, and I'll give it
a shot here.

Thanks again Sammy :-)
--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.