From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#20241: 25.0.50; `setq' with only one argument Date: Mon, 23 Nov 2015 19:31:38 +0000 Message-ID: <20151123193138.GG2004@acm.fritz.box> References: <16400d25-dff1-4bfb-b929-814714f9e20f@default> <20151123143112.83911.qmail@mail.muc.de> <62twoc5zdo.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1448307053 5329 80.91.229.3 (23 Nov 2015 19:30:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 19:30:53 +0000 (UTC) Cc: 20241@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 20:30:41 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 1a0woW-0002pV-CW for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 20:30:12 +0100 Original-Received: from localhost ([::1]:34243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0woX-0004Co-1C for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 14:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0woS-00049i-70 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 14:30:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0woP-0003pB-12 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 14:30:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0woO-0003p7-Uy for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 14:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0woN-0004qc-Vo for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 14:30:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2015 19:30:03 +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.144830697818575 (code B ref 20241); Mon, 23 Nov 2015 19:30:03 +0000 Original-Received: (at 20241) by debbugs.gnu.org; 23 Nov 2015 19:29:38 +0000 Original-Received: from localhost ([127.0.0.1]:49869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0wnx-0004pX-PY for submit@debbugs.gnu.org; Mon, 23 Nov 2015 14:29:38 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:24665) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0wnv-0004pD-O5 for 20241@debbugs.gnu.org; Mon, 23 Nov 2015 14:29:36 -0500 Original-Received: (qmail 55960 invoked by uid 3782); 23 Nov 2015 19:29:34 -0000 Original-Received: from acm.muc.de (p579E89A6.dip0.t-ipconnect.de [87.158.137.166]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 23 Nov 2015 20:29:34 +0100 Original-Received: (qmail 10325 invoked by uid 1000); 23 Nov 2015 19:31:38 -0000 Content-Disposition: inline In-Reply-To: <62twoc5zdo.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:109144 Archived-At: Hello, Glenn. On Mon, Nov 23, 2015 at 01:44:51PM -0500, Glenn Morris wrote: > Alan Mackenzie wrote: > >> setq' should not be called with only one argument. It "works", with the > >> effect of assigning a value of nil, but it is poor form. Typically this > >> is a sign of a typo. > > > > Fixed in emacs-25. The interpreter now signals a wrong-number-of-args > > error, and the byte compiler issues a warning. > What on earth is this incompatible change doing in a feature-frozen > release branch? It's a bug fix. > Also, the combination of a compiler _warning_ and a run-time _error_ > makes no sense. Maybe, maybe not. It's not the byte compiler's habit to signal errors: it only does so in most exceptional circumstances. Possibly the thinking is that it's best to produce a .elc anyway, which can be inspected, rather than just to error out. -- Alan Mackenzie (Nuremberg, Germany).