From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics 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: Wed, 20 Jul 2011 19:36:37 +0200 Message-ID: <4E271225.9030704@gmx.at> 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; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311231706 7719 80.91.229.12 (21 Jul 2011 07:01:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 07:01:46 +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 09:01:41 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 1QjnGP-0005nf-10 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 09:01:41 +0200 Original-Received: from localhost ([::1]:45343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjduc-0006Gi-Hb for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jul 2011 17:02:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjahl-00018B-5S for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 13:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjahj-0007Mw-52 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 13:37:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjahi-0007Mn-T1 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 13:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qjahi-0002Cd-5K; Wed, 20 Jul 2011 13:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2011 17:37:02 +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.13111834108449 (code B ref 9084); Wed, 20 Jul 2011 17:37:02 +0000 Original-Received: (at 9084) by debbugs.gnu.org; 20 Jul 2011 17:36:50 +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 1QjahV-0002CE-HU for submit@debbugs.gnu.org; Wed, 20 Jul 2011 13:36:49 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QjahT-0002C2-OV for 9084@debbugs.gnu.org; Wed, 20 Jul 2011 13:36:48 -0400 Original-Received: (qmail invoked by alias); 20 Jul 2011 17:36:40 -0000 Original-Received: from 62-47-47-207.adsl.highway.telekom.at (EHLO [62.47.47.207]) [62.47.47.207] by mail.gmx.net (mp025) with SMTP; 20 Jul 2011 19:36:40 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Be7ARJ16Bd56mIax52jhUco6oF1FE+VZkNch/RV sbfiO6/Zewn+6Q User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <874o2hf0bt.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 20 Jul 2011 13:37:02 -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:49517 >> Hm, sounds good to me. Is there some more info about this available? >> Will this be implemented? > > I hope Martin could answer your questions whether in the new design > is possible to achieve this by using window nests and splits. `display-buffer' allows to specify (1) the minimum height/width for the popped-up window (the window is not created if this can't be done), and (2) a desired height/width of the window after it has been created. If this fails, the size of the popped-up window remains unchanged after the split. For (2) you can either specify the desired size explicitly or call a function like `fit-window-to-buffer' to adjust the size. I just noticed that the latter is broken because I call the function with the old buffer (that is the one from the split window) instead of the new one. I'll fix that tomorrow. I don't know a function to fit the width of a window to the maximum line length of the buffer it shows, but writing such a function should be easy provided we have a function that tells us the maximum column within a buffer. BTW, is it impossible to use word wrapping for man pages? martin