[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp 2.15 signals error when opening directory with Emacs 21.4 (Ubu
From: |
Antonio Martinez |
Subject: |
Re: Tramp 2.15 signals error when opening directory with Emacs 21.4 (Ubuntu) |
Date: |
Fri, 27 Jan 2006 11:31:39 +0100 |
On 1/26/06, Michael Albinus <address@hidden> wrote:
> > I built and installed Tramp 2.15 on Ubuntu, Emacs 21.3.1. I tried to open a
> > remote directory /tmp on machine "redhat" using C-x C-f and got the
> > following
> > backtrace:
> >
> > Debugger entered--Lisp error: (args-out-of-range 1 12)
> > byte-code(Z`|" [beg 7] 2)
> > dired-insert-directory("/ssh:redhat:/tmp/" "-al" nil t)
> > dired-readin-insert("/ssh:redhat:/tmp/")
> > dired-readin("/ssh:redhat:/tmp/" #<buffer tmp<2>>)
> > dired-internal-noselect("/ssh:redhat:/tmp/" nil)
> > dired-noselect("/ssh:redhat:/tmp")
> > run-hook-with-args-until-success(dired-noselect "/ssh:redhat:/tmp")
> > find-file-noselect("/redhat:/tmp" nil nil 1)
> > find-file("/redhat:/tmp" 1)
> > call-interactively(find-file)
>
> A call to Tramp is not visible; and I believe, dired-insert-directory
> doesn't call it directly. Nevertheless, the last function called is
> byte-compiled, we don't know which it is.
I'm assuing that the issue is on Tramp's side because without loading
Tramp, the remote directory is displayed, while the error is signalled
after loading tramp.
> Do you feel comfortable to debug dired-insert-directory?
I'll give it a shot! :) Although it's true the backtrace doesn't show
a Tramp call, the CALL-PROCESS call in dired-insert-directory is
advised by TRAMP-HANDLE-CALL-PROCESS. T-H-C-P doesn't save all
excursions correctly, so the buffer returned is the *tramp ...*
buffer, not the dired buffer. The attached patch fixes this.
Thanks,
--Tony
tramp-handle-call-process-save-excursion-patch.diff
Description: Text document