tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed from XEmacs gurus (was: Invalid format character: ?m)


From: Daniel Serodio
Subject: Re: Help needed from XEmacs gurus (was: Invalid format character: ?m)
Date: 16 Jul 2002 09:36:55 -0300

        The suggested workaround solved this problem, but now I got another
one:

Signaling: (wrong-number-of-arguments (lambda (directory &optional full
match nosort) "Like `directory-files' for tramp files." (let ((v
(tramp-dissect-file-name (tramp-handle-expand-file-name directory)))
multi-method method user host path result x) (setq multi-method
(tramp-file-name-multi-method v)) (setq method (tramp-file-name-method
v)) (setq user (tramp-file-name-user v)) (setq host
(tramp-file-name-host v)) (setq path (tramp-file-name-path v))
(save-excursion (tramp-barf-unless-okay multi-method method user host
(concat "cd " (tramp-shell-quote-argument path)) nil (quote file-error)
"tramp-handle-directory-files: couldn't `cd %s'"
(tramp-shell-quote-argument path)) (tramp-send-command multi-method
method user host (concat (tramp-get-ls-command multi-method method user
host) " -a | cat")) (tramp-wait-for-output) (goto-char (point-max))
(while (zerop (forward-line -1)) (setq x (buffer-substring (point)
(tramp-line-end-position))) (when (or (not match) (string-match match
x)) (if full (push (concat (file-name-as-directory directory) x) result)
(push x result)))) (tramp-send-command multi-method method user host
"cd") (tramp-wait-for-output)) result)) 5)
  signal(wrong-number-of-arguments ((lambda (directory &optional full
match nosort) "Like `directory-files' for tramp files." (let ... ... ...
... ... ... ... result)) 5))
  byte-code("..." [buf data kill-buffer signal] 3)
  find-file-noselect("/[alicia]/tmp/teste")
  find-file("/[alicia]/tmp/teste" nil)
  call-interactively(find-file)

        Thanks for your help.

On Tue, 2002-07-16 at 05:34, Kai Großjohann wrote:
> Pete Forman <address@hidden> writes:
> 
> > Yes, fails on my XEmacs.  But this works on both XEmacs and Emacs.
> >
> > (format-spec "/[%m/%h]%p" '((?m . "scp") (?h . "alicia") (?p . 
> > "/tmp/teste")))
> 
> Hm, so it's got characters rather than numbers.  But the function
> tramp-make-tramp-file-name does this:
> 
>       (format-spec tramp-make-tramp-file-user-nil-format
>                    (list (cons ?m method)
>                          (cons ?h host)
>                          (cons ?p path)))
> 
> So it clearly uses characters rather than numbers.  What's the
> problem?
> 
> Maybe it works with
> 
>     `((?m . ,method) (?h . ,host) (?p . ,path))
> 
> instead of
> 
>     (list (cons ?m method) (cons ?h host) (cons ?p path))
> 
> ?  That might be a workaround, if a strange one...
> 
> kai
> -- 
> A large number of young women don't trust men with beards.  (BFBS Radio)

-- 
[]'s
Daniel Serodio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]