Re: TRAMP2 path definitions.

2001-03-15 Thread Kai Großjohann
On 15 Mar 2001, Daniel Pittman wrote: True. I intend to take this up with the maintainers of it, eventually. It's also true, though, of Ange-FTP. To my knowledge, Ange-FTP isn't so pushy. For Ange-FTP, it's sufficient to add it to file-name-handler-alist, and then to deal with the functions

check in by daniel: 'tramp/lisp tramp2-enc.el,2.4 tramp2-util.el,2.2 tramp2.el,2.9'

2001-03-15 Thread Owns all emacs-rcp files in CVS
Update of /services/emacs-rcp/cvsroot/tramp/lisp In directory bonny:/tmp/cvs-serv15338/lisp Modified Files: tramp2-enc.el tramp2-util.el tramp2.el Log Message: Sync my latest batch of changes to tramp2 trunk.

check in by daniel: 'tramp/test tramp-file-name.el,1.1'

2001-03-15 Thread Owns all emacs-rcp files in CVS
Update of /services/emacs-rcp/cvsroot/tramp/test In directory bonny:/tmp/cvs-serv15338/test Added Files: tramp-file-name.el Log Message: Sync my latest batch of changes to tramp2 trunk.

check in by daniel: 'tramp/lisp tramp2-ops.el,2.7'

2001-03-15 Thread Owns all emacs-rcp files in CVS
Update of /services/emacs-rcp/cvsroot/tramp/lisp In directory bonny:/tmp/cvs-serv15375/lisp Modified Files: tramp2-ops.el Log Message: Sync what remain of the changes from the corrupted version of tramp2-ops. *sigh*

Re: TRAMP2 path definitions.

2001-03-15 Thread Daniel Pittman
On 15 Mar 2001, Kai Grojohann wrote: On 15 Mar 2001, Daniel Pittman wrote: True. I intend to take this up with the maintainers of it, eventually. It's also true, though, of Ange-FTP. To my knowledge, Ange-FTP isn't so pushy. For Ange-FTP, it's sufficient to add it to

Re: TRAMP2 path definitions.

2001-03-15 Thread Kai Großjohann
On 15 Mar 2001, Daniel Pittman wrote: Anyway, I will look at that as a solution to the hook ordering thing, unless someone felt like doing it for me. :) Well, your current filename suggestion means there is no clash. Which is good. In case there is a filename syntax with clash, we can start

Re: TRAMP2 path definitions.

2001-03-15 Thread Daniel Pittman
On 15 Mar 2001, Kai Grojohann wrote: On 15 Mar 2001, Daniel Pittman wrote: Anyway, I will look at that as a solution to the hook ordering thing, unless someone felt like doing it for me. :) Well, your current filename suggestion means there is no clash. Which is good. In case there

tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); incorrect tab expansion

2001-03-15 Thread mah
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping

tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread mah
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping

Re: TRAMP2 path definitions.

