all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ergus <spacibba@aol.com>
Cc: Stefan Monnier via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Attach a map to another
Date: Sun, 20 Feb 2022 09:54:51 -0500	[thread overview]
Message-ID: <jwvr17xsi88.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <A582808E-2D79-45F4-BA94-72BF25804CBC@aol.com> (Ergus's message of "Sun, 20 Feb 2022 12:10:35 +0100")

Ergus [2022-02-20 12:10:35] wrote:
> It is a pseudo code I wrote quickly :p... Adding a :global t may be enough?

If that's the behavior you want, yes.  But if you want it to be
buffer-local, then you'll have to `(setq-local isearch-mode-map ...)`
and you can't modify the keymap in place.  IOW you'll want to use
`make-composed-keymap` plus some other function to later "remove"
your keymap.


        Stefan




  reply	other threads:[~2022-02-20 14:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220219130737.esdd2kou35avl75e.ref@Ergus>
2022-02-19 13:07 ` Attach a map to another Ergus
2022-02-19 18:29   ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-02-19 19:24     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-02-20 11:10       ` Ergus via Users list for the GNU Emacs text editor
2022-02-20 14:54         ` Stefan Monnier [this message]
2022-02-20 11:07     ` Ergus
2022-02-20 14:52       ` Stefan Monnier

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=jwvr17xsi88.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=spacibba@aol.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.