[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warnings about keymaps
From: |
Stefan Monnier |
Subject: |
Re: Warnings about keymaps |
Date: |
Fri, 11 Sep 2009 13:43:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
> 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
- Warnings about keymaps, Eli Zaretskii, 2009/09/11
- Re: Warnings about keymaps, Glenn Morris, 2009/09/11
- Re: Warnings about keymaps,
Stefan Monnier <=
- Re: Warnings about keymaps, Glenn Morris, 2009/09/14
- Re: Warnings about keymaps, Stefan Monnier, 2009/09/14
- Re: Warnings about keymaps, Glenn Morris, 2009/09/14
- Re: Warnings about keymaps, Stefan Monnier, 2009/09/15
- Re: Warnings about keymaps, Glenn Morris, 2009/09/17
- Re: Warnings about keymaps, Stefan Monnier, 2009/09/17
- Re: Warnings about keymaps, Glenn Morris, 2009/09/18
- Re: Warnings about keymaps, Stephen J. Turnbull, 2009/09/18
- Re: Warnings about keymaps, Stefan Monnier, 2009/09/18
- Re: Warnings about keymaps, Richard Stallman, 2009/09/15