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: Tue, 06 Mar 2012 15:45:02 -0500 Message-ID: References: <871v99wgb1.fsf@stupidchicken.com> <87tym5ufk0.fsf@stupidchicken.com> <83ty2grpn0.fsf@gnu.org> <87d393zj1l.fsf@gnu.org> <83linrs8rj.fsf@gnu.org> <87sjhoiu4q.fsf@gnu.org> <83zkbw9tyv.fsf@gnu.org> <87boobd9tr.fsf@gnu.org> <83linf9cup.fsf@gnu.org> <83ipii9ylf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331066830 10025 80.91.229.3 (6 Mar 2012 20:47:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 20:47:10 +0000 (UTC) Cc: 6830@debbugs.gnu.org, cyd@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 21:47:08 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S51Hm-0003Gm-4k for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2012 21:47:06 +0100 Original-Received: from localhost ([::1]:35225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S51Hl-0008Tw-4M for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2012 15:47:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S51Hd-0008TI-RC for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 15:47:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S51HJ-0004SQ-Mw for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 15:46:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S51HJ-0004SG-JR for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 15:46:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S51Hi-0000wm-2T for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2012 15:47: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: Tue, 06 Mar 2012 20:47: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.13310667733569 (code B ref 6830); Tue, 06 Mar 2012 20:47:02 +0000 Original-Received: (at 6830) by debbugs.gnu.org; 6 Mar 2012 20:46:13 +0000 Original-Received: from localhost ([127.0.0.1]:36503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S51Gu-0000vJ-F8 for submit@debbugs.gnu.org; Tue, 06 Mar 2012 15:46:12 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51635) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S51Gh-0000uc-9p for 6830@debbugs.gnu.org; Tue, 06 Mar 2012 15:46:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAKU/KE9FxJvl/2dsb2JhbACBX5x7eYhwnhmGGQSGUJRJhAs X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="166402611" Original-Received: from 69-196-155-229.dsl.teksavvy.com (HELO pastel.home) ([69.196.155.229]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Mar 2012 15:45:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 93EE359414; Tue, 6 Mar 2012 15:45:02 -0500 (EST) In-Reply-To: <83ipii9ylf.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Mar 2012 05:50:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (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:57543 Archived-At: >> > Then it looks like my analysis was partially incorrect: I assumed that >> > the problem was with the value of `before_field', but it actually is >> > with the value of `field'. (Same reason, though: sorting two items >> > whose keys compare equal.) >> >> Ideally, the cursor position should not be considered as "in the >> boundary", so the boundary overlay should not be considered for >> determining `field'. >> For that, I'd guess that you'd want the boundary's marker to use the >> insertion type t. But AFAIK, the code already sets its type to t. >> So I'm not sure what's going on, here. > I don't think I follow. Can you elaborate on the role of the boundary > marker in this issue? I'm not sure what's the role of the boundary marker. But from what you say, the problem is that the boundary overlay's field property interferes. But the cursor should not be considered as being "in the boundary field". And indeed, the boundary's start marker is of insertion-type t, which means that Fget_pos_property should ignore this overlay when we're right in front of it. The values that Chong sees for before_field, after_field, and field are correct. If in your case, `field' has a value different from `completion' (e.g. it has value `boundary' or nil), then this is the problem whose origin we need to find. Stefan