clemens fischer | 1 Dec 2002 01:21

Re: tramp (2.0.25); saving remote buffer fails

kai.grossjohann <at> uni-duisburg.de (Kai Großjohann):

> Your default method is ssh, therefore /name <at> machine:/ should have
> invoked Tramp with the ssh method.
>
> Is this the case?

i had no tramp configuration whatsoever and use the 21.3.50.1 cvs
emacs tramp.  but the default method was indeed set to "ssh"
nonetheless.

so i change it to "ftp" as per the docstring, but the problem
persists.  this has nothing to do with the access method, because i
can get the file, but i can't _save_ it.  the problem remains the
same, but i haven't yet gotten a verbose backtrace.  the current one,
after changing the default method, is:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  logand(nil 3072)

  byte-code("„W
  „W
„'
„H
  [file-precious-flag backup-by-copying modes
  backup-by-copying-when-linked real-file-name
  backup-by-copying-when-mismatch 0 logand 3072 file-nlinks 1
  file-attributes 2 9 file-ownership-preserved-p backup-buffer-copy
  rename-file t backup-by-copying-when-privileged-mismatch attr
  backupname setmodes] 4)
(Continue reading)

clemens fischer | 1 Dec 2002 01:28

Re: tramp (2.0.25); saving remote buffer fails

kai.grossjohann <at> uni-duisburg.de (Kai Großjohann):

