all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: <joakim@verona.se>
Cc: emacs-pretest-bug@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: 23.0.50; tramp/ido problem
Date: Thu, 22 Nov 2007 22:46:23 +0100	[thread overview]
Message-ID: <87sl2ylzrk.fsf@gmx.de> (raw)
In-Reply-To: <m3ejei5upb.fsf@verona.se> (joakim@verona.se's message of "Thu, 22 Nov 2007 13:30:08 +0100")

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

<joakim@verona.se> writes:

> emacs -q
> m-x ido-mode
>
> now type:
>
> c-x f /ssh:
>
> now I get:
>
> File error: Permission denied
>
> Withouth ido-mode, I can type a full tramp url and open it.

The appended patch in ido.el shall fix it. Kim, do you object, or shall
I install it in the trunk?

> Another problem is that tramp doesnt work at all whan I start my normal emacs session
> withouth -q. So far I have no clue if its related. An earlier emacs build of mine
> does work well with the same setup and tramp.

You might start with an empty .emacs file, and add feature by feature
from you original .emacs. Then we will see what's the culprit.

Best regards, Michael.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 2042 bytes --]

*** /home/albinus/src/emacs/lisp/ido.el.~1.137.~	2007-11-19 19:42:15.000000000 +0100
--- /home/albinus/src/emacs/lisp/ido.el	2007-11-22 22:34:14.000000000 +0100
***************
*** 3373,3396 ****
     ;; Caller must have done that if necessary.
  
     ((and ido-enable-tramp-completion
! 	 (or (fboundp 'tramp-completion-mode)
  	     (require 'tramp nil t))
  	 (string-match "\\`/[^/]+[:@]\\'" dir))
      ;; Strip method:user@host: part of tramp completions.
      ;; Tramp completions do not include leading slash.
!     (let ((len (1- (length dir)))
! 	  (compl
! 	   (or (file-name-all-completions "" dir)
! 	       ;; work around bug in ange-ftp.
! 	       ;; /ftp:user@host: => nil
! 	       ;; /ftp:user@host:./ => ok
! 	       (and
! 		(not (string= "/ftp:" dir))
! 		(tramp-tramp-file-p dir)
! 		(fboundp 'tramp-ftp-file-name-p)
! 		(funcall 'tramp-ftp-file-name-p dir)
! 		(string-match ":\\'" dir)
! 		(file-name-all-completions "" (concat dir "./"))))))
        (if (and compl
  	       (> (length (car compl)) len)
  	       (string= (substring (car compl) 0 len) (substring dir 1)))
--- 3373,3397 ----
     ;; Caller must have done that if necessary.
  
     ((and ido-enable-tramp-completion
! 	 (or (fboundp 'tramp-completion-mode-p)
  	     (require 'tramp nil t))
  	 (string-match "\\`/[^/]+[:@]\\'" dir))
      ;; Strip method:user@host: part of tramp completions.
      ;; Tramp completions do not include leading slash.
!     (let* ((len (1- (length dir)))
! 	   (tramp-completion-mode t)
! 	   (compl
! 	    (or (file-name-all-completions "" dir)
! 		;; work around bug in ange-ftp.
! 		;; /ftp:user@host: => nil
! 		;; /ftp:user@host:./ => ok
! 		(and
! 		 (not (string= "/ftp:" dir))
! 		 (tramp-tramp-file-p dir)
! 		 (fboundp 'tramp-ftp-file-name-p)
! 		 (funcall 'tramp-ftp-file-name-p dir)
! 		 (string-match ":\\'" dir)
! 		 (file-name-all-completions "" (concat dir "./"))))))
        (if (and compl
  	       (> (length (car compl)) len)
  	       (string= (substring (car compl) 0 len) (substring dir 1)))

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2007-11-22 21:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-22 12:30 23.0.50; tramp/ido problem joakim
2007-11-22 21:46 ` Michael Albinus [this message]
2007-11-23 13:34   ` Kim F. Storm
2007-11-23 13:49     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sl2ylzrk.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=joakim@verona.se \
    --cc=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.