From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 7b31de4: Add hook for all events Date: Fri, 25 Jan 2019 08:56:35 -0500 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128165"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 25 14:57:53 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 1gn1zV-000XGm-ET for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2019 14:57:53 +0100 Original-Received: from localhost ([127.0.0.1]:45018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn1zU-000121-H1 for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2019 08:57:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn1yU-00010i-2k for emacs-devel@gnu.org; Fri, 25 Jan 2019 08:56:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gn1yS-0007HR-1q for emacs-devel@gnu.org; Fri, 25 Jan 2019 08:56:49 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:60160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gn1yQ-0007Dd-WB for emacs-devel@gnu.org; Fri, 25 Jan 2019 08:56:47 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x0PDuZ8h026519; Fri, 25 Jan 2019 08:56:36 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id AADC16ABC0; Fri, 25 Jan 2019 08:56:35 -0500 (EST) In-Reply-To: <87k1iu2v8x.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 24 Jan 2019 10:41:18 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6469=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6469> : inlines <7001> : streams <1811110> : uri <2785379> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:232682 Archived-At: > Well, you should find it better; this hook is your code (I stole it from > a patch you sent in 2015). Sit-for, yes, would be a possibility, that I > hadn't thought off; you'd still need to filter the event using > `last-input-event' I guess. That would be a way of fixing company and > pabbrev in current Emacs. I will investigate. Another way might be to use a before/after-change-function (i.e. don't detect an input event but rather detect that the input method inserted something into the buffer). Stefan