GNU bug report logs - #26513
25.2; pop-up-frames and *Completions* buffer

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Sat, 15 Apr 2017 09:18:01 UTC

Severity: normal

Tags: confirmed, patch

Found in version 25.2

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, "Charles A. Roelli" <charles <at> aurox.ch>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 26513 <at> debbugs.gnu.org
Subject: bug#26513: 25.2; pop-up-frames and *Completions* buffer
Date: Thu, 17 Feb 2022 11:01:50 +0100
[Message part 1 (text/plain, inline)]
>> >From emacs -Q:
>>
>> M-x set-variable RET pop-up-frames RET t RET
>> M-x global- TAB
>>
>> The *Completions* buffer is opened in a new frame, but the cursor is in
>> the frame too, so the user has to switch back to the minibuffer to
>> continue typing.
>
> This problem is still present in Emacs 29.  I guess the general solution
> here would be for completion to ensure that it's gotten focus back again
> after displaying the *Completions* buffer?

Maybe Stefan Monnier can tell us what he does in such case.

I can offer the attached, largely untested patch.  A possible
customization would then be

(customize-set-variable
 'display-buffer-alist
 '(("*Completions*"
    (display-buffer-reuse-window
     display-buffer-pop-up-frame)
    (reusable-frames . t)
    (redirect-frame-focus . t))))

martin
[redirect-frame-focus.diff (text/x-patch, attachment)]

This bug report was last modified 3 years and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.