tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp-find-file-exists-command problem with ntemacs 22.0.92.1


From: Michael Albinus
Subject: Re: tramp-find-file-exists-command problem with ntemacs 22.0.92.1
Date: Fri, 20 Jul 2007 11:46:24 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

Michael Albinus <address@hidden> writes:

Hi Patrick,

> I will see whether I can find a solution for this. On the other hand,
> in Tramp 2.1 seem to be fixes for this problem. Given, that the code
> basis between Tramp 2.0 and 2.1 is fairly different, and given that
> Tramp 2.1 is now in the Emacs CVS trunk, it might be more efficient to
> concentrate on Tramp 2.1.

Could you, please, check whether the following patch works for you? It
is based on Tramp 2.0.56, line numbers might be slightly different.

*** /tmp/tramp.el.~1~   Fri Jul 20 11:40:24 2007
--- /tmp/tramp.el       Fri Jul 20 11:40:24 2007
***************
*** 4354,4364 ****
        (cond
         ;; When we are in completion mode, some operations shouldn' be
         ;; handled by backend.
-        ((and completion (memq operation '(expand-file-name)))
-         (tramp-run-real-handler operation args))
         ((and completion (zerop (length localname))
               (memq operation '(file-exists-p file-directory-p)))
          t)
         ;; Call the backend function.
         (foreign (apply foreign operation args))
         ;; Nothing to do for us.
--- 4354,4365 ----
        (cond
         ;; When we are in completion mode, some operations shouldn' be
         ;; handled by backend.
         ((and completion (zerop (length localname))
               (memq operation '(file-exists-p file-directory-p)))
          t)
+        ((and completion (zerop (length localname))
+              (memq operation '(file-name-as-directory)))
+         filename)
         ;; Call the backend function.
         (foreign (apply foreign operation args))
         ;; Nothing to do for us.

>> cheers,
>>
>> /Patrik

Thanks, and best regards, Michael.





reply via email to

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