From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20241: 25.0.50; `setq' with only one argument Date: Wed, 25 Nov 2015 13:19:32 -0800 (PST) Message-ID: <9493eecd-34c6-4dc6-a881-6d41cf6fcf13@default> References: <20151125110755.GC2007@acm.fritz.box> <20151125154030.GF2007@acm.fritz.box> <20151125172211.GH2007@acm.fritz.box> <5c5c14de-444e-4847-b91a-e7dff29b3f58@default> <20151125205851.GJ2007@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448486429 29259 80.91.229.3 (25 Nov 2015 21:20:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 21:20:29 +0000 (UTC) Cc: 20241@debbugs.gnu.org, Artur Malabarba To: Alan Mackenzie , John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 22:20:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1hU1-0002WT-8W for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 22:20:09 +0100 Original-Received: from localhost ([::1]:47737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hU3-0003OA-3a for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 16:20:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hTy-0003MU-GE for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1hTv-00081G-9l for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:20:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1hTv-00080x-5q for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1hTu-0002Wa-EI for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 16:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Nov 2015 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20241-submit@debbugs.gnu.org id=B20241.14484863979689 (code B ref 20241); Wed, 25 Nov 2015 21:20:02 +0000 Original-Received: (at 20241) by debbugs.gnu.org; 25 Nov 2015 21:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:53216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1hTo-0002WD-Eq for submit@debbugs.gnu.org; Wed, 25 Nov 2015 16:19:56 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:36099) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1hTT-0002Vl-SC for 20241@debbugs.gnu.org; Wed, 25 Nov 2015 16:19:54 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tAPLJYwO004449 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 Nov 2015 21:19:34 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id tAPLJY1Q007903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 25 Nov 2015 21:19:34 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id tAPLJXf0017975; Wed, 25 Nov 2015 21:19:33 GMT In-Reply-To: <20151125205851.GJ2007@acm.fritz.box> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109265 Archived-At: j> Ok, let's go with this then: j> Evaluation: Run-time error j> Compilation: Compile-time warning j> Execution: Run-time error (same as Evaluation) j> I think that's the convergence point for the three of us, amirite? =20 Exactly what I prefer. (Dunno the difference between a compiler warning and error in our context. To me, this is the compiler letting you know that your code has a syntax error. But the form that message takes is probably a warning.) a> Or, alternatively, we could explicitly say that whether the first 8 a> assignments are carried out before signaling the error is undefined. a> This should deter over-clever hackers from trying to catch the a> wrong-number-of-args error, expecting the code to have done something a> predictable. The behavior should altogether be undefined. This is an implementation detail that users should not count on. Probably we do not need to, and should not, say anything about what happens if you do not respect the syntax. You will get an error, and it will be up to you to figure out what side effects might have occurred before the error was raised. But IMO it would be best if the `setq' implementation tested its arglist and raised an error at the outset, before doing anything. Even if it is fixed to do that, we should not advertise it.