When editing files on slow network filesystems, nedit ofen pauses (due to stat() calls) - how to disable?

Eddy De Greef eddy_de_greef at scarlet.be
Sat Mar 20 23:49:19 CET 2010


I'm afraid the only option is to modify the source code. 
[CheckForChangesToFile() - source/file.c]
Even if you disable the warnings, NEdit still uses stat() to monitor the 
file attributes (e.g. to update the title when the file is made 
read-only externally).

Eddy

hda247 at web.de wrote:
> Hi,
> 
> I understand it is a feature of nedit that it looks for changes in the 
> edited file every other second (by calling stat() on the file).
> 
> However, this causes annoying pauses when editing a file on a slow 
> network filesystem.
> 
> I've tried to disable the check un-selecting the 
> preferences->DefaultSettings->Warnings options, but that does not help.
> 
> Using "strace nedit somefile.txt" I can see the stat() calls are still 
> done.
> 
> Is there a way to disable that behaviour (short of changing the source 
> code)?
> 
> Thanks in advance,
> 
> Lutz
> 



More information about the Discuss mailing list