unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: David Reitter <david.reitter@gmail.com>,
	Emacs-Devel ' <emacs-devel@gnu.org>
Subject: Re: pop-to-buffer does not change input focus
Date: Fri, 21 Apr 2006 17:06:17 -0400	[thread overview]
Message-ID: <jwvhd4miqwh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <44494739.9010302@soem.dk> (Lars Hansen's message of "Fri, 21 Apr 2006 22:57:29 +0200")

> Reading the code of Fdisplay_buffer, it seem to me that it ends up
> calling Fraise_frame which calls Fmake_frame_visible. So maybe theses
> functions has a problem. This is what I see:

I think this is all OK: display-buffer is not supposed to select the
corresponding window/frame.
But in Fpop_to_buffer, we call Fselect_window on the window just displayed
by Fdisplay_buffer and *that* should cause the input focus to be set.

> BTW, are raise-frame and make-frame-visible supposed to give input focus
> to the frame?

Not that I know.

> The doc strings say nothing. And what is really the difference between
> these two functions?

A frame's visibility can be "invisible", "iconified", or "visible", and
make-frame-visible only influences this.  So it doesn't raise the frame.


        Stefan

  reply	other threads:[~2006-04-21 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-21 16:59 pop-to-buffer does not change input focus David Reitter
2006-04-21 17:44 ` Stefan Monnier
2006-04-21 20:01   ` Lennart Borgman
2006-04-21 20:23     ` David Reitter
2006-04-21 20:57 ` Lars Hansen
2006-04-21 21:06   ` Stefan Monnier [this message]
2006-04-21 22:51     ` Lars Hansen
2006-04-23 19:31     ` Lars Hansen
2006-04-24 17:52       ` Richard Stallman
2006-04-24 21:27         ` Stefan Monnier

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=jwvhd4miqwh.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).