From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: BUFFER_SWITCH_EVENT Date: Tue, 25 Sep 2018 12:14:37 -0400 Message-ID: References: <87sh1y535s.fsf@web.de> <8336tyc1ou.fsf@gnu.org> <87mus64wwr.fsf@web.de> <831s9hafl7.fsf@gnu.org> <83wor98t2o.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537892430 4556 195.159.176.226 (25 Sep 2018 16:20:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 16:20:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 25 18:20:26 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4q4X-000177-SG for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2018 18:20:25 +0200 Original-Received: from localhost ([::1]:54208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4q6d-0003oo-P6 for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2018 12:22:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4pzB-0004rq-OI for emacs-devel@gnu.org; Tue, 25 Sep 2018 12:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4pz5-0002rb-Mx for emacs-devel@gnu.org; Tue, 25 Sep 2018 12:14:53 -0400 Original-Received: from [195.159.176.226] (port=47376 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4pz5-0002qq-9g for emacs-devel@gnu.org; Tue, 25 Sep 2018 12:14:47 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1g4pwv-0008Ps-Jb for emacs-devel@gnu.org; Tue, 25 Sep 2018 18:12:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:qBVvzoLFeHn9qNIS73mIlgaZt4E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:230064 Archived-At: >> I do wonder what these BUFFER_SWITCH_EVENT are for, tho. >> In record_asynch_buffer_change it says: >> >> /* We don't need a buffer-switch event unless Emacs is waiting for input. >> The purpose of the event is to make read_key_sequence look up the >> keymaps again. If we aren't in read_key_sequence, we don't need one, >> and the event could cause trouble by messing up (input-pending-p). >> Note: Fwaiting_for_user_input_p always returns nil when async >> subprocesses aren't supported. */ >> >> but I don't see why we'd need to look up the keymaps again. > > To find buffer-local bindings? We already look them up presumably in the right place. I don't understand why we'd need to look them up again after running a process filter. Stefan