2001-03-15 Thread Stefan Monnier
Yes. Despite `file-remote-p'[1] being available, many packages are hard-coded to the knowledge of FTP-style paths. VC did (in Emacs-20) and ediff still does. Which others ? Yes. Especially because, for example, VC will refuse to operate on a FTP file path (because it can't), while TRAMP

Re: TRAMP2 path definitions.

2001-03-15 Thread Stefan Monnier
"Daniel" == Daniel Pittman [EMAIL PROTECTED] writes: Isn't C-u [1] C-x C-f what you want there, or is that just XEmacs? I think it's an Emacsism (but I wouldn't know). It prompts me interactively for a coding system to visit with... Is that the coding system used for the file's content ? I

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Kai Großjohann
On Thu, 15 Mar 2001, [EMAIL PROTECTED] wrote: debug: Signaling: (wrong-type-argument listp t) tramp-multi-connect-su(#process *tramp/multiu ssh#mah@localhost:sudo#root@localhost:* "sudo" "root" "localhost" "sudo -u %u -s%n") tramp-open-connection-multi("multiu" ["ssh" "sudo"] ["mah"

tramp-2.9

2001-03-15 Thread Tom_Roche
An item, then two successes, then a question, then two minor problems, then tramp-bug stuff: + pscp and cvs are now happy. Dunno why: I came back from vacation, tried again, and they each both work. Maybe they needed a vacation from me :-) So I cvs'ed latest (tramp-2.9) as of ~1330 EST

Re: TRAMP2 path definitions.

2001-03-15 Thread Kai Großjohann
On 15 Mar 2001, Stefan Monnier wrote: "Daniel" == Daniel Pittman [EMAIL PROTECTED] writes: Isn't C-u [1] C-x C-f what you want there, or is that just XEmacs? I think it's an Emacsism (but I wouldn't know). In Emacs, prefix arg for C-x C-f deals with wildcards, not with coding systems. kai

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); incorrect tab expansion

2001-03-15 Thread Kai Großjohann
On Thu, 15 Mar 2001, [EMAIL PROTECTED] wrote: When doing find-file tab-expansions of file names, tramp fails to expand correctly when there is only one possible non-dot-dir completion. That's right. But how to fix it? I don't know. kai -- Be indiscrete. Do it continuously.

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Mark A. Hershberger
[EMAIL PROTECTED] (Kai Grojohann) writes: On Thu, 15 Mar 2001, [EMAIL PROTECTED] wrote: debug: Signaling: (wrong-type-argument listp t) tramp-multi-connect-su(#process *tramp/multiu ssh#mah@localhost:sudo#root@localhost:* "sudo" "root" "localhost" "sudo -u %u -s%n")

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Kai Großjohann
On 15 Mar 2001, Mark A. Hershberger wrote: Is the above all you got? No, but it was the interesting part -- the higher the level, the less interesting. Here is the result of debug-on-entry: Thanks, but the interesting part is what happens during the execurion of tramp-multi-connect-su.

Re: tramp-2.9

2001-03-15 Thread Kai Großjohann
On Thu, 15 Mar 2001, Tom Roche wrote: + I apparently no longer need to hack my tramp-connection-function: Well, I have told you about the new parameter tramp-telnet-args, haven't I? ? How to make a key binding tramp-aware? Do I need to? Oh. Well, write a little function which checks

Re: TRAMP2 path definitions.

2001-03-15 Thread Daniel Pittman
On 15 Mar 2001, Stefan Monnier wrote: "Daniel" == Daniel Pittman [EMAIL PROTECTED] writes: Isn't C-u [1] C-x C-f what you want there, or is that just XEmacs? I think it's an Emacsism (but I wouldn't know). It prompts me interactively for a coding system to visit with... Is that the

Re: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: [...] Urgghh ... this highlights my elisp deficiency. I've done several variations on ;; "Use 'tramp-compile' if in a tramp buffer, 'compile' otherwise." (define-key global-map "\M-`" (lambda (optional arg) (if (tramp-tramp-file-p

Re: tramp-aware bindings

2001-03-15 Thread Tom_Roche
On Thu, 15 Mar 2001, Tom Roche wrote: I've done several variations on (define-key global-map "\M-`" (lambda (optional arg) (if (tramp-tramp-file-p buffer-file-name) 'tramp-compile 'quote compile ) ) ) none of which work: the current error is Wrong type

Re: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: On Thu, 15 Mar 2001, Tom Roche wrote: [...] Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 10:48:11 +1100 Trying to bind a function that isn't interactive to a key sequence. Add an `interactive' form to the top of the function. Actually, I had tried

tramp-2.9 info

