GNU bug report logs - #6457
24.0.50; Inappropriate error msg for set-variable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Drew Adams" <drew.adams <at> oracle.com>; Keywords: moreinfo; dated Fri, 18 Jun 2010 16:09:01 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.

Message received at 6457 <at> debbugs.gnu.org:


Received: (at 6457) by debbugs.gnu.org; 20 Jun 2010 14:48:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 20 10:48:31 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OQLp0-0002QI-PA
	for submit <at> debbugs.gnu.org; Sun, 20 Jun 2010 10:48:30 -0400
Received: from rcsinet10.oracle.com ([148.87.113.121])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams <at> oracle.com>) id 1OQLoz-0002QD-Cn
	for 6457 <at> debbugs.gnu.org; Sun, 20 Jun 2010 10:48:29 -0400
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id
	o5KEmLYR030989
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 20 Jun 2010 14:48:23 GMT
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id
	o5KEg1W6004052; Sun, 20 Jun 2010 14:48:21 GMT
Received: from abhmt013.oracle.com by acsmt353.oracle.com
	with ESMTP id 357977621277045255; Sun, 20 Jun 2010 07:47:35 -0700
Received: from dradamslap1 (/10.175.249.190)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 20 Jun 2010 07:47:35 -0700
From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Juri Linkov'" <juri <at> jurta.org>
References: <E58AC1E83C9D4D148E154BABE2D4AF8F <at> us.oracle.com>
	<87631fje3v.fsf <at> mail.jurta.org>
Subject: RE: bug#6457: 24.0.50; Inappropriate error msg for set-variable
Date: Sun, 20 Jun 2010 07:47:49 -0700
Message-ID: <A410D20AD3CA4E9FA32958780885DF13 <at> us.oracle.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <87631fje3v.fsf <at> mail.jurta.org>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931
Thread-Index: AcsQJRybRzTsIA4rTGSsRjCzrtWAzAAYiECw
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090203.4C1E2A37.0254:SCFMA922111,ss=1,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 6457
Cc: 6457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> > emacs -Q
> > M-x set-variable RET scroll-conservatively
> > Set scroll-conservatively globally to value (0): 99999999 RET
> >
> > No problem. Now do it again, adding one more `9':
> > M-x set-variable RET scroll-conservatively
> > Set scroll-conservatively globally to value (99999999): 
> 999999999 RET
> 
> What is a number in parens?  I don't have these parens.
> Do you use a modified source?

Forget the number in parens.
No, it does not appear with emacs -Q.

> > The error message is this:
> >
> > Value `999999999.0' does not match type integer of
> > scroll-conservatively.

That is still the (inappropriate) error message.

> I can't reproduce this bug when I set to 999999999.

Perhaps it is platform-specific.

> When I tried a larger value "9999999999999999999",
> I get the following error:
> 
>   Arithmetic overflow error: "9999999999999999999"

Perhaps the inappropriate error message is platform-specific.

I definitely see that message with emacs -Q.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6457; Package emacs. Full text available.

Message received at 6457 <at> debbugs.gnu.org:


Received: (at 6457) by debbugs.gnu.org; 19 Jun 2010 14:55:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 19 10:55:18 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPzS1-0006Nk-Sw
	for submit <at> debbugs.gnu.org; Sat, 19 Jun 2010 10:55:18 -0400
Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri <at> jurta.org>) id 1OPzRx-0006ND-Kz
	for 6457 <at> debbugs.gnu.org; Sat, 19 Jun 2010 10:55:14 -0400
X-Virus-Scanned: by Amavisd-New at mx1.starman.ee
Received: from mail.starman.ee (82.131.99.175.cable.starman.ee [82.131.99.175])
	by mx1.starman.ee (Postfix) with ESMTP id 90E193F4185;
	Sat, 19 Jun 2010 17:55:06 +0300 (EEST)
From: Juri Linkov <juri <at> jurta.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Subject: Re: bug#6457: 24.0.50; Inappropriate error msg for set-variable
Organization: JURTA
References: <E58AC1E83C9D4D148E154BABE2D4AF8F <at> us.oracle.com>
Date: Sat, 19 Jun 2010 17:43:16 +0300
In-Reply-To: <E58AC1E83C9D4D148E154BABE2D4AF8F <at> us.oracle.com> (Drew Adams's
	message of "Fri, 18 Jun 2010 09:06:59 -0700")
