GNU bug report logs -
#5054
23.1.50; buffer-menu truncated fields
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Fri, 27 Nov 2009 00:10:05 UTC
Severity: wishlist
Merged with 7271
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> 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
This bug report was last modified 12 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.