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.bugs Subject: bug#54551: show-paren-mode inconsistency Date: Fri, 25 Mar 2022 09:47:21 +0300 Message-ID: <837d8icyva.fsf@gnu.org> References: <83ee2rccyk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54551@debbugs.gnu.org To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 25 07:48:10 2022 Return-path: Envelope-to: geb-bug-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 1nXdk2-000AF7-BK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 07:48:10 +0100 Original-Received: from localhost ([::1]:53088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXdk0-0000if-SE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 02:48:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXdjv-0000iW-4m for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 02:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXdju-00068A-OP for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 02:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXdju-0005fG-Cz for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 02:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Mar 2022 06:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54551 X-GNU-PR-Package: emacs Original-Received: via spool by 54551-submit@debbugs.gnu.org id=B54551.164819085821636 (code B ref 54551); Fri, 25 Mar 2022 06:48:02 +0000 Original-Received: (at 54551) by debbugs.gnu.org; 25 Mar 2022 06:47:38 +0000 Original-Received: from localhost ([127.0.0.1]:49898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXdjV-0005ct-OA for submit@debbugs.gnu.org; Fri, 25 Mar 2022 02:47:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXdjU-0005cL-3M for 54551@debbugs.gnu.org; Fri, 25 Mar 2022 02:47:36 -0400 Original-Received: from [2001:470:142:3::e] (port=33532 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXdjO-00065s-HN; Fri, 25 Mar 2022 02:47:30 -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=W0E7JYEKzK8ch9g+wGiTk4ixizPxodTOJtRta+I26Kc=; b=QKqDTd/OrWR0 2KtS+0PuNu9vPc/OK2v3J4WfLYkduv9XOkqVwUx9i+lb0xqqx5y3DVpONtqE7JwEspJMv13P3xQgE 0CUIiWfUf2Q/2o8wl/4sKi2BbKES+DnrT0GBjXwASndXvZs4wN4f0pUCr6t6EisivFzTOtQgxzK6F opCNYOJ1LE1MQd6uVm5iZmGhZt7B3ui2zdeb2IU1m0mUNmj4BQX0nqRXsSLMsciV3XqViH8SKo493 kVtWhduVa//4Q+CKdSgRvSTvSwuNoxiFlV/2sHzl9m8I/cdsMIZ9v5NZAj3McUqobakPDYsXlyqmi HjSmHkYU5cUUc+1J4afgHg==; Original-Received: from [87.69.77.57] (port=3817 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 1nXdjL-0003jf-1z; Fri, 25 Mar 2022 02:47:30 -0400 In-Reply-To: (message from goncholden on Thu, 24 Mar 2022 22:48:35 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228910 Archived-At: > Date: Thu, 24 Mar 2022 22:48:35 +0000 > From: goncholden > Cc: 54551@debbugs.gnu.org > > Consider the following command > > (setq initial-frame-alist '((width . 72) (height . 26)) ). > > Would be instructive that when one puts the cursor in the space between (width . 72) and (height . 26), the entire (width . 72) (height . 26) would be highlighted. Why only "(width . 72) (height . 26)" and not the entire setq expression? Or maybe I don't understand what you mean by "instructive", i.e. what exactly would you like Emacs to show you and why? show-paren-mode has a specific goal: to show you the matching parenthesis in an unobtrusive way, and do that as you type as well as when you move through the code. That is the "instructive" role that it takes up upon itself. It sounds like you want something else, which would then call for a different feature with different visuals (parenthesized expressions tend to nest, so being "inside" one of them means you are "inside" all of the outer ones, and displaying them calls for a different technique than what show-paren does). > But (setq show-paren-when-point-inside-paren t) does not do that. > Can be very non-intuitive when debugging. For debugging, I suggest that you use C-M-u. > Also, if you put the cursor on the parenthesis following (height . 26), only (height . 26) gets highlighted, rather than the entire (height . 26) (height . 26). What do you mean by "the entire (height . 26)"? Did you try to set show-paren-style to 'expression', and if not, does it do what you want?