bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuff


From: Drew Adams
Subject: bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame?
Date: Mon, 28 May 2012 11:02:44 -0700

> Here is a workaround I've come up with when trying to "fix" `r-f-m'
> itself:
>  
> (defadvice read-from-minibuffer (around 
> focus-standalone-minibuf activate)
>   "..."
>   (let ((selframe  (selected-frame))
>         result)
>     (unwind-protect
>          (progn (when (and (boundp '1on1-minibuffer-frame)
>                            (frame-live-p 1on1-minibuffer-frame))
>                   (select-frame-set-input-focus 
>                    1on1-minibuffer-frame))
>                 (setq result  ad-do-it))
>       (ignore-errors (select-frame-set-input-focus selframe))
>       result)))

FYI - Not sure why (haven't looked), but that defadvice makes it impossible to
see any messages in the minibuffer.  I need to open *Messages* to see any
messages.  So such an approach is definitely not sufficient.






reply via email to

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