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: input-pending-p after make-frame-visible Date: Fri, 24 Sep 2021 13:12:46 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3333"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 24 19:34:21 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 1mTp5Y-0000dz-SD for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Sep 2021 19:34:20 +0200 Original-Received: from localhost ([::1]:53586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTp5X-0000X5-Sh for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Sep 2021 13:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTokw-0002QW-5b for emacs-devel@gnu.org; Fri, 24 Sep 2021 13:13:02 -0400 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:52096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mToku-00012k-JN for emacs-devel@gnu.org; Fri, 24 Sep 2021 13:13:01 -0400 Original-Received: by mail-pj1-x102a.google.com with SMTP id dw14so7432593pjb.1 for ; Fri, 24 Sep 2021 10:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Mpt+aydK0WkikZzjiuWOaOeZYAuY2AFWeXcazV6/dD8=; b=a5WgQYiAaTlwGxK3P6/S8PZJ3DrRwVtT4OR5dkkW2i35sEAQVRfhCDYTPJfDrvgLs8 /u9fYw5J6bOKvkHiyoUPjJdzbMun3kmy2oNT/fKZAc7qSnhv2mwhT0pNm3NYRgLP5Vb8 RcUcaFPG/gdW0PMpnYG67KtgOwhPuaB8gIs5tzBLs9vtgT38X/xhZIcarAJy+Dr1bacu ur9fYE8OV/A0d4GBRFC8H3TeOJ5lhVrUte4ret8AQZz4tnc06rf4SI31SChGeRyFL3XQ MAOAZMM9LNr1QbKSjGKpO6zEWxC9jKX4zIou2AtAgLxGVygugoifARRdHaM1Ja8cGzGF t+QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Mpt+aydK0WkikZzjiuWOaOeZYAuY2AFWeXcazV6/dD8=; b=rejHxXUcDW1NfoGgc/dwL0aMz8ZA3M6kfHTHtEMudac8ltspSXmNAhr1LYhkopOrBe FAYTKAnOD/sKms834cTGIm8Winl4uXoCNc5+Njv2t61Y2Xy1NLsDjovzvcs7ZKZddIMv V8LxPNQ6cUGMwNXN6+mJp1Ua3iw0roK/RTMBhdiKzfDW/otrDLjQgxItLbaILG3njY4G c/eVPN3T57YJYNHsZH0XsvbZC6qLOJInGhJLgMZdLISdUu3Nh8h6HxUkkr7GOcq0cpbX H4ScN3iUG/tonP6SijThLZ9xHNKWiatC0jZ5TK5I7Gl7yruPh5/Rp7U2dyhk9lxF+nMS fgdg== X-Gm-Message-State: AOAM532p/o/JIaTuUhZ/rm4NenMYU7mErzeN4pVGGaCa6dB4IvLNx/NV p2fEX23RGrNEGm4Lv0H4V92lcix2ZaE9tELx7V76IBhP/Po= X-Google-Smtp-Source: ABdhPJzR8Fz8cMiMCMFRYF3KlKQ2Pi1ws/n0nGQQ8DoesTlJVFvcYX8IpmUKwuQnZgB8OgofGvdvSHhY7bHffDyXTxU= X-Received: by 2002:a17:902:9a04:b0:13a:1ae3:add2 with SMTP id v4-20020a1709029a0400b0013a1ae3add2mr10228887plp.28.1632503578113; Fri, 24 Sep 2021 10:12:58 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=aaronjensen@gmail.com; helo=mail-pj1-x102a.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:275410 Archived-At: Hi all, Unfortunately, I don't have a repro for this, but I'm putting it out there in case anyone has any insight into it. There is a package that makes it so that your minibuffer is rendered into a child-frame called mini-frame: https://github.com/muffinmad/emacs-mini-frame/ I've noticed that at some point, Emacs gets into a state where after make-frame-visible is called with the child frame, input-pending-p starts returning t, rather than nil: (message "pending: %S" (input-pending-p)) (make-frame-visible mini-frame-frame) (message "pending: %S" (input-pending-p)) Prints: nil t Source: https://github.com/muffinmad/emacs-mini-frame/blob/57a049b9e1ea4a9b65e82fc10c8c7e70a042f636/mini-frame.el#L313 This ordinarily wouldn't matter, but I use it with a package that uses while-no-input and this unexpected input causes issues with that package (https://github.com/minad/vertico/issues/115). What could possibly cause an input to become pending when the frame is made visible? Thanks, Aaron