tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.0.52); completion detection in console


From: Michael Albinus
Subject: Re: tramp (2.0.52); completion detection in console
Date: Sat, 15 Apr 2006 11:11:20 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

address@hidden (Matthias Förste) writes:

Hi,

> Trying to complete ftp filenames ("/ftp:") in the console fails (didnt
> test other methods), because 'tramp-completion-mode' returns always nil
> for me. Attached diff fixes this behaviour (for me for now).
>
>
> Index: tramp.el
> ===================================================================
> --- tramp.el  (revision 131)
> +++ tramp.el  (revision 132)
> @@ -4456,10 +4456,13 @@
>     ((or (equal last-input-event 'tab)
>       ;; Emacs
>       (and (integerp last-input-event)
> -          (not (event-modifiers last-input-event))
> -          (or (char-equal last-input-event ?\?)
> -              (char-equal last-input-event ?\t) ; handled by 'tab already?
> -              (char-equal last-input-event ?\ )))
> +         (or
> +          (and (equal (event-modifiers last-input-event) '(control))
> +               (char-equal last-input-event ?\t))
> +          (and (not (event-modifiers last-input-event))
> +               (or (char-equal last-input-event ?\?)
> +                   (char-equal last-input-event ?\t) ; handled by 'tab 
> already?
> +                   (char-equal last-input-event ?\ )))))
>       ;; XEmacs
>       (and (featurep 'xemacs)
>            (not (event-modifiers last-input-event))

If I understand correctly, you need to handle C-<TAB> additionally. Why
that? Do you have enabled partial completion mode, and want to get
basic behaviour? Doesn't a simple <TAB> complete?

Best regards, Michael.




reply via email to

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