unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Highlighting parentheses when matching parentheses resides outside visible window
Date: Wed, 26 Oct 2022 17:05:35 +0000	[thread overview]
Message-ID: <rSRb2IvJcJIZafYkNT8Q5W_TVo-qOfmU4ythbX86scfTTEl94ucla_LJmBwQl3wRLo-9CLOqWjifnjxJwJGSf8iII6WdHEFqr64S-z50DFk=@protonmail.com> (raw)
In-Reply-To: <83eduuon7o.fsf@gnu.org>


------- Original Message -------
On Wednesday, October 26th, 2022 at 11:09 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Tue, 25 Oct 2022 22:41:33 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > Have spent some serious time scrutinising show-paren-style.
> > 
> > I will explain the problem. Suppose your function is longer than your emacs window.
> > Use "expression" as "show-paren-style", then go just after the last closing parenthesis.
> > You get the associated region highlighted. BUT, try to scroll up the code, the highlighting
> > get recomputed as the point moves across the window. Thus highlighting capability becomes
> > useless when the part does not fit in the emacs window pane.
> 
> 
> I'm sorry, but this doesn't explain your problem in enough detail.
> 
> First, what exactly do you mean by "scroll up the code"? which Emacs
> commands did you use to scroll? At least some ways of scrolling don't
> move point.

I use the arrow keys do a mouse scroll up.  With mouse scroll up, the
position of the cursor moves as the window gets updated.
 
> And when you say "point moves across the window", do you mean that
> point moves with the text or that the text moves, but point stays at
> the same screen coordinates? Depending on how you scroll, it could be
> one or the other.

If the point stays at same screen coordinates, or moves with the text;
the point still moves from its original position (originally positioned
after parenthesis of interest).  Have noticed that when I scroll, the 
cursor point always shown up in the window.
 
> Next, what do you mean by "highlighting get recomputed as the point
> moves across the window"? What happens with highlighting as you
> "scroll" that you don't like?

Let there be a long function, and you put the cursor at the point following
the last parenthesis.  With "show-paren-style" being expression, the function 
code get highlighted.  Suppose I want to go to the beginning of the function
which resides outside the window pane.  The highlighting is disabled as I go
to the beginning of the function.

> And finally, what would you like to happen instead in this case?

I would like the possibility of freezing the highlighting (not only when using
'expression put also for 'parenthesis).  Currently I loose all the parenthesis
or expression highlighting when I need to move through the code.  




  reply	other threads:[~2022-10-26 17:05 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 [this message]
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

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='rSRb2IvJcJIZafYkNT8Q5W_TVo-qOfmU4ythbX86scfTTEl94ucla_LJmBwQl3wRLo-9CLOqWjifnjxJwJGSf8iII6WdHEFqr64S-z50DFk=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=eliz@gnu.org \
    --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).