Subject: bug#71227: 29.2; show-paren-context-when-offscreen does not show previous line for OCaml "begin" opener

From: Eli Zaretskii <[email-masked]>
Date: Mon, 27 May 2024 20:59:55 +0300

> Date: Mon, 27 May 2024 14:50:13 +0200
> From: Gaëtan Gilbert <[email-masked]>
> 
> eg if you make a file containing
> 
>    let foo =
>      begin
> 
>      ()
> 
>      end
> 
> scroll so that the begin is hidden and highlight end,
> show-paren-context-when-offscreen will only show the "begin" line but should also show the "let foo" line.
> 
> I guess this is because "begin" is not a single character.
> 
> Can be reproduced in emacs -Q after loading tuareg-opam.el, tuareg-compat.el and tuareg.el from https://github.com/ocaml/tuareg
> by using tuareg-mode on the above example and setting show-paren-context-when-offscreen to your preferred non-nil value.

Thanks, but shouldn't this problem be reported to the developers of
these packages first?  Those packages are not part of Emacs and not on
ELPA, AFAICT.