From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Clemens Newsgroups: gmane.emacs.bugs Subject: bug#44080: 27.1; Display behavior of overlays `after-string` in resizable minibuffer frames Date: Wed, 21 Oct 2020 16:13:30 +0200 Message-ID: References: <83v9f6ngr6.fsf@gnu.org> <9a624e83-8d12-7597-2421-8c8ac9415ef9@gmx.at> <62b3f36b-c352-6004-7a59-e95ffe1ce408@gmx.at> <10267321-400d-5d36-1558-070a24476a03@posteo.de> <82e8f1b4-c3cb-6aec-45d3-e413da4a1b58@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15806"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 44080@debbugs.gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 21 16:14:57 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kVEtE-0003zM-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 16:14:56 +0200 Original-Received: from localhost ([::1]:40114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVEtD-0000SP-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Oct 2020 10:14:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVEsM-0008BK-S1 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 10:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVEsM-00022D-J7 for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVEsM-0000iK-Eo for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 10:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Clemens Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Oct 2020 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44080 X-GNU-PR-Package: emacs Original-Received: via spool by 44080-submit@debbugs.gnu.org id=B44080.16032896202706 (code B ref 44080); Wed, 21 Oct 2020 14:14:02 +0000 Original-Received: (at 44080) by debbugs.gnu.org; 21 Oct 2020 14:13:40 +0000 Original-Received: from localhost ([127.0.0.1]:50113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVEs0-0000ha-BL for submit@debbugs.gnu.org; Wed, 21 Oct 2020 10:13:40 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:33489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVEry-0000hN-MC for 44080@debbugs.gnu.org; Wed, 21 Oct 2020 10:13:39 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B45222400FB for <44080@debbugs.gnu.org>; Wed, 21 Oct 2020 16:13:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1603289611; bh=Kc9C/4TBnYXsQW2zZaQMuGJC31iEoFPV9MpPlUkTZ8g=; h=Subject:To:Cc:From:Date:From; b=MzdS9bJLGPD7lXBLznaKwXBRAyrJlRAHvhjmI8wR/DncB4Q8HDWiiOqUwXjGDGLYT hwN9AeC5NF1hCghI2MnvPVo1J3urrR8mhMS5X1m0YlnhRt0PZK1gaS7dDVj4/ax7xp j27EIt/1ymIoiZeRUxnZ1MfeoDf3TFjXu3k52cMzDQpi/YuJfiXoLTAEmYDuEh05fP 1exUfjnt2CMFXhWy/xKflwEQ+lDoKrx1+AdNulLIvCjpV/lgsYi709iR7c73e+KzAB Nc7Tk6bZKGgjsqCk6IOFilvoScVES7eRMSjue023TAo0AAsr2iik3vnpJukQDlx/yG nAHVcmGZnndpA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CGXXW0Y8Tz9rxX; Wed, 21 Oct 2020 16:13:30 +0200 (CEST) In-Reply-To: <82e8f1b4-c3cb-6aec-45d3-e413da4a1b58@gmx.at> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191168 Archived-At: > IMO advices are much too complicated to handle this issue.  I'd proceed > in the traditional way: Oh I did not mean to propose that as a solution on the Emacs side, sorry if that wasn't clear. It was meant as a temporary workaround for affected users before an official solution lands. > (1) Rename 'fit-frame-to-buffer' to say 'fit-frame-to-buffer-1' and give > that function two new arguments FROM and TO.  In its > 'window-text-pixel-size' call, replace the "t t" with "from to". > > (2) Provide a new function 'fit-frame-to-buffer' with the same singature > as the old 'fit-frame-to-buffer' that calls `fit-frame-to-buffer-1' with > FROM and TO t. > > (3) Provide a new function 'fit-mini-frame-to-buffer' that calls > 'fit-frame-to-buffer-1' with FROM and TO nil.  Offer that function as > first choice when customizing 'resize-mini-frames' and call it in > 'window--resize-mini-frame' when 'resize-mini-frames' is nil. I did not know `resize-mini-frames` is already allowed to be a function, I don't use that feature at all so I'm a bit clueless about possible settings. It doesn't look like `window--resize-mini-frame` is called anywhere? Is that function meant for users? > If 'fit-frame-to-buffer' has additional defects when used for resizing > mini frames, we could try to fix them in 'fit-mini-frame-to-buffer' as > well.  WDYT? Sounds like a good approach to me. Thanks for thinking it through!