GNU bug report logs -
#8256
widget-complete does not complete for type 'directory on w32
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8256 in the body.
You can then email your comments to 8256 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 10:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 15 Mar 2011 10:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I can not complete directories in a custom buffer for something like this:
(defcustom my-dir nil
"doc"
:type 'directory)
Nothing happens when I call widget-complete.
GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-03-02
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 11:18:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Tue, 15 Mar 2011 11:26:11 +0100
> Cc:
>
> I can not complete directories in a custom buffer for something like this:
>
> (defcustom my-dir nil
> "doc"
> :type 'directory)
>
> Nothing happens when I call widget-complete.
Does ESC-TAB complete in that case?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 11:23:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 12:17 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Tue, 15 Mar 2011 11:26:11 +0100
>> Cc:
>>
>> I can not complete directories in a custom buffer for something like this:
>>
>> (defcustom my-dir nil
>> "doc"
>> :type 'directory)
>>
>> Nothing happens when I call widget-complete.
>
> Does ESC-TAB complete in that case?
What do you mean? I just said it didn't?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 11:57:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Tue, 15 Mar 2011 12:22:13 +0100
> Cc: 8256 <at> debbugs.gnu.org
>
> On Tue, Mar 15, 2011 at 12:17 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> >> Date: Tue, 15 Mar 2011 11:26:11 +0100
> >> Cc:
> >>
> >> I can not complete directories in a custom buffer for something like this:
> >>
> >> (defcustom my-dir nil
> >> "doc"
> >> :type 'directory)
> >>
> >> Nothing happens when I call widget-complete.
> >
> > Does ESC-TAB complete in that case?
>
> What do you mean? I just said it didn't?
No, you said you called widget-complete, but did not say what happens
if you type ESC-TAB.
The thing is, it works for me (on Windows), at least in Emacs 23.3.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 12:34:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 12:56 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> Date: Tue, 15 Mar 2011 12:22:13 +0100
>> Cc: 8256 <at> debbugs.gnu.org
>>
>> On Tue, Mar 15, 2011 at 12:17 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> >> From: Lennart Borgman <lennart.borgman <at> gmail.com>
>> >> Date: Tue, 15 Mar 2011 11:26:11 +0100
>> >> Cc:
>> >>
>> >> I can not complete directories in a custom buffer for something like this:
>> >>
>> >> (defcustom my-dir nil
>> >> "doc"
>> >> :type 'directory)
>> >>
>> >> Nothing happens when I call widget-complete.
>> >
>> > Does ESC-TAB complete in that case?
>>
>> What do you mean? I just said it didn't?
>
> No, you said you called widget-complete, but did not say what happens
> if you type ESC-TAB.
Yes, but ESC-TAB runs widget-complete (if you have not changed anything).
> The thing is, it works for me (on Windows), at least in Emacs 23.3.
Sorry, forgot to say I am using the trunk sources.
But I just downloaded the official 23.3 binaries and tested. It does
not work for me. When I hit ESC-TAB I just get a message:
complete-symbol: No completions available; use M-x visit-tags-table
or M-x semantic-mode
I can see "complete-symbol" only in *Messages*, not in the echo area.
(How does that work?)
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 13:01:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Tue, 15 Mar 2011 13:32:38 +0100
> Cc: 8256 <at> debbugs.gnu.org
>
> But I just downloaded the official 23.3 binaries and tested. It does
> not work for me. When I hit ESC-TAB I just get a message:
>
> complete-symbol: No completions available; use M-x visit-tags-table
> or M-x semantic-mode
>
> I can see "complete-symbol" only in *Messages*, not in the echo area.
> (How does that work?)
We are probably doing different things, because you didn't provide the
exact recipe for reproducing the problem. Could you please give such
a recipe, starting with "emacs -Q"?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 13:09:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 2:00 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> We are probably doing different things, because you didn't provide the
> exact recipe for reproducing the problem. Could you please give such
> a recipe, starting with "emacs -Q"?
Is that really possible for such a simple thing?;-)
Ok, here it is:
emacs -Q
Paste to *scratch* this code:
(defcustom my-dir nil
"doc"
:type 'directory)
Eval it.
M-x customize-option RET my-dir RET
Place point in the directory value field and erase "nil" that is there.
Now in the empty directory value field press ESC-TAB (or do M-x
widget-complete).
This fails for me with the message I gave before:
> complete-symbol: No completions available; use M-x visit-tags-table
> or M-x semantic-mode
Write for example "c:/" in the field and try again. It fails the same way.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 14:49:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> From: Lennart Borgman <lennart.borgman <at> gmail.com>
> Date: Tue, 15 Mar 2011 14:08:33 +0100
> Cc: 8256 <at> debbugs.gnu.org
>
> On Tue, Mar 15, 2011 at 2:00 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >
> > We are probably doing different things, because you didn't provide the
> > exact recipe for reproducing the problem. Could you please give such
> > a recipe, starting with "emacs -Q"?
>
> Is that really possible for such a simple thing?;-)
Yes, it is. I was trying to reproduce this with a real defcustom
(archive-tmpdir, if you want to know), not with a fictitious
defcustom.
> emacs -Q
> Paste to *scratch* this code:
>
> (defcustom my-dir nil
> "doc"
> :type 'directory)
>
> Eval it.
> M-x customize-option RET my-dir RET
>
> Place point in the directory value field and erase "nil" that is there.
> Now in the empty directory value field press ESC-TAB (or do M-x
> widget-complete).
>
> This fails for me with the message I gave before:
>
> > complete-symbol: No completions available; use M-x visit-tags-table
> > or M-x semantic-mode
>
> Write for example "c:/" in the field and try again. It fails the same way.
I see the same on GNU/Linux (except that "C:/" should be replaced with
a "/", of course). So this is not w32-specific.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 14:51:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> (defcustom my-dir nil "doc" :type 'directory)
>
> M-x customize-option RET my-dir RET
You get a type mismatch, of course, since nil is not a directory.
> Place point in the directory value field and erase "nil"
> that is there. Now in the empty directory value field
> press ESC-TAB. This fails
Try again, with a valid directory as the default value - e.g. "c:/foo/"
Keep in mind too that the completion uses `default-directory'. Dunno whether
that's always appropriate, but that's what it uses.
But I agree that regardless of the initial type mismatch, you should be able to
type a legitimate directory prefix and get completion.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 15:29:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 3:50 PM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> (defcustom my-dir nil "doc" :type 'directory)
>>
>> M-x customize-option RET my-dir RET
>
> You get a type mismatch, of course, since nil is not a directory.
>
>> Place point in the directory value field and erase "nil"
>> that is there. Now in the empty directory value field
>> press ESC-TAB. This fails
>
> Try again, with a valid directory as the default value - e.g. "c:/foo/"
Ah, you are right. It kind of works with a valid default. (And this
does not have to be an existing directory.)
That was quite unexpected. And it is of course very inconvenient that
you can not customize a variable the normal way just because the
default value happens to be bad.
I think similar troubles in other places in custom too, but I can't
remember where now.
> Keep in mind too that the completion uses `default-directory'. Dunno whether
> that's always appropriate, but that's what it uses.
Thanks. I see a little bit different behaviour, but, yes, there is
another bug. This is what I see:
I looked at two rather similar cases that does not behave the same:
1) Default is a non-existing directory. If I try to complete this I
get completion candidates. It looks like it complets against
default-directory.
2) Default is "", but I enter the same directory into the directory
field in custom. Now I get no completion candidates.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 16:03:01 GMT)
Full text and
rfc822 format available.
Message #35 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 14:08, Lennart Borgman
<lennart.borgman <at> gmail.com> wrote:
>> We are probably doing different things, because you didn't provide the
>> exact recipe for reproducing the problem. Could you please give such
>> a recipe, starting with "emacs -Q"?
>
> Is that really possible for such a simple thing?;-)
It's really so difficult to understand that giving an "emacs -Q"
recipe should be the *standard*, *default* way to make a bug report
and by not making so you waste other people's time?
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 16:18:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 5:01 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Tue, Mar 15, 2011 at 14:08, Lennart Borgman
> <lennart.borgman <at> gmail.com> wrote:
>
>>> We are probably doing different things, because you didn't provide the
>>> exact recipe for reproducing the problem. Could you please give such
>>> a recipe, starting with "emacs -Q"?
>>
>> Is that really possible for such a simple thing?;-)
>
> It's really so difficult to understand that giving an "emacs -Q"
> recipe should be the *standard*, *default* way to make a bug report
> and by not making so you waste other people's time?
That was not the problem here. The problem was that perhaps was not
clear enough that I did give it.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 17:14:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 17:16, Lennart Borgman
<lennart.borgman <at> gmail.com> wrote:
> That was not the problem here. The problem was that perhaps was not
> clear enough that I did give it.
Not giving an "emacs -Q" recipe in a bug report is always* a problem.
* [unless the nature of the bug precludes doing so, which is infrequent]
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 17:19:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> emacs -Q
> Paste to *scratch* this code:
> (defcustom my-dir nil
> "doc"
> :type 'directory)
> Eval it.
> M-x customize-option RET my-dir RET
Problem here: nil is not a directory, so the above defcustom is not
valid. Oddly enough Customize does not signal the error, and instead
gets into a weird state. Once you set my-dir to a string, things work
much better.
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 17:42:02 GMT)
Full text and
rfc822 format available.
Message #47 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 6:18 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> emacs -Q
>> Paste to *scratch* this code:
>
>> (defcustom my-dir nil
>> "doc"
>> :type 'directory)
>
>> Eval it.
>> M-x customize-option RET my-dir RET
>
> Problem here: nil is not a directory, so the above defcustom is not
> valid. Oddly enough Customize does not signal the error, and instead
> gets into a weird state. Once you set my-dir to a string, things work
> much better.
What should signal that it the defcustom is not valid? And when?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 18:05:02 GMT)
Full text and
rfc822 format available.
Message #50 received at 8256 <at> debbugs.gnu.org (full text, mbox):
> Problem here: nil is not a directory, so the above defcustom is not
> valid. Oddly enough Customize does not signal the error, and instead
> gets into a weird state. Once you set my-dir to a string, things work
> much better.
Customize does indicate the type mismatch, as usual via `(mismatch)'.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Tue, 15 Mar 2011 18:12:02 GMT)
Full text and
rfc822 format available.
Message #53 received at 8256 <at> debbugs.gnu.org (full text, mbox):
On Tue, Mar 15, 2011 at 7:04 PM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> Problem here: nil is not a directory, so the above defcustom is not
>> valid. Oddly enough Customize does not signal the error, and instead
>> gets into a weird state. Once you set my-dir to a string, things work
>> much better.
>
> Customize does indicate the type mismatch, as usual via `(mismatch)'.
Yes. It writes that. And then goes into a weird state.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#8256
; Package
emacs
.
(Wed, 22 Feb 2012 20:28:01 GMT)
Full text and
rfc822 format available.
Message #56 received at 8256 <at> debbugs.gnu.org (full text, mbox):
I have no idea what's necessary to close this.
AFAICS, the whole thing boils down to a fictitious example using an
incorrect default.
nil != :type 'directory, and custom indicates this with "mismatch".
Added tag(s) notabug and moreinfo.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 22 Feb 2012 20:29:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
8256 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Dec 2012 03:00:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 05 Jan 2013 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 172 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.