From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#8256: widget-complete does not complete for type 'directory onw32 Date: Tue, 15 Mar 2011 16:27:52 +0100 Message-ID: References: <7BE6FADD4020432887E611DE8999715F@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300203443 5662 80.91.229.12 (15 Mar 2011 15:37:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2011 15:37:23 +0000 (UTC) Cc: 8256@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 15 16:37:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzWJC-0007uQ-OA for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 16:37:19 +0100 Original-Received: from localhost ([127.0.0.1]:48842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzWJC-0001Bx-4w for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 11:37:18 -0400 Original-Received: from [140.186.70.92] (port=56004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzWJ1-0001Be-Tw for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 11:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzWIw-00062p-O4 for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 11:37:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzWIw-00062l-Kw for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 11:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PzWBB-0004AJ-VS; Tue, 15 Mar 2011 11:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Mar 2011 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8256 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8256-submit@debbugs.gnu.org id=B8256.130020290115963 (code B ref 8256); Tue, 15 Mar 2011 15:29:01 +0000 Original-Received: (at 8256) by debbugs.gnu.org; 15 Mar 2011 15:28:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzWAW-00049Q-7y for submit@debbugs.gnu.org; Tue, 15 Mar 2011 11:28:20 -0400 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzWAU-00049B-32 for 8256@debbugs.gnu.org; Tue, 15 Mar 2011 11:28:18 -0400 Original-Received: by ewy19 with SMTP id 19so221580ewy.3 for <8256@debbugs.gnu.org>; Tue, 15 Mar 2011 08:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=aykYPo3kb/tAJ91atK0MX94t/kkEz9pcAorRS6Qbqzs=; b=HoQ4RJ8umevyIybyoEt9JGFRpOKLUj+m+mzmogiFRn9vpdAVuB06J4iJU/IIdWAyXO MCqNcD8OjjA8BbgLWxaFDzOhBqfvYTOX3T0+MqL4kOoBr5JJInzN9+GllKxu8celgmvg IzJ9T2A8NnzyytPq3yZWMksYx6x7Nhh30xurs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=PLfy9CcBAFQiXr96QzCQa9IyrJFIFT+6vuOJOpnVuOsOUN0bX4/VZL3JmKVpudUv0f viEXqERKceulmPXB0oqTanP8JTDE17M57VAlMCHAreDFjYJH27qkZ0hm+Z6li0rYvZ7p fpBVguVfhbW65pylyA5Cg8lHzSaYByKdKzgo4= Original-Received: by 10.213.25.79 with SMTP id y15mr82452ebb.41.1300202892267; Tue, 15 Mar 2011 08:28:12 -0700 (PDT) Original-Received: by 10.213.27.136 with HTTP; Tue, 15 Mar 2011 08:27:52 -0700 (PDT) In-Reply-To: <7BE6FADD4020432887E611DE8999715F@us.oracle.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 15 Mar 2011 11:29:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45032 Archived-At: On Tue, Mar 15, 2011 at 3:50 PM, Drew Adams wrote: >> =C2=A0 =C2=A0 =C2=A0 (defcustom my-dir nil "doc" :type 'directory) >> >> =C2=A0 M-x customize-option RET my-dir RET > > You get a type mismatch, of course, since nil is not a directory. > >> =C2=A0 Place point in the directory value field and erase "nil" >> =C2=A0 that is there. =C2=A0Now in the empty directory value field >> =C2=A0 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'. =C2=A0Dunn= o 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.