From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Timing of input-method output Date: Mon, 11 Feb 2019 22:10:37 +0000 Message-ID: <87ftsukmci.fsf@russet.org.uk> References: <20190122214637.25164.20429@vcs0.savannah.gnu.org> <20190122214639.B2E13203DD@vcs0.savannah.gnu.org> <40f2dac5-f342-b9f0-a792-796a6baf9a56@dancol.org> <87fttj55t8.fsf@russet.org.uk> <87k1iu2v8x.fsf@russet.org.uk> <87munlumyn.fsf@russet.org.uk> <875zu0edcf.fsf@russet.org.uk> <878syssgr6.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="12486"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 23:13:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtJpd-00038H-Ql for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2019 23:13:42 +0100 Original-Received: from localhost ([127.0.0.1]:57060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtJpc-0003zR-PU for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2019 17:13:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtJpU-0003yI-Pn for emacs-devel@gnu.org; Mon, 11 Feb 2019 17:13:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtJpQ-0001Ig-TN for emacs-devel@gnu.org; Mon, 11 Feb 2019 17:13:30 -0500 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:37668) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtJpL-0000N7-PJ for emacs-devel@gnu.org; Mon, 11 Feb 2019 17:13:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:References:Message-ID :Date:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jnDRmTlp8LC2SjFkSmr63mkZwH41GEpgCR2fqcewY8E=; b=KaZ2o9VWbqaNU0nBcCPYE00oX c8l807ItaViuuND+qpbGhNSoI8SV8eRqT5r5Vlh39NE/sqTFHq/pAYw2QCedKqswgcJNVsMl6ThVU tsxGok6B8MFOmQ7NCA68Rcr2RClZd2F+uBAEcdoCd/jieIYhii3ePAa3phvft/itTpzc6oiDViPno 4Jjjm/X1Fak9iEkoMNpOK7UJ+o7A5oiepj9eCdSrJda29Gt2I8+C1udQqKWg5AfJ56f8bXxXfeM4X Rc+UJ83xlK6GEv/ItTMsocLrvB1U+inibALCArNk62ds9fTfu5zEKEvPHQkoTj+icig/U9h1epQal JUrgZe6jg==; Original-Received: from cpc142652-benw12-2-0-cust953.16-2.cable.virginm.net ([82.21.43.186]:36024 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gtJo1-0001gh-7P; Mon, 11 Feb 2019 22:12:01 +0000 In-Reply-To: (Stefan Monnier's message of "Wed, 06 Feb 2019 17:55:39 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 78.129.138.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233230 Archived-At: Stefan Monnier writes: >> I'm guessing this is because of the location of the input-event-function >> call. It's happening too soon, before quail has done anything to respond >> to the keypress that will result in complex input happening. > > Oh, here's another random idea: > > in input-event-functions, start a timer to run "right away" (i.e. at > the next occasion, which will be when we finish processing the > current key and start waiting for the next). Oh dear, that really does seem nasty to me. I wonder if I am going about this in the wrong way. Given that this only happens when quail is active, is it not quail that needs hooking? "pre-quail-command-hook" or something. Quail knows that it's about to do something weird that is not going to signal pre-command-hook because we are still awaiting more information before the command happens. If it works, it would mean that input-event-functions is not really fit for the purpose I intended and should, perhaps, be removed. Thoughts? Phil