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 18:01:35 +0200 Message-ID: <87d3iccuqo.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 1308327626 25161 80.91.229.12 (17 Jun 2011 16:20:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 16:20:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 18:20:22 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 1QXbmP-0007Pi-I6 for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 18:20:21 +0200 Original-Received: from localhost ([::1]:39474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbmN-0007C7-KJ for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 12:20:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbUf-0001ac-Gq for emacs-devel@gnu.org; Fri, 17 Jun 2011 12:02:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXbUc-0003FU-Kr for emacs-devel@gnu.org; Fri, 17 Jun 2011 12:02:00 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbUc-0003FI-7X for emacs-devel@gnu.org; Fri, 17 Jun 2011 12:01:58 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXbUa-0004XS-33 for emacs-devel@gnu.org; Fri, 17 Jun 2011 18:01:56 +0200 Original-Received: from 113.211.85.79.rev.sfr.net ([79.85.211.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 18:01:56 +0200 Original-Received: from thierry.volpiatto by 113.211.85.79.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 18:01:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 113.211.85.79.rev.sfr.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CWJAfUlKycleaOl/yVMjpeju14A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:140610 Archived-At: Hi Martin, 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. > Which values did you use? That is ok now, except it doesn't honor (setq split-width-threshold nil) The window is splitted | (vertically?) >> 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) `switch-to-buffer-other-window' still not working as expected. Maybe you can try ioccur.el and see what happen. It is working as expected as it is, you will have to uncomment the line with switch-to-buffer...(L964) and comment the next one pop-to-buffer...(L965) In the function `ioccur'. You can get it here hg clone http://mercurial.intuxication.org/hg/ioccur cd ../ioccur hg update -C development -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997