all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: 745@emacsbugs.donarmstrong.com
Subject: bug#745: pop-to-buffer, frames, and input focus
Date: Fri, 22 Aug 2008 18:39:20 +0200	[thread overview]
Message-ID: <48AEEBB8.50201@gmx.at> (raw)
In-Reply-To: <m2r68hnn05.fsf@gmail.com>

 >>> pop-to-buffer doesn't switch input focus with: Sawfish, kwin,
 >>> metacity, fluxbox, twm.
 >>> It does with icewm.
 >>>
 >>> display-buffer seems to switch focus with: Sawfish, kwin, fluxbox,
 >>> icewm, twm.
 >> You probably mean display-buffer does _not_ switch focus with these.
 >
 > I meant to say: display-buffer _does_ switch focus when creating a new
 > frame with those window managers: Sawfish, kwin, fluxbox, icewm, twm.

I still don't understand.  Simplistically spoken, `pop-to-buffer' is
`display-buffer' + `select-window'.  How can, using Sawfish say,
`display-buffer' switch focus and `pop-to-buffer' not switch focus?

 >>> I still think that display-buffer should neither select the other frame
 >>> nor give it the input focus.  (Whether the other frame should be raised
 >>> or not should probably be customizable, but that's a minor issue.)
 >> I agree with you but I'm afraid there were issues with this.  If you
 >> have some spare time please look at the threads starting with
 >>
 >> http://lists.gnu.org/archive/html/emacs-devel/2006-04/msg00922.html
 >>
 >> http://lists.gnu.org/archive/html/emacs-devel/2005-11/msg00107.html
 >>
 >> http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg00946.html
 >>
 >> respectively.  At the very least you will find out that you're not
 >> alone.
 >
 > Those messages are several years old.  And it looks like nobody is
 > going to fix the issue this time.

We should fix it this time.  Please try again two things with the
window-managers you listed above and `pop-up-frames' non-nil:

- tell whether `display-buffer' does switch focus.

- tell whether `pop-to-buffer' does switch focus.

- try both, if possible, with click-to-focus and a focus-follows-mouse
   settings (maybe you have to set the value of the Emacs variable
   `focus-follows-mouse' appropriately).

Here on Windos XP with a focus-follows-mouse policy, `display-buffer'
and `pop-to-buffer' both switch focus.  IIRC, people reported troubles
with the standard click-to-focus policy.  Honestly, I'm a bit reluctant
to try out click-to-focus here, maybe someone else can try?

 > Maybe we could move the input focus to the selected frame in a lazy
 > fashion.  E.g. when Emacs waits for new events, we could compare the
 > currently focused frame with the selected frame, and if they differ we
 > could switch the focus to the selected frame.  This would make
 > select-frame more useful.

I suppose we should introduce a customizable variable which allows to
call `select-frame-set-input-focus' (or something similar) at least in
`pop-to-buffer' but maybe also in `display-buffer'.  But we should also
provide a doc-string recommending what setting this variable should have
on which platform.

martin







  reply	other threads:[~2008-08-22 16:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <48C8C046.50203@gmx.at>
2008-08-20  7:35 ` bug#745: pop-to-buffer, frames, and input focus Helmut Eller
2008-08-20 14:50   ` martin rudalics
2008-08-20 18:42     ` Helmut Eller
2008-08-20 20:42       ` David Reitter
2008-08-20 20:56       ` martin rudalics
2008-08-21  8:07         ` Helmut Eller
2008-08-21  9:04           ` martin rudalics
2008-08-21 13:20             ` Helmut Eller
2008-08-21 20:31               ` martin rudalics
2008-08-22 14:27                 ` Helmut Eller
2008-08-22 16:39                   ` martin rudalics [this message]
2008-08-23  8:55                     ` Helmut Eller
2008-08-23 12:05                       ` martin rudalics
2008-08-24 13:14                         ` Helmut Eller
2008-08-25 13:45                           ` martin rudalics
2008-08-26 21:45                             ` Helmut Eller
2008-08-27  8:12                               ` martin rudalics
2008-08-27 12:54                                 ` Helmut Eller
2008-08-28 11:46                                   ` martin rudalics
2008-08-28 16:47                                     ` Helmut Eller
2008-08-28 21:26                                       ` martin rudalics
2008-08-29  7:39                                         ` Helmut Eller
2008-08-29  9:26                                           ` martin rudalics
2008-08-29 15:02                                             ` Helmut Eller
2008-08-30  8:15                                               ` martin rudalics
2008-08-30 11:06                                                 ` Helmut Eller
2008-08-30 13:42                                                   ` martin rudalics
2008-08-31  8:55                                                     ` Helmut Eller
2008-09-06 11:56                                                       ` martin rudalics
2008-09-09  6:24                                                         ` Helmut Eller
2008-09-11  7:05   ` bug#745: marked as done (pop-to-buffer, frames, and input focus) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AEEBB8.50201@gmx.at \
    --to=rudalics@gmx.at \
    --cc=745@emacsbugs.donarmstrong.com \
    --cc=eller.helmut@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.