From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: Making a key binding work in minibuffer editing. Date: Thu, 2 Sep 2021 14:14:20 -0400 Message-ID: <4e00eea4-8823-a76d-78e8-99a61a7ff3c9@piermont.com> References: <69a4241f-05cc-45d1-ab65-42f443b397bd@piermont.com> <877dfz2d7w.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31631"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Thunderbird/92.0 Cc: emacs-devel To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 02 20:15:08 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLrEw-0007vu-M2 for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Sep 2021 20:15:06 +0200 Original-Received: from localhost ([::1]:39866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLrEv-0001vK-5t for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Sep 2021 14:15:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLrEG-0000ua-38 for emacs-devel@gnu.org; Thu, 02 Sep 2021 14:14:24 -0400 Original-Received: from hacklheber.piermont.com ([2001:470:30:84:e276:63ff:fe62:3400]:47428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLrEE-0004O7-J8 for emacs-devel@gnu.org; Thu, 02 Sep 2021 14:14:23 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 6794B10D; Thu, 2 Sep 2021 14:14:21 -0400 (EDT) Original-Received: from [10.160.2.107] (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id 249C82DECE6; Thu, 2 Sep 2021 14:14:21 -0400 (EDT) Content-Language: en-US In-Reply-To: <877dfz2d7w.fsf@gmx.net> Received-SPF: pass client-ip=2001:470:30:84:e276:63ff:fe62:3400; envelope-from=perry@piermont.com; helo=hacklheber.piermont.com X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.225, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273720 Archived-At: On 9/2/21 11:45, Stephen Berman wrote: > On Thu, 2 Sep 2021 08:43:22 -0400 "Perry E. Metzger" 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 "") >>   (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 > ‘/lisp/international/mule-cmds.el’. > > (read-multilingual-string PROMPT &optional INITIAL-INPUT INPUT-METHOD) > That doesn't help me unfortunately. It's there to read a string from lisp code. It doesn't change the key maps that are active when I hit C-s or what have you. Perry