emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completion-cycle-threshold and a suggestion


From: Leo
Subject: Re: completion-cycle-threshold and a suggestion
Date: Sat, 22 May 2010 02:34:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On 2010-05-22 01:57 +0100, Stefan Monnier wrote:
>> The current completion cycle has this issue, for example, assume there
>> are two possible completions 'feature' and 'feature-old', feature-old is
>> seen first. This is counter-intuitive to the behaviour without
>> completion cycle.
>
> I don't understand.  AFAIK the completion-cycle code is careful to order
> the options using a heuristic based on the length of the completions
> (choosing shorter ones first).
>
> So are you saying that in your experience, the heuristic gives bad
> results, or that the heuristic somehow was not applied?

Seems so. But I am not sure which is at fault.

1. Grab magit.el (http://github.com/philjackson/magit) and load it into emacs
2. C-u M-x magit-status
3. Select a 'git' repo that has two branches: feature-old feature
4. type 'b' and switch to 'feature-old'
5. Now type 'b' again and feature-old is completed first.

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]