[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6830: widget-complete bad completions in :type 'file
From: |
Stefan Monnier |
Subject: |
bug#6830: widget-complete bad completions in :type 'file |
Date: |
Sat, 25 Feb 2012 00:26:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
>> 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
bug#6830: widget-complete bad completions in :type 'file, Eli Zaretskii, 2012/02/24