From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32252: [PATCH] %o and %x now format signed numbers Date: Wed, 25 Jul 2018 17:17:26 +0300 Message-ID: <83d0vbv1qh.fsf@gnu.org> References: <83o9ewv68u.fsf@gnu.org> <88033810-6f82-8fab-e64e-7ae948b723e7@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532528285 17476 195.159.176.226 (25 Jul 2018 14:18:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 14:18:05 +0000 (UTC) Cc: 32252@debbugs.gnu.org, eller.helmut@gmail.com To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 16:18:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiKc2-0004N6-06 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jul 2018 16:17:58 +0200 Original-Received: from localhost ([::1]:51411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiKe8-0002No-Ud for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jul 2018 10:20:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiKc9-00011t-8i for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 10:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiKc6-0007OD-8H for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 10:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiKc6-0007Nr-2G for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 10:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fiKc5-0006r2-Qq for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 10:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jul 2018 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32252 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 32252-submit@debbugs.gnu.org id=B32252.153252824726301 (code B ref 32252); Wed, 25 Jul 2018 14:18:01 +0000 Original-Received: (at 32252) by debbugs.gnu.org; 25 Jul 2018 14:17:27 +0000 Original-Received: from localhost ([127.0.0.1]:57296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiKbX-0006q9-6U for submit@debbugs.gnu.org; Wed, 25 Jul 2018 10:17:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiKbU-0006pt-LG for 32252@debbugs.gnu.org; Wed, 25 Jul 2018 10:17:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiKbM-0006hx-Ap for 32252@debbugs.gnu.org; Wed, 25 Jul 2018 10:17:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiKbM-0006hb-5Z; Wed, 25 Jul 2018 10:17:16 -0400 Original-Received: from [176.228.60.248] (port=3205 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fiKbL-0006Y3-Gl; Wed, 25 Jul 2018 10:17:15 -0400 In-reply-to: <88033810-6f82-8fab-e64e-7ae948b723e7@cs.ucla.edu> (message from Paul Eggert on Tue, 24 Jul 2018 17:54:57 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -6.0 (------) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:148924 Archived-At: > Cc: 32252@debbugs.gnu.org > From: Paul Eggert > Date: Tue, 24 Jul 2018 17:54:57 -0700 > > Eli Zaretskii wrote: > > > Do we really need to have identical or consistent behavior for fixnums > > and bignums? They are different beasts, so the behavior could be > > different, provided that it makes sense for each of the varieties. > > I don't know what inconsistent behavior would make sense here. There's a > longstanding tradition in Lisp that integer arithmetic just works, and I don't > see why Emacs would want to fight against that tradition here. Although there > may be some low-level functions that distinguish between fixnums and bignums for > efficiency reasons, the vast majority of Lisp functions should not distinguish > them, and 'format' should be one of those functions. I agree that this would be nice to have, but I'm not sure we should absolutely require that, at least not yet. Not before we have enough experience to be sure we have good reasons for changing long-standing behavior. > Although I understand the concern about the patch, the concern doesn't seem to > be warranted, and any compatibility issues can easily be addressed by setting > binary-as-signed. Well, we've seen such movies in the past, and we know we've been wrong in at least some cases.