From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#32252: [PATCH] %o and %x now format signed numbers Date: Thu, 26 Jul 2018 19:18:48 +0200 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 1532625490 24992 195.159.176.226 (26 Jul 2018 17:18:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2018 17:18:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 32252@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 19:18:06 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 1fijtt-0006P5-H8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 19:18:05 +0200 Original-Received: from localhost ([::1]:37418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fijw0-0007Yv-Dv for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 13:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fijvq-0007XH-Sw for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fijvl-0007ZF-W1 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fijvl-0007Z5-Sb for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fijvl-00065f-Lp for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:20:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20180723191250.19182-1-eggert@cs.ucla.edu> Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jul 2018 17:20: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 X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153262555123342 (code B ref -1); Thu, 26 Jul 2018 17:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2018 17:19:11 +0000 Original-Received: from localhost ([127.0.0.1]:59280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fijuw-00064P-Sd for submit@debbugs.gnu.org; Thu, 26 Jul 2018 13:19:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fijuv-00064D-6F for submit@debbugs.gnu.org; Thu, 26 Jul 2018 13:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fijup-00071b-Dr for submit@debbugs.gnu.org; Thu, 26 Jul 2018 13:19:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fijup-00071N-9l for submit@debbugs.gnu.org; Thu, 26 Jul 2018 13:19:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fijuo-0006Gh-7v for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:19:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fijuj-0006vN-Ao for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:19:02 -0400 Original-Received: from [195.159.176.226] (port=55315 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fijuj-0006up-3b for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 13:18:57 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fijsZ-0004t6-R1 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 19:16:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:vRHrAC0LRfufkK1BfyGZwM2fcsQ= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:148975 Archived-At: On Thu, Jul 26 2018, Andy Moreton wrote: >> 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 ? In Common Lisp those are defined to behave as if integers were represented in two's complement form, regardless of how integers are represented internally. Interestinlgy, Common Lisp has ASH but no direct equivalent to Emacs Lisp's lsh. Let's see how the bignum proponents extend lsh. Helmut