File - Revert to saved is grayed out

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

File - Revert to saved is grayed out

Postby jimrcook » Mon Apr 07, 2008 12:24 pm

I tried searching the forums for Revert to Saved, but did not find what I was looking for there.

I had a file on a Novell network mapped drive open in UE when it said the file has been deleted, and I wanted to keep it open. I answered Yes. Now, I know the file has not been deleted, and verified that from the command prompt.

However, now I cannot revert to saved because it is gray. How do I get around this?

I have a similar problem when I open a file on my boss's machine and he saves using Developer's Studio. That writes a new file, deletes the original, and renames, which confuses UE.
jimrcook
Newbie
 
Posts: 4
Joined: Wed Apr 02, 2008 10:47 am

Re: File - Revert to saved is grayed out

Postby Mofi » Tue Apr 08, 2008 2:31 am

When UltraEdit opens a file it keeps it's whole file info (long file name, file date, file time, file attributes, short file name, ...) of the file in memory. If anything in the file info changes and it was not done by UltraEdit itself, it knows that another program has changed the file.

If the file is deleted and next a new one with the same name is created, it is not the file anymore that UltraEdit has opened (for example short name could be different). Therefore if you are working with temp files as you do, UltraEdit asks you if you wish to keep the file content of the deleted file because UltraEdit has a copy of it - the temp file. But it is just a temp file, so you need to save it using Save As command. Then Revert to Saved will work again.

If you want to reload a file which was temporarily deleted and UltraEdit has recognized this deletion and therefore handles the file as deleted even if a new file with the same name was created next, you have to close and re-open the temporarily deleted file. If you need this often you can use a macro for that job with a hot key for fast execution:

Clipboard 9
CopyFilePath
Open "^c"
ClearClipboard
Clipboard 0
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: File - Revert to saved is grayed out

Postby jimrcook » Tue Apr 08, 2008 4:15 pm

Thank you for the excellent and helpful explanation. I'm well on my way now.
jimrcook
Newbie
 
Posts: 4
Joined: Wed Apr 02, 2008 10:47 am


Return to UltraEdit General Discussion