From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8033: Not the byte compiler; problem lies deeper Date: Mon, 14 Feb 2011 16:52:32 -0500 Message-ID: <87tyg69tcv.fsf@stupidchicken.com> References: <87lj1jf6h3.fsf@maru.md5i.com> <87oc6e97yu.fsf@maru.md5i.com> <877hd28it5.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297721201 7719 80.91.229.12 (14 Feb 2011 22:06:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 22:06:41 +0000 (UTC) Cc: 8033@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 14 23:06:37 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp6Z1-0001xD-5z for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 23:06:35 +0100 Original-Received: from localhost ([127.0.0.1]:41358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp6Z0-0003Ef-Ku for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 17:06:34 -0500 Original-Received: from [140.186.70.92] (port=42948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp6Yu-0003EQ-J6 for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:06:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp6Yt-0004TC-Is for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:06:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp6Yt-0004T8-GO for bug-gnu-emacs@gnu.org; Mon, 14 Feb 2011 17:06:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pp6DB-0000qF-Ul; Mon, 14 Feb 2011 16:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Feb 2011 21:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8033-submit@debbugs.gnu.org id=B8033.12977198203182 (code B ref 8033); Mon, 14 Feb 2011 21:44:01 +0000 Original-Received: (at 8033) by debbugs.gnu.org; 14 Feb 2011 21:43:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp6Cq-0000pH-1K for submit@debbugs.gnu.org; Mon, 14 Feb 2011 16:43:40 -0500 Original-Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp6Co-0000p0-A7 for 8033@debbugs.gnu.org; Mon, 14 Feb 2011 16:43:38 -0500 Original-Received: from furball (dhcp128036225012.central.yale.edu [128.36.225.12]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p1ELqZfI030616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Feb 2011 16:52:36 -0500 Original-Received: by furball (Postfix, from userid 1000) id BF0391605B1; Mon, 14 Feb 2011 16:52:32 -0500 (EST) In-Reply-To: <877hd28it5.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Mon, 14 Feb 2011 15:25:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 14 Feb 2011 16:44:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44127 Archived-At: Michael Welsh Duggan writes: > Here is a patch which fixes this problem. > > *** src/print.c 2011-02-14 15:39:19 +0000 > --- src/print.c 2011-02-14 20:24:00 +0000 > *************** > *** 1063,1068 **** > --- 1063,1070 ---- > /* Generate the fewest number of digits that represent the > floating point value without losing information. */ > dtoastr (buf, FLOAT_TO_STRING_BUFSIZE, 0, 0, data); > + /* Force a decimal point even if integer */ > + width = 1; > } > else /* oink oink */ > { Thanks, but could you explain why printing the float 1.0 as "1" can cause this problem in Gnus? The code in Gnus passes the actual Lisp objects around, so the printer shouldn't be involved.