From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 25318@debbugs.gnu.org
Subject: bug#25318: 24.5; Put `M-s' on a prefix keymap in Isearch
Date: Sun, 29 Sep 2019 19:37:30 +0200 [thread overview]
Message-ID: <87k19ratr9.fsf@gnus.org> (raw)
In-Reply-To: <90141ff6-2325-447e-b77f-2f9d940a24aa@default> (Drew Adams's message of "Sat, 31 Dec 2016 20:56:49 -0800 (PST)")
Drew Adams <drew.adams@oracle.com> writes:
> Currently, `isearch-mode-map' has a number of key sequences bound in it
> that begin with prefix-key `M-s':
>
> M-s C-e isearch-yank-line
> M-s SPC isearch-toggle-lax-whitespace
> M-s ' isearch-toggle-char-fold
> M-s _ isearch-toggle-symbol
> M-s c isearch-toggle-case-fold
> M-s e isearch-edit-string
> M-s i isearch-toggle-invisible
> M-s o isearch-occur
> M-s r isearch-toggle-regexp
> M-s w isearch-toggle-word
> M-s h r isearch-highlight-regexp
[...]
> Since these keys do not form any _specific_ grouping, I'd propose a
> name for the keymap such as `isearch-misc-map' (better than nothing).
As you point out, these commands aren't functional grouping of any kind,
so I don't think it makes sense to put them on a separate map. It's not
like anybody would want to put all those functions somewhere else, which
is the primary reason to have sub-keymaps.
> This will let users and other libraries move the prefix keymap to a
> different prefix key if they want, or define `M-s C-h' to show only the
> bindings on prefix `M-s', and so on.
>
> As it stands now, a 3rd-party library cannot do what this bug report
> requests, because there are likely other libraries, which may be loaded
> before it, and which bind `M-s <whatever' directly in
> `isearch-mode-map'. Those bindings would be wiped out by a later
> binding of `M-s' to a prefix map.
>
> But if this is done in core Emacs then there will be no such problem
> (there is no problem if a library binds `M-s <whatever>' directly in
> `isearch-mode-map' AFTER the prefix map has been placed on
> `isearch-mode-map).
So your use case is that you want to bind `M-s' to a prefix map
out-of-tree?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-09-29 17:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-01 4:56 bug#25318: 24.5; Put `M-s' on a prefix keymap in Isearch Drew Adams
2019-09-29 17:37 ` Lars Ingebrigtsen [this message]
2019-09-29 18:45 ` Drew Adams
2019-09-30 5:31 ` Lars Ingebrigtsen
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=87k19ratr9.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=25318@debbugs.gnu.org \
--cc=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.