help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elisp mouse programming problems


From: Kevin Rodgers
Subject: Re: elisp mouse programming problems
Date: Fri, 22 Aug 2003 09:24:21 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

David Vanderschel wrote:

"Kevin Rodgers" <address@hidden> wrote in message
news:address@hidden

David Vanderschel wrote:


I think I have now figured this one out.  Changing the
mode-map itself is not sufficient.  You must again
invoke (use-local-map whatever-mode-map).



That is not true.  As Alex explained, when you modify the keymap, you
are modifying a part of its list structure that is shared by the
variable and the mode.



Then I still do not understand how to get emacs to use
the revised keymap.  For one thing I am not modifying
_the_ keymap - I am creating a new one.


Ah, I didn't realize that.

I am sorry if
I am being a bit dense here.  I think the implication
must be that replacing the map pointed to by my
variable still leaves the system with a pointer to the
old cdr.


Sorry, I was the dense one.  You are correct.

So are you saying that it is essential to
replace the cdr _in_ the old list, as opposed to
replacing the entire list itself?

Eg., (setf (cdr my-map) (cdr new-map)), as opposed to
(setq my-map new-map).


Why wouldn't invoking use-local-map again also
accomplish the same goal?

It would.


--
Kevin Rodgers



reply via email to

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