Hello
I'm using slime for editing remote files via tramp. It works fine, but when it slime-filename-translations is not nil and try to work locally, it shows the following error: No filename-translations for hostname: <myhostname>
I've taken a look at the code, and found that slime-find-filename-translators tries to find a traslator if both hostname and slime-filename-translations are not nil. But if it fails, then throws an error.
IMHO it could just return (list #'identity #'identity) and try to work locally. I've changed it locally and works for me (patch following)
-------8<------- Index: slime-tramp.el =================================================================== RCS file: /project/slime/cvsroot/slime/contrib/slime-tramp.el,v retrieving revision 1.3 diff -r1.3 slime-tramp.el 59c59 < (error "No filename-translations for hostname: %s" hostname))) ---
(list #'identity #'identity)))
-------8<-------
Is this right? Am I doing something wrong?
Thanks.
* Francisco Vides [2009-04-04 00:18+0200] writes:
I've taken a look at the code, and found that slime-find-filename-translators tries to find a traslator if both hostname and slime-filename-translations are not nil. But if it fails, then throws an error.
IMHO it could just return (list #'identity #'identity) and try to work locally. I've changed it locally and works for me (patch following)
If you add a regexp which matches everything (as the last entry) you don't need to change the code.
Helmut.