all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on shell-mode-map
Date: Sat, 22 Jul 2006 11:15:18 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMAEPECJAA.drew.adams@oracle.com> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBKEJJDDAA.drew.adams@oracle.com>

    I have a question on shell-mode-map. Maybe I'm reading the code
    in shell.el wrong, and I'm also not real clear on how keymaps
    work with define-derived-mode.

    What I'd like to do is bind a key in comint-mode-map, and have
    it also bound in, say shell-mode-map (and the other modes
    derived from comint-mode), that is, for subsequent uses of shell-mode.

    It looks like shell-mode-map is defined at load time, however,
    based on comint-mode-map, so it wouldn't pick up my later
    addition of a key binding to comint-mode-map. Am I missing
    something here?

    Could someone please explain this to me, and let me know the
    right way to do what I want to do? Thx. Sending to emacs-devel
    instead of help-gnu-emacs, in the off chance that shell.el
    should be changed to pick up the comint-mode-map when
    shell-mode is run.

Well, I see now that the nconc should make it so that shell-mode-map shares
a tail with comint-mode-map, so I guess it should work OK. However, it
doesn't seem to. Guess I'll have to test my code some more...

  reply	other threads:[~2006-07-22 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-22 18:11 Q on shell-mode-map Drew Adams
2006-07-22 18:15 ` Drew Adams [this message]
2006-07-22 18:40   ` Drew Adams
2006-07-22 23:15   ` Johan Bockgård
2006-07-22 23:23     ` Drew Adams

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=EIENLHALHGIMHGDOLMIMAEPECJAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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.