2

I'm trying to access my google drive from within emacs. According to this, that's possible with emacs 26. Based on the tramp 2.4.3 manual I think that's because emacs 26 comes with version 2.4.3 of Tramp. True?

If so, does that mean that an alternative route to achive google drive access in emacs 25 is to update from Tramp 2.2.13 to Tramp 2.4.3?

If so, how do I do that? My tramp-version is 2.2.13.25.2. I tried installing tramp 2.4 via elpa, but still tramp-version returns 2.2.13.25.2. When I try C-x C-f ~//gdrive:[email protected]:/ I get the error

Symbol’s function definition is void: tramp-compat-tramp-file-name-slots

This is a different error message than before I melpa-ed tramp; before it was "Unknown method "gdrive".

Note that I have successfully added my google drive to my GNOME desktop.

EDIT tramp-version is now showing 2.4.3.3. Now when I try C-x C-f ~//gdrive:[email protected]:/ I get the error

Symbol’s function definition is void: "(setf tramp-file-name-localname)"

1 Answer 1

1

Yes, Tramp 2.4.3 works with Emacs 25. It is not distributed via MELPA (to my knowledge), but via GNU ELPA. The recent version there is 2.4.3.3. Do you have installed it via the Emacs Package Manager?

If installed, there shall be a directory ~/.emacs.d/elpa/tramp-2.4.3.3. This shall be taken into account when starting Emacs. If not, you shall add this to the beginning of your load-path, and restart Emacs.

7
  • Thanks. Yes I installed tramp via GNU elpa (when I said 'melpa', I meant 'GNU elpa'). The describe variable output for load-path shows "/home/quinn/.emacs.d/elpa/tramp-2.4.3.3". Now tramp-version does indeed show 2.4.3.3; this is somewhat mysterious but maybe I just hadn't restarted Emacs. Now when I try to run C-x C-f ~//gdrive:[email protected]:/ (where [email protected] is replaced by my email, I get the error: Symbol’s function definition is void: "(setf tramp-file-name-localname)". Any idea about that? Commented Apr 17, 2020 at 21:24
  • Strange. What happens if you start emacs -Q -L home/quinn/.emacs.d/elpa/tramp-2.4.3.3 ? Commented Apr 18, 2020 at 7:49
  • When I do that, emacs doesn't even have a tramp-version command at all intially. Then I try C-x C-f ~//gdrive:[email protected]:/ and get "Unknown method "gdrive" ". After that though, tramp-version does work and returns 2.2.13.25.2. Commented Apr 19, 2020 at 1:56
  • Well, debugging is out of scope of SX. Please write an email to [email protected], and well see. Commented Apr 19, 2020 at 16:38
  • OK, I will. Thanks. Is even the fact there's initially no tramp-version command unusual? Commented Apr 19, 2020 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.