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: Tue, 24 Jul 2018 21:27:45 +0300 Message-ID: <83o9ewv68u.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532456848 21338 195.159.176.226 (24 Jul 2018 18:27:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2018 18:27:28 +0000 (UTC) Cc: 32252@debbugs.gnu.org, eggert@cs.ucla.edu To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 24 20:27:23 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 1fi21r-0005SZ-Mk for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jul 2018 20:27:23 +0200 Original-Received: from localhost ([::1]:42023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fi23y-0003t0-HS for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jul 2018 14:29:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fi22X-0002Rh-Fc for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2018 14:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fi22U-0004n8-9d for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2018 14:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fi22U-0004mb-54 for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2018 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fi22T-00051M-Rq for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2018 14:28: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: Tue, 24 Jul 2018 18:28: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.153245686719280 (code B ref 32252); Tue, 24 Jul 2018 18:28:01 +0000 Original-Received: (at 32252) by debbugs.gnu.org; 24 Jul 2018 18:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:55755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fi22F-00050u-Ba for submit@debbugs.gnu.org; Tue, 24 Jul 2018 14:27:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fi22E-00050i-9P for 32252@debbugs.gnu.org; Tue, 24 Jul 2018 14:27:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fi225-0004WE-Gt for 32252@debbugs.gnu.org; Tue, 24 Jul 2018 14:27:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fi225-0004W1-D9; Tue, 24 Jul 2018 14:27:37 -0400 Original-Received: from [176.228.60.248] (port=1927 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fi224-0003VZ-PT; Tue, 24 Jul 2018 14:27:37 -0400 In-reply-to: (message from Helmut Eller on Tue, 24 Jul 2018 06:49:34 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:148897 Archived-At: > From: Helmut Eller > Date: Tue, 24 Jul 2018 06:49:34 +0200 > Cc: 32252@debbugs.gnu.org > > On Mon, Jul 23 2018, Paul Eggert wrote: > > > %a has quite a different meaning in C11, so we'd need to use some > > With your change %x will also have quite a different meaning in C11. > > > other letter (or set of letters, if we want something for %x, %X, %o) > > if we went that route. This seems like overkill for such a small > > change to functionality that hardly ever matters; plus, %x, %X and %o > > would continue to have problematic machine-dependent semantics and > > would not be sensibly extensible to bignums. > > If it doesn't matter to you then why make the change/break at all? You > could just create a function bignum-to-hex-string. 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. More generally, given the controversy, maybe we should collect some real-life experience before we start making incompatible behavior changes? I mean, the bignum branch is not even merged yet, and we are already changing the behavior with fixnums in incompatible ways. Maybe we should merge the branch first, let the dust settle and let people use the new functionality, then revisit this stuff with more experience on our hands.