From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Matching parenthesis for long constructs Date: Thu, 09 May 2024 16:58:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25169"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pierre Rouleau , Heime via Users list for the GNU Emacs text editor To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 09 18:59:49 2024 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 1s577V-0006Kq-PN for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 May 2024 18:59:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s576q-00017y-9G; Thu, 09 May 2024 12:59:08 -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 1s576n-00017S-6S for help-gnu-emacs@gnu.org; Thu, 09 May 2024 12:59:05 -0400 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s576k-0002iF-Tr for help-gnu-emacs@gnu.org; Thu, 09 May 2024 12:59:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1715273939; x=1715533139; bh=8NirnK9GGopZTS3Rt4fP7nnDeqr7YyaQehU/5gVAEUU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ZOe9V+F4/sUPnm30tb6sw0ESWHZbpEwFUqvuGHbhlCuRpwCYHZdJDniQOHHNBn9Sx hkR3+o2wwQfveUE/qmb8CkBSngtw2fOTdPFUgKOSfaC3I6mKqrOf6Anj9WyzLyMKeo 5WzcDjiNj8noKnXSqFEINEMDQXQvkkAd0FunIuOL8efeh0Dfbkkcb5tLf29BP/jyac /+Bpu1gOcxPViElBcuWLMsDjHqVnC3JchrdGw4b8HgucAKO4xsCLyzbUAb8oP0Zrtz 79CNI+VjHy9+ExAw5qfpL4t7efyFIYjeJAuWz0M7doPoYtGlKLNPW9E0NUIH/KmzVC xXlJBXVZRgSNA== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 50ae3ce4413ae91d7d7200c26f330f0b866ffc5c Received-SPF: pass client-ip=185.70.40.140; envelope-from=heimeborgia@protonmail.com; helo=mail-40140.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146625 Archived-At: On Friday, May 10th, 2024 at 2:48 AM, Drew Adams wr= ote: > > > > When I have long constructs the current way that parenthesis are > > > > highlighted is not very useful because the matching parenthesis > > > > resides outside the work window. > > > > > > > > There's already plenty of ways to handle this. > > > > I do not want myself to move from one to another. But to display for me > > the line content of the corresponding match whilst staying at point. > > > Emacs manual, node Matching (Programs > Parentheses > > > Matching) tells you all you need to know: > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Matching.html > > I assume you've already turned on `show-paren-mode'. In particular,` blin= k-matching-paren'. Increase the > value of `blink-matching-paren-distance', if you like. > ___ > > You really should Ask Emacs, to help yourself. This is what the manual says "Whenever you type a self-inserting character that is a closing delimiter,= =20 Emacs briefly indicates the location of the matching opening delimiter,=20 provided that is on the screen. If it is not on the screen, Emacs displays= =20 some of the text near it in the echo area. Either way, you can tell which= =20 grouping you are closing off." Basically the feature is useful only for short expressions. If the=20 opening expression is not on the screen, you cannot tell which grouping=20 you are closing off. Because emacs show you the text of the construct =20 that is one level higher up. Try going to the closing parenthesis of a pcase construct where the closing parenthesis start to blink. You are effectively within the construct that encloses the pcase (the construct at the next higher level) and you get sho= wn that rather than the pcase construct in the echo area. =20 You cannot tell what you are closing off.