From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Warnings about keymaps Date: Mon, 14 Sep 2009 15:10:25 -0400 Message-ID: References: <83ocph26p7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252955446 15954 80.91.229.12 (14 Sep 2009 19:10:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 19:10:46 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 14 21:10:39 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 1MnGwg-0002B4-4N for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 21:10:38 +0200 Original-Received: from localhost ([127.0.0.1]:41958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnGwf-0005TK-GW for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 15:10:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnGwa-0005St-IW for emacs-devel@gnu.org; Mon, 14 Sep 2009 15:10:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnGwU-0005Qo-T0 for emacs-devel@gnu.org; Mon, 14 Sep 2009 15:10:31 -0400 Original-Received: from [199.232.76.173] (port=58888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnGwU-0005QT-3C for emacs-devel@gnu.org; Mon, 14 Sep 2009 15:10:26 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:55983) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnGwT-0002J1-PG for emacs-devel@gnu.org; Mon, 14 Sep 2009 15:10:25 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MnGwT-0002RI-9p; Mon, 14 Sep 2009 15:10:25 -0400 X-Spook: USCODE Afghanistan [Hello to all my friends and fans in X-Ran: d=)K<~|$?Z3+6X== 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:115313 Archived-At: Stefan Monnier wrote: > The bug can be seen more directly by byte-compiling the file below: > > (defconst foo nil) > (defvar foo nil) > > Looks like the "assignment-to-constant" warning should be more > careful to distinguish defvar from setq. This seems a fairly nonsensical thing to do, so why shouldn't the compiler warn about it? The defvar is a best a no-op, at worst a bug (if you were expecting it to have an effect).