]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change (bug#78396)
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Jun 2025 10:32:41 +0000 (13:32 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:03:17 +0000 (22:03 +0200)
* lisp/paren.el (show-paren-not-in-comments-or-strings):
* etc/NEWS:
* doc/emacs/programs.texi (Matching): Fix wording and punctuation
in doc string, defcustom tags, manual, and NEWS.

(cherry picked from commit bed490f0f2d2a8ec7181a7a6b65520a7e40f78fb)

doc/emacs/programs.texi
lisp/paren.el

index 36c676c27184f885bd64de83f27ed05867bd5efe..f8ad7596b4e1c1d317a6f06130a4d0ad1e96bc70 100644 (file)
@@ -1027,8 +1027,10 @@ nonblank line.
 @vindex show-paren-not-in-comments-or-strings
 If the value of @code{show-paren-not-in-comments-or-strings} is
 @code{all}, delimiters inside comments and strings will not be
-highlighted.  Otherwise if the value is set to @code{on-mismatch}, the
-mismatched delimiters inside comments will not be highlighted.
+highlighted.  Otherwise, if the value is set to @code{on-mismatch}, the
+mismatched delimiters inside comments will not be highlighted.  The
+default is @code{nil}, so delimiters inside comments and strings are
+always highlighted.
 @end itemize
 
 @cindex Electric Pair mode
index 986576a8e1d2df61ada7ad2752af5c62081ebb8a..5a70e2771b3aad917f70358331a6aefcb6ce34da 100644 (file)
@@ -111,16 +111,17 @@ On non-graphical frames, the context is shown in the echo area."
   :version "29.1")
 
 (defcustom show-paren-not-in-comments-or-strings nil
-  "Do not highlight the paren that are inside a comment or string.
-If set to `all', do not highlight the paren that are inside comments
-or strings.
-If set to `on-mismatch', the paren mismatched inside comments will not be
-highlighted.
-If set to nil (by default), highlight the paren wherever it is."
+  "If non-nil, do not highlight the parens inside comments and strings.
+If set to `all', never highlight parens inside comments and strings.
+If set to `on-mismatch', do not highlight mismatched parens inside
+comments and strings.
+If set to nil (the default), always highlight parens wherever they are."
   :type '(choice
-          (const :tag "Never highlight" all)
-          (const :tag "Don't highlight when mismatched" on-mismatch)
-          (const :tag "Always highlight" nil))
+          (const :tag "Never highlight parens in comments and strings" all)
+          (const
+           :tag "Don't highlight mismatched parens in comments and strings"
+           on-mismatch)
+          (const :tag "Always highlight parens" nil))
   :version "31.1")
 
 (defvar show-paren--idle-timer nil)