From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1415: marked as done (23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument) Date: Thu, 27 Nov 2008 05:55:05 -0800 Message-ID: References: <492EA377.40504@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1227794105-20226-0" X-Trace: ger.gmane.org 1227795429 13311 80.91.229.12 (27 Nov 2008 14:17:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 14:17:09 +0000 (UTC) To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 15:18:11 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L5hgq-000869-4t for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 15:17:56 +0100 Original-Received: from localhost ([127.0.0.1]:40654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5hfg-00018Y-C2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 09:16:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5hZT-0005WG-K5 for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 09:10:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5hZR-0005VO-Vf for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 09:10:19 -0500 Original-Received: from [199.232.76.173] (port=35290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5hZQ-0005V5-Ev for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 09:10:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40004) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L5hZP-0006eB-Pg for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 09:10:16 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAREABvg025259; Thu, 27 Nov 2008 06:10:11 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mARDt5qb020268; Thu, 27 Nov 2008 05:55:05 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1415 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22715 Archived-At: This is a multi-part message in MIME format... ------------=_1227794105-20226-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 27 Nov 2008 14:41:11 +0100 with message-id <492EA377.40504@gmx.at> and subject line Re: bug#1415: 23.0.60; display-buffer doesn't honor NOT-TH= IS-WINDOW argument has caused the Emacs bug report #1415, regarding 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1415: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1415 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1227794105-20226-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Nov 2008 04:14:38 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAO4EYwd008043 for ; Sun, 23 Nov 2008 20:14:35 -0800 Received: from mx10.gnu.org ([199.232.76.166]:44284) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L4Sq2-0007fk-Nb for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 23:14:19 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L4QXj-0001wO-BJ for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 20:47:21 -0500 Received: from cgp1.rolmail.net ([195.254.252.190]:41602 helo=rolmail.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3vrT-0007lC-Fc for emacs-pretest-bug@gnu.org; Sat, 22 Nov 2008 12:01:35 -0500 Received: from dummy.name; Sat, 22 Nov 2008 18:01:32 +0100 Received: from dummy.name; Sat, 22 Nov 2008 18:01:40 +0100 From: Helmut Eller To: emacs-pretest-bug@gnu.org Subject: 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument Date: Sat, 22 Nov 2008 18:01:37 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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'' ------------=_1227794105-20226-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1415-done) by emacsbugs.donarmstrong.com; 27 Nov 2008 13:46:51 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mARDklSq018819 for <1415-done@emacsbugs.donarmstrong.com>; Thu, 27 Nov 2008 05:46:49 -0800 Received: (qmail invoked by alias); 27 Nov 2008 13:46:41 -0000 Received: from 62-47-58-151.adsl.highway.telekom.at (EHLO [62.47.58.151]) [62.47.58.151] by mail.gmx.net (mp059) with SMTP; 27 Nov 2008 14:46:41 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1857FxVVGA5mIanlwZeTKUe5Ov2ZB0Rw58kGvubhG JIELqyoXNU0Rq8 Message-ID: <492EA377.40504@gmx.at> Date: Thu, 27 Nov 2008 14:41:11 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1415-done@emacsbugs.donarmstrong.com CC: Helmut Eller Subject: Re: bug#1415: 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument References: <492A7B14.7060508@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.85 > I've used the patch now for two days and it seems to work well. I've checked in a slightly more restrictive version. Please try again and keep an eye on this. Thanks again for reporting, martin. ------------=_1227794105-20226-0--