From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.devel Subject: Re: input-pending-p after make-frame-visible Date: Thu, 21 Oct 2021 22:28:38 -0400 Message-ID: References: <6c69780538e1957d1002@heytings.org> <322f50be-0de1-c818-819d-6ecb400de928@gmx.at> <03ab7a19-6616-445c-cdcf-588fb30a514a@gmx.at> <3205a073-a6ca-b9a5-3834-929025b70b7b@gmx.at> <83wnm7absp.fsf@gnu.org> <83wnm68pc5.fsf@gnu.org> <83lf2m8eld.fsf@gnu.org> <83fssu8dao.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000008241e905cee7c54f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , Alan Third , Gregory Heytings , YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 22 04:30:01 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 1mdkJk-0007QY-MW for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Oct 2021 04:30:00 +0200 Original-Received: from localhost ([::1]:35580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdkJi-0003kY-Se for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Oct 2021 22:29:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdkIg-00034V-I4 for emacs-devel@gnu.org; Thu, 21 Oct 2021 22:28:54 -0400 Original-Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:46869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdkIe-0003JD-M0; Thu, 21 Oct 2021 22:28:54 -0400 Original-Received: by mail-pf1-x434.google.com with SMTP id x66so2301325pfx.13; Thu, 21 Oct 2021 19:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zZOcbfZKpP2XS6vJm1LoViwVqb/Y4I/rZV3UZ/cUtA8=; b=YUi6eKTvmCEAu6NitS14Omv2CAZExee4zxfFfEnGbTOhDlazOUekbmmocPht2Jg4XC VXx+qlwezv59P8rgmnfUUqayV5y2qQiW0S8gLNXsl7Evkuv1Q0Bz1YZCeYIEaNd+omU3 lzwNvJVH5nsSpaByaTvAzHQAwa3ZeW+r2eIqeGs0/LcSRrX3zOnxME7oWUqmPlsciPvN A6GfXfKCvOtfon3BNnGofz3sGUlp4+r754cMLrN8c5CmtFQeBe6aSqIc1Lr5u2mHleyB 1PbnkVc+bRfzaPJsgQa/RRAJVnYrcnky3hdLUlXv+CAnjBtipAe4NWq66I7g3/drLMj+ SRZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zZOcbfZKpP2XS6vJm1LoViwVqb/Y4I/rZV3UZ/cUtA8=; b=Z4g3ZI1GCFK2zeO4BoVLhkRWTawjdShlJJT4L87jIB+qpEsSsgPBIvHMvHM/VnaH/g oEVZZY+l2lQpdNuXZ7MM8LGhI3DlduDL9yDjMCz0FySp+kBR7YcxEdkopIJDPTL8RA4d eWqzx6q8UWgYj6RkwnTVQJbn5o1T50/Q3Qg+fuykxqJvFnqCtYLQc3kY5Z8w9gd2jSQs dQyxjNz/G4T6KTNuDkWKoqj4vEBO+wkz6gFg4tY4j5cTn6nxkNOBVb0j4EGZLwo32095 WoTsi7KQtBWKxdV5koSEx1ttIIOedcdaC9d5Y0K4gpx8u94M2ozsD1SzI6ktqTH+3ZoQ G4RA== X-Gm-Message-State: AOAM531AqmbDcNWq1TxiqviRlvRdBEfBByPweZ3yo2O4d9dlVOUduzIk i/QJCa0OdQ5nbBStNkfU+owKMM9XBCr+kdimvoacBW5c X-Google-Smtp-Source: ABdhPJzW0ymU/9pJsa5+J+vLD7XkTCdg/+kUqYQ5iowFMQLo5AIdZyFDN+UzBvbZ2Xa10LLJ82Bn6mjAW6GK1+3P2/Y= X-Received: by 2002:a63:be4b:: with SMTP id g11mr7244188pgo.46.1634869729945; Thu, 21 Oct 2021 19:28:49 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=aaronjensen@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:277543 Archived-At: --0000000000008241e905cee7c54f Content-Type: text/plain; charset="UTF-8" On Thu, Oct 21, 2021 at 4:27 PM Aaron Jensen wrote: > Does the rest of the plan seem reasonable to you? Patch attached for your consideration. Thanks, Aaron --0000000000008241e905cee7c54f Content-Type: application/octet-stream; name="0001-Ignore-non-input-events-in-input-pending-p.patch" Content-Disposition: attachment; filename="0001-Ignore-non-input-events-in-input-pending-p.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kv1r70sk0 RnJvbSA1YzU4ODE3ZTE2NDUwN2Q1NzI5NmY4YTIyZDBkOGNjNDg5NWRjODY0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBYXJvbiBKZW5zZW4gPGFhcm9uamVuc2VuQGdtYWlsLmNvbT4K RGF0ZTogU2F0LCAxNiBPY3QgMjAyMSAxMTowMzo1MCAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIEln bm9yZSBub24taW5wdXQgZXZlbnRzIGluIGlucHV0LXBlbmRpbmctcAoKKiBrZXlib2FyZC5jIChp c19ub25faW5wdXRfZXZlbnQpOiBOZXcgcHJlZGljYXRlIGZ1bmN0aW9uLgoobm9uLWlucHV0LWV2 ZW50cyk6IE5ldyB2YXJpYWJsZS4KKHdoaWxlLW5vLWlucHV0LWlnbm9yZS1ldmVudHMpOiBVcGRh dGVkIGRvY3VtZW50YXRpb24uCihrYmRfYnVmZmVyX3N0b3JlX2J1ZmZlcmVkX2V2ZW50KTogVXNl IGBpc19ub25faW5wdXRfZXZlbnQnLgooUkVBREFCTEVfRVZFTlRTX0ZJTFRFUl9OT05fSU5QVVRf RVZFTlRTKTogUmVuYW1lZCBmcm9tCmBSRUFEQUJMRV9FVkVOVFNfRklMVEVSX0VWRU5UUycKKHJl YWRfY2hhcik6IFVzZSBgbm9uLWlucHV0LWV2ZW50cycgaWYgbm9uLW5pbC4KKHJlYWRhYmxlX2V2 ZW50cyk6IFVzZSBgaXNfbm9uX2lucHV0X2V2ZW50JyBpZiBgbm9uLWlucHV0LWV2ZW50cycgaXMK bm9uLW5pbC4KLS0tCiBzcmMva2V5Ym9hcmQuYyB8IDk3ICsrKysrKysrKysrKysrKysrKys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9pbnB1dDsKIH0KIApAQCAtMTA0OTAsNyArMTA0ODAsNyBAQCBERUZVTiAoImlucHV0LXBlbmRp bmctcCIsIEZpbnB1dF9wZW5kaW5nX3AsIFNpbnB1dF9wZW5kaW5nX3AsIDAsIDEsIDAsCiAKICAg cmV0dXJuIChnZXRfaW5wdXRfcGVuZGluZyAoKE5JTFAgKGNoZWNrX3RpbWVycykKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgID8gMCA6IFJFQURBQkxFX0VWRU5UU19ET19USU1FUlNfTk9X KQotCQkJICAgICB8IFJFQURBQkxFX0VWRU5UU19GSUxURVJfRVZFTlRTKQorCQkJICAgICB8IFJF QURBQkxFX0VWRU5UU19GSUxURVJfTk9OX0lOUFVUX0VWRU5UUykKIAkgID8gUXQgOiBRbmlsKTsK IH0KIApAQCAtMTE2MDcsNyArMTE1OTcsNyBAQCBpbml0X2tleWJvYXJkICh2b2lkKQogfTsKIAog c3RhdGljIExpc3BfT2JqZWN0Ci1pbml0X3doaWxlX25vX2lucHV0X2lnbm9yZV9ldmVudHMgKHZv aWQpCitpbml0X25vbl9pbnB1dF9ldmVudHMgKHZvaWQpCiB7CiAgIExpc3BfT2JqZWN0IGV2ZW50 cyA9IGxpc3RuICg5LCBRc2VsZWN0X3dpbmRvdywgUWhlbHBfZWNobywgUW1vdmVfZnJhbWUsCiAJ CQkgICAgICBRaWNvbmlmeV9mcmFtZSwgUW1ha2VfZnJhbWVfdmlzaWJsZSwKQEAgLTExNjI3LDYg KzExNjE3LDM1IEBAIGluaXRfd2hpbGVfbm9faW5wdXRfaWdub3JlX2V2ZW50cyAodm9pZCkKICAg cmV0dXJuIGV2ZW50czsKIH0KIAorc3RhdGljIGJvb2wKK2lzX25vbl9pbnB1dF9ldmVudCAodW5p b24gYnVmZmVyZWRfaW5wdXRfZXZlbnQgKmV2ZW50KQoreworICBMaXNwX09iamVjdCBsaXNwX2V2 ZW50OworICBMaXNwX09iamVjdCBub25faW5wdXRfZXZlbnRzID0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