From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer and friends new behavior or bug? Date: Fri, 17 Jun 2011 00:00:52 +0200 Message-ID: <87ei2tsagb.fsf@gmail.com> References: <87zklhhcys.fsf@gmail.com> <87ei2tzg3o.fsf@gmail.com> <4DFA690A.20205@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308261685 30540 80.91.229.12 (16 Jun 2011 22:01:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2011 22:01:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 00:01:20 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 1QXKcq-0001mF-9H for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 00:01:20 +0200 Original-Received: from localhost ([::1]:58237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXKcp-0002p0-3f for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 18:01:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXKcW-0002oa-FS for emacs-devel@gnu.org; Thu, 16 Jun 2011 18:01:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXKcU-0007Az-Lx for emacs-devel@gnu.org; Thu, 16 Jun 2011 18:01:00 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:60827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXKcU-0007As-9e for emacs-devel@gnu.org; Thu, 16 Jun 2011 18:00:58 -0400 Original-Received: by wyf19 with SMTP id 19so1666264wyf.0 for ; Thu, 16 Jun 2011 15:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=iLBzcm6+2ddClATA2x8rwdkB3TabGyuN7maeyrDpz/c=; b=ljveZEpoFPFcVbl0hPQwHJ2Ck9O8SqrfTpDd6vx9f1aJBLY6DHqhTLWnLGaJ51x4Tv yMbmEAloUrEFjTbhA6Qsqu8kX3gW8SlSjhsgHipA4T/hqa+Gx4zTyVN+oc+XqmIubtFx kc/mtLvvbKeyEwa8YYlYmZwPJ3k5PNimPW+5g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=oh+Nav1fCtovzSGpOIjb1jgtFK36kaQuRzlv1KCd2ipYJMPXvL+4YrGRZgVPt9LJbB LuN4Pu3tCON/2bn/w6nLuZBLBb5Md9OCQDR9rL4ouiLxCNC8VawdivDPByhdvJCdUVLE 5Ni+G4L/9X68uCjwrNEUVf42Va272PV2EaVdU= Original-Received: by 10.216.238.13 with SMTP id z13mr1413157weq.99.1308261657135; Thu, 16 Jun 2011 15:00:57 -0700 (PDT) Original-Received: from thierry-MM061 (113.211.85.79.rev.sfr.net [79.85.211.113]) by mx.google.com with ESMTPS id fw15sm465878wbb.61.2011.06.16.15.00.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Jun 2011 15:00:55 -0700 (PDT) In-Reply-To: <4DFA690A.20205@gmx.at> (martin rudalics's message of "Thu, 16 Jun 2011 22:35:22 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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:140575 Archived-At: martin rudalics writes: >>> with last emacs from trunk: >>> >>> split window >>> >>> do e.g C-h f defun >>> >>> now i have 3 windows > > Due to a downright silly default value of `display-buffer-alist', sorry. > (Actually, the default value is what I used personally to test all sorts > of strange cases.) I'll fix that tomorrow. > >> Modification of display-buffer-alist seem to fix the problem for >> pop-to-buffer > > That's great. I didn't expect anyone even to try to understand this. I tried but didn't understand all yet ;-) More explanation welcome. > Which values did you use? #+BEGIN_SRC lisp (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))))) #+END_SRC >> but not for code that use switch-to-buffer-other-window. > > That's bad. `switch-to-buffer-other-window' does call > > (pop-to-buffer buffer 'other-window norecord) > > so something in the processing of the 'other-window argument must have > gone wrong. Please tell me your values and I shall try to repeat it. > > Thanks for reporting, martin -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997