From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?David_K=C3=A5gedal?= Newsgroups: gmane.emacs.bugs Subject: display-buffer change Date: Thu, 21 Jun 2007 12:11:26 +0200 Message-ID: <878xadwrap.fsf@morpheus.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1182495201 23803 80.91.229.12 (22 Jun 2007 06:53:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2007 06:53:21 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 22 08:53:19 2007 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 1I1d1C-0004ib-41 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jun 2007 08:53:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1d1B-0001eF-J9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jun 2007 02:53:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1K4N-0008UY-1p for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2007 06:39:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1K4L-0008Rd-LT for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2007 06:39:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1K4L-0008RQ-De for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2007 06:39:17 -0400 Original-Received: from mail.lysator.liu.se ([130.236.254.3]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1K4K-0003Ym-RT for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2007 06:39:17 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 91900200A1FE for ; Thu, 21 Jun 2007 12:11:39 +0200 (CEST) Original-Received: from mail.lysator.liu.se ([127.0.0.1]) by localhost (lenin.lysator.liu.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22603-01-88; Thu, 21 Jun 2007 12:11:38 +0200 (CEST) Original-Received: from morpheus (vtab.com [62.20.90.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTP id 9CB94200A1F0; Thu, 21 Jun 2007 12:11:38 +0200 (CEST) Original-Received: by morpheus (Postfix, from userid 1000) id 1FA90BFABC; Thu, 21 Jun 2007 12:11:26 +0200 (CEST) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lysator.liu.se X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 22 Jun 2007 02:53:07 -0400 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:15976 Archived-At: I have seen a change in Emacs 22.1 from Emacs 21 that broke my use of dedicated windows. The problem is that (display-buffer buf) will change the contents of the current window, if the other window in the frame has a dedicated buffer. In Emacs 21, a new window would be opened instead. To see the difference, do the following: Split an emacs frame in two windows showing buffers A and B: +-------------+ | | | A | | | +-------------+ | | | B | | | +-------------+ While in the lower window, run (set-window-dedicated-p (selected-window) t) Now, in the upper window, run (display-buffer "C") In Emacs 21, this will be the result: +-------------+ | A | +-------------+ | C | +-------------+ | | | B | | | +-------------+ In Emacs 22, this will be the result: +-------------+ | | | C | | | +-------------+ | | | B | | | +-------------+ I use a dedicated small window at the bottom of my frame that always contains the *compilation* buffer, and the new behaviour in Emacs 22 seriously lower the usability of a lots of command, such as viewing diffs or showing source from gdb etc. I didn't find anything in NEWS that indicated that this was somehow intentional. --=20 David K=C3=A5gedal