GNU bug report logs -
#51242
[PATCH] New option show-paren-context-when-offscreen
Previous Next
Reported by: Daniel Martín <mardani29 <at> yahoo.es>
Date: Sat, 16 Oct 2021 18:53:01 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51242 in the body.
You can then email your comments to 51242 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51242
; Package
emacs
.
(Sat, 16 Oct 2021 18:53:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Martín <mardani29 <at> yahoo.es>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 16 Oct 2021 18:53:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[0001-New-option-show-paren-context-when-offscreen.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51242
; Package
emacs
.
(Mon, 18 Oct 2021 07:29:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 51242 <at> debbugs.gnu.org (full text, mbox):
Daniel Martín <mardani29 <at> yahoo.es> writes:
> 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.
I think that's really cool, so I've pushed this to Emacs 29.
One possible tweak:
> + (minibuffer-message
> + "Matches %s"
> + (substring-no-properties open-paren-line-string)))))
Would it make sense to retain the text properties, so that you get the
fontification in the echo area, too?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 29.1, send any further explanations to
51242 <at> debbugs.gnu.org and Daniel Martín <mardani29 <at> yahoo.es>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 18 Oct 2021 07:29:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 15 Nov 2021 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.