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: question about pop-to-buffer Date: Sun, 30 Sep 2012 13:03:09 +0200 Organization: Emacs Helm Message-ID: <878vbrrcwi.fsf@gmail.com> References: <87ipaxnfdy.fsf@gmail.com> <506747EA.3080906@gmx.at> <5068236C.2030400@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349003004 12821 80.91.229.3 (30 Sep 2012 11:03:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 11:03:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 13:03:30 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TIHJ3-0008Iz-9Q for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 13:03:29 +0200 Original-Received: from localhost ([::1]:49490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIHIx-0003cW-K2 for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 07:03:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIHIv-0003cR-IM for emacs-devel@gnu.org; Sun, 30 Sep 2012 07:03:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIHIu-0005YS-Gf for emacs-devel@gnu.org; Sun, 30 Sep 2012 07:03:21 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:49392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIHIu-0005YO-Al for emacs-devel@gnu.org; Sun, 30 Sep 2012 07:03:20 -0400 Original-Received: by wibhj13 with SMTP id hj13so1198243wib.12 for ; Sun, 30 Sep 2012 04:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=um2GKC2Gs1KkFcX7J09GQvbi+8BYkQ+JxxSi8coGL4c=; b=dw7Xe2Hel4pWmequwmQ8Irla0KbtbkH4bibeVb94F3j0XrbzWq/zJLHaDrdn/g5Kbo Q7gqvIzBYb2lXvaCN1l2z4Bgr97dX0MNWb/2oAbf5fjjUKLC2E3xcP5UCMFQibMLonAz g4rN4OvZADVlTILTq6VFUPWyMEodt8/pTFZwg4BfKOPz3obF6cGfQe94yuDPUKL6S/43 dFWuUmXcvx/CuAkYBHkcV4NgYyxQLEqmB5ZDRcPNGnvpJ6/slzWRaC9aLLDIw/GinbRD neBhERfAI8l44gvRi/LYom+qC8gb18BBJdkuAWLCkQFH/kUmO5fciR4ww4ygHpCrKy4r FgHg== Original-Received: by 10.180.100.37 with SMTP id ev5mr7958482wib.5.1349002999502; Sun, 30 Sep 2012 04:03:19 -0700 (PDT) Original-Received: from dell-14z (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id w7sm10210980wiz.0.2012.09.30.04.03.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Sep 2012 04:03:18 -0700 (PDT) In-Reply-To: <5068236C.2030400@gmx.at> (martin rudalics's message of "Sun, 30 Sep 2012 12:48:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 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:153750 Archived-At: martin rudalics writes: >> And you >> currently can't set the size of the first window at some side because >> there's a bug in `display-buffer-in-major-side-window' :-( > > This has been fixed now, hopefully. Cool. >> (pop-to-buffer >> (get-buffer-create "*toto*") >> `(display-buffer-in-side-window . ((side . top) (size . ,(/ >> (window-total-size (selected-window)) 2)) (slot . 0)))) > > You now have to use something like > > (pop-to-buffer > (get-buffer-create "*toto*") > `(display-buffer-in-side-window . ((side . top) (window-height . ,(/ (window-total-size (selected-window)) 2)) (slot . 0)))) Ok good to know, thanks, however I have removed the variable that was handling that, and I can manage splitting the windows in helm only using `split-window-preferred-function' following your advice (I use a specialized function for this). Also, I have noticed that window-right/left can also handle vertical splitting (I.e I was looking for something like window-above/bottom and I discover that window-right/left do this). Maybe that can be documented somewhere? Thanks for your help. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997