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: Warnings about keymaps Date: Fri, 11 Sep 2009 13:43: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 1252691028 2129 80.91.229.12 (11 Sep 2009 17:43:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2009 17:43:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 11 19:43:41 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 1MmA9s-0004kV-RI for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2009 19:43:41 +0200 Original-Received: from localhost ([127.0.0.1]:54636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmA9s-0003Ln-7z for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2009 13:43:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmA9m-0003LL-Ic for emacs-devel@gnu.org; Fri, 11 Sep 2009 13:43:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmA9h-0003Hb-Hg for emacs-devel@gnu.org; Fri, 11 Sep 2009 13:43:33 -0400 Original-Received: from [199.232.76.173] (port=56196 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmA9h-0003HW-Eo for emacs-devel@gnu.org; Fri, 11 Sep 2009 13:43:29 -0400 Original-Received: from [206.248.154.181] (port=26084 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmA9f-0007rz-AD; Fri, 11 Sep 2009 13:43:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFAAQpqkpFpZBe/2dsb2JhbACBU9w3hBgFh3E X-IronPort-AV: E=Sophos;i="4.44,371,1249272000"; d="scan'208";a="45579232" Original-Received: from 69-165-144-94.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.94]) by ironport2-out.pppoe.ca with ESMTP; 11 Sep 2009 13:41:53 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D22F883FD; Fri, 11 Sep 2009 13:43:25 -0400 (EDT) In-Reply-To: <83ocph26p7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Sep 2009 12:04:20 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (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:115196 Archived-At: > Compilation of Lisp files yields warnings such as these two: > Compiling emacs/lisp/cvs-status.el > In toplevel form: > emacs/lisp/cvs-status.el:93:22:Warning: variable assignment to constant > `cvs-status-mode-map' > Compiling emacs/lisp/diff-mode.el > In toplevel form: > emacs/lisp/diff-mode.el:1273:70:Warning: variable assignment to > constant `diff-mode-map' > Sounds like a bug to me. Yes, there's some kind of bug in there. 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. Stefan