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: Tue, 12 Feb 2019 12:21:51 +0000 Message-ID: <87mun1w61s.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> <87ftsukmci.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="197796"; 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 Tue Feb 12 13:42:37 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 1gtXOW-000pKJ-WA for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2019 13:42:37 +0100 Original-Received: from localhost ([127.0.0.1]:38573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtXOW-0002I5-0d for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2019 07:42:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtXI2-0005bh-QO for emacs-devel@gnu.org; Tue, 12 Feb 2019 07:35:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtX4i-00071v-63 for emacs-devel@gnu.org; Tue, 12 Feb 2019 07:22:12 -0500 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:46498) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtX4g-0006pf-4k for emacs-devel@gnu.org; Tue, 12 Feb 2019 07:22:06 -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:Message-ID: In-Reply-To:Date:References: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=OerZCfbW4oUXFedB3z1NQVJxZyv5T/POKjTBiiLrwgQ=; b=xR5TvormQvqykK1Azf0QQh+0O Cv0+4RqNYEFn5fR//nP2FJ2TObXVVl0OV2F00fcHl4fMswL+/va12lDoo+yInB301k5H2Lhj+7He+ 02rKmdHmRoFgNhxR3W12O2cpNC8Kxi7FmG4Xd9Gh6Ox2kfrJSxj8b9/rrcF2t6rkZeTl+iPyv4Iig fAC6eyF65yeZR6I6C5uG4UnN3fraw7FKTpZqjQ/8vr4qAcn6WvNsYRmoD2tIol3MPu64VxuofIf8B PbJOS1PRlFOkHzEYFujmo/E3X0qxBpPaZqbTQj3THOZcdbW+qdc5sw0972zPgs76rosZh7VAtUh3b RfNOv222A==; Original-Received: from janus-nat-128-240-225-124.ncl.ac.uk ([128.240.225.124]:37592 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gtX4Z-0006cJ-AU; Tue, 12 Feb 2019 12:21:59 +0000 In-Reply-To: (Stefan Monnier's message of "Mon, 11 Feb 2019 17:20:54 -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:233251 Archived-At: Stefan Monnier writes: >> 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. > > Yeah, it's probably better to try and hack Quail to better cooperate. > >> If it works, it would mean that input-event-functions is not really fit >> for the purpose I intended and should, perhaps, be removed. > > When you added it, I thought you had already confirmed that it satisfies > your needs. But if it doesn't, then maybe it's not a good hook. Well, I had checked that it did do what I wanted, in terms of stopping the buggy completion display. I hadn't checked that it didn't break the completion in the first place. Oh dear. I'll remove this and see if I can fix up quail instead with a hook there. As you say, perhaps the ultimate fix is to change quail to enter information in a different way, but one step at a time. Phil