From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "J.P." Newsgroups: gmane.emacs.bugs Subject: bug#44140: 26.3; ERC stamps: Really use latest buffer's window's width prior to `fill-column' Date: Tue, 08 Jun 2021 22:29:17 -0700 Message-ID: <87v96n61xu.fsf__16169.1925766476$1623216633$gmane$org@neverwas.me> References: <1821306.tpkKSVv8f3@ravel> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2612"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44140@debbugs.gnu.org, emacs-erc@gnu.org To: Olivier Certner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 09 07:30:24 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 1lqqnI-0000Vn-Qi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 07:30:24 +0200 Original-Received: from localhost ([::1]:48240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqqnH-0003QC-Ti for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Jun 2021 01:30:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqqmx-0003Oz-Ca for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 01:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqqmw-0002uf-Jn for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 01:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqqmw-0004HR-CY for bug-gnu-emacs@gnu.org; Wed, 09 Jun 2021 01:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "J.P." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jun 2021 05:30: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.162321659816409 (code B ref 44140); Wed, 09 Jun 2021 05:30:02 +0000 Original-Received: (at 44140) by debbugs.gnu.org; 9 Jun 2021 05:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:60293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqqms-0004Gb-Fy for submit@debbugs.gnu.org; Wed, 09 Jun 2021 01:29:58 -0400 Original-Received: from mail-109-mta253.mxroute.com ([136.175.109.253]:32943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqqmq-0004GO-CB for 44140@debbugs.gnu.org; Wed, 09 Jun 2021 01:29:57 -0400 Original-Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-109-mta253.mxroute.com (ZoneMTA) with ESMTPSA id 179ef3f850e000774e.001 for <44140@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 09 Jun 2021 05:29:48 +0000 X-Zone-Loop: 974d7dae03559c90a0e59a432f710b41a9191c2e3e95 X-Originating-IP: [149.28.56.236] In-Reply-To: <1821306.tpkKSVv8f3@ravel> (Olivier Certner's message of "Thu, 22 Oct 2020 15:25:40 +0200") X-AuthUser: masked@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:208270 Archived-At: Actually, you'd probably have to include that silly gap variable I added in all the "should-newline-p" figuring. So maybe something like: - (insert string)) + (when (>= col (- pos erc-timestamp-align-to-gap)) (newline)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + (erc-insert-aligned string erc-timestamp-right-column) I don't know.