]> git.eshelyaron.com Git - emacs.git/commit
New option show-paren-context-when-offscreen
authorDaniel Martín <mardani29@yahoo.es>
Sat, 16 Oct 2021 18:24:19 +0000 (20:24 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 18 Oct 2021 07:26:44 +0000 (09:26 +0200)
commit9f505c476eb1a8e85ba26964abf218cab7db0e57
treecbe799c64e3b03341f26e91b224c65ec8d14edc0
parent25e624e5859c2e81cafe4b59d0f2d5064aca9ce5
New option show-paren-context-when-offscreen

* lisp/simple.el (blink-paren-open-paren-line-string): Extract
functionality that shows the open paren line in the echo area into its
own function, to reuse it from paren.el.
(blink-matching-open): Use blink-paren-open-paren-line-string.
* lisp/paren.el (show-paren-context-when-offscreen): New option
show-paren-context-when-offscreen.
(show-paren-function): Implement it using
blink-paren-open-paren-line-string.
* lisp/emacs-lisp/eldoc.el (eldoc-display-message-no-interference-p):
Make sure the feature works well with eldoc.
* test/lisp/paren-tests.el (paren-tests-open-paren-line): Test
blink-paren-open-paren-line-string.
* doc/emacs/programs.texi (Matching): Update the documentation.
* etc/NEWS: And announce the new feature.
doc/emacs/programs.texi
etc/NEWS
lisp/emacs-lisp/eldoc.el
lisp/paren.el
lisp/simple.el
test/lisp/paren-tests.el