[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 160e62a: Improve documentation and customization of 'blink-matc
From: |
Eli Zaretskii |
Subject: |
emacs-28 160e62a: Improve documentation and customization of 'blink-matching-paren' |
Date: |
Thu, 7 Oct 2021 05:34:02 -0400 (EDT) |
branch: emacs-28
commit 160e62a23cd722744c74cec9e8d37cb678be0fb1
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Improve documentation and customization of 'blink-matching-paren'
* lisp/simple.el (blink-matching-paren): Fix the wording of the
doc string and the descriptions in the value menu. (Bug#51032)
---
lisp/simple.el | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index 459fc67..bec4aa4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -8419,21 +8419,29 @@ presented."
(defcustom blink-matching-paren t
"Non-nil means show matching open-paren when close-paren is inserted.
-In addition, if the opening paren is not visible on screen, show
-its position in the echo area.
+If this is non-nil, then when you type a closing delimiter, such as a
+closing parenthesis or brace, Emacs briefly indicates the location
+of the matching opening delimiter.
The valid values are:
- nil Disable.
- non-nil Highlight the opening paren.
- `jump' Briefly move cursor to its position.
- `jump-offscreen' Briefly move cursor to its position,
- even if the opening paren is not on screen."
+ t Highlight the matching open-paren if it is visible
+ in the window, otherwise show the text with matching
+ open-paren in the echo area. This is the default.
+ `jump' If the matching open-paren is visible in the window,
+ briefly move cursor to its position; otherwise show
+ the text with matching open-paren in the echo area.
+ `jump-offscreen' Briefly move cursor to the matching open-paren
+ even if it is not visible in the window.
+ nil Don't show the matching open-paren.
+
+Any other non-nil value is handled the same as t."
+
:type '(choice
(const :tag "Disable" nil)
- (const :tag "Highlight" t)
- (const :tag "Move cursor" jump)
- (const :tag "Move cursor, even if off screen" jump-offscreen))
+ (const :tag "Highlight open-paren if visible" t)
+ (const :tag "Move cursor to open-paren if visible" jump)
+ (const :tag "Move cursor even if it's off screen" jump-offscreen))
:group 'paren-blinking)
(defcustom blink-matching-paren-on-screen t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 160e62a: Improve documentation and customization of 'blink-matching-paren',
Eli Zaretskii <=