emacs-devel
[Top][All Lists]
Advanced

[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: Fri, 11 Sep 2009 13:34:14 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Eli Zaretskii wrote:

>     emacs/lisp/cvs-status.el:93:22:Warning: variable assignment to constant
>       `cvs-status-mode-map'

I think this is because easy-mmode-defmap defines cvs-status-mode-map
as a constant. Then, later on, the define-derived-mode macro tries to
do a defvar on cvs-status-mode-map. The simple change is to make
easy-mmode-defmap use defvar instead of defconst; the slightly more
correct thing (that I could not get to work...) is to make
define-derived-mode only defvar the mode map if it is not already
defined.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]