all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "David Vanderschel" <DJV1@Austin.RR.com>
Subject: Re: elisp mouse programming problems
Date: Thu, 21 Aug 2003 19:50:45 -0500	[thread overview]
Message-ID: <L7adnTTa6o979diiRTvUqw@texas.net> (raw)
In-Reply-To: 3F4504F2.60600@yahoo.com

"Kevin Rodgers" <ihs_4664@yahoo.com> 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.  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.  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?

Regards,
  David V.

  reply	other threads:[~2003-08-22  0:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20  3:17 elisp mouse programming problems David Vanderschel
2003-08-20 10:34 ` Alex Schroeder
2003-08-21  1:46   ` David Vanderschel
2003-08-21  2:37     ` Johan Bockgård
2003-08-21  3:24       ` David Vanderschel
2003-08-21 17:44     ` Kevin Rodgers
2003-08-22  0:50       ` David Vanderschel [this message]
2003-08-22 15:24         ` Kevin Rodgers
2003-08-20 11:40 ` Eli Zaretskii
     [not found] ` <mailman.542.1061395718.29551.help-gnu-emacs@gnu.org>
2003-08-21  3:12   ` David Vanderschel
2003-08-21 12:19     ` Alex Schroeder
2003-08-22  0:34       ` David Vanderschel
2003-08-22 15:20         ` Kevin Rodgers
2003-08-27 17:45         ` Kai Großjohann
2003-08-27 20:27           ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=L7adnTTa6o979diiRTvUqw@texas.net \
    --to=djv1@austin.rr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.