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:52:27 +0100 Message-ID: References: <83o9ewv68u.fsf@gnu.org> <88033810-6f82-8fab-e64e-7ae948b723e7@cs.ucla.edu> <9861c5ca-83d0-6fba-d58e-050a63369af5@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532609467 7045 195.159.176.226 (26 Jul 2018 12:51:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2018 12:51:07 +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:51:03 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 1fifjS-0001he-Sf for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 14:51:03 +0200 Original-Received: from localhost ([::1]:35550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiflZ-00050s-NW for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 08:53:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiflR-00050l-A0 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiflO-0003uL-Ch for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiflO-0003u2-8N for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fiflO-00041z-1c for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:53:02 -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:53: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.153260957715485 (code B ref -1); Thu, 26 Jul 2018 12:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2018 12:52:57 +0000 Original-Received: from localhost ([127.0.0.1]:58483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiflJ-00041g-8w for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:52:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiflF-00041S-Hx for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:52:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fifl7-0003mh-E6 for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:52:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fifl7-0003mb-A9 for submit@debbugs.gnu.org; Thu, 26 Jul 2018 08:52:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fifl4-000502-0w for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:52:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fifl1-0003hZ-2k for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:52:42 -0400 Original-Received: from [195.159.176.226] (port=59541 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fifl0-0003ej-RO for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 08:52:39 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fifip-00011i-Cl for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:50:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:qr5Kej8OPP7ir57oOE7jfuOYwAE= 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:148965 Archived-At: On Wed 25 Jul 2018, Paul Eggert wrote: > Andreas Schwab wrote: >>> It's more about (read (printf "#x%x" N)) returning N, which is basic >>> functionality that should work >> Where is that documented? > > You're right, it's not. It's not even documented that (read (printf "%s" N)) > should work for any number N. I'll add something along these lines. I'll also > warn that (read (printf "#x%x" N)) might not work. I think you meant (read (format "%s" N)). AndyM