Luc Teirlinck writes: > Just as a general question to everybody interested (not just to the > person in the "To" field): > > Where do we stand now in this thread? Obviously, I can not implement > David's suggestion as long as there is this error message (assuming it > would not give other problems, even without that message, which I can > not test). I believe I understand what happens when the "Recursive load" message for Tramp appears. We have the following situation: - Tramp is not loaded yet. - default-directory is set to "/su::". - shell-command is called. The Tramp handler of shell-command must be applied. Therefore, due to the autoload definitions, Tramp must be loaded. Loading tramp.el itself causes new remote file operations (due to default-directory). And so on. The solution would be to set temporarily default-directory to "/" or whatover local during loading of Tramp. But I have no idea how to say it, I don't know of any before-load-hook where I could apply such a setting. Does anybody has an idea how to do this? For your patch, it would work with the small change that you arrange the loading of Tramp yourself (a working version of the patch is appended). But I don't like this solution too much, I'ld prefer that Tramp could handle it itself. > Sincerely, > > Luc. Best regards, Michael.