> While you're there could you please do some idiomatic changes that > avoid selecting a window in order to calculate its width: > > For example, replace > > (let ((width > (if (window-live-p (get-buffer-window (current-buffer) t)) > (with-selected-window (get-buffer-window (current-buffer) t) > (window-width)) > (window-width))))) > > with something like > > (window-width (get-buffer-window nil t)) > > and > > (if (window-live-p (get-buffer-window (current-buffer) t)) > (with-selected-window (get-buffer-window (current-buffer) t) > (frame-width)) > (frame-width)) > > with something like > > (let ((window (get-buffer-window nil t))) > (frame-width (and window (window-frame window)))) > > Probably you also want to add a version tag for 'Man-width'. Right, fixed in the next patch where a version tag is added not to `Man-width', but to the new customizable variable `Man-width-max'. This is better since like when man-pages are formatted in their web versions they limit the width using the CSS property `max-width', so like CSS has both `width' and `max-width', man.el will have `Man-width' and `Man-width-max'. Regarding the request for dynamic reformatting, I'm not sure if man pages should be reformatted on resizing windows (I remember seeing a window resize hook, but can't find it now). Such window resize is necessary also for some other modes, for example, when a visited image is saved to the desktop file, it has a wrong size after loading the desktop, because the image size is calculated when the image file is not yet displayed in a window. The image size should be recalculated after displaying the image buffer.