From: Helmut Eller <eller.helmut@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#1415: 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument
Date: Sat, 22 Nov 2008 18:01:37 +0100 [thread overview]
Message-ID: <m24p1zofta.fsf@gmail.com> (raw)
I think that display-buffer returns sometimes the selected window even
if the NOT-THIS-WINDOW argument is true. Here is a test case:
(progn
(defun display-buffer-checked (buffer)
(let ((selected (selected-window))
(window (display-buffer buffer t)))
(when (eq selected window)
(error "display-buffer returned selected window"))
window))
(let ((foo (get-buffer-create "foo"))
(bar (get-buffer-create "bar")))
(select-window (get-buffer-window "*scratch*"))
(save-selected-window
(select-window (display-buffer-checked foo)))
(save-selected-window
(select-window (display-buffer-checked bar)))))
display-buffer-checked just calls display-buffer and checks that the
returned window isn't the selected window. From looking at the code of
display-buffer, I would say that display-buffer returns the lru window
even if that's the selected window.
Helmut.
In GNU Emacs 23.0.60.10 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
of 2008-11-22 on xaital
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--without-sound' '--without-pop' '--without-gif' '--without-tiff''
next reply other threads:[~2008-11-22 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <492EA377.40504@gmx.at>
2008-11-22 17:01 ` Helmut Eller [this message]
2008-11-24 9:59 ` bug#1415: 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument martin rudalics
2008-11-26 21:13 ` Helmut Eller
2008-11-27 13:55 ` bug#1415: marked as done (23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument) 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=m24p1zofta.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=1415@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@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 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.