[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14754: 24.3.50; `C-h v' needs to fill wide `pp' lines (493 chars wid
From: |
Lars Ingebrigtsen |
Subject: |
bug#14754: 24.3.50; `C-h v' needs to fill wide `pp' lines (493 chars wide?!) |
Date: |
Fri, 07 Feb 2014 22:38:52 -0800 |
User-agent: |
Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> 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/
- bug#14754: 24.3.50; `C-h v' needs to fill wide `pp' lines (493 chars wide?!),
Lars Ingebrigtsen <=