emacs-devel
[Top][All Lists]
Advanced

[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, 18 Sep 2009 20:43:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> (are you saying users should not add key bindings to
>>> log-edit-mode-map, for example?).
>> That's unrelated: defconst only says that the variable's binding won't
>> change, not that the object it is bound to is immutable.
> I don't understand that distinction.

It's the same distinction that makes it possible for a function to
modify an array passed as argument in C, even though arguments are
passed "by value" (i.e. it receives a copy of the pointer to the array,
so it can't change which array is pointed, but it can modify the
array's contents).


        Stefan




reply via email to

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