From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Olivier Certner Newsgroups: gmane.emacs.bugs,gmane.emacs.erc.general Subject: bug#44140: 26.3; ERC stamps: Really use latest buffer's window's width prior to `fill-column' Date: Tue, 06 Jul 2021 17:15:34 +0200 Message-ID: <7448139.J7Vt23MMP5@ravel> References: <1821306.tpkKSVv8f3@ravel> <87bl8f7ktf.fsf@neverwas.me> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36127"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44140@debbugs.gnu.org, emacs-erc@gnu.org To: "J.P." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 06 17:34:01 2021 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 1m0n5F-00095w-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jul 2021 17:34:01 +0200 Original-Received: from localhost ([::1]:50274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0n5E-0005nv-7z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jul 2021 11:34:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0mnr-0000Ya-V7 for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:16:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38205) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0mnq-0004Lt-Sp for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0mnq-00026n-Ob for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Olivier Certner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2021 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44140-submit@debbugs.gnu.org id=B44140.16255845447116 (code B ref 44140); Tue, 06 Jul 2021 15:16:02 +0000 Original-Received: (at 44140) by debbugs.gnu.org; 6 Jul 2021 15:15:44 +0000 Original-Received: from localhost ([127.0.0.1]:49750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0mnY-0001qK-05 for submit@debbugs.gnu.org; Tue, 06 Jul 2021 11:15:44 -0400 Original-Received: from smtp5-g21.free.fr ([212.27.42.5]:53064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0mnV-0001nI-OX for 44140@debbugs.gnu.org; Tue, 06 Jul 2021 11:15:42 -0400 Original-Received: from ravel.localnet (unknown [2.15.208.149]) (Authenticated sender: olivier.certner@free.fr) by smtp5-g21.free.fr (Postfix) with ESMTPSA id A06016327E; Tue, 6 Jul 2021 17:15:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1625584540; bh=56k073MlgntMuXTfagMhtvLBfcNyG0e9q1HX4q1daSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sqd6C9t9UsWJAtX9LG35cjWu/0hjnV75TNfjxLuGCGqJC6lAdtwydVNi6FvvAdrSX bxJCS9I/1F30Xh9unyK6rHBuhLqOHClq3nyBM0jkEb6JXNJWde6Oqjx4aTIWZd6dco b4KVT7MraPt7f9KijV+79XXAStz089XZpotqE4R/v7kzZHmk8iC5xgYJxx1O+NTTRB x3KczO/bFP2W3tqBfeBk5Sxpbcj5Av65hUsjJXUqmsFLYphTZvtzE+nGvazI1kbwRF RGu6hAdBCDa++qkHGlbpgzX0wZXF8PeJejB8Mpx5qk6CwtYRrGHViBMvIdM7JRJnfk HJoiKcAdI+YYw== In-Reply-To: <87bl8f7ktf.fsf@neverwas.me> 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:209534 gmane.emacs.erc.general:1555 Archived-At: Hi JP, > I'm a little fuzzy on how the ALL-FRAMES = t param for the function > `get-buffer-window' works exactly. The windows within each frame should > follow the normal cyclic ordering (right?). But I think I learned > somewhere that frame ordering is different and isn't affected by > whichever one was last selected. If true, I suppose frame users (not me) > are already used to this behavior and won't be surprised by it. After reading some code (in "window.c"), I think `get-buffer-window' works like this: 1. It browses all windows in cyclic order (including windows of other frames or not, depending on the ALL-FRAMES parameter). 2. If the currently selected window contains the wanted buffer, it is returned immediately. 3. If 2 never occurs, and there is a window containing the current buffer in the selected frame, then the first one (i.e., the most recently activated) is returned. 4. If 2 and 3 never occur, than the first window containing the current buffer is returned (so, a window from another frame). > Anyway, I happened upon another approach for the final display part (see > attached sketch). If you see anything useful, just take it. Otherwise, > sorry for the distraction. Your changes seem interesting. I'm not very familiar with display properties, and I'm wondering if this would work as expected on text displays. Since I don't have much time to test that, and since these changes are independent of the bugs fixed here, I'd suggest to put them in a separate report. Regards. -- Olivier Certner