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 14:11:01 +0100 Message-ID: <87a8q65gd6.fsf@igel.home> References: <20151122122657.GA2332@acm.fritz.box> <87egfi5h8i.fsf@igel.home> <87h9ke9o6x.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448197899 13523 80.91.229.3 (22 Nov 2015 13:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 13:11:39 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 14:11:30 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 1a0UQQ-0004oK-Qr for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 14:11:26 +0100 Original-Received: from localhost ([::1]:56010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UQL-0000Hx-RP for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 08:11:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UQ8-0000Hr-Qh for emacs-devel@gnu.org; Sun, 22 Nov 2015 08:11:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0UQ7-0002aX-Sp for emacs-devel@gnu.org; Sun, 22 Nov 2015 08:11:08 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:47153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UQ3-0002aJ-UY; Sun, 22 Nov 2015 08:11:04 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3p3X6t4y2Lz3hlHQ; Sun, 22 Nov 2015 14:11:02 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3p3X6t4DmbzvPtD; Sun, 22 Nov 2015 14:11:02 +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 FnRNb37nuLg2; Sun, 22 Nov 2015 14:11:01 +0100 (CET) X-Auth-Info: lD6to81yLJG2bqEJGwxC95JoUUQcJ60bAdYMQFPjn1iObj7q+q62+SMfqqoDH1Ce 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 14:11:01 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 39A4D2C4B88; Sun, 22 Nov 2015 14:11:01 +0100 (CET) X-Yow: NEWARK has been REZONED!! DES MOINES has been REZONED!! In-Reply-To: <87h9ke9o6x.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 22 Nov 2015 14:08:22 +0100") 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.10 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:195008 Archived-At: David Kastrup writes: > Andreas Schwab writes: > >> 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. > > How so? Where did I say "documented"? 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."