unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: display-buffer
Date: Thu, 3 Nov 2005 08:09:13 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEEPCOAA.drew.adams@oracle.com> (raw)
In-Reply-To: <17257.22797.999009.881227@kahikatea.snap.net.nz>

    The doc string for display-buffer says: "Make buffer appear
    in some window but don't select it...."

    If I force a new frame by setting pop-up-frames to t or using
    special-display-regexps then this window *is* selected.
    Is that a bug? Can I do something so the selected window is unchanged?

Are you on Windows?  That's what I see too, on Windows.  See the thread "Q
on frame focus with MS Windows" from 10/25-26.

It seems that the Windows window-manager automatically focusses a new frame
when it is created.  However, display-buffer also seems to focus an
_existing_  frame to display its buffer. I don't know if the latter part is
an Emacs bug or, again, a Windows window-manager problem.  As I said on
10/25:

    It seems that the problem is not just with newly created
    frames (which is why I do the select-frame-set-input-focus
    even when no new frame is created).  In spite of the doc string
    for display-buffer, on MS Windows display-buffer always sends
    the focus to the displayed buffer.

As far as a workaround is concerned, I haven't found a good solution.  I do
hacks like save the existing frame, display the buffer, then call
select-frame-set-input-focus on the original frame.

It would be great if Emacs itself could deal with this, so users didn't have
to.

  reply	other threads:[~2005-11-03 16:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03  0:25 display-buffer Nick Roberts
2005-11-03 16:09 ` Drew Adams [this message]
2005-11-03 17:18   ` display-buffer Stefan Monnier
2005-11-03 19:32     ` display-buffer Drew Adams
2005-11-03 21:43     ` display-buffer Nick Roberts
2005-11-04  4:23       ` display-buffer Stefan Monnier
2005-11-05  5:05         ` display-buffer Nick Roberts
2005-11-05  5:19           ` display-buffer Luc Teirlinck
2005-11-05  7:38             ` display-buffer Nick Roberts
2005-11-03 21:40 ` display-buffer Richard M. Stallman
2005-11-03 21:49   ` display-buffer Drew Adams
2005-11-04  4:21     ` display-buffer Stefan Monnier
2005-11-04 10:45       ` display-buffer Eli Zaretskii
2005-11-05  1:36       ` display-buffer Richard M. Stallman
2005-11-05  1:37     ` display-buffer Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2014-01-13 19:36 display-buffer Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICMEEPCOAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).