> I'm using Emacs on Debian, when I try to edit a file with emacs, it
> takes many to open the file.
A common problem is that Emacs tries to find the machine's name at
startup, and depending on your (mis)configuration, this may require
access to the network and may hence fail with a timeout.
Try C-h C-p (to get the PROBLEMS file) and then C-s slow
        Stefan