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: Sat, 16 Jul 2011 17:48:00 +0200 Message-ID: <87aacerzv3.fsf@yun.yagibdah.de> References: <878vs0d10o.fsf@yun.yagibdah.de> <8762n4e5gy.fsf@mail.jurta.org> <4E1FEC9C.2090102@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310831372 13617 80.91.229.12 (16 Jul 2011 15:49:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2011 15:49:32 +0000 (UTC) Cc: 9084@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 16 17:49:28 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 1Qi77P-0001Al-Bz for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 17:49:27 +0200 Original-Received: from localhost ([::1]:56656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi77O-0003Zw-JI for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 11:49:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi773-0003ZM-A4 for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 11:49:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qi771-00071d-Dy for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 11:49:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi770-00071Q-UP for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 11:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qi76z-0003tk-SN; Sat, 16 Jul 2011 11:49:01 -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: Sat, 16 Jul 2011 15:49: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.131083129214927 (code B ref 9084); Sat, 16 Jul 2011 15:49:01 +0000 Original-Received: (at 9084) by debbugs.gnu.org; 16 Jul 2011 15:48:12 +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 1Qi76B-0003si-NB for submit@debbugs.gnu.org; Sat, 16 Jul 2011 11:48:12 -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 1Qi768-0003sR-84 for 9084@debbugs.gnu.org; Sat, 16 Jul 2011 11:48:09 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1Qi760-000353-9F; Sat, 16 Jul 2011 17:48:00 +0200 In-Reply-To: <4E1FEC9C.2090102@gmx.at> (martin rudalics's message of "Fri, 15 Jul 2011 09:30:36 +0200") 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: Sat, 16 Jul 2011 11:49: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:49252 Archived-At: martin rudalics writes: >>> So this might be as simple as reversing the order in which things happen: >>> first splitting the frame automatically and then formatting the manual >>> page vs. formatting the manual page first and then splitting the frame. >> >> Such reversing the order is implemented in http://debbugs.gnu.org/5054 >> Maybe we should commit that now? > > Sounds reasonable, yes. When this is applied and the variable `Man-width' is set to some value, like 75, will the width of the window to display the manpage in be adjusted to the width of the text? Just splitting the current window in half when it is 230 characters wide gives you two windows each about 115 characters wide while you might rather want the window with the manpage to be `Man-width' characters wide and the other window as wide as the rest of the frame. Then there's the documentation about `Man-frame-parameters': ,---- [ M-x describe-variable Man-frame-parameters ] | Man-frame-parameters is a variable defined in `man.el'. | Its value is nil | | Documentation: | Frame parameter list for creating a new frame for a manual page. | | You can customize this variable. | | [back] `---- (I had to look at man.el to find out that I can set `Man-width'.) And when you proceed to customise `Man-frame-parameters', you don't have any idea what to enter to always get a frame that makes the window `Man-width' characters wide. Also, please note the terminology: ,---- [ info (emacs) Frames ] | When using a graphical display, you can create multiple system-level | "windows" in a single Emacs session. We refer to these system-level | windows as "frames". `---- ,---- [ info (emacs) Multiple Windows ] | Emacs can split a frame into two or many windows. `---- My understanding would be that `Man-frame-parameters' must be ignored when running emacs on the console because there are only windows and no frames available.