[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PC-do-completion unconditionally adds wildcards to directory
From: |
Klaus Zeitler |
Subject: |
Re: PC-do-completion unconditionally adds wildcards to directory |
Date: |
16 Oct 2003 14:02:22 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Klaus" == Klaus Zeitler <address@hidden> writes:
Klaus>
Stefan> Could you try and step through PC-do-completion to see what
Stefan> happens in the two respective sections (the part that adds the *
Stefan> and the part that fails to remove it) ?
Klaus>
Klaus> I think I can now give you a simple example that make it possible to
Klaus> reproduce the problem:
Klaus> 1. Create ~/subdir
Klaus> 2. touch ~/subdir/file
Klaus> 3. In scratch buffer make sure the pwd is not ~
Klaus> 4. turn on partial-completion-mode
Klaus> 5. define and execute
Klaus> (defun get-name ()
Klaus> (interactive)
Klaus> (let ((insert-default-directory nil))
Klaus> (read-file-name "read: " "~" "subdir/file" t "subdir/file")))
Klaus> (get-name)
ok I debugged the section that is supposed to remove the wildcard from the
directory with the example above a bit.
IMHO there's only one line that could possibly remove the wildcard and that
would be
(setq files (PC-expand-many-files (concat pat "*")))
With the example above the function PC-expand-many-files is now called with
parameter "subdir*/file*" and returns (subdir*/file*).
My first guess would be that PC-expand-many-files is supposed to resolve the
wildcards and my 2nd guess is that it doesn't work cause we're not in the
right directory.
Klaus
--
------------------------------------------
| Klaus Zeitler Lucent Technologies |
| Email: address@hidden |
------------------------------------------
---
Don't take life too seriously. You will never
get out of it alive. -- Elbert Hubbard