[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26513: 25.2; pop-up-frames and *Completions* buffer
From: |
martin rudalics |
Subject: |
bug#26513: 25.2; pop-up-frames and *Completions* buffer |
Date: |
Wed, 19 Apr 2017 09:26:56 +0200 |
> I also tried Martin's suggestion of removing the
> (select-window) call but that didn't get rid of the error for me.
Evaluating with emacs -Q
(add-to-list 'special-display-buffer-names '("*Completions*" foo))
(setq w32-grab-focus-on-raise nil)
(defun foo (buffer &optional args)
(interactive)
(let* ((mini-win (active-minibuffer-window))
(mini-frame (window-frame mini-win))
(window
(select-window
(funcall special-display-function buffer args)))
(frame (window-frame window)))
(raise-frame frame)
(redirect-frame-focus frame mini-frame)
window))
and typing
C-h f set- TAB
gets me a new frame with input focus. Evaluating with emacs -Q
(add-to-list 'special-display-buffer-names '("*Completions*" foo))
(setq w32-grab-focus-on-raise nil)
(defun foo (buffer &optional args)
(interactive)
(let* ((mini-win (active-minibuffer-window))
(mini-frame (window-frame mini-win))
(window
(funcall special-display-function buffer args))
(frame (window-frame window)))
(raise-frame frame)
(redirect-frame-focus frame mini-frame)
window))
and typing
C-h f set- TAB
gets me a new frame with input focus in the old frame.
Verified with Emacs 25 and 26 under Debian GTK+ and Windows XP.
martin
- bug#26513: 25.2; pop-up-frames and *Completions* buffer, (continued)
bug#26513: 25.2; pop-up-frames and *Completions* buffer, Drew Adams, 2017/04/15