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, 1 Apr 2015 07:53:36 -0700 (PDT) Message-ID: <16400d25-dff1-4bfb-b929-814714f9e20f@default> 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 1427900072 3880 80.91.229.3 (1 Apr 2015 14:54:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 14:54:32 +0000 (UTC) To: 20241@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 16:54:19 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 1YdK1z-0003Ox-BX for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 16:54:11 +0200 Original-Received: from localhost ([::1]:53112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1y-0005g0-Tf for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 10:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1u-0005dj-Ew for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdK1q-0003FC-OS for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:54:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1q-0003Ew-KR for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdK1q-0002Qh-9F for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14279000369320 (code B ref -1); Wed, 01 Apr 2015 14:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2015 14:53:56 +0000 Original-Received: from localhost ([127.0.0.1]:42586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdK1j-0002QG-Jm for submit@debbugs.gnu.org; Wed, 01 Apr 2015 10:53:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36353) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdK1h-0002Q2-Lw for submit@debbugs.gnu.org; Wed, 01 Apr 2015 10:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdK1b-00037X-8v for submit@debbugs.gnu.org; Wed, 01 Apr 2015 10:53:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1a-00037O-VG for submit@debbugs.gnu.org; Wed, 01 Apr 2015 10:53:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1Z-0005Gt-SI for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:53:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdK1T-00035Q-LI for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:53:45 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdK1T-000355-Fb for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 10:53:39 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t31ErbRj005414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Apr 2015 14:53:37 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t31Erawt007983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 1 Apr 2015 14:53:36 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t31Eravq025081 for ; Wed, 1 Apr 2015 14:53:36 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 140.186.70.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:101112 Archived-At: See for example: `(setq mark-active)' in `compilation-goto-locus' (compile.el). 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. Beyond this particular occurrence, I think that a wrong-number-of-args error should be raised when `setq' is called with an odd number of arguments. That certainly corresponds to the syntax that is documented. And it corresponds to the doc explanations that using `setq' is the same as using `set' and quoting the variable. And it corresponds to the definition and behavior of `setq' in Common Lisp. In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'