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#5054: 23.1.50; buffer-menu truncated fields Date: Fri, 08 Jan 2010 09:18:46 +0100 Message-ID: <4B46EA66.8020905@gmx.at> References: <4B3F58A5.6080701@gmx.at> <87ljgggfff.fsf@jidanni.org> <4B41BF95.2030106@gmx.at> <87ljge801v.fsf@mail.jurta.org> <4B423CBA.6050001@gmx.at> <87iqbfyoy4.fsf@mail.jurta.org> <4B459896.1050208@gmx.at> <87eim1ebsm.fsf@mail.jurta.org> Reply-To: martin rudalics , 5054@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262941103 17899 80.91.229.12 (8 Jan 2010 08:58:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 08:58:23 +0000 (UTC) Cc: 5054@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 08 09:58:16 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NTAff-0007hq-6D for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2010 09:58:15 +0100 Original-Received: from localhost ([127.0.0.1]:37173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTAff-00067B-Cz for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2010 03:58:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTAWl-0000H5-63 for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:49:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTAWe-0000E5-Aq for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:49:00 -0500 Original-Received: from [199.232.76.173] (port=38521 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTAWd-0000Dd-8O for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:48:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39258) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTAWc-0001wb-SU for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 03:48:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NTA3i-0007tT-6W; Fri, 08 Jan 2010 03:19:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: martin rudalics , 5054@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: Fri, 08 Jan 2010 08:19:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5054 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5054-submit@debbugs.gnu.org id=B5054.126293873530337 (code B ref 5054); Fri, 08 Jan 2010 08:19:02 +0000 Original-Received: (at 5054) by debbugs.gnu.org; 8 Jan 2010 08:18:55 +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 1NTA3a-0007tG-W3 for submit@debbugs.gnu.org; Fri, 08 Jan 2010 03:18:55 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NTA3Y-0007t4-WA for 5054@debbugs.gnu.org; Fri, 08 Jan 2010 03:18:54 -0500 Original-Received: (qmail invoked by alias); 08 Jan 2010 08:18:48 -0000 Original-Received: from 62-47-58-81.adsl.highway.telekom.at (EHLO [62.47.58.81]) [62.47.58.81] by mail.gmx.net (mp045) with SMTP; 08 Jan 2010 09:18:48 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18UEdtQZ0MUaZjofJS0WSPXbhq/hxs+iHlVxZi1jv ThqeK+sS9XnvjK User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87eim1ebsm.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.5 (--) Resent-Date: Fri, 08 Jan 2010 03:19:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34069 Archived-At: > I see there is more serious problem. With `emacs -Q' in a wide frame, > `M-x man' displays the truncated page, because the default value of > `Man-notify-method' is "friendly" (this is a subjective name and I think > actually this option is not friendly at all!), and `man' runs the > formatting command with the value of `COLUMNS' equal to the frame's width, > but later `man' splits the frame horizontally and displays in a half-width > window the manual formatted to the full frame width. Perhaps `man' should > be able to predict the window's width for `COLUMNS' before running the > formatting command. Do you know a function in window.el that would > predict the width that the current window will have after splitting > horizontally? Conceptually `split-window-horizontally' when called with a non-nil SIZE argument should either (1) produce two windows such that either the old or the new one has this many columns, or (2) fail to split the window. So all you have to do is to divide the current width of the window by 2 and eventually call `split-window-horizontally' with first argument (or `split-window' with second argument) assigned the negative of the value you calculated here. Meanwhile you can use that precalculated value as argument for the formatting process. Does the weird behavior of `man' result from the fact that it doesn't know what to display in the new window until formatting completes? martin