> Why that? `shell-command-to-string' works also on remote hosts. That wasn't clear from the documentation and I haven't tried it out :( Anyway, I've attached a new, simplified version. However, now I wonder whether project--remote-file-name would be more useful if it would derive the remote-id from default-directory. Or should I simply eliminate this helper function altogether? Thanks, Felicián