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: Sun, 3 Oct 2021 16:55:50 -0400 Message-ID: References: <786eca99-bb42-c744-af26-b0435a745a81@gmx.at> <1d7cee7a-6137-609c-1400-f161dc8c860e@gmx.at> <2b2c2a7f-4c4a-a293-361e-86911e9f88b7@gmx.at> <276e1863-1110-3a71-7092-a62491d2d003@gmx.at> <83czotluc3.fsf@gnu.org> <83lf3hjf9n.fsf@gnu.org> <83lf3fio1n.fsf@gnu.org> <83czoriky1.fsf@gnu.org> <835yujie1b.fsf@gnu.org> <83wnmwd3wo.fsf@gnu.org> 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="7062"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 03 22:57:07 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 1mX8Xi-0001XX-3R for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Oct 2021 22:57:06 +0200 Original-Received: from localhost ([::1]:33084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX8Xe-0004oR-8C for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Oct 2021 16:57:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX8Wk-0003zh-4L for emacs-devel@gnu.org; Sun, 03 Oct 2021 16:56:06 -0400 Original-Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:38857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mX8Wi-0008IM-2G; Sun, 03 Oct 2021 16:56:05 -0400 Original-Received: by mail-pg1-x529.google.com with SMTP id s75so3777377pgs.5; Sun, 03 Oct 2021 13:56:03 -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=x//o6pvPBrCd6TvUdmMQ0SiBUVdAfpMRhtdZlsBJGMA=; b=WeHOXLRpxgJL3+RbWUPXLmOtB10Nm79vF+1TIhXLc+YJngFDZy9jTauoDtKOiPu9Pl PWvXL2884JPzv9A3b4Dwd8R3Wh2zKUCEvweonh6nQXnPE/R0Pa5GqbmRYA1tptuGkp1V /yR2BY7HPTJvVp4N2w7+fB+XdyMSa2OrAurvUCUb4I7jucgKpujq9mRaAQkU/Yyw3j2I WMkQ5kWK69amrYO8PEjI6XlTk7J06qDnhoJOoILIscF0ie7o2gbnWjICvmi2xYOMwV29 HfcPse4IYcoqu2VxSz1AmVBv8taGyJtR5aFH+FRJRq23yH3mafW70k4npNepOMMdrK/z hGHA== 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=x//o6pvPBrCd6TvUdmMQ0SiBUVdAfpMRhtdZlsBJGMA=; b=olLKMcwHFd50MdA0+Udbl0kEBtaH6cpQTszW8u2XvSLgvgRPTBkUsquJbYdMiY4hk2 M98eeXEA0CGjmINMJPFo31k/UPKL2w5mETi2h6DJTquBglETrEqSfcohRtKFpTAdndR5 yGORogEGLdSmm7XoheWTG6iwzFDfyKHMZOZSeo6bqsgjI3/X+UjlOFfcR94k+bSP4tRH aPTkypOxrkXUgY3gw7P5/EfVsFzBfPoaHcjeU+JHyLeSpNu1O+wkrmANT6ug7MuU/oZp 9zsYBERzFS7IlwjnNXxYO6X1xAzns7gafF+2Sbzemw16QyJaYQfXDTvk2Tu5m1mYHHWo bNMA== X-Gm-Message-State: AOAM530oNehKQIvNhjzAcbGrgWZiAm++4b3Trw/V8jPi5fjcAJejaETt rOSnIyjQDGU3BTOLXR/p9cNUkVz4To63nlzUrf7DV7VgIN8= X-Google-Smtp-Source: ABdhPJzZjAmmkGTJRs5wQAJopIXe2nt5E78ESSttIWNnOcQHekW9KgNRKrtkgLUjP8t/S2rxr+kT/pRrySQ4QUy2tSo= X-Received: by 2002:a05:6a00:1141:b0:440:3c27:807c with SMTP id b1-20020a056a00114100b004403c27807cmr21137664pfm.71.1633294561685; Sun, 03 Oct 2021 13:56:01 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=aaronjensen@gmail.com; helo=mail-pg1-x529.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:276133 Archived-At: On Sun, Oct 3, 2021 at 3:33 PM Aaron Jensen wrote: > > Does anyone know why showing a mini-buffer only child frame would > trigger a help event? It doesn't when I first start emacs, but if I > click on the echo area once, it will do it from then on out. I'll see > if I can narrow in a repro. Ok, here is a repro: emacs -Q Eval: (defvar mini-frame-frame nil) (defun repro () (interactive) (setq mini-frame-frame (or mini-frame-frame (make-frame `((parent-frame . ,(selected-frame)))))) (message "input-pending-p before: %S" (input-pending-p)) (make-frame-visible mini-frame-frame) (message "input-pending-p after: %S" (input-pending-p)) (make-frame-invisible mini-frame-frame)) (global-set-key (kbd "C-x C-x") 'repro) Then: Switch to messages buffer C-x C-x Focus the original frame C-x C-x Note that input-pending-p remains nil Click the echo area C-x C-x Note that input-pending-p is t after showing. You have to focus the original frame each time, but it is consistent after clicking