all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: FWD: Explanation Request for the Function set-transient-map in subr.el
Date: Sun, 14 Nov 2021 18:13:30 -0500	[thread overview]
Message-ID: <jwvbl2m49l7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: MoTY8Wz--3-2@tutanota.de

>> It checks whether the user used one of the bindings from the `map` as
>> opposed to one of the bindings from other active keymaps (e.g. the> global
>> map).
> set-transient-map uses interal-push-map to modify
> overriding-terminal-local-map, so I assume you can call another command that
> uses set-transient-map on top of a previous one and they stack?

Indeed, tho it's rather uncommon.

> Should isearch also use that function to modify o-t-l-m? Because is
> currently uses setq nil on the map while exiting and nukes the whole
> thing...

You can try, but interaction between different `set-transient-map` can
be tricky.  IIRC it works better is they nest properly, and since
Isearch tends to run for a long time it's probably fine to nest
a `set-transient-map` during Isearch, but nesting an Isearch during
another `set-transient-map` is likely to work rather poorly.


        Stefan




  reply	other threads:[~2021-11-14 23:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 18:10 Explanation Request for the Function set-transient-map in subr.el xenodasein--- via Users list for the GNU Emacs text editor
2021-11-12 14:41 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-14 12:08 ` FWD: " xenodasein--- via Users list for the GNU Emacs text editor
2021-11-14 13:04   ` xenodasein--- via Users list for the GNU Emacs text editor
2021-11-14 23:13     ` Stefan Monnier via Users list for the GNU Emacs text editor [this message]
2021-11-28 18:12   ` xenodasein--- via Users list for the GNU Emacs text editor
2021-11-28 19:17     ` Michael Heerdegen
2021-11-28 19:45     ` Stefan Monnier
2021-11-28 20:48       ` xenodasein--- via Users list for the GNU Emacs text editor
2021-11-28 21:07         ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-28 21:24           ` Michael Heerdegen
2021-11-28 22:29         ` xenodasein--- via Users list for the GNU Emacs text editor
2021-11-28 22:44           ` xenodasein--- via Users list for the GNU Emacs text editor
2021-11-29 10:28             ` Michael Heerdegen

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