From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: setq's with missing final arguments. Date: Sun, 22 Nov 2015 13:52:13 +0100 Message-ID: <87egfi5h8i.fsf@igel.home> References: <20151122122657.GA2332@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448196765 29764 80.91.229.3 (22 Nov 2015 12:52:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 12:52:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 13:52:36 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a0U8B-0008KD-7Y for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 13:52:35 +0100 Original-Received: from localhost ([::1]:55761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0U8B-0002qX-52 for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 07:52:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0U7x-0002qP-5b for emacs-devel@gnu.org; Sun, 22 Nov 2015 07:52:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0U7u-0006cB-0U for emacs-devel@gnu.org; Sun, 22 Nov 2015 07:52:21 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:48195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0U7t-0006bt-Q5 for emacs-devel@gnu.org; Sun, 22 Nov 2015 07:52:17 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3p3WjC1ZNqz3hj83; Sun, 22 Nov 2015 13:52:15 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3p3WjB4ZFtzvPtD; Sun, 22 Nov 2015 13:52:14 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id W75Rz7HEOzSw; Sun, 22 Nov 2015 13:52:13 +0100 (CET) X-Auth-Info: wa0KEALQ7fiIBux60NZgWQ5AXzW/KdD5dasOC0Sc07tWLH69WBLJ6AXYNDvDjAAP Original-Received: from igel.home (ppp-88-217-2-120.dynamic.mnet-online.de [88.217.2.120]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 22 Nov 2015 13:52:13 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 7F1592C45B1; Sun, 22 Nov 2015 13:52:13 +0100 (CET) X-Yow: Is this going to involve RAW human ecstasy? In-Reply-To: <20151122122657.GA2332@acm.fritz.box> (Alan Mackenzie's message of "Sun, 22 Nov 2015 12:26:57 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195003 Archived-At: Alan Mackenzie writes: > Hello, Emacs. > > Consider this file: > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > (defvar foo t) > (defvar bar t) > > (defun bad-setq () > "Doc string" > (setq foo 5 > bar)) > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > In the setq, there is a missing argument after "bar". At the moment, > the byte compiler just generates code to assign nil to bar, without > giving any warning. IMAO, this is Very Bad. But consistent with how setq works. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."