I looked at the code for directory-files, and it seems you cannot quit out of it while it is waiting in a system call. This means that while-no-input won't currently work when directory-files hangs in that way.
It is probably possible to implement quitting out of the system call in directory-files. Doing this requires setting immediate_quit to 1, at least while that system call is running. Which system call takes the long time? Is it opendir, or readdir? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel