From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Highlighting parentheses when matching parentheses resides outside visible window Date: Wed, 26 Oct 2022 14:09:47 +0300 Message-ID: <83eduuon7o.fsf@gnu.org> References: <835yg8p1w9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30371"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 13:11:46 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oneK2-0007i9-6a for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 13:11:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oneIK-0006u8-DB; Wed, 26 Oct 2022 07:10:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oneII-0006kA-MX for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 07:09:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oneII-0006SW-F8 for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 07:09:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n7orx63iOkXgHWKO7wnBj/XOVsi0JiDGBMmzI8RZ2Cc=; b=aA6TjJEY15KD +NTajiD4RKovTtfMbdeFKq6p1QORBsvLay47DsqRiHa54ef8ja0sjuiIvi9vJivZDEUJd9wQNBS4X Y1PPJkuKzQ4kHKVnjpDHJuHwDaOAYzsBl5t3pYTPDGDF/AdIBD6ZFRIi+wu6sqhhmdCHnQo88e0xO j2CfuAkDsAmUQjvFoacvQnPWywuLkTWmU3yXi+zsnEOKDrgXQRTkX/qrbCRo53blooUbU9vH9SGlh i0+35bmAsRHqEisAnwA/Fs0ZNHSk9p00kPID3EomB662I/z/Xltbp1JBr9oIr4oUaOAH/NkITDBDM crXyjI5KQVTwNe3nWyd56g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oneIH-0002cU-Sa for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 07:09:58 -0400 In-Reply-To: (message from Heime on Tue, 25 Oct 2022 22:41:33 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140392 Archived-At: > Date: Tue, 25 Oct 2022 22:41:33 +0000 > From: Heime > 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. 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. 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? And finally, what would you like to happen instead in this case?