From: Stephen Berman <stephen.berman@gmx.net>
To: "Perry E. Metzger" <perry@piermont.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Making a key binding work in minibuffer editing.
Date: Thu, 02 Sep 2021 17:45:23 +0200 [thread overview]
Message-ID: <877dfz2d7w.fsf@gmx.net> (raw)
In-Reply-To: <69a4241f-05cc-45d1-ab65-42f443b397bd@piermont.com> (Perry E. Metzger's message of "Thu, 2 Sep 2021 08:43:22 -0400")
On Thu, 2 Sep 2021 08:43:22 -0400 "Perry E. Metzger" <perry@piermont.com> wrote:
> Howdy! So I'm reasonably happy with the (kludgy) way I've handled my ad hoc
> input method, but it doesn't work inside minibuffers because my magic keypress
> is handed by a global keymap entry and that doesn't seem to cover the
> minibuffer:
>
> (define-key (current-global-map) (kbd "<f19>")
> (lambda (n)
> (interactive "p")
> (setq unread-input-method-events
> (append unread-input-method-events '(?¤)))))
>
> Is there a keymap I can add this to which will also cover editing in
> minibuffers, so I can use my weird input method in isearch and that sort of
> thing as well?
I'm don't know about a keymap per se, but maybe this will do:
read-multilingual-string is a compiled Lisp function in
‘<emacs>/lisp/international/mule-cmds.el’.
(read-multilingual-string PROMPT &optional INITIAL-INPUT INPUT-METHOD)
Read a multilingual string from minibuffer, prompting with string PROMPT.
The input method selected last time is activated in minibuffer.
If optional second argument INITIAL-INPUT is non-nil, insert it in the
minibuffer initially.
Optional 3rd argument INPUT-METHOD specifies the input method to be activated
instead of the one selected last time. It is a symbol or a string.
Steve Berman
next prev parent reply other threads:[~2021-09-02 15:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 12:43 Making a key binding work in minibuffer editing Perry E. Metzger
2021-09-02 15:45 ` Stephen Berman [this message]
2021-09-02 18:14 ` Perry E. Metzger
2021-09-02 15:48 ` [External] : " Drew Adams
2021-09-02 18:15 ` Perry E. Metzger
2021-09-02 19:05 ` Drew Adams
2021-09-02 19:28 ` Stefan Monnier
2021-09-02 20:25 ` [External] : " 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=877dfz2d7w.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=perry@piermont.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.