unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: Arash Esbati <arash@gnu.org>, 51032@debbugs.gnu.org
Subject: bug#51032: 29.0.50; Choices for blink-matching-paren
Date: Tue, 5 Oct 2021 17:23:22 -0400	[thread overview]
Message-ID: <CADwFkmmWfez6TSi=fwR-6b=uYzq_4gFSwSzHduLV4gv+efR0Vw@mail.gmail.com> (raw)
In-Reply-To: <m1bl43tupl.fsf@yahoo.es> ("Daniel Martín"'s message of "Tue, 05 Oct 2021 16:25:10 +0200")

close 51032 28.1
thanks

Daniel Martín <mardani29@yahoo.es> writes:

> Arash Esbati <arash@gnu.org> writes:
>
>>
>> Is there a specific reason why users cannot choose this feature
>>
>>     With any other non-nil value, the off-screen position of the opening
>>     paren will be shown in the echo area.
>>
>> via customize interface?  Currently, one has to do
>>
>>    (setq blink-matching-paren 'show)
>>
>> in the init file to get that behavior.  Or am I missing something?
>>

Thanks for the bug report.

> I wonder if the documentation is correct.  The off-screen position of an
> open paren is shown in the echo area when the variable is non-nil and
> not 'jump-offscreen (and of course the open paren is off-screen).
>
> I don't see how 'show is treated differently than t.

Yup, there is no particular behavior associated with `show'.

Valid choices here include nil, t, `jump', and `jump-offscreen', and
while the last one will move the cursor off screen, t and jump will only
show the position in the echo area.

I have now fixed this on master (commit b2c50d7cf3) with the below
patch.  This change will be a part of the upcoming Emacs 28.1.

diff --git a/lisp/simple.el b/lisp/simple.el
index 3695415163..459fc67944 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -8419,11 +8419,16 @@ paren-blinking

 (defcustom blink-matching-paren t
   "Non-nil means show matching open-paren when close-paren is inserted.
-If t, highlight the paren.  If `jump', briefly move cursor to its
-position.  If `jump-offscreen', move cursor there even if the
-position is off screen.  With any other non-nil value, the
-off-screen position of the opening paren will be shown in the
-echo area."
+In addition, if the opening paren is not visible on screen, show
+its position in the echo area.
+
+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."
   :type '(choice
           (const :tag "Disable" nil)
           (const :tag "Highlight" t)





  reply	other threads:[~2021-10-05 21:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 12:18 bug#51032: 29.0.50; Choices for blink-matching-paren Arash Esbati
2021-10-05 14:25 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-05 21:23   ` Stefan Kangas [this message]
2021-10-06 12:06     ` Eli Zaretskii
2021-10-06 18:10       ` Stefan Kangas
2021-10-06 18:23         ` Eli Zaretskii
2021-10-06 18:57           ` Stefan Kangas
2021-10-06 19:05             ` Eli Zaretskii
2021-10-06 20:53               ` Stefan Kangas
2021-10-07  9:02                 ` Arash Esbati
2021-10-07  9:08                   ` martin rudalics
2021-10-07  9:16                     ` Arash Esbati
2021-10-07  9:34                       ` martin rudalics
2021-10-07 10:17                         ` Arash Esbati
2021-10-07 13:49                           ` Eli Zaretskii
2021-10-07  9:39                   ` Eli Zaretskii
2021-10-07 10:20                     ` Arash Esbati
2021-10-07  9:36                 ` Eli Zaretskii
2021-10-07 13:05                   ` Stefan Kangas
2021-10-07 13:20                     ` Eli Zaretskii
2021-10-05 17:10 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmmWfez6TSi=fwR-6b=uYzq_4gFSwSzHduLV4gv+efR0Vw@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=51032@debbugs.gnu.org \
    --cc=arash@gnu.org \
    --cc=mardani29@yahoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).