* bug#1681: 23.0.60; list-processes - please reset focus to original frame when done
@ 2008-12-23 16:48 Drew Adams
2012-10-04 18:52 ` martin rudalics
0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-12-23 16:48 UTC (permalink / raw)
To: emacs-pretest-bug
On MS Windows, a new frame is selected when it is created. I use a
standalone minibuffer frame and have non-nil `pop-up-frames'. This
causes `list-processes' to create a new frame the first time it
displays buffer *Process List*.
Typically, I don't call `list-processes' manually, so there is no
frame with buffer *Process List* when I quit Emacs.
When I do `C-x C-c', I cannot simply type `yes' or `no', because
creation of the new frame for *Process List* switches focus to that
frame. I must first manually select the minibuffer frame, to move
focus to it; then I can type `yes' or `no'. This is annoying.
Please change `list-processes' so that it calls
`select-frame-set-input-focus' at the end to move focus back to the
frame that previously had the focus.
This is a general problem. Perhaps a general fix could be found.
It is at least a problem for functions that might display a buffer for
the first time, and especially those that then ask for user input
(e.g. `yes-or-no-p'). `list-processes' is a poster child for this kind
of function, and it has the added annoyance of being called
automatically by `C-x C-c'.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-12-19 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1681: 23.0.60; list-processes - please reset focus to original frame when done
@ 2009-01-04 19:35 martin rudalics
[not found] ` <CAAeL0SQbapGKXY70nwYDM0DUtw9fBEw1hBQV=1=fCSL-z2fYpg@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2009-01-04 19:35 UTC (permalink / raw)
To: 1681
> Please change `list-processes' so that it calls
> `select-frame-set-input-focus' at the end to move focus back to the
> frame that previously had the focus.
>
> This is a general problem. Perhaps a general fix could be found.
>
> It is at least a problem for functions that might display a buffer for
> the first time, and especially those that then ask for user input
> (e.g. `yes-or-no-p'). `list-processes' is a poster child for this kind
> of function, and it has the added annoyance of being called
> automatically by `C-x C-c'.
We might be able to make such behavior customizable for the case where
Emacs asks for user input. Meanwhile you could try using a workaround
like
(defvar my-selected-frame nil)
(add-hook 'temp-buffer-setup-hook
(lambda ()
(setq my-selected-frame (selected-frame))))
(add-hook 'post-command-hook
(lambda ()
(when my-selected-frame
(select-frame-set-input-focus my-selected-frame)
(setq my-selected-frame nil))))
martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1681: 23.0.60; list-processes - please reset focus to original frame when done
[not found] ` <CAAeL0SQbapGKXY70nwYDM0DUtw9fBEw1hBQV=1=fCSL-z2fYpg@mail.gmail.com>
@ 2011-07-07 22:45 ` Juanma Barranquero
0 siblings, 0 replies; 5+ messages in thread
From: Juanma Barranquero @ 2011-07-07 22:45 UTC (permalink / raw)
To: martin rudalics; +Cc: 1681
[Now with the right debbugs address, hopefully]
> We might be able to make such behavior customizable for the case where
> Emacs asks for user input.
The problem reported by Drew is still there.
Juanma
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1681: 23.0.60; list-processes - please reset focus to original frame when done
2008-12-23 16:48 Drew Adams
@ 2012-10-04 18:52 ` martin rudalics
2012-10-04 20:18 ` Drew Adams
0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2012-10-04 18:52 UTC (permalink / raw)
To: Drew Adams; +Cc: 1681
> On MS Windows, a new frame is selected when it is created. I use a
> standalone minibuffer frame and have non-nil `pop-up-frames'. This
> causes `list-processes' to create a new frame the first time it
> displays buffer *Process List*.
>
> Typically, I don't call `list-processes' manually, so there is no
> frame with buffer *Process List* when I quit Emacs.
>
> When I do `C-x C-c', I cannot simply type `yes' or `no', because
> creation of the new frame for *Process List* switches focus to that
> frame. I must first manually select the minibuffer frame, to move
> focus to it; then I can type `yes' or `no'. This is annoying.
>
> Please change `list-processes' so that it calls
> `select-frame-set-input-focus' at the end to move focus back to the
> frame that previously had the focus.
>
> This is a general problem. Perhaps a general fix could be found.
>
> It is at least a problem for functions that might display a buffer for
> the first time, and especially those that then ask for user input
> (e.g. `yes-or-no-p'). `list-processes' is a poster child for this kind
> of function, and it has the added annoyance of being called
> automatically by `C-x C-c'.
>
>
> In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
> of 2008-12-19 on LENNART-69DE564
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
> -fno-crossjumping'
Is this still a problem?
martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#1681: 23.0.60; list-processes - please reset focus to original frame when done
2012-10-04 18:52 ` martin rudalics
@ 2012-10-04 20:18 ` Drew Adams
0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2012-10-04 20:18 UTC (permalink / raw)
To: 'martin rudalics'; +Cc: 1681
> Is this still a problem?
I think this was the same as #11939, which was fixed. I will close this one
too. Thx.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-04 20:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 19:35 bug#1681: 23.0.60; list-processes - please reset focus to original frame when done martin rudalics
[not found] ` <CAAeL0SQbapGKXY70nwYDM0DUtw9fBEw1hBQV=1=fCSL-z2fYpg@mail.gmail.com>
2011-07-07 22:45 ` Juanma Barranquero
-- strict thread matches above, loose matches on Subject: below --
2008-12-23 16:48 Drew Adams
2012-10-04 18:52 ` martin rudalics
2012-10-04 20:18 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.