GNU bug report logs - #79796
flymake-start resizes margins even when flymake-autoresize-margins is nil

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dmitry Gutov <dmitry@HIDDEN>; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 31.0.50, send any further explanations to 79796 <at> debbugs.gnu.org and Dmitry Gutov <dmitry@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 79796 <at> debbugs.gnu.org:


Received: (at 79796) by debbugs.gnu.org; 9 Nov 2025 18:50:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 09 13:50:06 2025
Received: from localhost ([127.0.0.1]:60391 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vIAUH-00059e-DA
	for submit <at> debbugs.gnu.org; Sun, 09 Nov 2025 13:50:05 -0500
Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]:49878)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1vIAUE-00058j-OY; Sun, 09 Nov 2025 13:50:03 -0500
Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4d4MKq6JCtz9tFH;
 Sun,  9 Nov 2025 19:49:51 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1762714191;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=PnIo79gSkQrMf564y6SCEn7Y5B4TMH8k+C58Ixwz6Q8=;
 b=XXrZBK/Ei+/W1wflupMXYu6LVTdX36YKoEOBapfimVm8mlCeF7qELOGjoWg9j9H4sgiG5m
 0FMARRG4o2ZDA9NO6nPt7hfx+41grv8XoCgiM0twlQXWkOFmWKWMdE3LEjBAGuERbNJcng
 u4s/nch5hgsifWkOcO844+CepXqFtlMP2RQRK0fE/CRPBg62hugQJ+RuqGB36QqxQ6FTcx
 JgGbd8Y0KnYe0uGXQDDV1MoD3tN5N4q1HakRri4m0LAQwNr51bCFGyr2h9GkbKVE7sCzRQ
 Ld72ZNBty2hGUokhwFv+fy7VNskmyIe+wju4TBog6UrsKBoUpfK1fzZfk6qaOg==
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#79796: flymake-start resizes margins even when
 flymake-autoresize-margins is nil
In-Reply-To: <87h5v34slj.fsf@HIDDEN>
Organization: LINKOV.NET
References: <3cfbd342-6f48-4717-a328-3c5eb70ec1a7@HIDDEN>
 <87h5v34slj.fsf@HIDDEN>
Date: Sun, 09 Nov 2025 20:48:35 +0200
Message-ID: <87h5v3ghz0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79796
Cc: 79796 <at> debbugs.gnu.org, sbaugh@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

close 79796 31.0.50
thanks

