all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23169: 24.5; Inconsistent text reflow in man pages depending on window configuration
@ 2016-03-31 13:15 Lluís
  2016-03-31 16:48 ` Eli Zaretskii
  2019-09-29  5:40 ` Stefan Kangas
  0 siblings, 2 replies; 10+ messages in thread
From: Lluís @ 2016-03-31 13:15 UTC (permalink / raw)
  To: 23169

Before the man process is started, "Man-start-calling" calculates the "COLUMNS"
envvar using "window-width" before splitting windows. The window split happens
later once the process finishes, and the buffer is shown through
"Man-notify-when-ready".

Assuming the buffer is going to be shown on a vertical split, the text will go
beyond the window limits if there was no other window in the frame (or if a new
window is used), or will be reflowed with the proper width if an existing window
is reused.

Manually calling "Man-update-manpage" fixes it, but it's annoying. Simply adding
a call to "Man-update-manpage" in "Man-notify-when-ready" would fix it
("(with-current-buffer man-buffer (Man-update-manpage))" in the "friendly" case
for me).

As a bonus, this fix also reflows the text when an existing buffer is reused.


Thanks,
  Lluis





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-09-29  5:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-31 13:15 bug#23169: 24.5; Inconsistent text reflow in man pages depending on window configuration Lluís
2016-03-31 16:48 ` Eli Zaretskii
2016-04-01 15:13   ` Lluís
2016-04-01 16:20     ` martin rudalics
2016-04-01 17:40     ` Eli Zaretskii
2016-04-01 19:51       ` Juri Linkov
2016-04-02 11:30       ` Lluís
2016-04-02 20:23         ` Juri Linkov
2016-04-03 13:30           ` Lluís
2019-09-29  5:40 ` Stefan Kangas

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.