From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.bugs Subject: bug#9084: 24.0.50; displaying man pages splits the window and formats the text for the full width of the whole frame rather than for the width of the window the text is displayed in, which is only 1/2 the width of the frame Date: Thu, 21 Jul 2011 15:12:10 +0200 Message-ID: <87sjpz3hhx.fsf@yun.yagibdah.de> References: <878vs0d10o.fsf@yun.yagibdah.de> <8762n4e5gy.fsf@mail.jurta.org> <4E1FEC9C.2090102@gmx.at> <87aacerzv3.fsf@yun.yagibdah.de> <87tyalilpf.fsf@mail.jurta.org> <87zkkdouje.fsf@yun.yagibdah.de> <87hb6kcx7z.fsf@mail.jurta.org> <87hb6jtqua.fsf@yun.yagibdah.de> <877h7fc7vx.fsf@mail.jurta.org> <87livunq27.fsf@yun.yagibdah.de> <874o2hf0bt.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311254000 3410 80.91.229.12 (21 Jul 2011 13:13:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 13:13:20 +0000 (UTC) Cc: 9084@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 15:13:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Qjt3z-00036T-8u for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 15:13:15 +0200 Original-Received: from localhost ([::1]:45605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjt3y-0008Vm-GS for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 09:13:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjt3s-0008VX-A0 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 09:13:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjt3m-00048H-K5 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 09:13:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjt3m-000487-IY for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qjt3l-0007Wx-TB; Thu, 21 Jul 2011 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lee Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2011 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9084 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9084-submit@debbugs.gnu.org id=B9084.131125394928909 (code B ref 9084); Thu, 21 Jul 2011 13:13:01 +0000 Original-Received: (at 9084) by debbugs.gnu.org; 21 Jul 2011 13:12:29 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjt3A-0007WA-JA for submit@debbugs.gnu.org; Thu, 21 Jul 2011 09:12:29 -0400 Original-Received: from static.103.179.46.78.clients.your-server.de ([78.46.179.103] helo=static.73.179.46.78.clients.your-server.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjt34-0007Vs-GM for 9084@debbugs.gnu.org; Thu, 21 Jul 2011 09:12:23 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1Qjt2w-00040n-6w; Thu, 21 Jul 2011 15:12:10 +0200 In-Reply-To: <874o2hf0bt.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 20 Jul 2011 18:17:27 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Jul 2011 09:13:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49498 Juri Linkov writes: >> Ok, and how do users configure emacs to automatically split windows in >> such a way that they aren't wider (or narrower) than the text to be >> displayed in them while achieving the window layout they want? > > Do you mean an algorithm like implemented in `balance-windows' (`C-x +') > or `shrink-window-if-larger-than-buffer' (`C-x -'). Unfortunately, > it's only for the vertical direction, and I can't find the same for the > horizontal direction, something like `shrink-window-if--than-buffer'. What I mean is a.) ways to decide in advance what size a window should have before the window is created and b.) the problem of keeping an overall window layout (i. e. within a frame) when multiple windows are displayed. For example, when I use gnus[1] and look at the summary of a newsgroup in a buffer, the summary is displayed full screen. When I display an article, the window is split to display the article as well as the summary. When I write a reply like this one, the reply is displayed full screen[2], i. e. 230 characters wide, though `fill-column' is 72. Now when I "M-x describe-variable fill-column", the window is split in half, displaying the reply on the left (113 characters wide) and the description on the right side (112 characters wide). When I "M-x info", the window on left is switched to show the *info* buffer instead of the reply I'm writing --- which is not what I want because in this case, it would make much more sense if the *info* buffer was displayed in the window on the right. What I would want is three windows, side by side and eventually some vertical splits in some of the windows. I can somehow[3] get that, but when I have it, it won't last long because gnus or whatever else will ignore my window layout and destroy it. Even if I could specify for all windows that /might/ show up while I'm using emacs what sizes they should have and where on the screen I want them displayed in relation to other windows (if those are currently displayed) to always achieve the overall window layout I want, that's something I don't want to do because it's way to much work. It probably won't make sense, anyway --- and it's actually one of the strengths of emacs to have dynamic window layout. The problem would be solved if I could just "freeze" a particular window layout or "frameify" windows. Starting with a window the size of the full screen, I could just split it the way I want to and then keep the window layout as long as I want. Having that said, it's probably not so important to have ways to specify the possible sizes and positions of windows in advance. It won't be needed much if we could "frameify" windows. What might be useful with a static window layout would be ways to specify exceptions so that users can decide what buffers can override their static window layout when displayed. That we can't "frameify" windows has probably historical reasons: The feature doesn't make much sense when the display isn't (much) larger than 80x25. Nowadays, the displays are much larger. [1] With gnus, the user can configure the window layout to some extend. [2] I haven't bothered to find out if that is also configurable with gnus. Even if it is, there's no point in changing it because dynamic window layout will do whatever it wants anyway. [3] I just tried and couldn't find out how to make a window wider. I would have to read the documentation, which would probably destroy the window configuration I'm trying to make, so I gave up to get on with the reply. -- http://www.asciiribbon.org/ http://tools.ietf.org/html/rfc1855 http://www.caliburn.nl/topposting.html