[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warnings about keymaps
From: |
Glenn Morris |
Subject: |
Re: Warnings about keymaps |
Date: |
Mon, 14 Sep 2009 15:10:25 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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).
- Warnings about keymaps, Eli Zaretskii, 2009/09/11
- Re: Warnings about keymaps, Glenn Morris, 2009/09/11
- Re: Warnings about keymaps, Stefan Monnier, 2009/09/11
- Re: Warnings about keymaps,
Glenn Morris <=
- 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