Message-ID: <87631fje3v.fsf <at> mail.jurta.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 6457
Cc: 6457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

> emacs -Q
> M-x set-variable RET scroll-conservatively
> Set scroll-conservatively globally to value (0): 99999999 RET
>
> No problem. Now do it again, adding one more `9':
> M-x set-variable RET scroll-conservatively
> Set scroll-conservatively globally to value (99999999): 999999999 RET

What is a number in parens?  I don't have these parens.
Do you use a modified source?

> The error message is this:
>
> Value `999999999.0' does not match type integer of
> scroll-conservatively.

I can't reproduce this bug when I set to 999999999.

When I tried a larger value "9999999999999999999",
I get the following error:

  Arithmetic overflow error: "9999999999999999999"

-- 
Juri Linkov
http://www.jurta.org/emacs/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6457; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jun 2010 16:08:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 18 12:08:41 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPe7T-0004dI-Hy
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 12:08:39 -0400
Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams <at> oracle.com>) id 1OPe7R-0004dB-Mt
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 12:08:38 -0400
Received: from lists.gnu.org ([199.232.76.165]:38365)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <drew.adams <at> oracle.com>) id 1OPe7N-00045T-6n
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 12:08:33 -0400
Received: from [140.186.70.92] (port=38818 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OPe7L-0006d3-GW
	for bug-gnu-emacs <at> gnu.org; Fri, 18 Jun 2010 12:08:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <drew.adams <at> oracle.com>) id 1OPe7K-0000Z1-9o
	for bug-gnu-emacs <at> gnu.org; Fri, 18 Jun 2010 12:08:31 -0400
Received: from rcsinet10.oracle.com ([148.87.113.121]:31133)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams <at> oracle.com>) id 1OPe7J-0000Yk-VF
	for bug-gnu-emacs <at> gnu.org; Fri, 18 Jun 2010 12:08:30 -0400
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id
	o5IG8PSQ028856
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs <at> gnu.org>; Fri, 18 Jun 2010 16:08:27 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id
	o5IG8Ogq004811
	for <bug-gnu-emacs <at> gnu.org>; Fri, 18 Jun 2010 16:08:24 GMT
Received: from abhmt016.oracle.com by acsmt355.oracle.com
	with ESMTP id 339109251276877210; Fri, 18 Jun 2010 09:06:50 -0700
Received: from dradamslap1 (/141.144.168.117)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 18 Jun 2010 09:06:50 -0700
From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; Inappropriate error msg for set-variable
Date: Fri, 18 Jun 2010 09:06:59 -0700
Message-ID: <E58AC1E83C9D4D148E154BABE2D4AF8F <at> us.oracle.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931
Thread-Index: AcsPAEgDnmFvLcmTTBuX9DfR2qI5JA==
X-Auth-Type: Internal IP
X-Source-IP: acsinet15.oracle.com [141.146.126.227]
X-CT-RefId: str=0001.0A090205.4C1B99FC.006B:SCFMA922111,ss=1,fgs=0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

emacs -Q
M-x set-variable RET scroll-conservatively 
Set scroll-conservatively globally to value (0): 99999999 RET
 
No problem. Now do it again, adding one more `9':
M-x set-variable RET scroll-conservatively
Set scroll-conservatively globally to value (99999999): 999999999 RET
 
The error message is this:
 
Value `999999999.0' does not match type integer of
scroll-conservatively.
 
1. There should be no `.0' added to the echoed input. The actual input
should be echoed.  Emacs shouldn't seem to be complaining about
something the user didn't enter.
 
2. The cause of the error is an arithmetic overflow.  The message should
indicate this, if possible.  If not, it's OK to say that an integer
wasn't entered (since 999999999 is too big to correspond to an integer),
but such a message is not ideal and will be confusing to some users.
 
But the main problem is #1.  Confusion from a message saying that you
didn't input an integer is even greate if what is echoed is a decimal
number (999999999.0).
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-06-14 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'
 





Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6457; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.