From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9084: 24.0.50; displaying man pages splits the window and formats the text forthe full width of the whole frame rather than for the width ofthe window the text is displayed in, which is only 1/2 thewidth of the frame Date: Thu, 21 Jul 2011 05:53:52 -0700 Message-ID: <41938B07137048ECBC2C39DF9FF2F7D2@us.oracle.com> 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> <4E271225.9030704@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311252919 29322 80.91.229.12 (21 Jul 2011 12:55:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 12:55:19 +0000 (UTC) Cc: 9084@debbugs.gnu.org To: "'martin rudalics'" , "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 14:55: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 1QjsmY-0004lu-Qa for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 14:55:15 +0200 Original-Received: from localhost ([::1]:38732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjsmY-0003fV-CA for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 08:55:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjsmS-0003dV-Ul for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 08:55:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjsmN-0000Ru-IB for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 08:55:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjsmN-0000RR-GN for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 08:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QjsmM-00078h-Ah; Thu, 21 Jul 2011 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 12:55: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.131125286527396 (code B ref 9084); Thu, 21 Jul 2011 12:55:02 +0000 Original-Received: (at 9084) by debbugs.gnu.org; 21 Jul 2011 12:54:25 +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 1Qjslh-00077n-I5 for submit@debbugs.gnu.org; Thu, 21 Jul 2011 08:54:25 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjslb-00077W-FQ for 9084@debbugs.gnu.org; Thu, 21 Jul 2011 08:54:19 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6LCs7va030919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Jul 2011 12:54:09 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6LCs6Bi014212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Jul 2011 12:54:07 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6LCs148021789; Thu, 21 Jul 2011 07:54:01 -0500 Original-Received: from dradamslap1 (/10.159.41.128) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Jul 2011 05:54:00 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4E271225.9030704@gmx.at> Thread-Index: AcxHclqs4K5lbc+sSg634htb9dLpogAMuLdA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4E282171.00A4:SCFMA922111,ss=1,re=-4.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Jul 2011 08:55: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:49523 > -----Original Message----- > From: bug-gnu-emacs-bounces+drew.adams=oracle.com@gnu.org > [mailto:bug-gnu-emacs-bounces+drew.adams=oracle.com@gnu.org] > On Behalf Of martin rudalics > Sent: Wednesday, July 20, 2011 10:37 AM > To: Juri Linkov > Cc: 9084@debbugs.gnu.org > Subject: bug#9084: 24.0.50;displaying man pages splits the > window and formats the text forthe full width of the whole > frame rather than for the width ofthe window the text is > displayed in, which is only 1/2 thewidth of the frame > > >> 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 > > > >