From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Setting arbitrary windows as frame's minibuffer Date: Wed, 10 Oct 2018 08:20:05 +0200 Message-ID: <5BBD9A15.6050706@gmx.at> References: <6B8BB5CB-70E7-4B02-BEB3-BA4B2CDF6704@icloud.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1539152361 8887 195.159.176.226 (10 Oct 2018 06:19:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 06:19:21 +0000 (UTC) To: Akio Burns , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 10 08:19:17 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 1gA7q0-0002Dv-S6 for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2018 08:19:16 +0200 Original-Received: from localhost ([::1]:55005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gA7s7-00066D-Bs for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2018 02:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gA7rI-00065v-PA for emacs-devel@gnu.org; Wed, 10 Oct 2018 02:20:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gA7rE-0006ha-I5 for emacs-devel@gnu.org; Wed, 10 Oct 2018 02:20:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51147) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gA7rC-0006Vl-1R for emacs-devel@gnu.org; Wed, 10 Oct 2018 02:20:31 -0400 Original-Received: from [192.168.1.101] ([213.162.73.117]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUYnD-1gJIop2uEl-00RJUv; Wed, 10 Oct 2018 08:20:12 +0200 Original-Received: from [192.168.1.101] ([213.162.73.117]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUYnD-1gJIop2uEl-00RJUv; Wed, 10 Oct 2018 08:20:12 +0200 In-Reply-To: <6B8BB5CB-70E7-4B02-BEB3-BA4B2CDF6704@icloud.com> X-Provags-ID: V03:K1:WPx2zG6LXoenmDN/qXlhob4eTZRS9c778cFekAgzQ8GB6xMRpCA Kw0vgkD1duTBIxfNxupc7iMOZ8sX3Te4NNYlox2TpJHSstixLfXp6T+vFFrT/pSCSAdbYFC LKDKuIBj5HUvpnym0jA8qNh5UTcGnZKgyTcRkbMuxvMnUIH4xhAF3uzGDl9CQpbCk27naBa IkaZIf7cI2rzgN20ddVZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dz1K8Zoiyao=:8IzYGi6NFOFINVKq+xQ1XH 164b0SgoLDj0IKkbzbYfdnLVdHFigfJ0pzCxdWCz1o4oTulMMQucmzO4eLWzD5zMpoHGW1h9f YJxY6hlmOKtj2G5PzWjv0AtjpY+K9iqiiFr3XxTbksTiRj21f98ltf6f5sq8ovWsCGXj241LI vLEqMVbyfzUhMTQu2QViLTGsw7q993wtNVMtfZnYfZK+wrwHFugw2MZoZsAht0yJ2GeVEb8BU /Ckk0Wtj5iPnipFfCqqgCd3mBCS1anCdEL0/LL8rq4wIBCJM6DnFh24edkXfsppKSqlfhjr9o bDqYc1L0FYaUpKoxKsyMjcNVKMLYf1316TTI+exf45FTAivYTMr9q8Lz6tkwZU1kaIGhjzKnQ sAyFwtuJ5XPT7dyTPv/Cx4EBGyADNZxqGbHnKPDb6OZlMCBBi3AqChBPuaIoT9FTtGBcxRB1J iytFirau25RVwiDmRbnQMayWHZ8mZ3z764cU1uqanOYKsRtKg4I4/HzM0lYzOoDrEaDjhZPYK VvvHA/ja5RIbAUuheBe/nTdl9wLagFIzdTnfSRsuvI8J1QRKSCLPIoepTas3T2eAkM+pY4Qv+ MqnUIAmT7tl8t6IxcLlW/lv60gpnLfEpkR6rdh5IZy/fHLoZzTCkZItIHk/z9mAci74XnmMkr hC73aCqlg5YXj/3SCxaTvxpnMZrFpzEcnWzLXFEepQLjHwBApwT8nt7WfYXxcztkunaXE5782 FINSwzVhCEa42e1odPVxXXaALVa+fdStpB2UPINkefQhNgcRPc62Ogg2flYqcIzaDg+RuaRS X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:230302 Archived-At: > I would like to set an arbitrary window as the frame's minibuffer so > that I may position the minibuffer adjacent to the focused window > when it is invoked rather that at the bottom of the frame. Here I'm doing that for a couple of months already. > After removing the validation in frame.c > > if (!MINI_WINDOW_P (XWINDOW (val))) > error ("The `minibuffer' parameter does not specify a valid minibuffer window"); > > I tried setting the frame's minibuffer with > > (set-frame-parameter (selected-frame) 'minibuffer (selected-window)) > > This works for the first minibuffer invocation. Unfortunately, once > the minibuffer quits/closes Emacs becomes stuck trying to resize the > window and the minibuffer visually migrates back to the bottom of > the frame. The behavior of non-separate minibuffer windows is hard-coded in many places so this is no surprise. > Given that minibuffer window can be placed in a separate frame, it > seems to me this should not be difficult. Am I missing something > simple that would permit arbitrary minibuffer positioning? Have a look at the patch attached to http://lists.gnu.org/archive/html/bug-gnu-emacs/2018-08/msg00012.html and you should have an overview of what you are missing. martin