bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51242: [PATCH] New option show-paren-context-when-offscreen


From: Daniel Martín
Subject: bug#51242: [PATCH] New option show-paren-context-when-offscreen
Date: Sat, 16 Oct 2021 20:52:23 +0200

Now that show-paren-mode is enabled by default, I've implemented a new
customization option for Emacs 29.

When the attached patch is installed, if
show-paren-context-when-offscreen is t, when you move the point to a
closing delimiter, if the opening delimiter is offscreen, the line where
the opening line is will appear in the echo area.  This gives you
context about what a delimiter is closing without having to move the
point or reinsert it.  There is similar functionality in popular IDEs.

The feature is implemented by first extracting some code from simple.el
to reuse it from simple.el and paren.el.  The rest of the implementation
is simple.

I think it plays well with eldoc, blink-matching-paren, and the rest of
the show-paren-mode options.

I hope you find this feature useful.

Attachment: 0001-New-option-show-paren-context-when-offscreen.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]