Subject: bug#14754: 24.3.50; `C-h v' needs to fill wide `pp' lines (493 chars wide?!)

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 07 Feb 2014 22:38:52 -0800

Drew Adams <[email-masked]> writes:

> The lines in the *Help* buffer should respect `fill-column' as much as
> possible, other things being equal.
>
> emacs -Q
>
> C-h v imagemagick-enabled-types
>
> You see the value printed on a single line that is 493 chars wide!
> That's ridiculous, and it does not play well with code that fits the
> *Help* frame or window to its buffer text etc.
>
> The problem is this part of `describe-variable':
>
> (let ((from (point))
>       (line-beg (line-beginning-position))
>       (print-rep
>        (let ((print-quoted t))
>          (prin1-to-string val))))
>   (if (< (+ (length print-rep) (point) (- line-beg)) 68)
>       (insert print-rep)
>     (terpri)
>     (pp val)

etc

Is there any reason why it doesn't just pretty-print the values always?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/