From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: elisp mouse programming problems Date: Fri, 22 Aug 2003 09:24:21 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F4635A5.1000009@yahoo.com> References: <873cfwvcqp.fsf@emacswiki.org> <5wV0b.2124$pW3.242047@twister.austin.rr.com> <3F4504F2.60600@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061591408 7177 80.91.224.253 (22 Aug 2003 22:30:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 22:30:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 23 00:30:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qKQ2-00026P-00 for ; Sat, 23 Aug 2003 00:30:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qJf6-0003fX-JD for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2003 17:41:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: news.uni-berlin.de 1061565850 5644877 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:116083 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11998 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11998 David Vanderschel wrote: > "Kevin Rodgers" wrote in message > news:3F4504F2.60600@yahoo.com... > >>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