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: not quite understanding input methods Date: Mon, 30 Aug 2021 14:37:24 -0400 Message-ID: <356c5a4b-92af-ae1c-a39a-f68586807be1@piermont.com> References: <231adc63-77f0-037a-365c-28db98f684cf@piermont.com> <7343dfd2-05d5-0752-8e43-cd44d6394963@piermont.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8LYu238erEWhxYaYl7BED9gb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34862"; 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@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 20:38:19 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 1mKmAk-0008uM-TS for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 20:38:18 +0200 Original-Received: from localhost ([::1]:39954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKmAj-00015B-KA for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 14:38:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKm9w-0008FW-TE for emacs-devel@gnu.org; Mon, 30 Aug 2021 14:37:28 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:49008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKm9u-0004AC-3w for emacs-devel@gnu.org; Mon, 30 Aug 2021 14:37:28 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 82208450; Mon, 30 Aug 2021 14:37:25 -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 52E722DEC65; Mon, 30 Aug 2021 14:37:25 -0400 (EDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=166.84.7.14; envelope-from=perry@piermont.com; helo=hacklheber.piermont.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.932, 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:273529 Archived-At: This is a multi-part message in MIME format. --------------8LYu238erEWhxYaYl7BED9gb Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/30/21 14:00, Stefan Monnier wrote: > >> This sounds like a reasonable idea. If such a variable gets added to the >> master branch I will happily test it out. > Can you cook up a patch for it? Cooked up (see attached), but it doesn't actually seem to work. My assumption is that `prev_event` is not set at the point where this executes; I have to confess I don't quite understand what will and won't set `prev_event`. Perry --------------8LYu238erEWhxYaYl7BED9gb Content-Type: text/plain; charset=UTF-8; name="test.diff" Content-Disposition: attachment; filename="test.diff" Content-Transfer-Encoding: base64 ZGlmZiAt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