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:58:16 +0300 Message-ID: <83sfjampqf.fsf@gnu.org> References: <835yg8p1w9.fsf@gnu.org> <83eduuon7o.fsf@gnu.org> <83v8o6mqph.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38593"; 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 20:01:13 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 1onkiH-0009tH-7C for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 20:01:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onkfd-00022O-Nf; Wed, 26 Oct 2022 13:58:29 -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 1onkfb-000229-Jr for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:58:27 -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 1onkfa-0005ul-C7 for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:58:26 -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=3V9FZ/3xhHvsOZbRMQ2eQDzMz5vHINk6TkRyxcjJeqA=; b=dvV6Af+v5xWI wpZJEIWSgTBUsUpq9G2AW/ptGLVR3nZ1dSILxuZ5ArIOstKkPGyjpOoX5xxEl8Ua8hrh47ev2g7OR 198jmlru+0z/V/rez3uKjtLFQ5jxJhzHUrjpPGuHQ93Fd1uqzItN8oREGyj05VRoIPXlBHGZiGvfC yX2TSBfYlGN5shgKFAdBzshP5xht6TAKVFv8iEYkpuDQNb0pl3jk751MRIx3BkSXJA8id0K09ty1c I83nz3umvjafDblphNylLEOK6wdObJvsN7vxgMxrjaWGSh7Lsme2WkhsSXEvKiXvsPoWL9feFerar +KMLXjkV3NfNsxYjOGa2+Q==; 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 1onkfY-0008Gm-HH for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:58:24 -0400 In-Reply-To: (message from Heime on Wed, 26 Oct 2022 17:48:05 +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:140406 Archived-At: > Date: Wed, 26 Oct 2022 17:48:05 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > "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". > > Been thinking of a toggle at user request. Once you get the highlighting > call a hold-highlighting function. That's not what show-paren-mode is supposed to do. There are many packages out there which highlight parenthesized expressions, I'm sure you will find one that suits your needs.