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#30408: Checking for loss of information on integer conversion Date: Fri, 09 Mar 2018 10:22:58 +0200 Message-ID: <83o9jxody5.fsf@gnu.org> References: <7432641a-cedc-942c-d75c-0320fce5ba39@cs.ucla.edu> <83y3jq9q4m.fsf@gnu.org> <74ac7b77-a756-95a9-b490-6952cf106f21@cs.ucla.edu> <83fu5y9hbx.fsf@gnu.org> <66f719bf-2527-a213-5b8e-18044963f30e@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1520583732 12498 195.159.176.226 (9 Mar 2018 08:22:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 08:22:12 +0000 (UTC) Cc: 30408@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 09:22:08 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 1euDHy-000358-Np for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 09:22:06 +0100 Original-Received: from localhost ([::1]:43764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euDJz-0007rW-U1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2018 03:24:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euDJu-0007rN-CG for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 03:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euDJq-0005Ic-A7 for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 03:24:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euDJq-0005IY-61 for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 03:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euDJp-0002xi-W4 for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2018 03:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Mar 2018 08:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30408 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30408-submit@debbugs.gnu.org id=B30408.152058379211316 (code B ref 30408); Fri, 09 Mar 2018 08:24:01 +0000 Original-Received: (at 30408) by debbugs.gnu.org; 9 Mar 2018 08:23:12 +0000 Original-Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euDJ1-0002wS-Os for submit@debbugs.gnu.org; Fri, 09 Mar 2018 03:23:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euDJ0-0002wE-4h for 30408@debbugs.gnu.org; Fri, 09 Mar 2018 03:23:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euDIq-000538-VO for 30408@debbugs.gnu.org; Fri, 09 Mar 2018 03:23:04 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euDIq-000530-RH; Fri, 09 Mar 2018 03:23:00 -0500 Original-Received: from [176.228.60.248] (port=4566 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1euDIq-00018N-4g; Fri, 09 Mar 2018 03:23:00 -0500 In-reply-to: <66f719bf-2527-a213-5b8e-18044963f30e@cs.ucla.edu> (message from Paul Eggert on Thu, 8 Mar 2018 21:00:42 -0800) 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:144064 Archived-At: > Cc: 30408@debbugs.gnu.org > From: Paul Eggert > Date: Thu, 8 Mar 2018 21:00:42 -0800 > > Since the qualms expressed on this topic had to do with converting strings to > integers, I installed into master the noncontroversial part affecting conversion > of integers to strings (see attached patch; it also fixes some minor glitches in > the previous proposal). I'll think about the string-to-integer conversion a bit > more and propose an updated patch for that. Thanks. May I suggest to add a couple of tests for this feature?