Subject: Re: bug#79244: [PATCH] flymake: stop trying to automatically fall back to margins

From: Eli Zaretskii <[email-masked]>
Date: Fri, 15 Aug 2025 18:01:49 +0300

> Date: Fri, 15 Aug 2025 10:13:49 -0400
> From:  Spencer Baugh via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> The code to automatically fallback to margins is not correct: it
> relies implicitly on the buffer being displayed in a window
> while flymake-mode is running.  If the buffer is created while
> not displayed, we will always automatically fallback to margins,
> which is incorrect.
> 
> Avoid the regression by simply disabling this code.  I'll try
> again to fall back automatically in the future.

Thanks.

> --- a/doc/misc/flymake.texi
> +++ b/doc/misc/flymake.texi
> @@ -317,9 +317,6 @@ Customizable variables
>  errors or warnings.
>  Depending on your preference, this can either use @code{fringes} or
>  @code{margins} for indicating errors.
> -If set to @code{fringes} (the default), it will automatically fall back
> -to using margins in windows or frames without fringes, such as text
> -terminals.

Text-mode terminals default to margins, so I think the above text
should mention that.

Otherwise, no comments.