[EMAIL PROTECTED] (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.
_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel