From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Resizing windows after display-buffer Date: Mon, 25 Apr 2011 02:09:58 +0200 Message-ID: References: <87oc3v8b8z.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1303690253 7135 80.91.229.12 (25 Apr 2011 00:10:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 00:10:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 25 02:10:49 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 1QE9O1-0006s4-LE for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2011 02:10:45 +0200 Original-Received: from localhost ([::1]:53956 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE9Ny-0004XC-UO for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2011 20:10:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE9Nw-0004X6-Sd for emacs-devel@gnu.org; Sun, 24 Apr 2011 20:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QE9Nv-0000eW-Og for emacs-devel@gnu.org; Sun, 24 Apr 2011 20:10:40 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:59915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QE9Nv-0000eS-MM for emacs-devel@gnu.org; Sun, 24 Apr 2011 20:10:39 -0400 Original-Received: by gxk23 with SMTP id 23so627012gxk.0 for ; Sun, 24 Apr 2011 17:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=E9NYXqFLnun1he7g7hyc3fRh7M6AQugKorWDgat1pGY=; b=D/irz6Qx+n9DsutCqt1EajUpZ7Ty3bh67rjyw4r/XoIbXVMadpnlKAOkTGrOpiEfEl yF1Se3L/vIwWiX11MdeNzdnvu81UDg8VbQIzTNjXRn7tH4wgbNcwtsIdnQwD622eXoFE dAAIH07JTyW/beja7mva5X1VmSKKYSJ/mEazw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=KhrPX+2qVu+xFvMdpP8qF3aixuDUQazz/GYdiLQdbqD9MynZG/r5GjVO6FnLVEGPaS Eg8/bmMTh9b9IgtPu5OiVA82+GF6MmJivR+Zrir5hL2Ekf+N1VqZkMNXI2CWFfn10E5E 4iERy+pHHplesQnkzUkFyZbfGIMCaEZ7iJAzs= Original-Received: by 10.150.210.6 with SMTP id i6mr2848297ybg.311.1303690238706; Sun, 24 Apr 2011 17:10:38 -0700 (PDT) Original-Received: by 10.147.182.5 with HTTP; Sun, 24 Apr 2011 17:09:58 -0700 (PDT) In-Reply-To: <87oc3v8b8z.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.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:138692 Archived-At: On Mon, Apr 25, 2011 at 01:45, Chong Yidong wrote: > Not long ago, we discussed generalizing temp-buffer-resize-mode so that > it isn't just for Help buffers. =C2=A0I propose doing this not with a min= or > mode, but by adding a defcustom, display-buffer-fit-window-to-buffer. In my everyday use, I display the buffer I'm working on (code, a text file, whatever) in a full window; the only time that the window is split is for temporary or secondary uses; for example, help windows, occur output, ielm, an inferior mode (python, lisp, etc.), re-builder, bs-show, etc; and I make sure that the "secondary" buffer goes always to the bottom window and that window is resized to fit the buffer or have a height limit (typically about a third of the frame height). If I switch to the bottom window and do something that would cause the top window to display another buffer (multi-occur, for example, or selecting a new buffer from bs-show), I *don't* want the top window to be resized. So, in my case, a setting that would make every display-buffer to try to fit is much worse than a minor mode that I can call from whatever mode hook I like. =C2=A0 =C2=A0 Juanma