all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; tramp/ido problem
@ 2007-11-22 12:30 joakim
  2007-11-22 21:46 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: joakim @ 2007-11-22 12:30 UTC (permalink / raw)
  To: emacs-pretest-bug


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

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.

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.




If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/23.0.50/etc/DEBUG for instructions.


In GNU Emacs 23.0.50.7 (i686-pc-linux-gnu, GTK+ Version 2.12.1)
 of 2007-11-22 on chopper
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--with-gtk' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg2''

Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<return> C-x k <return> M-x i d o <return> m o SPC 
<return> C-x C-f / s s h : M-x M-x f i l SPC e SPC 
<backspace> <backspace> <backspace> <backspace> <backspace> 
e m SPC a SPC SPC SPC b SPC SPC <backspace> SPC <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
f i l SPC <backspace> <backspace> <backspace> C-g <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Tramp: Waiting for prompts from remote shell
Tramp: Sending password
Tramp: Found remote shell prompt on `localhost'
Tramp: Opening connection for ssh using scp...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh ssh   -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
File error: Permission denied
tramp-error: Permission denied
Making completion list... [6 times]
Quit

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 23.0.50; tramp/ido problem
  2007-11-22 12:30 23.0.50; tramp/ido problem joakim
@ 2007-11-22 21:46 ` Michael Albinus
  2007-11-23 13:34   ` Kim F. Storm
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2007-11-22 21:46 UTC (permalink / raw)
  To: joakim; +Cc: emacs-pretest-bug, Kim F. Storm

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 23.0.50; tramp/ido problem
  2007-11-22 21:46 ` Michael Albinus
@ 2007-11-23 13:34   ` Kim F. Storm
  2007-11-23 13:49     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Kim F. Storm @ 2007-11-23 13:34 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-pretest-bug, joakim

Michael Albinus <michael.albinus@gmx.de> writes:

> <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?

I suppose tramp-completion-mode has been renamed to
tramp-completion-mode-p on the trunk??

If so, it looks fine.

Please install it.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 23.0.50; tramp/ido problem
  2007-11-23 13:34   ` Kim F. Storm
@ 2007-11-23 13:49     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2007-11-23 13:49 UTC (permalink / raw)
  To: Kim F. Storm; +Cc: emacs-pretest-bug, joakim

storm@cua.dk (Kim F. Storm) writes:

> I suppose tramp-completion-mode has been renamed to
> tramp-completion-mode-p on the trunk??

Yes, that is a change introduced with Tramp 2.1.

> If so, it looks fine.
>
> Please install it.

I'll do so.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-23 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-22 12:30 23.0.50; tramp/ido problem joakim
2007-11-22 21:46 ` Michael Albinus
2007-11-23 13:34   ` Kim F. Storm
2007-11-23 13:49     ` Michael Albinus

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.