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 20:37:14 +0300 Message-ID: <83v8o6mqph.fsf@gnu.org> References: <835yg8p1w9.fsf@gnu.org> <83eduuon7o.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33026"; 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 19:45:28 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 1onkT1-0008NW-5F for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 19:45:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onkLG-0004ae-JA; Wed, 26 Oct 2022 13:37:26 -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 1onkLF-0004Td-DW for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:37:25 -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 1onkLF-0002jH-5a for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:37:25 -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=G+WAUD/DXuoZxBxWMubD1XMn2NsLm+GOKjRluNgkYs4=; b=gtObqKJfVJhJ Qsu/40RNvwWzEAu2nZ8z2TMtc9ZVR8lH5jrCF16AxowO/KxkBvvBXQ2qjjWRerwnl+L/2+6kjYEYX NTvwcxPNGyvC1SsN/s/W5Jk2f46EQQvuEXZNOF4Iz/CUQVtXDHqkISyUU6qwzdQq4YrMNQrUHAeW5 QYeDIhaamXQ+yDi0ax35hM5bpyKfHd5wRluPdpnpGVJsEi66Wo/dOgRtw4FtxYaIB8mwL2egAof7R DBDIC6cSftfA5OBbu4q0q0oIbR9CQgakkVjGkHyCYEDCvvc4k87wfwVQFBRXA8emMn3KxyT0wpPSV +wYAzANLGWC2GZALJPsFPg==; 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 1onkLD-0003Xs-HX for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:37:24 -0400 In-Reply-To: (message from Heime on Wed, 26 Oct 2022 17:05:35 +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:140404 Archived-At: > Date: Wed, 26 Oct 2022 17:05:35 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > 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. "Freezing" until what happens? what would cause the highlight to be turned off? Anyway, if this is what you want, then show-paren-mode is not the solution. show-paren-mode is explicitly programmed to show you the parenthesized/braced construct before/after point, so if you move point, you cannot expect the highlight to remain "frozen".