From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6830: widget-complete bad completions in :type 'file Date: Sun, 04 Mar 2012 17:37:57 +0800 Message-ID: <87sjhoiu4q.fsf@gnu.org> References: <871v99wgb1.fsf@stupidchicken.com> <87tym5ufk0.fsf@stupidchicken.com> <83ty2grpn0.fsf@gnu.org> <87d393zj1l.fsf@gnu.org> <83linrs8rj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330853942 21769 80.91.229.3 (4 Mar 2012 09:39:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2012 09:39:02 +0000 (UTC) Cc: 6830@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 04 10:39:01 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 1S47u5-0002Ny-GB for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Mar 2012 10:38:57 +0100 Original-Received: from localhost ([::1]:60140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S47u4-0002mM-U4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Mar 2012 04:38:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S47u1-0002mH-Me for bug-gnu-emacs@gnu.org; Sun, 04 Mar 2012 04:38:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S47tz-00023J-Sl for bug-gnu-emacs@gnu.org; Sun, 04 Mar 2012 04:38:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S47tz-00023F-P0 for bug-gnu-emacs@gnu.org; Sun, 04 Mar 2012 04:38:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S47uA-000873-32 for bug-gnu-emacs@gnu.org; Sun, 04 Mar 2012 04:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Mar 2012 09:39:01 +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.133085394131182 (code B ref 6830); Sun, 04 Mar 2012 09:39:01 +0000 Original-Received: (at 6830) by debbugs.gnu.org; 4 Mar 2012 09:39:01 +0000 Original-Received: from localhost ([127.0.0.1]:60598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S47u8-00086X-T7 for submit@debbugs.gnu.org; Sun, 04 Mar 2012 04:39:01 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:40949) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S47tw-000867-F5 for 6830@debbugs.gnu.org; Sun, 04 Mar 2012 04:38:49 -0500 Original-Received: from bb116-14-103-36.singnet.com.sg ([116.14.103.36]:53669 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S47tF-0001i8-Qe; Sun, 04 Mar 2012 04:38:06 -0500 In-Reply-To: <83linrs8rj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Feb 2012 08:54:24 +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:57481 Archived-At: Eli Zaretskii writes: >> 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 didn't try, but I don't see how this would help. The above overlay > _is_ the cause of the problem > ... > Having the priority of the above overlay higher will just cause the > completion fail on GNU/Linux as well, AFAIU. Sorry, I'm afraid I still don't understand. As far as the completion code is concerned, the correct field to use is the `completion' field assigned by completion-in-region. In this case, it's a mistake to pay attention to the underlying widget field. So why doesn't it work to give the `completion' overlay a higher priority? FWIW, increasing the priority of the `completion' overlay does not cause widget file name completion to fail on GNU/Linux. Could you try on Windows?