Skip to content

Using mouse in Completions buffer throws an error #1551

@vadim-zyamalov

Description

@vadim-zyamalov

Issue type

  • Bug report

Environment

Emacs version: GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
Operating System: Windows 10 21H2 19044.1387
Evil version: 1.14.0
Evil installation type: straight.el (via use-package), I think it uses MELPA recipes
Graphical/Terminal: GUI
Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

  • Start Emacs
  • Enter :, then start typing in any command (i.e. evil-).
  • Press Tab
  • When the *Completions* minibuffer appears try to mouseclick any suggestion.

Expected behavior

Clicked command is inserted into the command line (sorry, not quite familiar with Emacs terminology).

Actual behavior

I receive the following error:

mouse-minibuffer-check: Wrong type argument: window-valid-p, #<window 8>

*Messages* buffer shows the following messages before it:

Making completion list...
Quit
Error in post-command-hook (evil-ex-abort): (user-error "No recursive edit is in progress")

Further notes

The problem occurs specifically when I try to complete the command via mouseclick in the completion list for : (evil-ex-completion, if I understand correctly).
In other situations that allow using mouse (e.g. completions for eval-expression) mouseclicking works as expected.

I've added a small video from make emacs session:

Анимация

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions