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 20:35:53 +0200 Message-ID: References: <7e8dd084-7ab9-c2ce-1d6c-e673fa998f11@cs.ucla.edu> <6f720005-b5e4-5d1c-b4e8-a8992c7635c4@cs.ucla.edu> <1c3c61c4-f93f-3bea-f6ed-b89e1cdea89b@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532630108 30589 195.159.176.226 (26 Jul 2018 18:35:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2018 18:35:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32252@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 20:35: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 1fil6N-0007mJ-IR for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 20:35:03 +0200 Original-Received: from localhost ([::1]:37693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fil8S-0003tK-As for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 14:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fil8L-0003t1-O5 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fil8I-0002S0-HY for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fil8I-0002Rq-E8 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fil8I-0007tx-49 for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2018 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jul 2018 18:37:02 +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.153263016430310 (code B ref 32252); Thu, 26 Jul 2018 18:37:02 +0000 Original-Received: (at 32252) by debbugs.gnu.org; 26 Jul 2018 18:36:04 +0000 Original-Received: from localhost ([127.0.0.1]:59327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fil7M-0007so-0n for submit@debbugs.gnu.org; Thu, 26 Jul 2018 14:36:04 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:36912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fil7J-0007sI-Fb for 32252@debbugs.gnu.org; Thu, 26 Jul 2018 14:36:02 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id n11-v6so2983970wmc.2 for <32252@debbugs.gnu.org>; Thu, 26 Jul 2018 11:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KiXWUV5qwMa3ngvYA8qxdEAXGbewrFzV1WmyYLL+uuY=; b=IfHw4d6cujZlEcO4ezlSIzv31UM2rRKv+3I7LBwEwL/ObZ4pZT1dZuJp4c0oyjW3WJ xgrKzFF0CCQIzSa3HNFmwhHmFdXGspsldRjSylgxUCgqUF2hUbfYVX0qQYflOFP93tgo hQXUKmSf0M+WkfuHU9zcCGH5Fqx0ioTwW2MZweED45qGL6PbBGcl/6R8bTv/fM809xqH a1JIsC/j1mbluV75odKVXPKn5mOUwIAvb8j4CTiZ5hEiYxPaqytY1VpiYjwHCn+2mVOX /idIyBbVOcMxkgUghS1m1aN0TtIYnty37JLgvVP3GoDpYjPwdCua9A0ryYDjqmFrhBzU taUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KiXWUV5qwMa3ngvYA8qxdEAXGbewrFzV1WmyYLL+uuY=; b=h/xu+A7PKTr67aUooM1+5VrHN6goyv6aa0g9CE93M+z3EaTLWK27a31e8fCaygEv5w cg/R6OwOeYOtIxEKTsQR5c5sp/A8SU61N5dJgCCv/1h6vz3NauItrpqKaHu/Gmz3yRiG AtftQJtzFIkqExn05WGh4ISADjZjQXCXKo7HegLvUFoThmVVd3ooOP2fT3wTsWix27Hi J3DbOhZ1UOb3VUe8Js4G0E7+DYKF32MmbcVy7/u8nygIlgsxCldpjmhdBxZ7/Wee72i6 3iL7/eU7aPEnPvxtRpTGJPgutjQNqd0wumos+yqdeoNfvVR9pyag25EavyfrVkjSBKtM yhqA== X-Gm-Message-State: AOUpUlGy/6YxWMXBv9NB1fNFMhCfe1xUYf8ofm9Paa/tWyIKKviZVUPK OprtVl4ysxyzZr7RJ9B41FjwbYuw X-Google-Smtp-Source: AAOMgpeF2Gr4fMWI2IWyFvrEtKIwpxztgZx3oVHOGsfFUxpCcF7NUozXZ5acVkXHmRHOtWpJnb6LwA== X-Received: by 2002:a1c:4405:: with SMTP id r5-v6mr2155927wma.4.1532630155318; Thu, 26 Jul 2018 11:35:55 -0700 (PDT) Original-Received: from caladan ([37.186.181.82]) by smtp.gmail.com with ESMTPSA id a20-v6sm2620641wmg.23.2018.07.26.11.35.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jul 2018 11:35:54 -0700 (PDT) In-Reply-To: (Paul Eggert's message of "Thu, 26 Jul 2018 10:50:35 -0700") 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:148981 Archived-At: On Thu, Jul 26 2018, Paul Eggert wrote: > On 07/26/2018 10:16 AM, Helmut Eller wrote: >> Where is that code? > > One example is url-digest-auth-make-cnonce. This was the first I ran > into. No doubt there are others. And how would url-digest-auth-make-cnonce look with bignums? >> And why would it be difficult to teach >> format-time-string to deal with the tricky bits that current-time >> returns. > > ?! format-time-string already does that. And it's a hassle. Other > Emacs Lisp code inspects timestamps directly too. And it's a hassle > for that code too. Bignums would significantly lessen this > hassle. Surely this is obvious. To me it's not so obvious. E.g. current-time is supposed to "return the current time, as the number of seconds since [epoch]". So, how are you going to represent micro-seconds with bignums? Or, e.g. disassemble_lisp_time deals with formats that are the form (HIGH LOW USEC PSEC) or formats that were used in previous Emacs versions. With bignums, disassemble_lisp_time has to support the old formats and bignums too. Helmut