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: Sun, 17 Jul 2011 16:23:33 +0200 Message-ID: <87zkkdouje.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310917280 27163 80.91.229.12 (17 Jul 2011 15:41:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 15:41: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 Sun Jul 17 17:41:16 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 1QiTT1-0006CF-9V for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 17:41:15 +0200 Original-Received: from localhost ([::1]:44200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiTT0-0000EY-8R for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 11:41:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiSGK-0006jC-CD for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 10:24:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiSGI-0003J4-PJ for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 10:24:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiSGI-0003Iy-IQ for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 10:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiSGI-0004Hi-4K; Sun, 17 Jul 2011 10:24: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: Sun, 17 Jul 2011 14:24: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.131091262516448 (code B ref 9084); Sun, 17 Jul 2011 14:24:02 +0000 Original-Received: (at 9084) by debbugs.gnu.org; 17 Jul 2011 14:23:45 +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 1QiSG0-0004HF-PN for submit@debbugs.gnu.org; Sun, 17 Jul 2011 10:23:45 -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 1QiSFy-0004H2-93 for 9084@debbugs.gnu.org; Sun, 17 Jul 2011 10:23:43 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1QiSFp-0006zL-Tt; Sun, 17 Jul 2011 16:23:33 +0200 In-Reply-To: <87tyalilpf.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 17 Jul 2011 02:18:36 +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: Sun, 17 Jul 2011 10:24: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:49345 Archived-At: Juri Linkov writes: >> 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? > > When you set `Man-width' to a positive integer, the manpage's text is > formatted to that width. This variable doesn't affect the window's width. To me, it would make sense if it did or if I could make it so that it does, for example by specifying a negative integer like -75 to have the page formatted 75 characters wide /and/ the width of the window adjusted accordingly. Imho, there isn't much point in making the window wider than the text it displays when viewing manpages. >> 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. > > But what if you have manpage buffers in both of horizontally split > side-by-side windows? When your window is 230 characters wide, you could set Man-width to 70 and display three pages side by side? >> Then there's the documentation about `Man-frame-parameters': >> >> ,---- [ M-x describe-variable Man-frame-parameters ] > [...] >> `---- >> >> (I had to look at man.el to find out that I can set `Man-width'.) > > Do you think `Man-width' should be mentioned in the docstring of `man'? Yes --- I have been searching through the info documentation of emacs after reading in the other bug report that there is something like "Man-width" and couldn't find it. It seems you need to "M-x describe-function man" to get at least some documentation about it. Since there's the usual man command you run from a shell, it's not too obvious that "M-x man" is something very different. >> 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. > > Maybe the docstring of `Man-frame-parameters' should provide an example > of using the frame parameter `width'? That would be great :) When you're more familiar with emacs, you probably just know how to specify the frame parameters and don't miss an example there. >> 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. > > `Man-frame-parameters' is ignored unless `Man-notify-method' is set > to the value `newframe'. However, I don't know how the users > who prefer to set `pop-up-frames' to a non-nil value > specify the width of the manpage's frame > (when `Man-notify-method' is not `newframe')? That's a good question ... And what do users do who aren't using frames? What I've been thinking about is that there is a fundamental difference between frames and windows in that frames never change their size automatically while windows change it all the time. I wish there was a way to "freeze" the window setup so that I could have a fixed window setup within a frame or on the console. Within these "window-frames", windows might change their sizes just as they do now. Being able to freeze the window layout could have the side effect of allowing users to specify `Man-window-parameters' ...