From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6830: widget-complete bad completions in :type 'file Date: Sat, 25 Feb 2012 00:26:05 -0500 Message-ID: References: <871v99wgb1.fsf@stupidchicken.com> <87tym5ufk0.fsf@stupidchicken.com> <83ty2grpn0.fsf@gnu.org> <87d393zj1l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330147603 32643 80.91.229.3 (25 Feb 2012 05:26:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2012 05:26:43 +0000 (UTC) Cc: 6830@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 25 06:26:42 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1A9Z-0006vA-5h for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2012 06:26:41 +0100 Original-Received: from localhost ([::1]:36470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1A9Y-0006He-Of for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2012 00:26:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1A9Q-0006HU-A2 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 00:26:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1A9J-0006Q9-9u for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 00:26:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1A9J-0006Q4-60 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 00:26:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S1ABq-0002lj-EQ for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 00:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2012 05:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6830-submit@debbugs.gnu.org id=B6830.133014772610621 (code B ref 6830); Sat, 25 Feb 2012 05:29:02 +0000 Original-Received: (at 6830) by debbugs.gnu.org; 25 Feb 2012 05:28:46 +0000 Original-Received: from localhost ([127.0.0.1]:54963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1ABZ-0002lG-Rs for submit@debbugs.gnu.org; Sat, 25 Feb 2012 00:28:46 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:29061) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1ABY-0002l9-Ap for 6830@debbugs.gnu.org; Sat, 25 Feb 2012 00:28:44 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAKU/KE9MCodT/2dsb2JhbACBX5x7eYhwnhmGGQSGUJRJhAs X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="164529020" Original-Received: from 76-10-135-83.dsl.teksavvy.com (HELO pastel.home) ([76.10.135.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Feb 2012 00:26:05 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 54AAC59673; Sat, 25 Feb 2012 00:26:05 -0500 (EST) In-Reply-To: <87d393zj1l.fsf@gnu.org> (Chong Yidong's message of "Sat, 25 Feb 2012 11:30:30 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57219 Archived-At: >> On GNU/Linux, the first overlay in the sorted array happens to be the >> one whose `field' value is equal to the text property, so find_field >> works. On MS-Windows, the first overlay is the one whose value is >> `completion', so find_field decides that the field begins and ends at >> the same position. The rest, as they say, is history. > Interesting. The overlays code should be independent of operating > system. Any idea what causes the sort order to be different? > Does the problem go away if in > (let ((minibuffer-completion-table collection) > (minibuffer-completion-predicate predicate) > (ol (make-overlay start end nil nil t))) > (overlay-put ol 'field 'completion) > you also specify a `priority' of (say) 5? I'm wondering what is this other overlay, why it's here, and why it ends up sometimes taking precedence, Stefan