> "Clemens Fischer" <ino-qc <at> spotteswoode.de.eu.org> writes:
>
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>>   logand(nil 3072)
>>   byte-code("
>
> Could you produce another backtrace with more Lisp and less
> bytecode?  The solution is to look below the bytecode to find the
> function that was called, then to find the *.el file containing this
> function, and to load that with M-x load-library RET.  Repeat if the
> new backtrace still has bytecode.

here we go:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  logand(nil 3072)
  (< 0 (logand modes 3072))
  (or file-precious-flag backup-by-copying (< 0 (logand modes 3072)) (and
backup-by-copying-when-linked (> ... 1)) (and (or backup-by-copying-when-mismatch ...) (let ... ...)))
  (if (or file-precious-flag backup-by-copying (< 0 ...) (and backup-by-copying-when-linked ...) (and
... ...)) (backup-buffer-copy real-file-name backupname modes) (rename-file real-file-name
backupname t) (setq setmodes (cons modes backupname)))
  (condition-case nil (if (or file-precious-flag backup-by-copying ... ... ...) (backup-buffer-copy
real-file-name backupname modes) (rename-file real-file-name backupname t) (setq setmodes ...))
(file-error (setq backupname ...) (message "Cannot write backup file; backing up in %s" ...) (sleep-for
1) (backup-buffer-copy real-file-name backupname modes)))
  (let ((delete-old-versions ...) (modes ...)) (condition-case nil (if ... ... ... ...) (file-error ...
... ... ...)) (setq buffer-backed-up t) (if delete-old-versions (while targets ... ...)) setmodes)
(Continue reading)

Roberto Sebastiano | 1 Dec 2002 01:33
Picon

Su method no longer works ?

If I do ctrl-x-f /su:root <at> localhost I get:
ssh: su: Name or service not known

Process *tramp/nil su* exited abnormally with code 255

I cannot even write the entire string.. I get that message after "/su:"
It seems that it ignores the su method.. any idea ?
I'm using tramp 2.0.26

Cheers,
--

-- 
Roberto Sebastiano <askrs <at> tiscalinet.it>
Michael Albinus | 1 Dec 2002 17:49
Picon
Picon

Re: Su method no longer works ?

Roberto Sebastiano <askrs <at> tiscalinet.it> writes:

> If I do ctrl-x-f /su:root <at> localhost I get:
> ssh: su: Name or service not known
> 
> Process *tramp/nil su* exited abnormally with code 255

Your file name is incomplete, so Tramp is assuming you're using
(default) method "ssh", host "su", file "root <at> localhost". You might
try "/su:root <at> localhost:.", or something like this.

> I cannot even write the entire string.. I get that message after "/su:"
> It seems that it ignores the su method.. any idea ?
> I'm using tramp 2.0.26
> 
> Cheers,

Best regards, Michael.
Roberto Sebastiano | 1 Dec 2002 20:22
Picon

Re: Su method no longer works ?

Il dom, 2002-12-01 alle 17:49, Michael Albinus ha scritto:
> Roberto Sebastiano <askrs <at> tiscalinet.it> writes:
> 
> > If I do ctrl-x-f /su:root <at> localhost I get:
> > ssh: su: Name or service not known
> > 
> > Process *tramp/nil su* exited abnormally with code 255
> 
> Your file name is incomplete, so Tramp is assuming you're using
> (default) method "ssh", host "su", file "root <at> localhost". You might
> try "/su:root <at> localhost:.", or something like this.
> 
If I write /su: I get the error.. I CANNOT write anything after ":" ..

> Best regards, Michael.

Cheers
--

-- 
Roberto Sebastiano <askrs <at> tiscalinet.it>
Roberto Sebastiano | 1 Dec 2002 20:22
Picon

Re: Su method no longer works ?

Il dom, 2002-12-01 alle 14:27, Kai Großjohann ha scritto:
> Roberto Sebastiano <askrs <at> tiscalinet.it> writes:
> 
> > If I do ctrl-x-f /su:root <at> localhost I get:
> > ssh: su: Name or service not known
> >
> > Process *tramp/nil su* exited abnormally with code 255
> >
> >
> > I cannot even write the entire string.. I get that message after "/su:"
> > It seems that it ignores the su method.. any idea ?
> > I'm using tramp 2.0.26
> 
> Are you using ido?

IDO ?

--

-- 
Roberto Sebastiano <askrs <at> tiscalinet.it>
Michael Albinus | 2 Dec 2002 09:25
Picon
Picon

Re: Su method no longer works ?

Roberto Sebastiano <askrs <at> tiscalinet.it> writes:

> Il dom, 2002-12-01 alle 17:49, Michael Albinus ha scritto:
> > Roberto Sebastiano <askrs <at> tiscalinet.it> writes:
> > 
> > > If I do ctrl-x-f /su:root <at> localhost I get:
> > > ssh: su: Name or service not known
> > > 
> > > Process *tramp/nil su* exited abnormally with code 255
> > 
> > Your file name is incomplete, so Tramp is assuming you're using
> > (default) method "ssh", host "su", file "root <at> localhost". You might
> > try "/su:root <at> localhost:.", or something like this.
> > 
> If I write /su: I get the error.. I CANNOT write anything after ":"
> ..

Strange. You mean, no further input possible in minibuffer? Even not a
<TAB> or <RET>?

And how did you enter your first example "/su:root <at> localhost"? Could
you, please, provide the keystrokes you've entered (by "C-h l")?

> Cheers

Best regards, Michael.
Klaus-Georg Adams | 2 Dec 2002 10:16
Picon
Favicon

Re: 2.0.26 released

Hi,

kai.grossjohann <at> uni-duisburg.de (Kai Großjohann) writes:

> This version is almost exclusively composed of changes by Michael
> Albinus.  Great work, Michael!
> 
> This version supports `plugins' for foreign completion methods, so to
> speak.  The previous special-casing for Ange-FTP was removed and is
> now factored out into its own file.
> 
> A new plugin for using smbclient has been added.  This means you can
> use Tramp to access remote SMB servers -- isn't that cool?  (I don't
> have an SMB server to access, but I think it's cool.)

this is definitely cool and it works like a charm. It took some
fiddling with the filename syntax (no documentation yet...) but I got
it to run with this:

C-x f /smb:<DOMAIN>\<LOGIN> <at> <HOST>:/<SHARE> RET

where <DOMAIN>, <LOGIN>, <HOST> and <SHARE> are substituted with
sensible values... (this is on GNU emacs 21.1.1).

I was just wondering if it would be possible to somehow preset
<DOMAIN> and <LOGIN> to default values to save some typing (apart from
using the environment)...

On a related note: is it possible to open a file with a literal $ sign
in the name? In an effort of good will emacs tries to substitute an
(Continue reading)

Michael Albinus | 2 Dec 2002 10:37
Picon
Picon

Re: 2.0.26 released

Klaus-Georg Adams <Klaus-Georg.Adams <at> sap.com> writes:

> Hi,

Hi,

> this is definitely cool and it works like a charm. It took some
> fiddling with the filename syntax (no documentation yet...) but I got

Oops. I wrote something under "External transfer methods" in the Info
pages. Maybe you didn't generate the actual ones?

> it to run with this:
> 
> C-x f /smb:<DOMAIN>\<LOGIN> <at> <HOST>:/<SHARE> RET
> 
> where <DOMAIN>, <LOGIN>, <HOST> and <SHARE> are substituted with
> sensible values... (this is on GNU emacs 21.1.1).

That's indeed like a charm, because I haven't prepared it for _that_
syntax :-)

> I was just wondering if it would be possible to somehow preset
> <DOMAIN> and <LOGIN> to default values to save some typing (apart from
> using the environment)...

Hmm. Different to all other Tramp methods, the default setting is
anonymous access to SMB, which (unfortunately often) makes sense.

> On a related note: is it possible to open a file with a literal $ sign
(Continue reading)

Julien Avarre | 2 Dec 2002 10:46
X-Face

tramp (2.0.25); Unable to save files by ftp


When the function save-buffer is called, I've got an error and 
``byte-code: Wrong type argument: number-or-marker-p, nil''
So I can't save my file :-(

I've got this trouble in ftp mode only.
I also tried ``ssh2: connexion´´ and there is no problem at all.

Thank you.

,----[ Buffer *Messages* ]
| Opening FTP connection to ftpperso.free.fr...done
| Logging in as user aemc.asso <at> ftpperso.free.fr...done
| Getting PWD...done
| Listing /ftp:aemc.asso <at> ftpperso.free.fr:/...done
| byte-code: Wrong type argument: number-or-marker-p, nil
`----

--bug report follows this line--

Emacs  : GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-12-02 on floa
Package: tramp (2.0.25)

current state:
==============
(setq
 tramp-ls-command nil
 tramp-test-groks-nt nil
 tramp-file-exists-command nil
(Continue reading)


Gmane