From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.help Subject: Re: Highlighting parentheses when matching parentheses resides outside visible window Date: Wed, 26 Oct 2022 12:21:34 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7395"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 12:22:27 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 1ondYI-0001fc-Lm for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 12:22:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ondXg-0002dc-W0; Wed, 26 Oct 2022 06:21:49 -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 1ondXf-000299-5Q for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 06:21:47 -0400 Original-Received: from sonic308-17.consmr.mail.ir2.yahoo.com ([77.238.178.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ondXc-0006pH-P7 for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 06:21:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1666779699; bh=9b56hC+8COH86MnqAhr5ochP65mAVFxiy7iBiazEsuU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=uZI9Pv6CUmMhJ1cHJf4pNQvve06MNtLOvm2XkT7iN0TFN3+FXgRPD3LyPUShVASLACey6dwo4sEVHCpHpBcqsK7jXEJOEfIUe7tYh0P189mmf/+uTAWG3OphQI0pdICOJnkdOsAcCAkSfL7z/vn6eH9tjxeMAQsLlCCv1K7rubjjyu/r936w6cDZKPg7FN9SRhN+ueDkSkbAyeyEPDXWUIwDAxGsiXmTg8xJFziTw/ICn9mPsBXsDm7prSoRZcACbvb9e2y6DMvJReL4WXBZ74cNeQEwKl2x2/6amxomaFj/cEQw1poC4GivdrNYGLcf7ikswh7zjXkBHI9TTaQT+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666779699; bh=cjI/biUL2CNLzPmUpahzd5l+SKS/jvRwMhFJwqCfzW1=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=KTEG2efjS6tXkevkwhsshqFY8ySKOBKjkM+2PlpV+YfI6VwOrX70Q29QT6ert3sls4/B1YR0ZH4qD9orZnDurb7dsrIz+MDpVwaWTtwf1HlUzj2j5YHqdg7yVXVsw+KWn++RX2S/5jtIFMKWXbi+IkB0cQ5nnGIVUKkeybPbOoK08A4AuMvT/s3AmfLPIkkSuxrvUg2lHuQBEhDvKBENu9pQ2Fg0GHD1aJFr+PfHGePmcgGkm3UkmKI1u4pqjTFJOcNd2Ot7mpw1/hQuZWon38bninFybRa3HZsCly8r2zPeBPPJJwzrziFnKbH+cUenUJTdvo0JtUrAHimKT89MFA== X-YMail-OSG: _b7sZR0VM1kbIUOzNL_vaaLCMWe1pLzG8RrgAyoCJifinilrFyNlQX_cXG57Tw8 eC5SszhmmTf.RI0pdrNsTR8lSLX9uBk0Tz1ye9z3eqnRtUAfWBPJR.FjXVqy.0haWhDk8pY3GXDA U89gPYde7cuxFlhefUtCkL37mXmOLkS26Mjd1henCQuOk55XyF7bkttPPe1WaCR0TF8uw_ZkcwYd kswETmpOVQNHkOpjbBlEFvAxPiMw0Pwy1XfjjD7yJ3yTkNZapjBIRKwJc947Aea3M3juTJRzgOv2 BhWDpISC9UF0dqHIc6e.02RhyRTVAwk2.z7JgjX7mOjuVyjTI9VW9i1pZ2im1iTPh46i2qOmJ5cl JVlIiIpSWfNjjx9IqDcD6SBwDkxFRS53J86u_FTgEUzxLpbAf90gdmXDWGIvBgP5y7FojkSd1yR8 NYDtUFyYPHCu7._awum7JVM7Nfkbl46i.LG72xyDoD8ScfP_MiX673cOKLZ21Wpr2mNUtwiTWEZ0 fpDpHv7_AUJbU3oOzdR7sbbkO5HK6p_arTfJCdr5vrJVGMaZJvcUhVfd.dpO8IpLEVzZYo5iK9kb 829Aw9aF36SOxgc15pf4QUTEY_1Ln9eLYRD5UjdX7C1qmphtOHRKntj2zC76Lv56cTs.pmYaRueM Yrx43AjOIGl5t1kLNkRdXqC2yi6FJohuNp2hTjTT21qnTYCq9E_0kmwRPwgSp8qFpE070RBYGsO2 zpHSFCT2PtVm5oNjg4D7I101v4UtLms92.Hs.ae6_Yjb9rONps3hmkuTnsFF71rUmjYVjc6fqhdh oa3M.TNY5RZTIgYxP9sLw4XszKSFZTxvidgpudC.1q X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Wed, 26 Oct 2022 10:21:39 +0000 Original-Received: by hermes--production-ir2-96dfb7869-tzc7l (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dc8ff34ad68e77affcc2dc4572578bc8; Wed, 26 Oct 2022 10:21:35 +0000 (UTC) In-Reply-To: (Heime's message of "Tue, 25 Oct 2022 11:22:24 +0000") X-Mailer: WebService/1.1.20783 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=77.238.178.145; envelope-from=mardani29@yahoo.es; helo=sonic308-17.consmr.mail.ir2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: , 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:140391 Archived-At: Heime 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.