From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <8738juyupv.fsf@building.gnus.org> References: <22ab55c9-7ec8-4622-8bcd-f67e5a228377@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391841661 31179 80.91.229.3 (8 Feb 2014 06:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 06:41:01 +0000 (UTC) Cc: 14754@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 08 07:41:08 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC1bA-0004JK-0y for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 07:41:08 +0100 Original-Received: from localhost ([::1]:45409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC1b9-0001vY-Kq for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 01:41:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC1b6-0001vG-2G for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 01:41:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC1b5-0002PQ-0G for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 01:41:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC1b4-0002PM-Tb for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 01:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WC1b3-0000M7-Tx for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 01:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Feb 2014 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14754-submit@debbugs.gnu.org id=B14754.13918416191297 (code B ref 14754); Sat, 08 Feb 2014 06:41:01 +0000 Original-Received: (at 14754) by debbugs.gnu.org; 8 Feb 2014 06:40:19 +0000 Original-Received: from localhost ([127.0.0.1]:56228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1aM-0000Kq-4X for submit@debbugs.gnu.org; Sat, 08 Feb 2014 01:40:18 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:54565) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1aJ-0000Kf-Cv for 14754@debbugs.gnu.org; Sat, 08 Feb 2014 01:40:16 -0500 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WC1a4-0006ht-AZ; Sat, 08 Feb 2014 07:40:00 +0100 In-Reply-To: <22ab55c9-7ec8-4622-8bcd-f67e5a228377@default> (Drew Adams's message of "Sun, 30 Jun 2013 00:10:19 -0700 (PDT)") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1WC1a4-0006ht-AZ MailScanner-NULL-Check: 1392446402.05546@wtWdGha0CC83YXjEixT8Yw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84904 Archived-At: Drew Adams 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/