From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#32252: [PATCH] %o and %x now format signed numbers Date: Thu, 26 Jul 2018 13:54:21 +0100 Message-ID: References: <83o9ewv68u.fsf@gnu.org> <88033810-6f82-8fab-e64e-7ae948b723e7@cs.ucla.edu> <877eli28mp.fsf@posteo.net> <802d13fa-83a4-fccd-510d-617965509313@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532609771 28435 195.159.176.226 (26 Jul 2018 12:56:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2018 12:56:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: 32252@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 14:56:07 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 1fifoK-0007Fg-WA for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 14:56:05 +0200 Original-Received: from localhost ([::1]:35618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fifqR-000671-IF for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 08:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fifqJ-00066j-17 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fifqG-0007Xd-3x for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:58:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fifqF-0007XP-VD for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:58:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fifqF-00049S-JJ for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:58:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20180723191250.19182-1-eggert@cs.ucla.edu> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jul 2018 12:58:03 +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 X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153260985415905 (code B ref -1); Thu, 26 Jul 2018 12:58:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2018 12:57:34 +0000 Original-Received: from localhost ([127.0.0.1]:58500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fifpm-00048T-Ga for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:57:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fifpk-00048F-Ff for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:57:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fifpc-0006yx-Ea for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:57:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fifpc-0006yg-BP for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:57:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fifpZ-000638-0n for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:57:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fifpW-0006sj-3g for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:57:21 -0400 Original-Received: from [195.159.176.226] (port=38785 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fifpV-0006rA-RU for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:57:18 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fifnN-00062W-4O for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:55:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:JRPGxdnQBR7Q88dz7AVX0UosgJ8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -5.5 (-----) 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:148966 Archived-At: On Thu 26 Jul 2018, Paul Eggert wrote: > Brett Gilio wrote: >> I wonder what you mean by "just >> works" in contrast to what Eli suggested about the inconsistency in >> behavior between the different function definitions for fixnums and >> bignums. > > I meant that ordinarily Emacs Lisp programmers should not worry whether an > integer's internal representation is a bignum or a fixnum. Functions like +, > -, > *, /, format, read, etc. should accept and generate mathematically correct > integer values regardless of whether their inputs are fixnums or bignums. If > an integer fits in a fixnum it is presumably represented that way, but by and > large Emacs programs should not care about this detail. > > That is how other Lisps do it, it works well for them, and Emacs Lisp should > do likewise. That is uncontroversial for arithmetic operations, but how are bitwise logical operations handled in other lisps with bignums ? AndyM