unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Daniel Martín" <mardani29@yahoo.es>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Highlighting parentheses when matching parentheses resides outside visible window
Date: Wed, 26 Oct 2022 12:21:34 +0200	[thread overview]
Message-ID: <m1o7ty7ump.fsf@yahoo.es> (raw)
In-Reply-To: <mOeAK3elym-CccizfRylSuHGadGjc6AV-_HkGuVbY66sSmB2ZGg56tSTI4i4dmzEbWP39A2fxFIK2Wl2aecvZSCSJdY_EqE7nsBuPrgZQas=@protonmail.com> (Heime's message of "Tue, 25 Oct 2022 11:22:24 +0000")

Heime <heimeborgia@protonmail.com> writes:

> Although emacs is capable of highlighting parentheses, when the matching parentheses
> is located outside the visible window, there is no chance to see where a closing 
> parenthesis actually matches.  Can there be a solution to this?

There are many ways to achieve that:

- C-M-b C-M-f to move backward and forward a balanced expression.

- Delete and reinsert the parenthesis.  You will see in the echo area
  the text "Matches ..." that informs you about the matching
  parenthesis.

- In Emacs 29, I introduced a new defcustom for show-paren-mode,
  show-paren-context-when-offscreen, which will automatically show the
  matching parenthesis information in the echo area when the point is
  next to the closing parenthesis, without needing to reinsert it.
  



      parent reply	other threads:[~2022-10-26 10:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 11:22 Highlighting parentheses when matching parentheses resides outside visible window Heime
2022-10-25 11:40 ` Eli Zaretskii
2022-10-25 12:01   ` Heime
2022-10-25 12:44     ` Eli Zaretskii
2022-10-25 22:41   ` Heime
2022-10-26 11:09     ` Eli Zaretskii
2022-10-26 17:05       ` Heime
2022-10-26 17:37         ` Eli Zaretskii
2022-10-26 17:48           ` Heime
2022-10-26 17:58             ` Eli Zaretskii
2022-10-26 18:03               ` Heime
2022-10-26 18:23               ` Heime
2022-10-26 18:39                 ` Eli Zaretskii
2022-10-26 19:14                   ` Heime
2022-10-27  5:16                     ` Eli Zaretskii
2022-10-27  5:46                       ` Heime
2022-10-26 17:50         ` Emanuel Berg
2022-10-25 12:22 ` Jean Louis
2022-10-25 13:10 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-10-26 10:21 ` Daniel Martín [this message]

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=m1o7ty7ump.fsf@yahoo.es \
    --to=mardani29@yahoo.es \
    --cc=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).