From: Tom R. <Tom...@nc...> - 2001-10-25 00:29:56
|
Mark Stosberg <ma...@su...> Wed, 24 Oct 2001 19:07:50 -0500 > I've now got got tramp installed, but when I use "tramp-compile" and > specify "perl -cw" as the compile command, it very quickly returns > "Syntax OK", although the syntax is not. It's rather as if the > cmmand is being run locally instead of remotely. Bingo! Two questions: * Do you have (require 'tramp-util) in your <.|_>emacs? As stated in http://www4.ncsu.edu/~tlroche/plinkTramp.html > Unfortunately the "native" emacs compile function does not yet > support remote files. (Supposedly this will change sometime on or > about GNU Emacs 21.) However, as of at least v2.9, TRAMP does > support remote compilation. Simply include > (require 'tramp-util) > in your Emacs configuration (e.g. in .emacs, after your main > TRAMP configuration section) and you will be able to do > M-x tramp-compile > in a TRAMP buffer. Note that the compile-command you give (or > that you have defined via a local variable) must be appropriate > for the target: notably, it must be in the remote session's path. > If you need to set something in the remote path, use the TRAMP > variable tramp-remote-path. E.g. > (add-to-list 'tramp-remote-path "/usr/bin/magic") > Rather than use tramp-compile directly, you may prefer to make > your favorite compilation keybinding "tramp-aware"; then you need > not keep track of whether you're compiling a TRAMP-accessed file > or not. E.g. for the key Alt-` > ; "Stefan Monnier" 16 Mar 2001 09:50:19 -0500 > (define-key global-map "\M-`" > (lambda () > "Use `tramp-compile' if in a tramp buffer, `compile' otherwise." > (interactive) > (call-interactively > (if (tramp-tramp-file-p buffer-file-name) > 'tramp-compile 'compile)))) > works for me. If none of the above works, * Which emacs or xemacs are you running? And which version of tramp? BTW, as the tramp site says http://tramp.sourceforge.net/#Bug%20Reports > To report a bug in TRAMP, you should execute M-x tramp-bug. This > will automatically generate a buffer with the details of your system > and TRAMP version. HTH, Tom...@nc... |