all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 8256@debbugs.gnu.org
Subject: bug#8256: widget-complete does not complete for type 'directory onw32
Date: Tue, 15 Mar 2011 16:27:52 +0100	[thread overview]
Message-ID: <AANLkTikGBnKwWE-3gmUuc5bTv6y+T+HK5vnOgOBvV96W@mail.gmail.com> (raw)
In-Reply-To: <7BE6FADD4020432887E611DE8999715F@us.oracle.com>

On Tue, Mar 15, 2011 at 3:50 PM, Drew Adams <drew.adams@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.





  reply	other threads:[~2011-03-15 15:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 10:26 bug#8256: widget-complete does not complete for type 'directory on w32 Lennart Borgman
2011-03-15 11:17 ` Eli Zaretskii
2011-03-15 11:22   ` Lennart Borgman
2011-03-15 11:56     ` Eli Zaretskii
2011-03-15 12:32       ` Lennart Borgman
2011-03-15 13:00         ` Eli Zaretskii
2011-03-15 13:08           ` Lennart Borgman
2011-03-15 14:48             ` Eli Zaretskii
2011-03-15 14:50             ` bug#8256: widget-complete does not complete for type 'directory onw32 Drew Adams
2011-03-15 15:27               ` Lennart Borgman [this message]
2011-03-15 16:01             ` bug#8256: widget-complete does not complete for type 'directory on w32 Juanma Barranquero
2011-03-15 16:16               ` Lennart Borgman
2011-03-15 17:12                 ` Juanma Barranquero
2012-02-22 20:25                   ` Glenn Morris
2011-03-15 17:18             ` Stefan Monnier
2011-03-15 17:40               ` Lennart Borgman
2011-03-15 18:04               ` bug#8256: widget-complete does not complete for type 'directory onw32 Drew Adams
2011-03-15 18:11                 ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikGBnKwWE-3gmUuc5bTv6y+T+HK5vnOgOBvV96W@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=8256@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.