Received: (at 24812) by debbugs.gnu.org; 29 Oct 2016 19:34:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 29 15:34:14 2016 Received: from localhost ([127.0.0.1]:36822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1c0ZOQ-0001bG-IA for submit <at> debbugs.gnu.org; Sat, 29 Oct 2016 15:34:14 -0400 Received: from mail-it0-f45.google.com ([209.85.214.45]:36883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <agrambot@HIDDEN>) id 1c0ZOP-0001az-MT for 24812 <at> debbugs.gnu.org; Sat, 29 Oct 2016 15:34:13 -0400 Received: by mail-it0-f45.google.com with SMTP id u205so35931361itc.0 for <24812 <at> debbugs.gnu.org>; Sat, 29 Oct 2016 12:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=59YMc0n0MbZiQWuFiEYsVjOC8sIyI5C8ispDqVi9m4M=; b=netsmoSDpb/zJ8uC8HSjNbgwE4Quhv45uKQ+uPVhTGVLJ+5ENbXhOtwTxtbXmcCym9 7+CehVLfgK9HV+29JKIGvaUcKzZkV+fpi0y7GwyaSwnqBrsQa3bHfCPvaaI7awOxsLJ9 5adZZOm3RpNjTPJN29ha7e9iMzqLA51OSXmaL1+i0RSdcI7v6lTljj2567geIPVbS7Sv FXJRj2djWZOd7FFFyVWK3kwp+pa97F4nwggm/CSjfJFGqwCQJda97l/WwwmW3yAPgPRF UKIFKVqkp2u9OMocxj5oloDuxFXdNvkZjQ+dPJCZI0JVY0lFA4bti/9guWS5htnbQpQV HtzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=59YMc0n0MbZiQWuFiEYsVjOC8sIyI5C8ispDqVi9m4M=; b=ia9lUb4tjqxIeBkM8ddVS3sD0e28r5Bl5GGosKo1Hnk1xtLFx7+MtcEnMd3Yv/904Q pg3nkuVDFNLGUbAIFTwhUZQT3ttXS8zKSFZfBphyWfyf7Zmr0nLA6Th/uEi0Pkx4VYcD VlbssE3bJ/6qiBapL6xA5n0kviCmUJvy6bPtgASQCZ1ca5Wb6BGiaZ3WSQyGnrchJ9dC JvB97SqamrC9dt9qX7OsFFAdei2IvMZMq3UqOAFAMQOJIqeHRScPQqp3v4YZ3rSUBCpt nOXsaK+kU3FSeqU+EhwcJlyWoIxynX1WD1WpYClx6UfqCaG9WgMRhMIhivsw1K4SJU91 +0ew== X-Gm-Message-State: ABUngveFQk28/c39HkpFZSMUB25TIE3mqXJXHeEgIeU91AEaKmuvY5iktfEyWa/vHwam/Q== X-Received: by 10.36.60.80 with SMTP id m77mr3702081ita.13.1477769647803; Sat, 29 Oct 2016 12:34:07 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id y130sm5489618itc.16.2016.10.29.12.34.07 for <24812 <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Oct 2016 12:34:07 -0700 (PDT) From: Alex <agrambot@HIDDEN> To: 24812 <at> debbugs.gnu.org Subject: Re: 25.1; Missing (binary) radix format directive References: <87zilpqexn.fsf@HIDDEN> Date: Sat, 29 Oct 2016 13:34:02 -0600 In-Reply-To: <87zilpqexn.fsf@HIDDEN> (Alex's message of "Thu, 27 Oct 2016 22:24:04 -0600") Message-ID: <87h97v9cgl.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 24812 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.2 (/) Alex <agrambot@HIDDEN> writes: > Emacs' `format' has %o, %x, and %d, but it's missing both the ~r and ~b > radix directives from Common Lisp's `format'. > > I can understand leaving out ~r, but I think ~b is worth adding to > Emacs' `format'. > > CL example: > (format nil "~b" 5) => "101" > > Requested: > (format "%b" 5) => "101" I noticed that while string_to_number supports an arbitrary base, number_to_string doesn't. If number_to_string was symmetric in this aspect, then ~b and ~r should be straightforward to implement, right?
bug-gnu-emacs@HIDDEN
:bug#24812
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 28 Oct 2016 04:24:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 28 00:24:40 2016 Received: from localhost ([127.0.0.1]:33040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1bzyie-0001QO-Hs for submit <at> debbugs.gnu.org; Fri, 28 Oct 2016 00:24:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <agrambot@HIDDEN>) id 1bzyic-0001QB-Ti for submit <at> debbugs.gnu.org; Fri, 28 Oct 2016 00:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <agrambot@HIDDEN>) id 1bzyiX-0000U9-8E for submit <at> debbugs.gnu.org; Fri, 28 Oct 2016 00:24:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <agrambot@HIDDEN>) id 1bzyiX-0000Tw-4Y for submit <at> debbugs.gnu.org; Fri, 28 Oct 2016 00:24:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <agrambot@HIDDEN>) id 1bzyiV-0002pS-Qx for bug-gnu-emacs@HIDDEN; Fri, 28 Oct 2016 00:24:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <agrambot@HIDDEN>) id 1bzyiS-0000Qi-QJ for bug-gnu-emacs@HIDDEN; Fri, 28 Oct 2016 00:24:31 -0400 Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:33052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <agrambot@HIDDEN>) id 1bzyiS-0000QB-KT for bug-gnu-emacs@HIDDEN; Fri, 28 Oct 2016 00:24:28 -0400 Received: by mail-oi0-x229.google.com with SMTP id y2so98291223oie.0 for <bug-gnu-emacs@HIDDEN>; Thu, 27 Oct 2016 21:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version; bh=y7r6vyU6n+AaD1G9BriAp6iMEna4GfBgNYBJythdreY=; b=vG9NmRd5ZX+wxWAtmGbsQ9azdnAZv5tcKE17Z6YoyxtjpKX6oyH7oI93vGkcs/aAlV 78QD7sKC1MSmI1gVDlrQCk4RpQtqHISF/0sWcFTr0wIH5FAVcCKWxbTaSGuvklgRKsfN v0AA983V+Cyb4aNn6HKo29f29lO6/enAhOcBwmGF4MRdJdiMG+5rpaFJ+zAL1OXDpxOW mpUVgOTj3/R8oWpd+7xUIZbraLIFcv2E3vBnwZQkN8PU+dCn15j2cJgq1YlMqAguJz3u 2Db5Me99hxgOMmceNVSqrOxe0vDedDolPNDcrrBbi4NZwDQ0y3eIut0FUIOaSmhGuNHn OSZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=y7r6vyU6n+AaD1G9BriAp6iMEna4GfBgNYBJythdreY=; b=Xg/3Qq7foME7x5T1nLBMXDgDxSzBZZZtw7l98MyXt4f8PWizzHPH3qxnBES2sILQe+ jL4GQs+wSQLK/cbkx8NpiOX2VqqiuJ+fSN/pCFwZoq2LCnWEzWGXO363Wtu97Lu/7nrW lqeiAscWd4puvvnFJBbytlZ+yv90WQ34DXiiQWitggOmqe3hnYHn2e6dVn5E2xlGLr5H jE3/JbpsDx/wuqm8Atb7eAXndXAFg7ful9BSRGZzcn9ZWqZ++hcU4lQS8heyRs5tkLh5 9nmEjrWR++R0b6qaSQ+y9lb2CWSiZc1R9x8ucsPBuKmDiUHkzY/aKDsxn0jsX+u4mgp5 njxw== X-Gm-Message-State: ABUngveqVzAJA8IxcIZR1t2M8CLyZqFY3u1n1prwWyo3v1ssNJky1Xhcc4bzzrHZFjBZrQ== X-Received: by 10.107.137.138 with SMTP id t10mr9806360ioi.13.1477628667361; Thu, 27 Oct 2016 21:24:27 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id x193sm2357656ite.16.2016.10.27.21.24.26 for <bug-gnu-emacs@HIDDEN> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Oct 2016 21:24:26 -0700 (PDT) From: Alex <agrambot@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 25.1; Missing (binary) radix format directive Date: Thu, 27 Oct 2016 22:24:04 -0600 Message-ID: <87zilpqexn.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) Emacs' `format' has %o, %x, and %d, but it's missing both the ~r and ~b radix directives from Common Lisp's `format'. I can understand leaving out ~r, but I think ~b is worth adding to Emacs' `format'. CL example: (format nil "~b" 5) => "101" Requested: (format "%b" 5) => "101"
Alex <agrambot@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#24812
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.