[Top][All Lists]

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

RE: completing-read displays duplicates in the *Completions* buffer

From: Drew Adams
Subject: RE: completing-read displays duplicates in the *Completions* buffer
Date: Tue, 20 Dec 2005 11:49:21 -0800

    Evaluate the following, then type `?' at the prompt:

    (completing-read "Prompt: " '(("a") ("b") ("c") ("a") ("b") ("c")))

    The *Completions* buffer contents are:

    | Click <mouse-2> on a completion to select it.
    | In this buffer, type RET to select the completion near point.
    | Possible completions are:
    | a                                  a
    | b                                  b
    | c                                  c

I'm not convinced that this is a bug.

There is nothing in the doc of `completing-read' or `all-completions' that
suggests that these functions should remove duplicates. This has _always_
been the behavior of these functions, AFAIK. Changing this behavior could
break existing libraries (at least external libraries) that might depend on

Niether of these functions removes duplicates, but you can make sure there
are no duplicates, if you like, by passing them an appropriate TABLE
argument. IOW, as the Doctor says, "If it hurts, don't do that!"

reply via email to

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