all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@jurta.org>
Cc: 5054@debbugs.gnu.org
Subject: bug#5054: 23.1.50; buffer-menu truncated fields
Date: Fri, 08 Jan 2010 09:18:46 +0100	[thread overview]
Message-ID: <4B46EA66.8020905@gmx.at> (raw)
In-Reply-To: <87eim1ebsm.fsf@mail.jurta.org>

 > 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






  reply	other threads:[~2010-01-08  8:18 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-01 17:50 bug#5054: 23.1.50; buffer-menu truncated fields Chong Yidong
2010-01-02 13:58 ` jidanni
2010-01-02 14:31   ` martin rudalics
2010-01-03  1:12     ` jidanni
2010-01-04 10:14       ` martin rudalics
2010-01-04 10:43         ` Lennart Borgman
2010-01-04 17:28         ` Juri Linkov
2010-01-04 17:54           ` jidanni
2010-01-04 19:08           ` martin rudalics
2010-01-04 19:36             ` Drew Adams
2010-01-06 20:30             ` Juri Linkov
2010-01-07  8:17               ` martin rudalics
2010-01-07 23:27                 ` Juri Linkov
2010-01-08  8:18                   ` martin rudalics [this message]
2010-01-09 17:50                     ` Juri Linkov
2010-01-10  3:12                       ` Stefan Monnier
2010-01-11  0:48                         ` bug#5054: Man truncated (was: buffer-menu truncated fields) Juri Linkov
2010-01-11  3:39                           ` bug#5054: Man truncated Stefan Monnier
2010-01-11  8:05                           ` martin rudalics
2010-01-11 21:59                             ` Juri Linkov
2010-06-16 21:44                               ` Juri Linkov
2010-01-12 20:46                             ` bug#5054: Asynchronous vc-bzr-diff (Man truncated) Juri Linkov
2010-01-13  0:01                               ` Dan Nicolaescu
2010-01-13  0:28                                 ` Juri Linkov
2011-10-07  0:23                   ` bug#5054: 23.1.50; buffer-menu truncated fields Juri Linkov
2012-08-05  3:11                     ` Chong Yidong
2010-01-04 17:40         ` Drew Adams
2010-01-04 18:05           ` jidanni
2010-01-04 18:18             ` Drew Adams
2010-01-04 18:45               ` jidanni
2010-01-06 20:31                 ` Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2009-11-27  0:01 jidanni
2009-11-27  4:14 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B46EA66.8020905@gmx.at \
    --to=rudalics@gmx.at \
    --cc=5054@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.