From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51032: 29.0.50; Choices for blink-matching-paren Date: Tue, 5 Oct 2021 17:23:22 -0400 Message-ID: References: <86o8831x7o.fsf@gnu.org> 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="25032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Arash Esbati , 51032@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 23:26:37 2021 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 1mXrxN-0006KY-Pz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 23:26:37 +0200 Original-Received: from localhost ([::1]:49120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXrxJ-0006Ie-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 17:26:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXrus-0003tm-AB for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 17:24:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXrus-0003pn-2F for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 17:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXrur-0002vz-TF for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 17:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Oct 2021 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51032 X-GNU-PR-Package: emacs Original-Received: via spool by 51032-submit@debbugs.gnu.org id=B51032.163346901211243 (code B ref 51032); Tue, 05 Oct 2021 21:24:01 +0000 Original-Received: (at 51032) by debbugs.gnu.org; 5 Oct 2021 21:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:41988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXruO-0002vB-63 for submit@debbugs.gnu.org; Tue, 05 Oct 2021 17:23:32 -0400 Original-Received: from mail-pj1-f50.google.com ([209.85.216.50]:52220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXruK-0002um-UM for 51032@debbugs.gnu.org; Tue, 05 Oct 2021 17:23:30 -0400 Original-Received: by mail-pj1-f50.google.com with SMTP id kk10so613998pjb.1 for <51032@debbugs.gnu.org>; Tue, 05 Oct 2021 14:23:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=4nSr+WSdF8xsv4JjcnEzswxaJZdQJYBHnkGZopxRt1M=; b=FQ1U3ajGia5fzY5/DYJ77bhWS3ygQEr9T/jcSldtS3tUXQlTFwINSEc82QuW8Uv8Sq VFTmRqGx8OHSbLZedOsD8sqWA3bq8ftt260qmT5MjcokQOu0OvrfNG8XULB95AS3vT+/ aTimypwlzTTv+e+7ZYXNALDQHlSsFZE0tA7Lu4oYv+q6HquK1j1QsCzGJSeG4VpR9G0i nZLAqShS9fH4yKn8wPQvvdzgvn8xp7mvN5SvEdE3t42WZXbCOAgM6yIplg44iCEKiZ+V 5lK9BlP2ctyWL4nLwhstEtczi9c+0/8ARJ/EcgOuaG+f1vZvS/B7egVV0Dk1TpC+LFaD AUHw== X-Gm-Message-State: AOAM531Zd2cuXWttqU0ts6hautCXFi4kItbNxJG6J3XL8xUuscX351Zt SKDbVmWniLgonmzwPjHzft4jJoCDu0uBHsidtAc= X-Google-Smtp-Source: ABdhPJx0Fjg9EZTCy+fUpFEczpeBAFL8L057+OdcuT5hVA3KAiL7NJs3Zk28pHXnUieOJj8QNtaxMkm37p/swU7SYBo= X-Received: by 2002:a17:902:7611:b0:13e:ce2e:1f85 with SMTP id k17-20020a170902761100b0013ece2e1f85mr7397868pll.22.1633469002955; Tue, 05 Oct 2021 14:23:22 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 5 Oct 2021 17:23:22 -0400 In-Reply-To: ("Daniel =?UTF-8?Q?Mart=C3=ADn?="'s message of "Tue, 05 Oct 2021 16:25:10 +0200") 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:216502 Archived-At: close 51032 28.1 thanks Daniel Mart=C3=ADn writes: > Arash Esbati writes: > >> >> Is there a specific reason why users cannot choose this feature >> >> With any other non-nil value, the off-screen position of the opening >> paren will be shown in the echo area. >> >> via customize interface? Currently, one has to do >> >> (setq blink-matching-paren 'show) >> >> in the init file to get that behavior. Or am I missing something? >> Thanks for the bug report. > I wonder if the documentation is correct. The off-screen position of an > open paren is shown in the echo area when the variable is non-nil and > not 'jump-offscreen (and of course the open paren is off-screen). > > I don't see how 'show is treated differently than t. Yup, there is no particular behavior associated with `show'. Valid choices here include nil, t, `jump', and `jump-offscreen', and while the last one will move the cursor off screen, t and jump will only show the position in the echo area. I have now fixed this on master (commit b2c50d7cf3) with the below patch. This change will be a part of the upcoming Emacs 28.1. diff --git a/lisp/simple.el b/lisp/simple.el index 3695415163..459fc67944 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8419,11 +8419,16 @@ paren-blinking (defcustom blink-matching-paren t "Non-nil means show matching open-paren when close-paren is inserted. -If t, highlight the paren. If `jump', briefly move cursor to its -position. If `jump-offscreen', move cursor there even if the -position is off screen. With any other non-nil value, the -off-screen position of the opening paren will be shown in the -echo area." +In addition, if the opening paren is not visible on screen, show +its position in the echo area. + +The valid values are: + + nil Disable. + non-nil Highlight the opening paren. + `jump' Briefly move cursor to its position. + `jump-offscreen' Briefly move cursor to its position, + even if the opening paren is not on screen." :type '(choice (const :tag "Disable" nil) (const :tag "Highlight" t)