From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Question about minibuffer and child frames (Posframe) Date: Thu, 03 Oct 2024 16:03:39 +0200 Message-ID: References: <1d2d916e-82b9-4672-bbd6-4583b5edad14@gmx.at> <24c75fcd-cbd6-4f7f-94d2-636814fcf4c7@gmx.at> <618c87b7-c5a6-40ee-8440-75f5b48bfc43@gmx.at> <2b259b34-35d7-49d7-96a6-a50eeee07896@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34988"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 03 16:04:29 2024 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 1swMRQ-0008sg-KW for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Oct 2024 16:04:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swMQl-0007dh-7b; Thu, 03 Oct 2024 10:03:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1swMQi-0007T4-Ua for emacs-devel@gnu.org; Thu, 03 Oct 2024 10:03:44 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swMQh-0003Cc-An for emacs-devel@gnu.org; Thu, 03 Oct 2024 10:03:44 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a93b2070e0cso113497166b.3 for ; Thu, 03 Oct 2024 07:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727964221; x=1728569021; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=p0fxSw18/HvQZDyAUPSoKPNJlQEPnV4V7xHpopXFtxQ=; b=mowyfKFM18uI6kt51b4nsJj+GMrHycTY6IS7Fg5hDRRbFDNYozSWjnqC57NU2qLnBV x4MPBRqLsL0kGxmmxkZB2/9mC8xIFo6VxpFEhrdqKUNLhYnB68qDE0Jqu+SrwrJ72TVc OVwzyY8NHpPor3N6k0cBns4gBikSxU2ZU+E5zvxOnTzS1meDdmNxBM/4kxCn93mCvI7+ OrCIu+RWG1UNLR9NlKH1fk9tMjw/qa7Amen866C8W769sZvOV1cSw7vJhYE3iyNv3V7L aU/4gF/YNCR15jk8egQsf1LK6uEH2r1tB/ht4ajhCv+A7Qig3F4SnbYH4QojXpFl73q0 iaWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727964221; x=1728569021; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p0fxSw18/HvQZDyAUPSoKPNJlQEPnV4V7xHpopXFtxQ=; b=mbs6+moYxs2ya5Wf20H5vvKKGuXo6KfLDqoKC/4FyaI678WaUDeE4GbocC3QC5izPY ZNhyx9Uhm1FD8eGkXWmc+7Z+05nPU7CfIo6SvvnnCfw2hlem7BVGbduhUfULDl2VvcbD GTIokP+qvikGce5G9Escuq5PZ9Sp8dJDN8xarpomFsGtdmxiQlSIZ+DeICzkxHIZXdv/ p0Sio1cMeFWIUDL5KfPrP09Kbzocv+LN+AEZS4+wdsEnvJZmYpBC1Z7CtM29zPmzugfm WEELIvsyLFYPCjVhkfzdnmPGR3pkKXhzXpzFJ1LK/GirJ5jbVERhjEVaXuYsHOZDT2lx SJPA== X-Gm-Message-State: AOJu0Yw5LIFs9Lx/3jsZyF/VDDZGlWuCBcCse+Z7g0tzjRVJ0U9RJHqS iKDBI7VvLmfByDsu4WQZxqNCr8m2cdFE+89JWwegW6eL7MoE5GBcwrJCzA== X-Google-Smtp-Source: AGHT+IGC08T7uxUOZROvF8Q5IV/GkXuJqIkYppltEXf6KNDgA9yikf4PqG4Rht5KSEnKDuk2Wp/Zqw== X-Received: by 2002:a17:906:db08:b0:a8d:286f:7b5c with SMTP id a640c23a62f3a-a98f825aa27mr689082566b.27.1727964220815; Thu, 03 Oct 2024 07:03:40 -0700 (PDT) Original-Received: from MacBookPro.fritz.box (pd9e36aa3.dip0.t-ipconnect.de. [217.227.106.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99104bf8b0sm89566366b.194.2024.10.03.07.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 07:03:40 -0700 (PDT) In-Reply-To: <2b259b34-35d7-49d7-96a6-a50eeee07896@gmx.at> (martin rudalics's message of "Thu, 3 Oct 2024 15:12:13 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324286 Archived-At: martin rudalics writes: >> I can only guess that that is part of how the `minibuffer' frame >> parameter is supposed to work, but I really have no ideda. The Elisp >> manual simply says >> >> If the value is a minibuffer window (in some other frame), the >> frame uses that minibuffer. > > If the posframe uses its own minibuffer window as value, then this would > probably work. store_frame_param would set the parameter value to t in > that case as follows > > else if (FRAME_HAS_MINIBUF_P (f)) > { > if (EQ (val, FRAME_MINIBUF_WINDOW (f))) > val = Qt; > > You would have to verify via > > (frame-parameter posframe 'minibuffer) Thanks, that was an interesting hint. I'll try that maybe tomorrow. I found something interesting too. I forgot to call window-list on the posframe in a way that it includes mini-windows. When I fix that I see that the GUI posframe has 1 window, but the tty posframe has 2, one of which is a mini-window. Whatever the effect of that is overall, it explains why the posframes and the Corfu frames are consistently 1 line too tall. Nice!