From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: What is restore_window_configuration in read_minibuf (minibuf.c) for? Date: Mon, 19 Apr 2021 18:03:45 +0200 Message-ID: <2e8c4778-2d8c-e725-a840-f84c410af6a6@gmx.at> References: <7906ebf3-3d63-1244-1d33-62f7cb6be7ce@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17310"; mail-complaints-to="usenet@ciao.gmane.io" To: Daniel Mendler , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 19 18:10: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 1lYWTN-0004MH-7V for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 18:10:05 +0200 Original-Received: from localhost ([::1]:43396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYWTM-0007wu-9e for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 12:10:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYWNe-0000QO-LA for emacs-devel@gnu.org; Mon, 19 Apr 2021 12:04:12 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:37343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYWNZ-00088Z-LJ for emacs-devel@gnu.org; Mon, 19 Apr 2021 12:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1618848226; bh=1R4M13PtGH7ql2AmhvNA0DoqQri2Gg9E1FIFYinM9a0=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=Z0FPgjro9zyUyWJkZ4O6euqHXVJRgtcngz0I12oXj9Y2p/ygTlnwK3OR1QvQ3ns7C dkylfhzCsvOpTsXWqwKf6vb3v3xCU3Q1jOdoL6Sxyj1y6V14PpvyOoDE2yyjoMuFRN mrXwy1gbILPG1l01iMsla3AggNng4gaEMiFQiNiQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.140]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MOREi-1l9r9o1J8g-00PqiB; Mon, 19 Apr 2021 18:03:46 +0200 In-Reply-To: <7906ebf3-3d63-1244-1d33-62f7cb6be7ce@daniel-mendler.de> Content-Language: en-US X-Provags-ID: V03:K1:E/DLjVQTuvIjrHUEIff7cTAGB5VmPjIuN2gq1n+sPq612DU7dsj wsk/TclSyAGzjWcTy1WkDtqvuGBR6xzxmGxsled39w9SPcNR6z2LvwTiOpqr0HtdGjMweXK ZHEdFdX3f9Rbn1UYKmTUfPzm4mhNXjzb9Z5tPoTqxBxEKc/OLn1IF01Io+cIFlBEYCmM1+z J7Dr3+wdmCP3MOKYVvm8w== X-UI-Out-Filterresults: notjunk:1;V03:K0:QEK5I3yYTVI=:G0iH/n2x0jynXQgETHMnYS HpNsl6ic5yn3bXO9K/3MDxpIhlgyBlP83RnQ8DHvnmwWrTElrxX5hHQ17FWyhnjwIMfE7Cd6k F65zSzOHdigVDoqoZ3YxnO+39JcqwDGlzwPKs4ZjMwVatnV/d4J2lswmJ1HHU+ZtagXcS/0gs RVklPYN7+lzgiQmgw6cjB7csmZnoNUXetqEku/VR/ydKrJuYVUzzV1Khx/RwPXKZzVcUJCMl8 GCkFAdUX8/W1vVDhdirTgxbDcGVFxCmT8sEPJNftgOEZYC8ZZH5Kl09K2L1Zfc+z/BJnQrJx6 Kd4Xrk4sPVetfGnv1WzFi0MiCrFaJFdf0RUgXbROjxO0v4cAYRR/OABD4OOHvquMly5BtZhoU nCrqiOEtCLkKxyrDHupoXwClW01oIEejD0ms1+4JC/FuPTZZUQqMAMPtXHhSspYEYRByqO/e2 iYzFXO3jyCO/h1vI49SoZ+8quRkZbtbo0NN+YHRA7gQ+X3vFsVX6r248G1MB9NHO/jB9/K6Md yy3LKMh0SeFumHRcjOI4t5+outay/ZPfna/dk7sHR7QPzZVO+V30KoU5Ba3YQvc5jSHyDkhJS HgpXam/gNKkifIarCYoUMDLoXZ3+iLPjWeHeWsFZoiyq8OvM7RCHl4vr9q2mO0WaoqQTnIiT3 wWZISLxbB8tHLb2PBe3XhNqMioauf5TDoa/uJuCXtWYACF02OsiS6EV/Ua/9DCusoLaY/S1B/ 3i4uZ1eWSnXWoaOnxaao2AThmzysEghNMgkDw4oDrD7ULB0tBzLLYxC+Ml6tn4Tf/CRo3O3f Received-SPF: pass client-ip=212.227.15.15; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:268180 Archived-At: > FWIW I am using this feature in one of my packages > (https://github.com/minad/consult/). I expect the window configuration > to be restored when the minibuffer session is left. One of my commands > previews buffers when selecting them during completing-read. However > packages which do something like this can also be adjusted accordingly > to save and restore the configuration manually if the decision is made > to change this behavior. If a user wanted to do such previews on another, maybe even new frame, restoring the window configuration won't be of any help. martin