[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
partial-completion-mode and tramp.
From: |
Matt Hodges |
Subject: |
partial-completion-mode and tramp. |
Date: |
Mon, 10 May 2004 20:19:20 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
In GNU Emacs 21.3.50.4 (i686-pc-linux-gnu, GTK+ Version 2.2.4)
of 2004-05-10 on dugong
configured using `configure '--with-gtk''
Important settings:
value of $LC_ALL: nil
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: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
I've tracked down a problem with partial-completion-mode and tramp
that has been bugging me for a while.
Behaviour with emacs -Q:
C-x C-f ~/.emacs// TAB => / [after minibuffer prompt]
C-x C-f ~/.emacs/ TAB => "not a directory error"
Completion still works:
C-x C-f ~/.emacs// TAB => /
Now evaluate:
(progn
(require 'tramp)
(partial-completion-mode))
This works:
C-x C-f ~/.emacs// TAB => /
(symbol-function 'substitute-in-file-name) =>
#<subr substitute-in-file-name>
This causes a "no such file or directory" error:
C-x C-f ~/.emacs/ TAB => /home/matt/*.emacs*/
and:
(symbol-function 'substitute-in-file-name) => #<subr identity>
Completion that worked above now fails:
C-x C-f ~/.emacs// TAB => /home/matt/*.emacs*/*/
since substitute-in-file-name has been clobbered. Find attached a
simple fix. Thanks,
Matt
tramp-smb.patch
Description: Patch for tramp-smb.el
- partial-completion-mode and tramp.,
Matt Hodges <=