From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer and friends new behavior or bug? Date: Fri, 17 Jun 2011 17:46:05 +0200 Message-ID: <4DFB76BD.1010101@gmx.at> References: <87zklhhcys.fsf@gmail.com> <87ei2tzg3o.fsf@gmail.com> <4DFA690A.20205@gmx.at> <87ei2tsagb.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308326019 14889 80.91.229.12 (17 Jun 2011 15:53:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 15:53:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 17:53:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXbMR-0007u0-Qg for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 17:53:31 +0200 Original-Received: from localhost ([::1]:49369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbMQ-0007aj-Hk for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 11:53:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbFK-0005k2-Rp for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:46:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXbFI-00006o-Sq for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:46:10 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:52859) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QXbFI-00006X-Gq for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:46:08 -0400 Original-Received: (qmail invoked by alias); 17 Jun 2011 15:46:05 -0000 Original-Received: from 62-47-56-195.adsl.highway.telekom.at (EHLO [62.47.56.195]) [62.47.56.195] by mail.gmx.net (mp026) with SMTP; 17 Jun 2011 17:46:05 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19KH9xWgOdK76nPOyclwHEr8lpNgxRUV+6ktrTkxj ggme23Moa46L/h User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87ei2tsagb.fsf@gmail.com> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140608 Archived-At: > (when (boundp 'display-buffer-alist) > (setq display-buffer-alist > '((((regexp . ".*")) > reuse-window > (reuse-window nil same visible) > pop-up-window > (pop-up-window > (fit-window-to-buffer) > (nil)) > reuse-window > (reuse-window other other nil) > (reuse-window-even-sizes . nil))))) This "works" only because there's a bug when processing the `pop-up-window' specifier whose cdr must be a list of (window . side) pairs. I suppose you didn't use the customization interface :-( So what happens is that because of this bug Emacs doesn't pop up a new window but reuses an existing one. >>> but not for code that use switch-to-buffer-other-window. I checked in a fix which should handle `switch-to-buffer-other-window' as well. Please have another look. Thanks, martin