Re: where is tramp-compile?

2001-05-23 Thread Kai Großjohann

On Tue, 22 May 2001, Chris Majewski wrote:

 1.  Where is tramp-compile?  My emacs finds no match for M-x
 tramp-compile.  This is $Id: tramp.el,v 2.0.2.3 2001/03/28 21:44:30
 grossjoh Exp $

Do you have a file tramp-util.el?  If not, then maybe I should do
something about the stable version...

kai
-- 
~/.signature: No such file or directory




Re: where is tramp-compile?

2001-05-23 Thread Krzys Majewski

On 23 May 2001, Kai Großjohann wrote:

 On Tue, 22 May 2001, Chris Majewski wrote:
 
  1.  Where is tramp-compile?  My emacs finds no match for M-x
  tramp-compile.  This is $Id: tramp.el,v 2.0.2.3 2001/03/28 21:44:30
  grossjoh Exp $
 
 Do you have a file tramp-util.el?  If not, then maybe I should do
 something about the stable version...
 

I  don't have  this file.  Another  thing that  would be  cool, is  if
M-x ansi-term started a remote terminal  when the point is in a remote
buffer. But the compile thing is more important..

Thanks Kai,

chris




Re: where is tramp-compile?

2001-05-23 Thread Kai Großjohann

On Wed, 23 May 2001, Chris Majewski wrote:

 On 23 May 2001, Kai [iso-8859-1] Großjohann wrote:
 
 On Wed, 23 May 2001, Chris Majewski wrote:
 
  Cool, that worked. I had to put (require 'tramp-util) in my
  .emacs.  Now, how can I tell C-x C-e to run tramp-compile in a
  remote buffer, and compile otherwise?
 
 (defun cm-compile-maybe-remote ()
   (interactive)
   (if (and (buffer-file-name)
(tramp-tramp-file-p (expand-file-name
(buffer-file-name
   (call-interactively 'tramp-compile)
 (call-interactively 'compile)))
 
 Untested.  
 
 Really? What do you use?

I don't use remote compilation.  You would be surprised at how rarely
I use Tramp, and how few features I use.

Maybe I'm not the right maintainer anymore because I don't really use
its power.

 Does it work? 
 
 No. buffer-file-name returns nil in a remote dired buffer.

Does it help to edit the `if' statement as follows?

(if (or (and (buffer-file-name)
 (tramp-tramp-file-p (expand-file-name (buffer-file-name
(and default-directory
 (tramp-tramp-file-p (expand-file-name default-directory
... as before ...)

If it works, I could add it to tramp-util.el.

kai
-- 
~/.signature: No such file or directory




Re: where is tramp-compile?

2001-05-23 Thread Chris Majewski

This works *but* I get

Symbol's value as variable is void: compilation-read-command

unless  I do  a M-x  compile first  (or run  the function  in  a local
buffer). 

-chris

On 23 May 2001, Kai [iso-8859-1] Großjohann wrote:

 On Wed, 23 May 2001, Chris Majewski wrote:
 
  On 23 May 2001, Kai [iso-8859-1] Großjohann wrote:
  
  On Wed, 23 May 2001, Chris Majewski wrote:
  
   Cool, that worked. I had to put (require 'tramp-util) in my
   .emacs.  Now, how can I tell C-x C-e to run tramp-compile in a
   remote buffer, and compile otherwise?
  
  (defun cm-compile-maybe-remote ()
(interactive)
(if (and (buffer-file-name)
 (tramp-tramp-file-p (expand-file-name
 (buffer-file-name
(call-interactively 'tramp-compile)
  (call-interactively 'compile)))
  
  Untested.  
  
  Really? What do you use?
 
 I don't use remote compilation.  You would be surprised at how rarely
 I use Tramp, and how few features I use.
 
 Maybe I'm not the right maintainer anymore because I don't really use
 its power.
 
  Does it work? 
  
  No. buffer-file-name returns nil in a remote dired buffer.
 
 Does it help to edit the `if' statement as follows?
 
 (if (or (and (buffer-file-name)
  (tramp-tramp-file-p (expand-file-name (buffer-file-name
 (and default-directory
  (tramp-tramp-file-p (expand-file-name default-directory
 ... as before ...)
 
 If it works, I could add it to tramp-util.el.
 
 kai
 -- 
 ~/.signature: No such file or directory
 




Re: where is tramp-compile?

2001-05-23 Thread Kai Großjohann

On Wed, 23 May 2001, Chris Majewski wrote:

 Symbol's value as variable is void: compilation-read-command
 
 unless I do a M-x compile first (or run the function in a local
 buffer).

Put (require 'compile) in your ~/.emacs.

kai
-- 
~/.signature: No such file or directory




tramp gud-mode?

2001-05-23 Thread Chris Majewski

Does tramp have any support for  remote debugging? So if I say M-x gdb
file in a remote buffer I get a remote gdb session? 
-chris




Re: breakpoints

2001-05-23 Thread Kai Großjohann

On Mon, 21 May 2001, bruce ingalls wrote:

 I regret, if someone replied; I may have lost some email during a
 recent backup.

I'm sorry that I have been unable to keep up with my mail in the past
several months.  :-(

 EFS.el is ignoring Tramp's Advice() in the recent XEmacs 21.4.0.
 How can I set breakpoints in efs-ftp-path(), to generate a better
 bug report?

M-x debug-on-entry RET efs-ftp-path RET

kai
-- 
~/.signature: No such file or directory




Re: where is tramp-compile?

2001-05-23 Thread Kai Großjohann

On Wed, 23 May 2001, Chris Majewski wrote:

 Cool, that worked. I had to put (require 'tramp-util) in my .emacs.
 Now, how can I tell C-x C-e to run tramp-compile in a remote buffer,
 and compile otherwise?

(defun cm-compile-maybe-remote ()
  (interactive)
  (if (and (buffer-file-name)
   (tramp-tramp-file-p (expand-file-name (buffer-file-name
  (call-interactively 'tramp-compile)
(call-interactively 'compile)))

Untested.  Does it work?

kai
-- 
~/.signature: No such file or directory




Re: where is tramp-compile?

2001-05-23 Thread Chris Majewski

Thanks, I think that works. 
On the  other hand,  every once  in a while  I get  an error  like the
following (the last line is the meaningful one).
-chris

Determining coding system
Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
Waiting 30s for `set +o vi +o emacs'
Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
Waiting 30s for `unset CDPATH'
Setting shell prompt
Waiting for remote `/bin/sh' to come up...
Waiting for remote `/bin/sh' to come up...done
Remote `/bin/sh' groks tilde expansion, good
Finding command to check if file exists
Finding a suitable `ls' command
Checking remote `/bin/ls' command for `-n' option
Testing remote command `/bin/ls' for -n...
Testing remote command `/bin/ls' for -n...okay
Using remote command `/bin/ls' for getting directory listings
Sending the Perl `file-attributes' implementation.
Couldn't find exit status of `test -d /cs/local/src/lab'


On 23 May 2001, Kai [iso-8859-1] Großjohann wrote:

 On Wed, 23 May 2001, Chris Majewski wrote:
 
  Symbol's value as variable is void: compilation-read-command
  
  unless I do a M-x compile first (or run the function in a local
  buffer).
 
 Put (require 'compile) in your ~/.emacs.
 
 kai
 -- 
 ~/.signature: No such file or directory
 




Re: where is tramp-compile?

2001-05-23 Thread Kai Großjohann

On Wed, 23 May 2001, Chris Majewski wrote:

 On the other hand, every once in a
 while I get an error like the following (the last line is the
 meaningful one).

Argh.  Looks like a timing problem.  Please do (setq
tramp-debug-buffer t), wait for the problem to reappear, then have a
look at the *debug tramp/foo* buffer to see where it got out of sync.
(Also *tramp/foo* might be interesting.)

If you can't find anything, send me the buffer contents.

Why is Tramp so _fragile_ w.r.t. timing?  Is there anything I can do
to make it more robust?

kai
-- 
~/.signature: No such file or directory