2001-03-15 Thread Tom_Roche
On Thu, 15 Mar 2001, Tom Roche wrote: - tramp.info made via makeinfo-buffer shows no bold in body. E.g. To obtain the latest development version of TRAMP from CVS (see `cvs(1)'), you may use the following sequence of commands (text you enter is in bold): ] *cd ~/lisp* Instead of

tramp-aware bindings

2001-03-15 Thread Tom_Roche
On Thu, 15 Mar 2001, Tom Roche wrote: ? How to make a key binding tramp-aware? Do I need to? [EMAIL PROTECTED] 15 Mar 2001 23:21:06 +0100 Oh. Well, write a little function which checks whether the current file is a tramp file and then calls either compile or tramp-compile... The magic

Re: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: On Thu, 15 Mar 2001, Tom Roche wrote: What am I doing wrong? [...] Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 11:18:38 +1100 You want: (define-key global-map "\M-`" (lambda (optional arg) (interactive) (if (tramp-tramp-file-p

Re: tramp-aware bindings

2001-03-15 Thread Tom_Roche
Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 11:18:38 +1100 You want: (define-key global-map "\M-`" (lambda (optional arg) (interactive) (if (tramp-tramp-file-p buffer-file-name) 'tramp-compile 'compile ) ) ) Umm ... I tried that. Is there a typo?

addendum to tramp-aware bindings

2001-03-15 Thread Tom_Roche
[EMAIL PROTECTED] Thu, 15 Mar 2001 21:16:12 -0500 So I delete tramp-util.elc (hoping to avoid bytecode), start another emacs with -debug-init, eval it again, and run it again: I get (broken for mail) *Backtrace* Signaling: (wrong-number-of-arguments #[(command) "^H^Q ?\"ˆ \"‡" [command

Re: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 11:18:38 +1100 You want: (define-key global-map "\M-`" (lambda (optional arg) (interactive) (if (tramp-tramp-file-p buffer-file-name) 'tramp-compile 'compile ) ) )

Re: tramp-aware bindings

2001-03-15 Thread Tom_Roche
Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 11:18:38 +1100 So, rather than doing (if ... 'tramp-compile 'compile), run the command you want, so: (if ... (tramp-compile) (compile)) On Thu, 15 Mar 2001, Tom Roche wrote: I get noise in *Messages* (broken for mail): Daniel Pittman [EMAIL

found a clue! was: tramp-aware bindings

2001-03-15 Thread Tom_Roche
Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 13:47:29 +1100 So, you need to pass arg from your lambda to `compile'. :) [EMAIL PROTECTED] Thu, 15 Mar 2001 22:19:32 -0500 Hey, no linenoise! But the signature of compile is (defun compile (command) snip So how to get 'command to them?

Re: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 11:18:38 +1100 So, rather than doing (if ... 'tramp-compile 'compile), run the command you want, so: (if ... (tramp-compile) (compile)) On Thu, 15 Mar 2001, Tom Roche wrote: I get noise in *Messages*

Re: found a clue! was: tramp-aware bindings

2001-03-15 Thread Daniel Pittman
On Thu, 15 Mar 2001, Tom Roche wrote: Daniel Pittman [EMAIL PROTECTED] 16 Mar 2001 13:47:29 +1100 So, you need to pass arg from your lambda to `compile'. :) [EMAIL PROTECTED] Thu, 15 Mar 2001 22:19:32 -0500 Hey, no linenoise! But the signature of compile is (defun compile (command) snip

cleaner tramp-aware bindings

2001-03-15 Thread Tom_Roche
Daniel Pittman [EMAIL PROTECTED] 6 Mar 2001 14:50:35 +1100 Try this for size, it /should/ work (with your key-binging, not mine :): (define-key global-map [(control f10)] (lambda (rest args) I _knew_ there was a better way than optional ... (interactive)

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Mark A. Hershberger
"KG" == Kai Grojohann [EMAIL PROTECTED] writes: KG Thanks, but the interesting part is what happens during the KG execurion of tramp-multi-connect-su. That's where the `t' KG occurs which isn't a list. Ok, after installing 2.0.2.1 from FTP and a bit of futzing around with edebug