From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: "(setq name)": Is this a bug? Date: Tue, 14 Jul 2009 14:49:25 -0400 Message-ID: References: <20090714160146.GB1718@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247597371 7375 80.91.229.12 (14 Jul 2009 18:49:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 18:49:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 14 20:49:24 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQn47-0005oz-QB for ged-emacs-devel@m.gmane.org; Tue, 14 Jul 2009 20:49:24 +0200 Original-Received: from localhost ([127.0.0.1]:48814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQn47-0000IQ-7o for ged-emacs-devel@m.gmane.org; Tue, 14 Jul 2009 14:49:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQn42-0000IK-2w for emacs-devel@gnu.org; Tue, 14 Jul 2009 14:49:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQn3x-0000I8-4c for emacs-devel@gnu.org; Tue, 14 Jul 2009 14:49:17 -0400 Original-Received: from [199.232.76.173] (port=58680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQn3w-0000I5-VV for emacs-devel@gnu.org; Tue, 14 Jul 2009 14:49:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:11475) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQn3w-0007RK-Mf for emacs-devel@gnu.org; Tue, 14 Jul 2009 14:49:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4EADdwXEpMCpbp/2dsb2JhbACBUdB9hAgFhm4 X-IronPort-AV: E=Sophos;i="4.42,398,1243828800"; d="scan'208";a="41579531" Original-Received: from 76-10-150-233.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.233]) by ironport2-out.teksavvy.com with ESMTP; 14 Jul 2009 14:49:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B6E6B7EF7; Tue, 14 Jul 2009 14:49:25 -0400 (EDT) In-Reply-To: <20090714160146.GB1718@muc.de> (Alan Mackenzie's message of "Tue, 14 Jul 2009 16:01:46 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112463 Archived-At: > Hi, Emacs, > In .../lisp/files.el, function set-auto-mode, L2553, appears the strange > invocation: > (setq name) > . One of my analysis tools tripped up on it. According to setq's doc > string, this is invalid. In each [SYM VAL] in (setq [SYM VAL] ...), the > VAL is not optional. Surely? > I think this is a bug. It's accepted bny the interpreter and the compiler, AFAIK, but I do consider it as a bug, so please fix it to (setq name nil). Stefan