>>             (flymake-mode
>>              ;; The buffer about to be annotated is visible.  Check
>>              ;; necessary conditions to auto-set margins here (bug#77313)
>>              (let* ((w (and (eq flymake-indicator-type 'auto)
>>                             flymake-autoresize-margins
>>                             (visible-buffer-window))))
>>                (unless (flymake--suitably-fringed-p w)
>>                (flymake--resize-margins)))
>>
>> When flymake-autoresize-margins is nil, W just gets bound to nil, which
>> makes flymake--suitably-fringed-p evaluate the current window. And if it
>> doesn't have fringes, flymake--resize-margins is called.
>
> This 'let*' could be turned into 'when-let*'.

So now pushed and closed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79796; Package emacs. Full text available.

Message received at 79796 <at> debbugs.gnu.org:


Received: (at 79796) by debbugs.gnu.org; 9 Nov 2025 07:18:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 09 02:18:57 2025
Received: from localhost ([127.0.0.1]:57063 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHzhR-0003oe-5f
	for submit <at> debbugs.gnu.org; Sun, 09 Nov 2025 02:18:57 -0500
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:36634)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vHzhP-0003o1-7E
 for 79796 <at> debbugs.gnu.org; Sun, 09 Nov 2025 02:18:55 -0500
Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4d440P1W3vz9v6F;
 Sun,  9 Nov 2025 08:18:45 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1762672725;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Fx3/KSjDjTvgDXHJpA6j1rqBtRmObKML9lFfZVR/WFk=;
 b=VDXTnkXEO4aUnCj/5N3fYRajiTj/f6uNiOCQyr3Ne4ld0eE4M7wyR8mlSXO1O22nvM9zyv
 aqkb+tehiZkMQ+KkEr3tKWh/s8gvkLnwhmiYUTeDEeG8yzuCiJz3yJOUYhZ0KWfcv4jt/o
 0fV7bdX4K6GZEpX1XFHKYu3OYhbOQsvmSAk8KJTj56xwcOgO/Bqy0hgxFD7zjZ4hr+cjqm
 ZWSoFFw2W8fLJ8/kkvEq5zjCMAMmsaTg2kT9fKt5SBf1+lafwHm5N49D5Du6SFFaaii25u
 sdkLBubbo85lGGokBaHMcExN70Ez53h4IqXGG10cUPZRdF22R9QlzExtPEQetQ==
From: Juri Linkov <juri@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#79796: flymake-start resizes margins even when
 flymake-autoresize-margins is nil
In-Reply-To: <3cfbd342-6f48-4717-a328-3c5eb70ec1a7@HIDDEN>
Organization: LINKOV.NET
References: <3cfbd342-6f48-4717-a328-3c5eb70ec1a7@HIDDEN>
Date: Sun, 09 Nov 2025 09:14:52 +0200
Message-ID: <87h5v34slj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79796
Cc: 79796 <at> debbugs.gnu.org, sbaugh@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>             (flymake-mode
>              ;; The buffer about to be annotated is visible.  Check
>              ;; necessary conditions to auto-set margins here (bug#77313)
>              (let* ((w (and (eq flymake-indicator-type 'auto)
>                             flymake-autoresize-margins
>                             (visible-buffer-window))))
>                (unless (flymake--suitably-fringed-p w)
>                (flymake--resize-margins)))
>
> When flymake-autoresize-margins is nil, W just gets bound to nil, which
> makes flymake--suitably-fringed-p evaluate the current window. And if it
> doesn't have fringes, flymake--resize-margins is called.

This 'let*' could be turned into 'when-let*'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79796; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Nov 2025 00:07:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 08 19:07:26 2025
Received: from localhost ([127.0.0.1]:54892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vHsxq-0002r1-7F
	for submit <at> debbugs.gnu.org; Sat, 08 Nov 2025 19:07:26 -0500
Received: from lists.gnu.org ([2001:470:142::17]:33316)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1vHsxn-0002qq-Hs
 for submit <at> debbugs.gnu.org; Sat, 08 Nov 2025 19:07:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1vHsxf-00030u-L7
 for bug-gnu-emacs@HIDDEN; Sat, 08 Nov 2025 19:07:15 -0500
Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dmitry@HIDDEN>) id 1vHsxe-00029h-0T
 for bug-gnu-emacs@HIDDEN; Sat, 08 Nov 2025 19:07:15 -0500
Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52])
 by mailfhigh.phl.internal (Postfix) with ESMTP id C14921400155
 for <bug-gnu-emacs@HIDDEN>; Sat,  8 Nov 2025 19:07:11 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-12.internal (MEProxy); Sat, 08 Nov 2025 19:07:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:subject
 :subject:to:to; s=fm2; t=1762646831; x=1762733231; bh=UnwfEivCPZ
 6tSbfh61pfJG62VdIptUMnoIvyMpLCUZQ=; b=k5fOQbXb44xTF0VY5NqcQ/meIc
 e9/CUbT7xsKBTL5WkjFX/fRXrbxVUX8aVEiiiJ5bsK6++vHnIdISptqjUhweyy43
 7Ev2uBecxZ00IzGNfscwJagjj/IQ+uFP3NCFmRh/N7dQOz2pNvS2qVcZHtrb/H09
 q1wDpcox1GTQQLJDTFbm7j/3mSd5ZQtWzQsV62Y679fiWaNMtfb+8cwAR63TJVEJ
 XVuXx0bGGfYb/HbucSo+C2Y7bBS5YBE88nNwk0ZhbNXKjtprLacwilPwQFsnF4Qj
 CpajJ1tleQu78Vr2ARtmdRGuxkJfMydTOPCruEcm6gWpGeiK3PHR9TJATp2w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:message-id:mime-version:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1762646831; x=1762733231; bh=UnwfEivCPZ6tSbfh61pfJG62VdIptUMnoIv
 yMpLCUZQ=; b=tGvvLE3+26r/63k5Tlc2999OfeJe2aAtpaaZYq2ku9RqCfiCUW+
 adyIlZSAw2BzS5WcXSpf3j4AhcJqZVU83xTzudlglby5NPkM5uEzCzBHY4E8A0T/
 tbs/0soqaIYkQdNLfZh0GlWg/iKXOxWFiIkXBVnUqBlWs3GjjibJp5Kn41bhh5nS
 extUiKQgt5hGJlxT0iHDsqum3wmCYsGywlmIPZFP4nomJCJHx41UQbKVp2ABP5u3
 Llcd8hXDjwVB4scg/F5WdwIgCsRnm7uOPhHLI95pGSrnvvlAeOEYIl65Cvi0/dst
 gjg1HVX4yzPTRP8hrJbN1E8EnUnxYy9xT9A==
X-ME-Sender: <xms:L9sPaadCTlp-6YlHxj3PQkKZix793HADtPwJqUT1_iAve_xEfGSMVw>
 <xme:L9sPaaH8xXnWiV_RQn8nrNZ3pkLpe1tKlQanYU4HLoQW_E9yUHWZX6mWBsHuhmsCx
 w9nF6ytTM7sp22PYc43asBgFaMZiY4Q-YDofJ7ASGidfh0j36gV0w>
X-ME-Received: <xmr:L9sPaWkDYkX18iSe9bptKs_mi8RdEplaId0jGhw8wu88Xts1g5a5C_Nn9QIXtqtPiQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleefleegucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertddtvd
 ejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdr
 uggvvheqnecuggftrfgrthhtvghrnhepfeekfeeghfejveehkedtgefhffejgefgudetgf
 eguefhteekudeivefghfekgfevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm
 pehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtth
 hopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgr
 tghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:L9sPaUzeN3O_l3qCHr6qzbBLnZbu6F13X_yQLjyZw3Yf735x4w2ytA>
 <xmx:L9sPaaRZtJKqvl0mR21fAwWzcFdonfahiKxXWciYQekkbpwBveQnqg>
 <xmx:L9sPafsD-cLP2D2HKaVV89hOqIPGKBV_Ztnz_EzE50D-pADikSTWIg>
 <xmx:L9sPaUspI7SeEoy2xbJaW1WpII0I-ip9-7pQ-Uf7qgoW3T5r5sxAQA>
 <xmx:L9sPaT9n3vaOHya-qhYDbWd7rxpvuu76z8K00zkVc5uMgQIsk1Bsym-v>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Sat, 8 Nov 2025 19:07:10 -0500 (EST)
Message-ID: <3cfbd342-6f48-4717-a328-3c5eb70ec1a7@HIDDEN>
Date: Sun, 9 Nov 2025 02:07:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: Dmitry Gutov <dmitry@HIDDEN>
Subject: flymake-start resizes margins even when flymake-autoresize-margins is
 nil
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=103.168.172.159; envelope-from=dmitry@HIDDEN;
 helo=fhigh-a8-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

X-Debbugs-Cc: sbaugh@HIDDEN

Condition: run Emacs in terminal, or otherwise without fringes.

Unconditional resizing happens here:

             (flymake-mode
              ;; The buffer about to be annotated is visible.  Check
              ;; necessary conditions to auto-set margins here (bug#77313)
              (let* ((w (and (eq flymake-indicator-type 'auto)
                             flymake-autoresize-margins
                             (visible-buffer-window))))
                (unless (flymake--suitably-fringed-p w) 
(flymake--resize-margins)))


When flymake-autoresize-margins is nil, W just gets bound to nil, which 
makes flymake--suitably-fringed-p evaluate the current window. And if it 
doesn't have fringes, flymake--resize-margins is called.

It's probably not a problem most of the time, but can be puzzling when 
one is debugging margin resizing behavior. It might create conflict with 
some other hypothetical package as well.




Acknowledgement sent to Dmitry Gutov <dmitry@HIDDEN>:
New bug report received and forwarded. Copy sent to sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#79796; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 9 Nov 2025 19:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.