emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: PC-do-completion unconditionally adds wildcards to directory


From: Stefan Monnier
Subject: Re: PC-do-completion unconditionally adds wildcards to directory
Date: 15 Oct 2003 13:27:21 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Debugger entered--Lisp error: (file-error "Opening directory" "no such file 
> or directory" 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/main*/")
>   #<subr read-file-name-internal>("main*/58" 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/" t)
>   read-file-name-internal("main*/58" 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/" t)
>   all-completions("main*/58" read-file-name-internal 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/")
>   PC-do-completion(exit)
>   PC-do-complete-and-exit()
>   PC-complete-and-exit()
>   call-interactively(PC-complete-and-exit)
>   read-file-name("Version for comparison: " 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/" "main/58" t 
> "main/58")
>   clearcase-read-version-name("Version for comparison: " 
> "/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc")
>   (list (clearcase-read-version-name "Version for comparison: " 
> buffer-file-name))
>   call-interactively(clearcase-ediff-named-version-current-buffer)

So if I understand correctly, you are in directory
"/vobs/ubtssw_onecell_images/sunos/sunboard/src/misc.cc@@/" and the prompt
says "main/58" and you hit RET.  Two things I do not understand:

1 - why was the * added ?  Is `main' not a directory ?
    What does (file-directory-p "main/") return when run from the misc.cc@@
    directory ?

2 - why wasn't the * removed in the part that says

      ;; Look for wildcard expansions in directory name

The first part is the more troubling (the second probably derives from the
same problem as the first).

Could you try and step through PC-do-completion to see what happens in
the two respective sections (the part that adds the * and the part
that fails to remove it) ?

The backtrace shows you're using some kind of clearcase.el package.
I doubt this has any influence, but it would be good to reproduce the
problem without loading this package, just to be sure.


        Stefan




reply via email to

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