astoff / devdocs.el

Emacs viewer for DevDocs
297 stars 17 forks source link

Incorrect treatment of the default symbol #24

Closed vspinu closed 1 year ago

vspinu commented 1 year ago

Currently devdocs-lookup uses symbol at point as a default entry. This means that

  1. When the current symbol is not part of thecandidates it is still placed as a default in the completion list. Selecting it results in error.
  2. The list is not narrowed down to the current input

image

I think what most users expect is to have the list narrowed to the symbol-at-point and not to include an invalid match as a default:

image

astoff commented 1 year ago

Let's discuss in the related pull request you just opened.