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: not quite understanding input methods Date: Mon, 30 Aug 2021 13:24:27 -0400 Message-ID: <231adc63-77f0-037a-365c-28db98f684cf@piermont.com> 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="27651"; 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 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 19:25: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 1mKl1w-00073X-Q7 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 19:25:08 +0200 Original-Received: from localhost ([::1]:49412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKl1v-0007JH-K6 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 13:25:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKl1K-0006eq-IK for emacs-devel@gnu.org; Mon, 30 Aug 2021 13:24:30 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:48740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKl1I-000582-OI for emacs-devel@gnu.org; Mon, 30 Aug 2021 13:24:30 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id D27FA19E for ; Mon, 30 Aug 2021 13:24:27 -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 9F9652DEC65 for ; Mon, 30 Aug 2021 13:24:27 -0400 (EDT) Content-Language: en-US Received-SPF: pass client-ip=166.84.7.14; envelope-from=perry@piermont.com; helo=hacklheber.piermont.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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:273517 Archived-At: So I've built a small input method to test out my understanding, and I've hit a bit of a wall. I would like to prefix my translations with a special character. I've mapped my caps lock key to send F19 (I don't use the caps lock key ever and using it as a compose key seems reasonable) and I've set Emacs to insert a special character for me when I hit that key, like so: (global-set-key (kbd "")                 (lambda (n)                   (interactive "p")                   (self-insert-command n ?⎄))) (That special character happens to be the unicode "COMPOSE SYMBOL", which seemed intuitively appropriate.) I've also created a small input method, and which has the following rules: (quail-define-rules  ("⎄gl" ?λ)  ("⎄gL" ?Λ)  ("⎄iA" ?∀)  ("⎄iE" ?∃)   ("xx" ?Π) ) Now, if I hit "xx", Π is inserted as expected, but if I hit " g l", the buffer shows me "⎄gl" and not "λ" as I would expect. My guess is that something in the belly of Quail is reading events and not the characters in the buffer, but as there's no documentation I'm not really clear on what is going on. Perry